:root {
  /* 单一主题变量表：后文不得再次声明 :root 覆盖，避免多版样式互相抵消。 */
  --bg: #f5f7fb;
  --surface: #fff;
  --ink: #182238;
  --muted: #69768b;
  --line: #e1e7f0;
  --line-strong: #cdd7e5;
  --green: #2f64c8;
  --green-dark: #244f9e;
  --green-soft: #edf3fc;
  --amber: #b96816;
  --amber-soft: #fff3df;
  --red: #bb3e45;
  --red-soft: #fdecee;
  --blue: #2f64c8;
  --blue-soft: #edf3fc;
  --brand-blue: #2f64c8;
  --brand-blue-dark: #244f9e;
  --brand-blue-soft: #edf3fc;
  --brand-blue-faint: #f8fafc;
  --shadow: 0 6px 20px rgba(27, 48, 84, .06);
  --sidebar: 248px;
  --sidebar-rail: 64px;
  /* 层级表：下拉 < 悬浮卡 < 遮罩 < 抽屉 < 弹窗 < 提示 < 登录门禁 */
  --z-dropdown: 80;
  --z-hovercard: 95;
  --z-overlay: 100;
  --z-drawer: 110;
  --z-modal: 130;
  --z-tooltip: 1200;
  --z-toast: 1400;
  --z-gate: 3000;
  /* 本站为单一浅色主题：显式声明配色方案，避免浏览器强制深色把表单控件渲染成深色。 */
  color-scheme: light;
}

.wxl-date-control {
  width:100%;
  height:36px;
  padding:0 10px;
  min-width:0;
  color:var(--ink);
  background:#fff;
  border:1px solid var(--line-strong);
  border-radius:4px;
  outline:0;
  font:inherit;
  font-size:10px;
}
.wxl-date-control:focus {
  border-color:#75a28e;
  box-shadow:0 0 0 3px rgba(18,107,77,.08);
}
.wxl-date-control:disabled {
  color:var(--muted);
  background:#f4f6f9;
  cursor:not-allowed;
  opacity:.72;
}

/* System account gate and account administration. */
.app-shell.auth-locked { visibility:hidden; }
.auth-gate { position:fixed; inset:0; z-index:3000; display:none; place-items:center; padding:24px; background:#edf2f1; }
.auth-gate.open { display:grid; }
.auth-shell { width:min(980px,100%); min-height:560px; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr); overflow:hidden; background:#fff; border:1px solid #d6e0dc; border-radius:10px; box-shadow:0 26px 80px rgba(28,55,43,.16); }
.auth-brand-panel { padding:58px 56px 42px; display:flex; flex-direction:column; justify-content:space-between; color:#fff; background:linear-gradient(145deg,#153f32 0%,#1b6c4f 100%); }
.auth-brand-mark { width:54px; height:54px; display:grid; place-items:center; color:#153f32; background:#d6f0e4; border-radius:12px; font-size:25px; font-weight:900; }
.auth-brand-panel .eyebrow { margin-top:78px; color:#a9d9c2; }
.auth-brand-panel h1 { margin:12px 0 0; color:#fff; font-size:34px; letter-spacing:0; }
.auth-brand-panel p { max-width:360px; margin:14px 0 0; color:rgba(255,255,255,.74); font-size:13px; line-height:1.8; }
.auth-brand-foot { display:flex; align-items:center; gap:8px; color:rgba(255,255,255,.66); font-size:10px; }
.auth-brand-foot svg { width:15px; color:#a9d9c2; }
.auth-login-panel { padding:58px 58px 36px; display:flex; flex-direction:column; justify-content:center; }
.auth-login-head h2 { margin:11px 0 0; color:#1d2f28; font-size:27px; letter-spacing:0; }
.auth-login-head p { margin:8px 0 0; color:#82908a; font-size:12px; }
.auth-form { margin-top:34px; display:grid; gap:18px; }
.auth-form label { display:grid; gap:7px; }
.auth-form label > span { color:#52635b; font-size:11px; font-weight:700; }
.auth-input { height:46px; display:flex; align-items:center; gap:9px; padding:0 13px; background:#fbfcfb; border:1px solid #d4dfda; border-radius:6px; transition:border-color .16s,box-shadow .16s,background .16s; }
.auth-input:focus-within { background:#fff; border-color:#3b8b6b; box-shadow:0 0 0 3px rgba(59,139,107,.11); }
.auth-input > svg { width:17px; color:#8b9b94; flex:0 0 auto; }
.auth-input input { min-width:0; flex:1; height:100%; padding:0; color:#25352e; background:transparent; border:0; outline:0; font:inherit; font-size:13px; }
.auth-input input::placeholder { color:#a4b0aa; }
.auth-password-toggle { width:28px; height:28px; padding:0; display:grid; place-items:center; color:#899890; background:transparent; border:0; cursor:pointer; }
.auth-password-toggle svg { width:16px; }
.auth-form-meta { display:flex; justify-content:space-between; gap:10px; color:#8b9992; font-size:9px; }
.auth-form-meta span { display:flex; align-items:center; gap:5px; }
.auth-form-meta svg { width:13px; }
.auth-submit { width:100%; min-height:46px; justify-content:center; border-radius:6px; font-size:12px; }
.auth-submit.is-loading { opacity:.7; cursor:wait; }
.auth-error { min-height:16px; margin:0; color:#b34d52; font-size:10px; line-height:1.5; }
.auth-login-foot { margin-top:42px; padding-top:16px; color:#98a49e; border-top:1px solid #edf1ef; font-size:10px; text-align:center; }
.system-account-overview { display:grid; grid-template-columns:repeat(4,1fr); margin-bottom:14px; background:#fff; border:1px solid var(--line); border-radius:6px; }
.system-account-overview article { min-height:92px; padding:15px 17px; border-right:1px solid var(--line); }
.system-account-overview article:last-child { border-right:0; }
.system-account-overview span,.system-account-overview strong,.system-account-overview small { display:block; }
.system-account-overview span { color:var(--muted); font-size:9px; }
.system-account-overview strong { margin-top:9px; color:var(--ink); font-size:19px; }
.system-account-overview small { margin-top:4px; color:#98a49e; font-size:9px; }
.system-account-ledger .panel-header .status { display:flex; align-items:center; gap:5px; }
.system-account-ledger .panel-header .status svg { width:13px; }
.system-account-table { min-width:760px; }
.system-account-identity { display:flex; align-items:center; gap:9px; }
.system-account-avatar { width:30px; height:30px; display:grid; place-items:center; color:#1f6a4e; background:#e4f1eb; border-radius:50%; font-size:12px; font-weight:800; }
.system-account-identity > span:last-child { display:flex; flex-direction:column; gap:3px; }
.system-account-identity small { color:var(--muted); font-size:9px; }
.system-account-editor { margin-top:14px; }
.system-account-editor .panel-header { align-items:flex-start; }
.system-account-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:16px; }
.system-account-form label { display:grid; gap:6px; }
.system-account-form label > span { color:var(--muted); font-size:10px; }
.system-account-form input,.system-account-form select { width:100%; height:38px; padding:0 10px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; outline:0; font:inherit; }
.system-account-form input:focus,.system-account-form select:focus { border-color:#77a994; box-shadow:0 0 0 3px rgba(59,139,107,.08); }
.system-account-form-actions { grid-column:1/-1; display:flex; justify-content:flex-end; gap:9px; padding-top:4px; }
@media (max-width:720px) { .auth-shell { grid-template-columns:1fr; min-height:0; }.auth-brand-panel { min-height:250px; padding:32px; }.auth-brand-panel .eyebrow { margin-top:38px; }.auth-login-panel { padding:34px 28px 28px; }.system-account-overview { grid-template-columns:1fr 1fr; }.system-account-overview article:nth-child(2) { border-right:0; }.system-account-overview article:nth-child(-n+2) { border-bottom:1px solid var(--line); }.system-account-form { grid-template-columns:1fr; }.system-account-form-actions { grid-column:auto; } }

/* White and blue operating theme */
/* 旧主题变量块已合并到文件顶部 :root，避免重复声明抵消。 */
.sidebar { color:#4f5d72; background:#fff; border-right:1px solid var(--line); }
.brand { border-bottom-color:var(--line); }
.brand-mark { color:#fff; background:var(--green); }
.brand-copy strong { color:var(--ink); }
.brand-copy span { color:#8792a5; }
.company-switcher { background:#f7f9fd; border-color:var(--line); }
.company-switcher strong { color:var(--ink); }
.company-switcher span,.company-switcher svg { color:#8490a4; }
.company-avatar { color:var(--green); background:#e8edff; }
.nav-label { color:#9aa4b5; }
.nav-group-toggle { color:#263247; }
.nav-group-toggle:hover { color:var(--green); background:#f5f7fc; }
.nav-group-toggle small { color:#9aa4b5; }
.nav-group-items { border-left-color:#e3e7ef; }
.nav-item { color:#647085; }
.nav-item:hover { color:var(--green); background:#f5f7fc; }
.nav-item.active { color:#254dc8; background:#edf2ff; box-shadow:inset 3px 0 #4d6ff0; }

/* Product master */
.product-data-tabs { width:max-content; min-height:44px; margin:12px 0 14px; padding:3px; display:flex; align-items:center; gap:3px; background:#fff; border:1px solid var(--line); }
.product-data-tabs > button { min-width:150px; height:36px; display:inline-flex; align-items:center; justify-content:center; gap:8px; color:#66738a; background:#fff; border:0; font:inherit; font-weight:700; cursor:pointer; }
.product-data-tabs > button svg { width:17px; height:17px; }
.product-data-tabs > button.active { color:#315bd8; background:#edf2ff; box-shadow:inset 0 -2px #315bd8; }
.product-data-tabs > span { margin-left:auto; padding-right:10px; display:inline-flex; align-items:center; gap:7px; color:#738097; font-size:12px; }
.product-data-tabs > span svg { width:15px; height:15px; color:#315bd8; }
.product-master-ledger { overflow: hidden; }
.product-master-filterbar { grid-template-columns: minmax(300px, 1.6fr) minmax(160px, .55fr) minmax(160px, .55fr); }
.product-master-rule-note { display:flex; align-items:flex-start; gap:12px; margin:0 20px 18px; padding:13px 15px; color:#254dc8; background:#f3f6ff; border-left:3px solid #3560df; }
.product-master-rule-note > svg { width:19px; height:19px; margin-top:1px; flex:0 0 auto; }
.product-master-rule-note div { display:grid; gap:3px; }
.product-master-rule-note strong { color:#173678; font-size:14px; }
.product-master-rule-note span { color:#65738f; font-size:12px; line-height:1.55; }
.product-master-table { min-width:1180px; }
.product-master-table th:nth-child(1) { width:220px; }
.product-master-table th:nth-child(2) { width:240px; }
.product-master-table th:nth-child(3) { width:270px; }
.product-master-table th:nth-child(4) { width:110px; }
.product-master-table th:nth-child(5) { width:250px; }
.product-master-table th:nth-child(6) { width:130px; }
.product-master-table tr[data-product-master-id] { cursor:pointer; }
.product-master-table tr[data-product-master-id]:hover td { background:#f7f9ff; }
.product-master-table td small { display:block; max-width:235px; margin-top:3px; color:#8490a6; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.product-master-sku-cell > strong { color:#173678; font-size:15px; }
.product-master-sku-cell > small { color:#5470b5; }
.product-master-sku-source { display:none; }
.product-master-sku-hover { position:fixed; z-index:var(--z-hovercard); width:min(420px,calc(100vw - 24px)); max-height:320px; overflow:auto; padding:14px; color:#263247; background:#fff; border:1px solid #cfd8ea; border-radius:6px; box-shadow:0 14px 38px rgba(23,42,82,.18); }
.product-master-sku-hover > b { display:block; padding-bottom:9px; color:#173678; font-size:13px; border-bottom:1px solid #e3e8f1; }
.product-master-sku-hover > div { display:grid; grid-template-columns:minmax(120px,.9fr) minmax(160px,1.4fr); gap:12px; padding:10px 0; border-bottom:1px solid #edf0f5; }
.product-master-sku-hover > div:last-child { border-bottom:0; }
.product-master-sku-hover strong { overflow-wrap:anywhere; font-size:12px; }
.product-master-sku-hover span { color:#6f7c92; font-size:12px; line-height:1.45; }
.product-master-edit-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
#detailDrawer.wide { background:#fff; opacity:1; isolation:isolate; animation:none!important; }
#detailDrawer.wide .detail-body { background:#fff; }
.product-master-edit-grid label { display:grid; gap:7px; }
.product-master-edit-grid label.wide { grid-column:1/-1; }
.product-master-edit-grid label span { color:#77839a; font-size:12px; font-weight:700; }
.product-master-edit-grid input,.product-master-edit-grid select,.product-master-merge select { width:100%; height:42px; padding:0 12px; color:#263247; background:#fff; border:1px solid #d7deeb; border-radius:5px; font:inherit; }
.product-master-edit-grid input:disabled { color:#7b879b; background:#f5f7fb; }
.product-master-detail-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:12px; }
.product-master-detail-head h3 { margin:0; }
.product-master-detail-head p { margin:4px 0 0; color:#8792a6; font-size:12px; }
.product-master-mapping-section .table-wrap { max-height:430px; border:1px solid #e0e5ef; }
.product-master-mapping-section table { min-width:1020px; }
.product-master-mapping-section td { vertical-align:top; }
.product-master-mapping-section td small { display:block; margin-top:3px; color:#8b96a9; }
.product-master-merge > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; }
.product-master-merge-button { min-width:130px; }
.product-master-history { display:grid; gap:8px; }
.product-master-history > div { display:grid; grid-template-columns:170px 1fr; gap:12px; padding:10px 0; border-bottom:1px solid #e7ebf2; }
.product-master-history span { color:#7f8ba0; font-size:12px; }
.product-master-history strong { color:#2b374b; font-size:13px; }
.middle-product-cost-ledger { overflow:hidden; }
.middle-product-cost-filterbar { grid-template-columns:minmax(270px,1.6fr) repeat(4,minmax(125px,.55fr)) auto; }
.middle-product-cost-table { min-width:1660px; }
.middle-product-cost-table tr[data-middle-product-cost] { cursor:pointer; }
.middle-product-cost-table tr[data-middle-product-cost]:hover td { background:#f7f9ff; }
.middle-product-cost-table td small { display:block; max-width:230px; margin-top:3px; color:#8490a6; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.middle-product-cost-table td:nth-child(1) { min-width:210px; }
.middle-product-cost-table td:nth-child(2),.middle-product-cost-table td:nth-child(9) { min-width:160px; }

@media (max-width: 900px) {
  .product-data-tabs { width:100%; align-items:stretch; overflow-x:auto; }
  .product-data-tabs > button { min-width:140px; flex:1; }
  .product-master-filterbar { grid-template-columns:1fr; }
  .middle-product-cost-filterbar { grid-template-columns:1fr; }
  .product-master-ledger > .panel-header { align-items:flex-start; flex-direction:column; gap:12px; }
  .product-master-ledger > .panel-header .toolbar { width:100%; padding:0; border:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .product-master-ledger > .panel-header .toolbar button { width:100%; min-width:0; }
  .product-master-rule-note { margin:0 12px 14px; }
  .product-master-edit-grid { grid-template-columns:1fr; }
  .product-master-edit-grid label.wide { grid-column:auto; }
  .product-master-merge > div { grid-template-columns:1fr; }
}
.sidebar-footer { border-top-color:var(--line); }
.period-progress span,.user-card span { color:#8792a5; }
.period-progress span b,.user-card strong { color:var(--ink); }
.period-progress > div { background:#e7ebf2; }
.period-progress i { background:#4d6ff0; }
.user-avatar { color:#fff; background:#315bd8; }
.topbar { background:rgba(255,255,255,.97); }
.primary-button { background:var(--green); }
.primary-button:hover { background:var(--green-dark); }
.secondary-button:hover { color:var(--green); background:#f7f9fd; border-color:#aebcf0; }
.period-selector { background:#edf0f6; }
.period-selector button.active { color:var(--green); }
.global-time-filter input:focus,.dimension-filterbar select:focus,.overview-link-filter[open] summary { border-color:#8fa3ed; box-shadow:0 0 0 3px rgba(49,91,216,.09); }
.metric:hover { background:#f8faff; }
.status.success { color:#14724f; background:#e8f6f0; }
.status.warning { color:#9a671a; background:#fff3d8; }
.status.danger { color:#a73d47; background:#fdecee; }

.engineering-ops-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr); gap:14px; margin-top:14px; }
.engineering-facts { display:grid; grid-template-columns:1fr 1fr; }
.engineering-facts > div { min-height:82px; padding:16px; border-bottom:1px solid var(--line); border-right:1px solid var(--line); }
.engineering-facts > div:nth-child(2n) { border-right:0; }
.engineering-facts > div:nth-last-child(-n+2) { border-bottom:0; }
.engineering-facts span { display:block; color:var(--muted); font-size:9px; }
.engineering-facts strong { display:block; margin-top:8px; overflow-wrap:anywhere; font-size:15px; }
.engineering-db-panel { margin-top:14px; }
.engineering-server-panel,.engineering-rds-panel { margin-top:14px; }
.engineering-resource-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); }
.engineering-resource-grid > div,.engineering-resource-grid > button { min-width:0; padding:16px; border:0; border-right:1px solid var(--line); }
.engineering-resource-grid > :last-child { border-right:0; }
.engineering-resource-grid span { display:block; color:var(--muted); font-size:9px; }
.engineering-resource-grid strong { display:block; margin-top:8px; overflow-wrap:anywhere; font-size:17px; }
.engineering-resource-grid small { display:block; margin-top:6px; color:var(--muted); font-size:8px; line-height:1.4; }
.engineering-resource-card { position:relative; color:inherit; background:#fff; font:inherit; text-align:left; cursor:pointer; }
.engineering-resource-card:hover,.engineering-resource-card[aria-expanded="true"] { background:#f4f8f6; box-shadow:inset 0 -2px var(--green); }
.engineering-resource-card span { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.engineering-resource-card span svg { width:15px; height:15px; color:var(--green); }
.engineering-disk-trend-backdrop { position:fixed; inset:0; z-index:1200; padding:24px; display:grid; place-items:center; overflow:auto; overscroll-behavior:contain; background:rgba(20,31,48,.42); backdrop-filter:blur(2px); }
.engineering-disk-trend-dialog { width:min(920px,100%); max-height:min(760px,calc(100vh - 48px)); overflow:auto; background:#fff; border:1px solid var(--line); border-radius:7px; box-shadow:0 24px 70px rgba(20,31,48,.24); }
.engineering-trend-dialog-header { min-height:64px; padding:14px 16px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--line); }
.engineering-trend-actions { display:flex; align-items:center; gap:9px; }
.engineering-trend-range { height:30px; padding:3px; display:flex; align-items:center; gap:2px; background:#edf0f1; border-radius:5px; }
.engineering-trend-range button { height:24px; padding:0 10px; color:var(--muted); background:transparent; border:0; border-radius:3px; cursor:pointer; font-size:9px; font-weight:700; white-space:nowrap; }
.engineering-trend-range button.active { color:#fff; background:var(--green); }
.engineering-trend-facts { display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.engineering-trend-facts > div { padding:12px 16px; border-right:1px solid var(--line); }
.engineering-trend-facts > div:last-child { border-right:0; }
.engineering-trend-facts span { display:block; color:var(--muted); font-size:8px; }
.engineering-trend-facts strong { display:block; margin-top:5px; font-size:13px; }
.engineering-trend-facts strong.danger { color:#a73d47; }
.engineering-trend-facts strong.success { color:#14724f; }
.engineering-trend-chart { height:260px; padding:14px 12px 0; }
.engineering-trend-chart canvas { width:100%; height:100%; display:block; }
.engineering-trend-legend { padding:8px 18px 14px; display:flex; justify-content:flex-end; gap:18px; color:var(--muted); font-size:9px; }
.engineering-trend-legend span { display:flex; align-items:center; gap:6px; }
.engineering-trend-legend i { width:18px; height:2px; display:block; background:#315bd8; }
.engineering-trend-legend i.available { background:#17805c; }
.engineering-scope-note { margin:14px 0; display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--line); background:#f8faf9; }
.engineering-scope-note > div { min-width:0; padding:13px 15px; display:flex; align-items:flex-start; gap:10px; border-right:1px solid var(--line); }
.engineering-scope-note > div:last-child { border-right:0; }
.engineering-scope-note svg { width:17px; flex:0 0 auto; color:var(--green); }
.engineering-scope-note span { min-width:0; display:flex; flex-direction:column; gap:4px; }
.engineering-scope-note strong { font-size:10px; }
.engineering-scope-note small { color:var(--muted); font-size:9px; line-height:1.5; }
.engineering-db-panel table small { display:block; margin-top:3px; color:var(--muted); font-size:8px; }
@media (max-width:1100px) { .engineering-resource-grid { grid-template-columns:1fr 1fr; }.engineering-resource-grid > * { border-bottom:1px solid var(--line); }.engineering-resource-grid > :nth-child(2n) { border-right:0; }.engineering-resource-grid > :last-child { border-bottom:0; }.engineering-trend-facts { grid-template-columns:1fr 1fr; }.engineering-trend-facts > div:nth-child(2n) { border-right:0; }.engineering-trend-facts > div:nth-child(-n+2) { border-bottom:1px solid var(--line); } }
@media (max-width:900px) { .engineering-ops-grid { grid-template-columns:1fr; } }
@media (max-width:640px) { .engineering-scope-note { grid-template-columns:1fr; }.engineering-scope-note > div,.engineering-scope-note > div:last-child { border-right:0; border-bottom:1px solid var(--line); }.engineering-scope-note > div:last-child { border-bottom:0; }.engineering-facts { grid-template-columns:1fr; }.engineering-facts > div,.engineering-facts > div:nth-child(2n) { border-right:0; }.engineering-facts > div:nth-last-child(-n+2) { border-bottom:1px solid var(--line); }.engineering-facts > div:last-child { border-bottom:0; }.engineering-disk-trend-backdrop { padding:10px; }.engineering-disk-trend-dialog { max-height:calc(100vh - 20px); }.engineering-trend-dialog-header { align-items:flex-start; }.engineering-trend-actions { align-items:flex-end; flex-direction:column-reverse; }.engineering-trend-range button { padding:0 7px; }.engineering-trend-chart { height:220px; } }

@media (max-width:1180px) {
  .wanliniu-config-body { grid-template-columns:1fr; }
  .wanliniu-brand { min-height:150px; border-right:0; border-bottom:1px solid var(--line); }
}

/* Hover-driven global hierarchy. */
.hierarchy-step { position:relative; overflow:visible; }
.hierarchy-step:hover,.hierarchy-step.menu-open { z-index:40; border-color:#8ea4ef; }
.hierarchy-step > .hierarchy-trigger { min-width:0; width:100%; height:29px; padding:0; display:grid; grid-template-columns:14px minmax(0,1fr) 12px; align-items:center; gap:5px; color:var(--ink); background:transparent; border:0; text-align:left; }
.hierarchy-trigger svg { width:13px; color:#8290a6; }
.hierarchy-trigger b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:9px; }
.hierarchy-step.selected .hierarchy-trigger svg,.hierarchy-step:hover .hierarchy-trigger svg { color:var(--green); }
.hierarchy-step > .hierarchy-menu { position:absolute; top:calc(100% + 5px); left:0; z-index:80; min-width:240px; width:max-content; max-width:340px; max-height:320px; padding:6px; display:none; overflow-y:auto; color:var(--ink); background:#fff; border:1px solid #cdd7ea; border-radius:6px; box-shadow:0 12px 30px rgba(24,42,78,.16); }
.hierarchy-step.menu-open > .hierarchy-menu { display:block; }
.hierarchy-step:nth-last-child(-n+2) > .hierarchy-menu { right:0; left:auto; }
.hierarchy-menu button { width:100%; min-height:34px; padding:7px 9px; display:flex; align-items:center; justify-content:space-between; gap:14px; color:#253149; background:#fff; border:0; border-radius:4px; text-align:left; font-size:10px; }
.hierarchy-menu button:hover,.hierarchy-menu button.active { color:var(--green); background:#edf2ff; }
.hierarchy-menu button span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hierarchy-menu button small { flex:0 0 auto; color:#8793a8; font-size:8px; }

.atomic-ledger-table { width:max-content; min-width:100%; table-layout:auto; }
.atomic-ledger-table th,.atomic-ledger-table td { min-width:92px; white-space:nowrap; }
.atomic-ledger-table th:first-child,.atomic-ledger-table td:first-child { position:sticky; left:0; z-index:2; background:#fff; }
.atomic-ledger-table thead th:first-child { z-index:6; background:#f7f9f8; }

@media (max-width:640px) {
  .hierarchy-step.menu-open { height:auto; min-height:61px; }
  .hierarchy-step:hover:not(.menu-open) > .hierarchy-menu { display:none; }
  .hierarchy-step > .hierarchy-menu,.hierarchy-step:nth-last-child(-n+2) > .hierarchy-menu { position:static; width:100%; min-width:0; max-height:240px; margin-top:5px; }
  .hierarchy-step.menu-open > .hierarchy-menu { display:block; }
}
.global-hierarchy { margin:-6px 0 14px; background:transparent; border:0; border-radius:0; overflow:visible; }
.global-hierarchy-head { min-height:38px; padding:0 0 7px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); }
.global-hierarchy-head > div { min-width:0; display:flex; align-items:center; gap:8px; }
.global-hierarchy-head > div:first-child > svg { width:16px; color:var(--green); }
.global-hierarchy-head span strong,.global-hierarchy-head span small { display:block; }
.global-hierarchy-head span strong { color:var(--ink); font-size:10px; }
.global-hierarchy-head span small { max-width:760px; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:8px; }
.global-hierarchy-head > div:last-child > span { color:var(--muted); font-size:8px; white-space:nowrap; }
.hierarchy-reset { height:30px; padding:0 9px; display:inline-flex; align-items:center; gap:5px; color:var(--green); background:#fff; border:1px solid #c8d2f1; border-radius:4px; font-size:8px; }
.hierarchy-reset svg { width:13px; }
.hierarchy-track { padding:8px 0 0; display:grid; grid-template-columns:repeat(5,minmax(110px,1fr)); gap:7px; overflow:visible; background:transparent; }
.hierarchy-step { min-width:0; height:61px; padding:7px 8px; display:flex; flex-direction:column; gap:5px; color:var(--muted); background:#fff; border:1px solid var(--line-strong); border-radius:5px; }
.hierarchy-step.selected { border-color:#8ea4ef; box-shadow:inset 3px 0 var(--green),0 0 0 2px rgba(49,91,216,.05); }
.hierarchy-step > span { font-size:8px; font-weight:700; }
.hierarchy-step > div { min-width:0; display:grid; grid-template-columns:14px minmax(0,1fr) 12px; align-items:center; gap:5px; }
.hierarchy-step > div svg { width:13px; color:#8290a6; }
.hierarchy-step.selected > div svg { color:var(--green); }
.hierarchy-step select { min-width:0; width:100%; height:29px; padding:0; overflow:hidden; color:var(--ink); background:transparent; border:0; outline:0; appearance:none; text-overflow:ellipsis; white-space:nowrap; font-size:9px; font-weight:700; }
.hierarchy-foot { min-height:34px; padding:7px 13px; display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--muted); border-top:1px solid var(--line); font-size:8px; }
.hierarchy-foot b { color:var(--green); }
@media (max-width:640px) { .global-hierarchy-head { align-items:flex-start; flex-direction:column; }.global-hierarchy-head > div:last-child { width:100%; justify-content:space-between; }.hierarchy-track { display:flex; overflow-x:auto; }.hierarchy-step { min-width:170px; }.hierarchy-foot { align-items:flex-start; flex-direction:column; }.global-hierarchy-head span small { max-width:310px; } }
* { box-sizing: border-box; }
i[data-lucide] { display:inline-block; width:1em; height:1em; flex:0 0 auto; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; letter-spacing: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: #13241e; color: #d7e1dc; z-index: 30; display: flex; flex-direction: column; transform:translateX(-100%); transition:transform .22s ease; }
.sidebar.open { transform:translateX(0); }
.brand { height: 70px; padding: 0 18px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: #dcebe3; color: #163e30; font-size: 18px; font-weight: 800; border-radius: 6px; }
.brand-copy { display: flex; flex-direction: column; margin-left: 10px; }
.brand-copy strong { color: white; font-size: 15px; }
.brand-copy span { color: #80978d; font-size: 9px; margin-top: 2px; letter-spacing: 1.8px; }
.company-switcher { margin: 14px 12px 8px; padding: 10px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); display: grid; grid-template-columns: 30px 1fr 16px; align-items: center; gap: 8px; border-radius: 6px; }
.company-switcher > div:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.company-switcher strong { color: #f3f7f5; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-switcher span { color: #7f978c; font-size: 10px; margin-top: 3px; }
.company-switcher svg { width: 14px; color: #83998f; }
.company-avatar { width: 30px; height: 30px; display: grid; place-items: center; background: #2b5b47; color: #cfe4da; border-radius: 5px; font-size: 10px; font-weight: 700; }
.nav { flex: 1; padding: 4px 10px 18px; display: flex; flex-direction: column; overflow-y: auto; }
.nav-pinned { margin-top: 8px; }
.nav-group { margin-top: 4px; }
.nav-label { padding: 0 10px 6px; color: #667e73; font-size: 10px; font-weight: 700; }
.nav-group-toggle { width: 100%; min-height: 44px; padding: 0 10px; display: grid; grid-template-columns: 20px 1fr auto 14px; align-items: center; gap: 8px; color: #c9d8d1; background: transparent; border: 0; text-align: left; font-size: 15px; }
.nav-group-toggle:hover { color: white; background: rgba(255,255,255,.035); }
.nav-group-toggle > svg:first-child { width: 17px; height: 17px; }
.nav-group-toggle span { min-width: 0; font-weight: 800; white-space: nowrap; }
.nav-group-toggle small { color: #70887e; font-size: 9px; font-weight: 600; }
.nav-group-chevron { width: 14px; height: 14px; transition: transform .18s ease; }
.nav-group.open .nav-group-chevron { transform: rotate(180deg); }
.nav-group-items { display: none; margin-left: 10px; padding-left: 5px; border-left: 1px solid rgba(255,255,255,.08); }
.nav-group.open .nav-group-items { display: block; }
.nav-item { width: 100%; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 10px; color: #aebfb7; background: transparent; border: 0; border-radius: 5px; text-align: left; transition: .16s ease; }
.nav-item:hover { color: white; background: rgba(255,255,255,.05); }
.nav-item.active { color: white; background: #246348; box-shadow: inset 3px 0 #9cc7b2; }
.nav-item svg { width: 17px; height: 17px; }
.nav-item span { flex: 1; }
.nav-item b { min-width: 19px; height: 18px; padding: 0 5px; display: grid; place-items: center; background: #bb3e45; color: #fff; border-radius: 9px; font-size: 10px; }
.sidebar-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.period-progress { padding: 2px 4px 13px; }
.period-progress span { display: flex; justify-content: space-between; color: #8ba096; font-size: 10px; }
.period-progress span b { color: #b9d3c7; }
.period-progress > div { height: 4px; margin-top: 7px; background: rgba(255,255,255,.09); border-radius: 2px; overflow: hidden; }
.period-progress i { display: block; width: 72%; height: 100%; background: #7fb59d; }
.user-card { display: grid; grid-template-columns: 30px 1fr 28px; align-items: center; gap: 8px; }
.user-card > div:nth-child(2) { display: flex; flex-direction: column; }
.user-card strong { color: #e2eae6; font-size: 11px; }
.user-card span { color: #758d82; font-size: 10px; margin-top: 2px; }
.user-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #d4a85e; color: #33210c; font-weight: 800; }
.main-shell { min-width: 0; width:100%; margin-left:0; transition:width .22s ease,margin-left .22s ease; }
.app-shell.sidebar-expanded .main-shell { width:calc(100% - var(--sidebar)); margin-left:var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 20; height: 70px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar-left, .topbar-actions, .breadcrumb { display: flex; align-items: center; }
.breadcrumb { gap: 7px; font-size: 12px; color: #8a938f; }
.breadcrumb svg { width: 13px; }
.breadcrumb strong { color: #36403c; }
.topbar-actions { gap: 9px; }
.system-switch-link { height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; color: #245544; background: #edf7f2; border: 1px solid #b9d8ca; border-radius: 5px; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: .16s ease; }
.system-switch-link:hover { color: white; background: var(--green); border-color: var(--green); }
.system-switch-link svg { width: 15px; height: 15px; }
.system-switch-link svg:last-child { width: 12px; height: 12px; opacity: .7; }
.icon-button { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: inherit; border-radius: 5px; }
.icon-button:hover { background: rgba(0,0,0,.05); }
.icon-button svg { width: 18px; height: 18px; }
.search-trigger { width: 260px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 9px; color: #87908c; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; text-align: left; }
.search-trigger svg { width: 16px; }
.search-trigger span { flex: 1; font-size: 12px; }
kbd { padding: 2px 5px; color: #7d8682; background: white; border: 1px solid var(--line-strong); border-radius: 3px; font: 10px inherit; }
.notice-button { position: relative; background: var(--bg); border: 1px solid var(--line); }
.notice-button b { position: absolute; right: -2px; top: -3px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; color: white; background: var(--red); border: 2px solid white; border-radius: 9px; font-size: 8px; }
.primary-button, .secondary-button, .text-button, .danger-button, .success-button { height: 36px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 5px; border: 1px solid transparent; font-weight: 600; font-size: 12px; }
.primary-button, .secondary-button, .text-button, .danger-button, .success-button, .icon-button { position: relative; cursor: pointer; transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .08s ease, opacity .16s ease; }
.primary-button:focus-visible, .secondary-button:focus-visible, .text-button:focus-visible, .danger-button:focus-visible, .icon-button:focus-visible, button:focus-visible { outline: 3px solid rgba(49,91,216,.28); outline-offset: 2px; }
.primary-button:active:not(:disabled), .secondary-button:active:not(:disabled), .text-button:active:not(:disabled), .danger-button:active:not(:disabled), .icon-button:active:not(:disabled) { transform: translateY(1px); }
.primary-button:disabled, .secondary-button:disabled, .text-button:disabled, .danger-button:disabled, .icon-button:disabled, button[aria-disabled="true"] { cursor: not-allowed; opacity: .52; }
.primary-button[aria-busy="true"], .secondary-button[aria-busy="true"], .text-button[aria-busy="true"], .danger-button[aria-busy="true"] { cursor: wait; pointer-events: none; }
.primary-button[aria-busy="true"] svg, .secondary-button[aria-busy="true"] svg, .text-button[aria-busy="true"] svg, .danger-button[aria-busy="true"] svg { animation: button-spin .8s linear infinite; }
@keyframes button-spin { to { transform: rotate(360deg); } }
.button-acknowledged:not(:disabled) { animation: button-acknowledged .24s ease-out; }
@keyframes button-acknowledged { 50% { box-shadow:0 0 0 3px rgba(49,91,216,.2), inset 0 0 0 1px rgba(49,91,216,.28); } }
.primary-button { background: var(--green); color: white; }
.primary-button:hover { background: var(--green-dark); }
.secondary-button { background: white; color: #37413d; border-color: var(--line-strong); }
.secondary-button:hover { background: #f7f9f8; }
.danger-button { color: var(--red); background: white; border-color: #efcbd0; }
.success-button { color: #16784a; background: #effaf3; border-color: #a9ddbd; }
.text-button { padding: 0; background: transparent; color: var(--green); }
.primary-button svg, .secondary-button svg, .text-button svg { width: 15px; height: 15px; }
.menu-button, .sidebar-close { display:grid; }
.menu-button { margin-right:10px; color:#536078; background:#f5f7fb; border:1px solid var(--line); }
.menu-button:hover { color:var(--green); background:#edf2ff; border-color:#b8c6ef; }
.sidebar-close { margin-left:auto; }
.page { max-width: 1560px; padding: 24px 26px 40px; margin: 0 auto; }
.page.embedded-page { max-width: none; padding: 0; }
.page.middle-orders-page { max-width:none; width:100%; padding-right:20px; padding-left:20px; }
.page-heading { margin-bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: 1.4px; }
.page-heading h1 { margin: 4px 0 3px; font-size: 24px; line-height: 1.25; letter-spacing: 0; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.douyin-backend-subject { min-height:48px; margin:-6px 0 14px; padding:8px 12px; display:flex; align-items:center; gap:9px; background:#fff; border:1px solid var(--line); border-left:3px solid #315bd8; }
.douyin-backend-subject > svg { width:17px; color:#315bd8; }
.douyin-backend-subject > span { min-width:0; flex:1; display:flex; align-items:baseline; gap:8px; }
.douyin-backend-subject strong { font-size:12px; }
.douyin-backend-subject small { color:var(--muted); font-size:9px; }
.douyin-backend-subject > b,.douyin-readonly-label { display:inline-flex; align-items:center; gap:5px; color:#26704f; font-size:9px; }
.douyin-backend-subject > b svg,.douyin-readonly-label svg { width:13px; }
.douyin-backend-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); background:#fff; border:1px solid var(--line); }
.douyin-backend-metrics > div { min-width:0; padding:17px 19px; display:flex; flex-direction:column; border-right:1px solid var(--line); }
.douyin-backend-metrics > div:last-child { border-right:0; }
.douyin-backend-metrics span { color:var(--muted); font-size:10px; }
.douyin-backend-metrics strong { margin-top:8px; overflow-wrap:anywhere; font-size:21px; line-height:1.15; }
.douyin-backend-metrics small { margin-top:6px; color:#8c9691; font-size:9px; }
.monitor-tabs.douyin-backend-view-tabs { width:100%; margin:0 0 16px; padding:4px; display:flex; flex-wrap:nowrap; gap:4px; overflow-x:auto; scrollbar-width:thin; background:#fff; border:1px solid var(--line); border-radius:7px; box-shadow:0 3px 12px rgba(37,58,112,.06); }
.douyin-backend-view-tabs button { min-width:132px; min-height:38px; flex:1 0 132px; display:inline-flex; align-items:center; justify-content:center; gap:7px; white-space:nowrap; color:#6f7a8e; background:transparent; border:0; border-radius:5px; font-size:12px; font-weight:600; transition:background .16s ease,color .16s ease,box-shadow .16s ease; }
.douyin-backend-view-tabs button:hover { color:#254dc8; background:#f4f6ff; }
.douyin-backend-view-tabs button.active { color:#254dc8; background:#edf2ff; box-shadow:inset 0 -2px #315bd8; }
.douyin-backend-view-tabs svg { width:16px; height:16px; }
.douyin-backend-order-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.douyin-backend-order-actions .compact-button { min-height:32px; padding:6px 10px; }
.douyin-dingtalk-dialog-backdrop { position:fixed; inset:0; z-index:120; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(15,24,42,.46); backdrop-filter:blur(2px); }
.douyin-dingtalk-dialog { width:min(520px,100%); overflow:hidden; color:var(--text); background:#fff; border:1px solid var(--line-strong); border-radius:8px; box-shadow:0 22px 64px rgba(15,24,42,.22); }
.douyin-dingtalk-dialog-header { min-height:68px; padding:15px 18px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--line); }
.douyin-dingtalk-dialog-header h3 { margin:0; font-size:16px; letter-spacing:0; }
.douyin-dingtalk-dialog-header p { margin:4px 0 0; color:var(--muted); font-size:10px; }
.douyin-dingtalk-dialog-body { padding:17px 18px; display:grid; gap:13px; }
.douyin-dingtalk-source-form label { display:flex; flex-direction:column; gap:6px; color:var(--muted); font-size:10px; }
.douyin-dingtalk-source-form input { min-height:38px; padding:0 10px; color:var(--text); background:#fff; border:1px solid var(--line-strong); border-radius:5px; font-size:12px; outline:0; }
.douyin-dingtalk-source-form input:focus { border-color:#8da4ec; box-shadow:0 0 0 3px rgba(49,91,216,.1); }
.douyin-dingtalk-storage-note { display:flex; align-items:flex-start; gap:7px; padding:10px 11px; color:#536078; background:#f5f7fb; border:1px solid #dfe5f1; border-radius:5px; font-size:10px; line-height:1.5; }
.douyin-dingtalk-storage-note svg { width:14px; min-width:14px; color:#315bd8; }
.douyin-dingtalk-dialog-footer { padding:12px 18px; display:flex; align-items:center; justify-content:flex-end; gap:8px; background:#fafbfc; border-top:1px solid var(--line); }
.douyin-dingtalk-files-dialog { width:min(1180px,calc(100vw - 40px)); height:min(760px,calc(100vh - 40px)); max-height:calc(100vh - 16px); display:flex; flex-direction:column; }
.douyin-dingtalk-files-dialog .douyin-dingtalk-dialog-header { flex:0 0 auto; padding:14px 20px; }
.douyin-dingtalk-files-note { margin:14px 18px 0; padding:10px 11px; display:flex; align-items:flex-start; gap:7px; color:#536078; background:#f5f7fb; border:1px solid #dfe5f1; border-radius:5px; font-size:10px; line-height:1.5; }
.douyin-dingtalk-files-dialog .douyin-dingtalk-files-note { flex:0 0 auto; margin-left:20px; margin-right:20px; }
.douyin-dingtalk-files-note svg { width:14px; min-width:14px; color:#315bd8; }
.douyin-dingtalk-batch-result { margin:10px 18px 0; padding:9px 11px; display:flex; align-items:center; gap:7px; color:#177245; background:#eef9f3; border:1px solid #cbe9d8; border-radius:5px; font-size:10px; }
.douyin-dingtalk-batch-result.has-errors { color:#9a5a12; background:#fff7e8; border-color:#f0d9ad; }
.douyin-dingtalk-batch-result svg { width:14px; height:14px; }
.douyin-dingtalk-files-toolbar { min-height:46px; margin-top:10px; padding:7px 20px; flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:12px; background:#fbfcff; border-top:1px solid var(--line); border-bottom:1px solid var(--line); color:var(--muted); font-size:10px; }
.douyin-dingtalk-files-toolbar > div { display:flex; align-items:center; gap:8px; }
.douyin-dingtalk-selection-summary { white-space:nowrap; }
.douyin-dingtalk-auto-import-toggle { min-height:32px; padding:0 9px; display:inline-flex; align-items:center; gap:7px; color:#68758b; background:#fff; border:1px solid var(--line-strong); border-radius:4px; cursor:pointer; }
.douyin-dingtalk-auto-import-toggle > span { width:28px; height:16px; padding:2px; display:flex; align-items:center; background:#c8d0dc; border-radius:9px; transition:background .16s ease; }
.douyin-dingtalk-auto-import-toggle > span i { width:12px; height:12px; display:block; background:#fff; border-radius:50%; box-shadow:0 1px 2px rgba(20,31,50,.2); transition:transform .16s ease; }
.douyin-dingtalk-auto-import-toggle b { font-size:10px; letter-spacing:0; }
.douyin-dingtalk-auto-import-toggle.active { color:#2457b7; border-color:#b9c8e8; background:#f5f8fe; }
.douyin-dingtalk-auto-import-toggle.active > span { background:#315bd8; }
.douyin-dingtalk-auto-import-toggle.active > span i { transform:translateX(12px); }
.douyin-dingtalk-auto-import-toggle:disabled { opacity:.55; cursor:wait; }
.douyin-dingtalk-files-dialog .table-wrap { margin:0 20px; min-height:0; flex:1 1 auto; overflow:auto; border:1px solid var(--line); border-top:0; }
.douyin-dingtalk-files-table { width:100%; min-width:1020px; table-layout:fixed; border-collapse:separate; border-spacing:0; }
.douyin-dingtalk-files-table th,.douyin-dingtalk-files-table td { height:40px; padding:5px 10px; text-align:left; vertical-align:middle; border-bottom:1px solid #e6eaf2; font-size:10px; white-space:nowrap; }
.douyin-dingtalk-files-table th { position:sticky; top:0; z-index:2; height:36px; color:#68758b; background:#f7f9fc; box-shadow:0 1px 0 var(--line); font-size:9px; font-weight:700; }
.douyin-dingtalk-files-table th:has(.douyin-dingtalk-column-filter-popover) { z-index:4; }
.douyin-dingtalk-files-table tbody tr:nth-child(even) { background:#fbfcfe; }
.douyin-dingtalk-files-table tbody tr:hover { background:#f4f7fd; }
.douyin-dingtalk-files-table tr:last-child td { border-bottom:0; }
.douyin-dingtalk-files-table th:nth-child(2),.douyin-dingtalk-files-table td:nth-child(2) { width:30%; white-space:normal; }
.douyin-dingtalk-files-table th:nth-child(3),.douyin-dingtalk-files-table td:nth-child(3) { width:10%; }
.douyin-dingtalk-files-table th:nth-child(4),.douyin-dingtalk-files-table td:nth-child(4) { width:8%; }
.douyin-dingtalk-files-table th:nth-child(5),.douyin-dingtalk-files-table td:nth-child(5) { width:16%; }
.douyin-dingtalk-files-table th:nth-child(6),.douyin-dingtalk-files-table td:nth-child(6) { width:18%; }
.douyin-dingtalk-files-table th:nth-child(7),.douyin-dingtalk-files-table td:nth-child(7) { width:10%; }
.douyin-dingtalk-files-table td strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.douyin-dingtalk-files-table td small { display:block; margin-top:2px; overflow:hidden; color:var(--muted); font-size:8px; text-overflow:ellipsis; }
.douyin-dingtalk-files-table .douyin-dingtalk-select-cell { width:38px; min-width:38px; padding-left:13px; padding-right:5px; }
.douyin-dingtalk-files-table input[type="checkbox"] { width:15px; height:15px; margin:0; accent-color:#315bd8; }
.douyin-dingtalk-files-table .compact-button { min-height:28px; height:28px; padding:3px 9px; font-size:10px; line-height:1; }
.douyin-dingtalk-column-head { position:relative; display:flex; align-items:center; gap:4px; }
.douyin-dingtalk-column-head > span { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.douyin-dingtalk-sort-indicator { width:11px; height:11px; color:#315bd8; }
.douyin-dingtalk-column-filter-button { width:23px; height:23px; margin-left:auto; padding:0; display:inline-grid; place-items:center; flex:0 0 auto; color:#7c889b; background:transparent; border:1px solid transparent; border-radius:3px; cursor:pointer; }
.douyin-dingtalk-column-filter-button:hover,.douyin-dingtalk-column-filter-button.active,.douyin-dingtalk-column-filter-button[aria-expanded="true"] { color:#315bd8; background:#edf2ff; border-color:#cad5f7; }
.douyin-dingtalk-column-filter-button svg { width:12px; height:12px; }
.douyin-dingtalk-column-filter-popover { position:absolute; top:calc(100% + 7px); left:0; z-index:20; width:230px; padding:12px; display:flex; flex-direction:column; gap:10px; color:var(--ink); background:#fff; border:1px solid #cfd7e6; border-radius:5px; box-shadow:0 10px 26px rgba(29,43,70,.18); font-size:10px; font-weight:400; white-space:normal; }
.douyin-dingtalk-column-filter-popover > strong { font-size:11px; }
.douyin-dingtalk-column-filter-popover label { display:flex; flex-direction:column; gap:4px; color:var(--muted); }
.douyin-dingtalk-column-filter-popover input,.douyin-dingtalk-column-filter-popover select { width:100%; height:32px; padding:0 8px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; outline:0; font:inherit; }
.douyin-dingtalk-column-filter-popover input:focus,.douyin-dingtalk-column-filter-popover select:focus { border-color:#8da4ec; box-shadow:0 0 0 3px rgba(49,91,216,.1); }
.douyin-dingtalk-column-filter-popover > div:last-child { display:flex; justify-content:flex-end; gap:7px; }
.douyin-dingtalk-column-filter-popover .secondary-button,.douyin-dingtalk-column-filter-popover .primary-button { min-height:30px; height:30px; padding:4px 10px; font-size:10px; }
.douyin-dingtalk-size-range { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.douyin-dingtalk-sort-options { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.douyin-dingtalk-sort-options button { min-height:31px; padding:5px; display:flex; align-items:center; justify-content:center; gap:4px; color:#647188; background:#f7f9fc; border:1px solid var(--line); border-radius:4px; cursor:pointer; font-size:9px; }
.douyin-dingtalk-sort-options button.active { color:#315bd8; background:#edf2ff; border-color:#b8c7f1; }
.douyin-dingtalk-sort-options svg { width:11px; height:11px; }
.douyin-dingtalk-import-status { min-width:150px; }
.douyin-dingtalk-import-status .status { display:inline-flex; }
.douyin-dingtalk-import-status .status.neutral { color:#66758c; background:#edf1f6; }
.douyin-dingtalk-import-success { background:#fbfffc; }
.douyin-dingtalk-files-pager { min-height:48px; padding:8px 20px; flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--muted); font-size:10px; }
.douyin-dingtalk-files-pager > div { display:flex; align-items:center; gap:6px; }
.douyin-dingtalk-files-pager .icon-button { width:32px; min-width:32px; height:32px; min-height:32px; padding:0; }
.douyin-dingtalk-files-pager button:disabled { color:#aab3c1; background:#f5f7fa; border-color:#e2e7ef; cursor:not-allowed; opacity:1; }
.douyin-dingtalk-files-jump { display:flex; align-items:center; gap:5px; }
.douyin-dingtalk-files-jump label { height:32px; padding:0 7px; display:flex; align-items:center; gap:4px; background:#fff; border:1px solid var(--line-strong); border-radius:4px; }
.douyin-dingtalk-files-jump input { width:38px; padding:0; color:var(--ink); background:transparent; border:0; outline:0; text-align:center; font:inherit; }
.douyin-dingtalk-files-jump .secondary-button { min-height:32px; height:32px; }
@media (max-width:720px) { .douyin-backend-order-actions { width:100%; justify-content:flex-start; }.douyin-backend-order-actions .douyin-backend-order-export { margin-left:auto; }.douyin-dingtalk-dialog-backdrop { padding:10px; }.douyin-dingtalk-files-dialog { width:100%; height:calc(100vh - 20px); max-height:calc(100vh - 20px); }.douyin-dingtalk-dialog-footer .primary-button { flex:1; }.douyin-dingtalk-files-dialog .douyin-dingtalk-files-note { margin-left:12px; margin-right:12px; }.douyin-dingtalk-files-toolbar { padding-left:12px; padding-right:12px; align-items:flex-start; flex-direction:column; }.douyin-dingtalk-files-toolbar > div { width:100%; }.douyin-dingtalk-selection-summary { width:100%; }.douyin-dingtalk-files-toolbar .primary-button { flex:1; }.douyin-dingtalk-files-dialog .table-wrap { margin:0 12px; }.douyin-dingtalk-files-pager { padding-left:12px; padding-right:12px; align-items:flex-start; flex-direction:column; }.douyin-dingtalk-files-pager > div { width:100%; flex-wrap:wrap; } }
.douyin-promotion-filterbar { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px 14px; padding:14px 18px; background:#fbfcff; border-bottom:1px solid var(--line); }
.douyin-promotion-filterbar > label { min-width:132px; display:flex; flex-direction:column; gap:5px; color:var(--muted); font-size:10px; }
.douyin-promotion-filterbar > label > span { line-height:1.2; }
.douyin-promotion-filterbar select,.douyin-promotion-filterbar input { height:34px; padding:0 9px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; font:inherit; outline:0; }
.douyin-promotion-filterbar select:focus,.douyin-promotion-filterbar input:focus { border-color:#8da4ec; box-shadow:0 0 0 3px rgba(49,91,216,.1); }
.douyin-promotion-filterbar .douyin-promotion-search-label { min-width:260px; flex:1 1 300px; }
.douyin-promotion-search-label > div { position:relative; display:flex; align-items:center; }
.douyin-promotion-search-label > div > svg { position:absolute; left:9px; width:15px; height:15px; color:#8590a4; pointer-events:none; }
.douyin-promotion-search-label input { width:100%; padding-left:31px; }
.douyin-promotion-filterbar > .secondary-button { flex:0 0 auto; }
.external-shop-management-table { min-width:1900px; }
.external-shop-management-table th { white-space:nowrap; }
.external-shop-management-table th:nth-child(4),.external-shop-management-table th:nth-child(5),.external-shop-management-table th:nth-child(6) { min-width:170px; }
.external-shop-management-table td { vertical-align:middle; }
.external-shop-management-table .external-shop-real-name { min-width:170px; background:#fbfcfb; }
.external-shop-real-name strong,.external-shop-real-name small { display:block; }
.external-shop-real-name small { margin-top:3px; color:var(--muted); font-size:9px; }
.external-shop-identity-cell { min-width:210px; background:#fbfcff; }
.external-shop-identity-cell input { width:100%; height:30px; box-sizing:border-box; padding:0 8px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; outline:0; font:inherit; }
.external-shop-identity-cell input:focus { border-color:#8da4ec; box-shadow:0 0 0 3px rgba(49,91,216,.1); }
.external-shop-identity-value { display:block; min-height:30px; padding:6px 8px; box-sizing:border-box; cursor:text; }
.external-shop-identity-cell[data-shop-identity-editing="1"] { background:#fffdf2; }
.external-shop-actions { display:flex; align-items:center; gap:8px; }
.external-shop-search { position:relative; width:min(290px,28vw); min-width:190px; display:flex; align-items:center; }
.external-shop-search > svg { position:absolute; left:10px; width:15px; height:15px; color:#8590a4; pointer-events:none; }
.external-shop-search input { width:100%; height:34px; padding:0 10px 0 32px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; outline:0; font:inherit; }
.external-shop-search input:focus { border-color:#8da4ec; box-shadow:0 0 0 3px rgba(49,91,216,.1); }
.external-shop-status select { height:34px; padding:0 28px 0 10px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; outline:0; font:inherit; }
.external-shop-status select:focus { border-color:#8da4ec; box-shadow:0 0 0 3px rgba(49,91,216,.1); }
.external-storage-management .external-shop-actions { flex-wrap:wrap; justify-content:flex-end; }
.external-storage-management .external-shop-management-table { width:100%; min-width:0; table-layout:fixed; }
.external-storage-management .external-shop-management-table th { min-width:0; }
.external-storage-management .external-shop-management-table th:nth-child(1) { width:14%; }
.external-storage-management .external-shop-management-table th:nth-child(2) { width:8%; }
.external-storage-management .external-shop-management-table th:nth-child(3) { width:12%; }
.external-storage-management .external-shop-management-table th:nth-child(4) { width:7%; }
.external-storage-management .external-shop-management-table th:nth-child(5) { width:10%; }
.external-storage-management .external-shop-management-table th:nth-child(6) { width:6%; }
.external-storage-management .external-shop-management-table th:nth-child(7) { width:13%; }
.external-storage-management .external-shop-management-table th:nth-child(8) { width:8%; }
.external-storage-management .external-shop-management-table th:nth-child(9),.external-storage-management .external-shop-management-table th:nth-child(10) { width:11%; }
.external-storage-management .external-shop-management-table td { min-width:0; overflow:hidden; overflow-wrap:anywhere; }
.external-storage-management .external-storage-code code,.external-storage-management .external-storage-id code { display:block; max-width:100%; white-space:normal; word-break:break-all; line-height:1.4; }
.external-storage-management .external-storage-id code { font-size:8px; }
.external-storage-time,.external-storage-time small { display:block; white-space:nowrap; }
.external-storage-time small { margin-top:2px; color:var(--muted); font-size:8px; }
.external-storage-category select { height:34px; padding:0 28px 0 10px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; outline:0; font:inherit; }
.external-storage-category select:focus { border-color:#8da4ec; box-shadow:0 0 0 3px rgba(49,91,216,.1); }
.external-storage-shipping-type { width:100%; min-width:0; height:30px; padding:0 26px 0 8px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; outline:0; font:inherit; }
.external-storage-shipping-type:focus { border-color:#8da4ec; box-shadow:0 0 0 3px rgba(49,91,216,.1); }
.external-storage-shipping-type:disabled { color:var(--muted); background:var(--surface-soft); cursor:wait; }
.external-shop-empty { position:sticky; left:0; width:min(100%,calc(100vw - 52px)); text-align:center; }
@media (max-width:720px) { .external-shop-management .panel-header { align-items:flex-start; flex-direction:column; }.external-shop-actions { width:100%; flex-wrap:wrap; }.external-shop-search { width:100%; min-width:0; }.external-shop-actions .external-shop-refresh { margin-left:auto; }.external-storage-management .external-shop-management-table { min-width:760px; } }
.douyin-backend-overview,.douyin-backend-files { margin-top:14px; }
.douyin-backend-status-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.douyin-backend-status-grid > div { min-width:0; padding:16px; display:flex; flex-direction:column; border-right:1px solid var(--line); }
.douyin-backend-status-grid > div:last-child { border-right:0; }
.douyin-backend-status-grid span { color:var(--muted); font-size:9px; }
.douyin-backend-status-grid strong { margin-top:6px; font-size:18px; }
.douyin-backend-status-grid small { margin-top:4px; color:#8c9691; font-size:9px; }
.douyin-backend-files table { min-width:720px; }
.store-backend-filter { margin-top:14px; }
.store-backend-filter .toolbar { display:flex; flex-wrap:wrap; gap:12px; align-items:end; }
.store-backend-filter label { display:flex; flex-direction:column; gap:5px; color:var(--muted); font-size:10px; }
.store-backend-filter select,.store-backend-filter input { min-width:170px; height:34px; padding:0 9px; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:4px; }
.store-backend-order-toolbar { align-items:end; }
.store-backend-dingtalk-sync-control { display:flex; align-items:end; gap:8px; }
.store-backend-dingtalk-sync-control label { display:flex; flex-direction:column; gap:5px; color:var(--muted); font-size:9px; }
.store-backend-dingtalk-sync-control input { width:142px; height:34px; padding:0 8px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; font:inherit; }
.store-backend-tabs { width:100%; margin-top:14px; }
.store-backend-tabs > button { min-width:140px; }
.store-backend-promotion-summary { display:flex; flex-wrap:wrap; gap:28px; padding:14px 18px; color:var(--muted); border-bottom:1px solid var(--line); }
.store-backend-promotion-summary strong { margin-left:6px; color:var(--ink); font-size:17px; }
.store-backend-promotion-controls { display:grid; grid-template-columns:180px minmax(280px,1fr) auto; gap:12px; align-items:end; padding:14px 18px; background:#f7f9f8; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.store-backend-author-commission-controls { grid-template-columns:190px 150px minmax(280px,1fr) auto; }
.store-backend-promotion-controls label { display:flex; min-width:0; flex-direction:column; gap:5px; color:var(--muted); font-size:10px; }
.store-backend-promotion-controls select,.store-backend-promotion-controls input { width:100%; height:34px; padding:0 9px; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:4px; }
.store-backend-promotion-table { min-width:1680px; }
.store-backend-promotion-table code { color:#42526b; font:inherit; font-variant-numeric:tabular-nums; }
.store-backend-promotion-table .amount { background:#fbfcfb; }
.store-backend-promotion-pager { min-height:52px; display:flex; align-items:center; justify-content:center; gap:14px; padding:8px 16px; color:var(--muted); border-top:1px solid var(--line); }
.store-backend-promotion-pager .secondary-button { width:34px; height:34px; padding:0; justify-content:center; }
.store-backend-promotion-error { display:flex; min-height:180px; flex-direction:column; align-items:center; justify-content:center; gap:14px; }
.store-backend-author-commission-breakdown { padding:14px 18px 18px; border-bottom:1px solid var(--line); }
.store-backend-author-commission-breakdown > div:first-child { margin-bottom:10px; display:flex; align-items:baseline; justify-content:space-between; gap:16px; }
.store-backend-author-commission-breakdown > div:first-child span { color:var(--muted); font-size:10px; }
.store-backend-author-commission-breakdown table { min-width:720px; }
.store-backend-upload-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:16px; }
.store-backend-upload-cards > div { min-height:90px; padding:14px; display:flex; flex-direction:column; gap:8px; background:#f7faf8; border:1px solid var(--line); border-radius:4px; }
.store-backend-upload-cards span { color:var(--muted); font-size:11px; }
.store-backend-upload-cards .secondary-button { width:max-content; }
.store-backend-upload-history .panel-header { align-items:center; }
.store-backend-upload-table td small { display:block; max-width:280px; margin-top:3px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.store-backend-upload-table td code { white-space:nowrap; }
.store-backend-upload-error { margin:0 16px 12px; }
@media (max-width:720px) {
  .store-backend-filter .toolbar { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .store-backend-filter label,.store-backend-filter select,.store-backend-filter input { min-width:0; width:100%; }
  .store-backend-tabs { overflow-x:auto; }
  .store-backend-tabs > button { min-width:125px; }
  .panel-header:has(.store-backend-order-toolbar) { align-items:stretch; flex-direction:column; gap:12px; }
  .panel-header:has(.store-backend-order-toolbar) .panel-title { width:100%; min-width:0; }
  .store-backend-order-toolbar { width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .store-backend-dingtalk-sync-control { grid-column:1 / -1; display:grid; grid-template-columns:minmax(0,1fr) auto; }
  .store-backend-dingtalk-sync-control input { width:100%; min-width:0; }
  .store-backend-order-toolbar > .secondary-button { width:100%; justify-content:center; }
  .store-backend-promotion-controls { grid-template-columns:1fr; }
  .store-backend-author-commission-controls { grid-template-columns:1fr; }
  .store-backend-promotion-controls .primary-button { width:100%; justify-content:center; }
  .store-backend-promotion-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .store-backend-promotion-summary span { display:flex; min-width:0; flex-direction:column; gap:4px; }
  .store-backend-promotion-summary strong { margin-left:0; overflow-wrap:anywhere; font-size:15px; }
  .store-backend-upload-cards { grid-template-columns:1fr; }
}
.douyin-backend-files td strong,.douyin-backend-files td small { display:block; }
.douyin-backend-files td small { margin-top:3px; color:var(--muted); font-size:9px; }
.douyin-backend-foot { min-height:42px; padding:10px 14px; display:flex; align-items:center; gap:8px; color:var(--muted); background:#f8faf9; border-top:1px solid var(--line); font-size:9px; }
.douyin-backend-foot svg { width:14px; flex:0 0 auto; color:#315bd8; }
@media (max-width:720px) { .douyin-backend-metrics,.douyin-backend-status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.douyin-backend-metrics > div:nth-child(2),.douyin-backend-status-grid > div:nth-child(2) { border-right:0; }.douyin-backend-metrics > div:nth-child(-n+2),.douyin-backend-status-grid > div:nth-child(-n+2) { border-bottom:1px solid var(--line); }.douyin-backend-subject > span { align-items:flex-start; flex-direction:column; gap:2px; }.douyin-backend-view-tabs button { width:auto; }.douyin-promotion-filterbar { align-items:stretch; gap:10px; padding:12px 14px; }.douyin-promotion-filterbar > label,.douyin-promotion-filterbar .douyin-promotion-search-label { min-width:100%; flex-basis:100%; }.douyin-promotion-filterbar > .secondary-button { width:100%; } }
.heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.period-selector { display: flex; padding: 3px; background: #e9eeeb; border-radius: 5px; }
.period-selector button { height: 29px; padding: 0 11px; border: 0; border-radius: 3px; background: transparent; color: #6d7772; font-size: 11px; }
.period-selector button.active { background: white; color: #24302b; box-shadow: 0 1px 4px rgba(15,30,23,.09); }
.global-time-filter { min-height: 35px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 9px; background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--muted); font-size: 10px; }
.global-time-filter span { white-space: nowrap; }
.global-time-filter b { color: #9aa49f; font-weight: 500; }
.global-time-filter input { width: 116px; height: 27px; padding: 0 6px; color: var(--ink); background: #fbfcfb; border: 1px solid var(--line); border-radius: 3px; font-size: 10px; }
.global-time-filter input:focus { outline: 0; border-color: #75a28e; box-shadow: 0 0 0 3px rgba(18,107,77,.08); }
.global-time-reset { width: 25px; height: 27px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 3px; }
.global-time-reset:hover { background: var(--green-soft); color: var(--green); }
.global-time-reset svg { width: 14px; height: 14px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: white; }
.metric { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--line); cursor: pointer; transition: .15s ease; }
.metric:hover { background: #f8fbf9; box-shadow: inset 0 -2px var(--green); }
.metric:last-child { border-right: 0; }
.metric-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.metric-label svg { width: 15px; }
.metric-value { margin: 9px 0 7px; font: 700 24px/1.15 "DIN Alternate", Inter, sans-serif; white-space: nowrap; }
.metric-foot { display: flex; align-items: center; gap: 5px; color: #8a938f; font-size: 10px; }
.change { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }
.change.up { color: var(--green); }
.change.down { color: var(--red); }
.change svg { width: 11px; height: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 14px; margin-top: 14px; }
.panel { background: white; border: 1px solid var(--line); }
.panel-header { min-height: 58px; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.directory-import-panel { margin-top: 14px; }
.directory-import-table { min-width: 980px; }
.directory-import-table td { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.directory-import-foot { min-height: 38px; padding: 10px 14px; color: var(--muted); background: #f8faf9; border-top: 1px solid var(--line); font-size: 9px; }
.courier-summary { margin-top: 14px; background:#fff; border-top:1px solid var(--line); }
.courier-summary-title { padding: 16px 14px 14px 17px; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; background:#fff; border-bottom:1px solid var(--line); }
.courier-summary-title > div:first-child { padding-left:10px; border-left:3px solid var(--brand-blue); }
.courier-summary-range-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.courier-summary-range-actions .period-selector { background:#fff; border:1px solid var(--line); }
.courier-summary-range-actions .period-selector button { color:#60708b; cursor:pointer; }
.courier-summary-range-actions .period-selector button:hover { color:var(--brand-blue); background:#f6f8fc; }
.courier-summary-range-actions .period-selector button.active { color:#fff; background:var(--brand-blue); box-shadow:0 2px 6px rgba(47,100,200,.18); }
.courier-summary-range-actions .global-time-filter { border-color:#c8d5ea; box-shadow:0 1px 3px rgba(39,75,135,.05); }
.courier-summary-range-actions .global-time-filter > span { color:#365b9e; font-weight:700; }
.courier-summary-time-filter input { width:116px; }
.courier-summary-title h2,.courier-summary-month-head h3 { margin: 0; color:#21385f; font-size: 13px; }
.courier-summary-title p,.courier-summary-month-head p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.courier-summary-month { padding: 14px 14px 16px 17px; background:#fff; }
.courier-summary-month-head { min-height:48px; padding:9px 11px; display:flex; align-items:center; background:#fff; border-left:3px solid var(--line); }
.courier-summary-month + .courier-summary-month { padding-top: 16px; border-top: 1px solid var(--line); }
.courier-summary-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; align-items:start; margin-top:12px; }
.courier-summary-visuals { min-width:0; }
.courier-summary-chart { min-width:0; padding:15px 18px; display:grid; grid-template-columns:180px minmax(0,1fr); grid-template-rows:auto 1fr; column-gap:24px; align-items:center; text-align:left; background:#fafbfe; border:1px solid #e0e7f2; }
.courier-summary-chart h4 { grid-column:1/-1; margin:0 0 12px; padding-bottom:10px; color:#425575; border-bottom:1px solid #e2e8f2; font-size:10px; font-weight:700; }
.courier-summary-pie { width: 170px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; }
.courier-summary-pie > div { width: 100px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background:#fff; border-radius: 50%; box-shadow:0 0 0 1px var(--line); }
.courier-summary-pie strong { color:var(--brand-blue-dark); font-size: 15px; }
.courier-summary-pie span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.courier-summary-weight-legend { min-width:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; color:var(--muted); font-size:9px; }
.courier-summary-weight-row { min-width:0; min-height:58px; padding:10px 9px; display:flex; align-items:center; justify-content:space-between; gap:8px; border:1px solid color-mix(in srgb, var(--band-color) 35%, #dfe5ee); border-left:5px solid var(--band-color); border-radius:4px; background:var(--band-tint); }
.courier-summary-weight-row > span:first-child { min-width:0; display:flex; align-items:center; color:#2c3e5f; font-size:10px; font-weight:700; white-space:nowrap; }
.courier-summary-weight-row .courier-summary-swatch { width:9px; height:9px; flex:0 0 auto; margin-right:7px; border-radius:2px; }
.courier-summary-weight-metrics { display: flex; align-items: flex-end; flex-direction: column; gap: 2px; }
.courier-summary-weight-row strong { color:#1f3151; font-size:10px; font-weight:700; white-space:nowrap; }
.courier-summary-weight-row small { color:var(--brand-blue-dark); font-size:10px; font-weight:700; white-space:nowrap; }
.courier-summary-layout .table-wrap { border:1px solid #e0e7f2; }
.courier-summary-table { min-width: 560px; }
.courier-summary-table th { color:#4d607f; background:#fff; }
.courier-summary-table tbody tr:hover td { background:#f8faff; }
.courier-summary-table td:first-child { white-space: nowrap; }
.courier-summary-swatch { width: 8px; height: 8px; display: inline-block; margin-right: 7px; border-radius: 1px; vertical-align: 1px; }
.panel-title h2 { margin: 0; font-size: 14px; }
.panel-title p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.panel-actions { display: flex; align-items: center; gap: 7px; }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: 10px; }
.legend span::before { content: ""; width: 7px; height: 7px; margin-right: 5px; display: inline-block; border-radius: 50%; background: var(--green); }
.legend span:last-child::before { background: #d1a85d; }
.chart-wrap { height: 260px; padding: 18px 16px 10px; position: relative; }
.chart-wrap canvas { width: 100%; height: 100%; }
.cash-summary { display: flex; gap: 20px; padding: 0 16px 14px; color: var(--muted); font-size: 10px; }
.cash-summary b { margin-left: 5px; color: var(--ink); font-size: 12px; }
.dimension-section { margin-top: 14px; background: white; border: 1px solid var(--line); }
.dimension-section + .metrics-grid { margin-top: 14px; }
.dimension-filterbar { min-height: 74px; padding: 12px 15px; display: grid; grid-template-columns: minmax(190px, 1.2fr) repeat(3, minmax(130px, 1fr)); gap: 10px; align-items: end; background: #f8faf9; border-bottom: 1px solid var(--line); }
.dimension-filter-heading { display: flex; flex-direction: column; align-self: center; }
.dimension-filter-heading strong { margin-top: 3px; font-size: 14px; }
.dimension-filter-heading small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.dimension-filterbar label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 9px; }
.dimension-filterbar select { width: 100%; height: 34px; padding: 0 9px; color: #35413c; background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; font-size: 11px; }
.dimension-filterbar select:focus { border-color: #75a28e; box-shadow: 0 0 0 3px rgba(18,107,77,.08); }
.overview-link-filter { position: relative; min-width: 0; color: var(--muted); font-size: 9px; }
.overview-link-filter summary { height: 34px; padding: 0 9px; display: flex; align-items: center; gap: 6px; cursor: pointer; color: #35413c; background: white; border: 1px solid var(--line-strong); border-radius: 4px; list-style: none; }
.overview-link-filter summary::-webkit-details-marker { display: none; }
.overview-link-filter summary > span { color: var(--muted); }
.overview-link-filter summary strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: #35413c; }
.overview-link-filter summary svg { width: 13px; flex: 0 0 auto; }
.overview-link-filter[open] summary { border-color: #75a28e; box-shadow: 0 0 0 3px rgba(18,107,77,.08); }
.overview-link-menu { position: absolute; z-index: 12; top: calc(100% + 5px); right: 0; width: min(310px, 76vw); padding: 10px; background: white; border: 1px solid var(--line-strong); border-radius: 5px; box-shadow: 0 10px 24px rgba(30,52,43,.14); }
.overview-link-menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.overview-link-menu-head span { color: var(--ink); font-size: 10px; font-weight: 700; }
.overview-link-menu-head button { padding: 0 4px; color: var(--green); background: transparent; border: 0; cursor: pointer; font-size: 9px; }
.overview-link-options { max-height: 210px; margin: 3px 0 9px; overflow-y: auto; }
.overview-link-option-row { min-height: 38px; padding: 6px 3px; display: flex !important; flex-direction: row !important; align-items: center; gap: 7px; color: var(--ink) !important; cursor: pointer; border-bottom: 1px solid #f0f3f1; }
.overview-link-option-row:last-child { border-bottom: 0; }
.overview-link-option-row input { width: 14px; height: 14px; accent-color: var(--green); }
.overview-link-option-row span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.overview-link-option-row b { font-size: 10px; }
.overview-link-option-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 9px; }
.overview-link-apply { width: 100%; min-height: 30px; justify-content: center; font-size: 10px; }
.dimension-tabs { height: 49px; padding: 0 14px; display: flex; align-items: end; gap: 4px; border-bottom: 1px solid var(--line); }
.dimension-tab { height: 48px; min-width: 116px; padding: 0 15px; display: flex; align-items: center; justify-content: center; gap: 7px; position: relative; color: var(--muted); background: transparent; border: 0; font-size: 11px; }
.dimension-tab::after { content: ""; position: absolute; inset: auto 12px -1px; height: 2px; background: transparent; }
.dimension-tab:hover { color: var(--ink); background: #fafbfa; }
.dimension-tab.active { color: var(--green); font-weight: 700; }
.dimension-tab.active::after { background: var(--green); }
.dimension-tab svg { width: 15px; }
.dimension-content { display: grid; grid-template-columns: 180px minmax(0,1fr); }
.dimension-summary { padding: 8px 15px; border-right: 1px solid var(--line); }
.dimension-summary > div { padding: 10px 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.dimension-summary > div:last-child { border-bottom: 0; }
.dimension-summary span { color: var(--muted); font-size: 9px; }
.dimension-summary strong { margin-top: 4px; font-size: 12px; }
.dimension-table-wrap { min-width: 0; overflow-x: auto; }
.dimension-table { min-width: 730px; }
.dimension-return-note { min-height: 42px; padding: 9px 14px; display: flex; align-items: center; gap: 8px; color: var(--muted); background: #f8faf9; border-top: 1px solid var(--line); font-size: 9px; line-height: 1.5; }
.dimension-return-note svg { width: 14px; flex: 0 0 auto; color: var(--green); }
.dimension-return-note b { color: var(--ink); }
.rank-cell { display: flex; align-items: center; gap: 9px; }
.rank-cell b { width: 20px; height: 20px; display: grid; place-items: center; color: #65716b; background: #eef2f0; border-radius: 3px; font-size: 9px; }
.rank-cell span { font-weight: 600; }
.account-list { padding: 4px 16px 9px; }
.account-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.account-row:hover { background: #f8faf9; }
.account-row:last-child { border-bottom: 0; }
.account-icon { width: 32px; height: 32px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 5px; }
.account-icon svg { width: 16px; }
.account-row > div:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.account-row strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-row span { color: var(--muted); font-size: 9px; margin-top: 3px; }
.account-row > b { font-size: 12px; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .65fr); gap: 14px; margin-top: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th { height: 38px; padding: 0 14px; color: #7c8681; background: #f8faf9; font-size: 10px; font-weight: 600; text-align: left; border-bottom: 1px solid var(--line); }
td { height: 50px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 11px; white-space: nowrap; }
tbody tr:hover { background: #fbfcfb; }
.dimension-table tbody tr, .module-layout tbody tr { cursor: pointer; }
tbody tr:last-child td { border-bottom: 0; }
.entity-cell { display: flex; align-items: center; gap: 8px; }
.entity-logo { width: 27px; height: 27px; display: grid; place-items: center; background: #edf1ef; color: #596660; border-radius: 4px; font-size: 9px; font-weight: 800; }
.amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 10px; font-size: 9px; font-weight: 700; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.success { color: var(--green); background: var(--green-soft); }
.status.warning { color: var(--amber); background: var(--amber-soft); }
.status.danger { color: var(--red); background: var(--red-soft); }
.status.info { color: var(--blue); background: var(--blue-soft); }
.status.neutral { color:#66758c; background:#edf1f6; }
.todo-list { padding: 4px 16px; }
.todo-item { padding: 13px 0; display: grid; grid-template-columns: 31px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); cursor: pointer; }
.todo-item:hover { background: #f8faf9; }
.todo-item:last-child { border-bottom: 0; }
.todo-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--amber); background: var(--amber-soft); border-radius: 5px; }
.todo-icon.red { color: var(--red); background: var(--red-soft); }
.todo-icon.blue { color: var(--blue); background: var(--blue-soft); }
.todo-icon svg { width: 15px; }
.todo-copy { display: flex; flex-direction: column; }
.todo-copy strong { font-size: 11px; }
.todo-copy span { color: var(--muted); font-size: 9px; margin-top: 3px; }
.todo-item > b { color: var(--red); font-size: 10px; }
.toolbar { padding: 12px 14px; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); }
.toolbar-search { width: 240px; height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line-strong); background: white; border-radius: 4px; }
.toolbar-search svg { width: 15px; color: #8b948f; }
.toolbar-search input { min-width: 0; width: 100%; border: 0; outline: 0; font-size: 11px; }
.filter-button { height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; background: white; color: #53605a; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 11px; }
.filter-button svg { width: 14px; }
.toolbar-spacer { flex: 1; }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.summary-item { padding: 15px 17px; border-right: 1px solid var(--line); }
.summary-item:last-child { border-right: 0; }
.summary-item span { color: var(--muted); font-size: 10px; }
.summary-item strong { display: block; margin-top: 5px; font-size: 18px; }
.module-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 14px; }
.side-stats { display: flex; flex-direction: column; gap: 14px; }
.stat-block { padding: 16px; background: white; border: 1px solid var(--line); }
.stat-block h3 { margin: 0 0 12px; font-size: 12px; }
.progress-row { margin-top: 13px; }
.progress-row > div:first-child { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.progress-row b { color: var(--ink); }
.progress-track { height: 6px; margin-top: 7px; background: #edf1ef; border-radius: 3px; overflow: hidden; }
.progress-track i { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.progress-track i.amber { background: #c89443; }
.progress-track i.red { background: var(--red); }
.insight { padding: 13px; background: #f1f7f4; border-left: 3px solid var(--green); }
.insight-head { display: flex; align-items: center; gap: 7px; color: var(--green-dark); font-size: 11px; font-weight: 700; }
.insight-head svg { width: 15px; }
.insight p { margin: 8px 0 0; color: #53635c; font-size: 10px; line-height: 1.7; }
.ai-hero { padding: 22px; display: grid; grid-template-columns: 1fr auto; align-items: center; background: #173f31; color: white; border: 1px solid #173f31; }
.ai-hero h2 { margin: 6px 0; font-size: 20px; }
.ai-hero p { margin: 0; color: #aec6bb; font-size: 11px; }
.ai-score { width: 90px; height: 90px; display: grid; place-items: center; position: relative; }
.ai-score::before { content: ""; position: absolute; inset: 0; border: 8px solid rgba(255,255,255,.12); border-top-color: #d9b56d; border-right-color: #d9b56d; border-radius: 50%; transform: rotate(35deg); }
.ai-score strong { font-size: 25px; }
.ai-score span { display: block; color: #9eb6ab; font-size: 9px; text-align: center; }
.analysis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.analysis-card { padding: 17px; background: white; border: 1px solid var(--line); }
.analysis-card > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.analysis-card h3 { margin: 0; font-size: 12px; }
.analysis-card svg { width: 17px; color: var(--green); }
.analysis-card strong { display: block; margin: 18px 0 5px; font-size: 20px; }
.analysis-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.risk-list { background: white; border: 1px solid var(--line); }
.risk-row { padding: 15px 17px; display: grid; grid-template-columns: 32px minmax(180px,1fr) minmax(220px,1.6fr) 100px 90px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.risk-row:last-child { border-bottom: 0; }
.risk-level { width: 28px; height: 28px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); border-radius: 50%; }
.risk-level.medium { color: var(--amber); background: var(--amber-soft); }
.risk-level svg { width: 14px; }
.risk-name strong, .risk-desc strong { display: block; font-size: 11px; }
.risk-name span, .risk-desc span { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.secret-manager-panel { margin-bottom: 14px; overflow: hidden; }
.secret-manager-banner { margin: 0 16px 14px; padding: 12px 14px; display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: #254dc8; background: #f3f6ff; border-left: 3px solid #3560df; }
.secret-manager-banner svg { width: 20px; height: 20px; margin-top: 1px; }
.secret-manager-banner strong { display: block; color: #173678; font-size: 13px; }
.secret-manager-banner span { display: block; margin-top: 2px; color: #65738f; font-size: 11px; line-height: 1.5; }
.secret-manager-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.secret-manager-grid { padding: 0 16px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.secret-card { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.secret-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.secret-card-head strong { font-size: 14px; color: var(--ink); }
.secret-card-head small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.5; }
.secret-card-meta { margin: 10px 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.secret-card-meta span { padding: 3px 7px; color: #345; background: #f5f7fb; border-radius: 999px; font-size: 10px; }
.secret-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.secret-field { display: grid; gap: 6px; }
.secret-field span { display: inline-flex; align-items: center; gap: 5px; color: #77839a; font-size: 11px; font-weight: 700; }
.secret-field input { width: 100%; height: 40px; padding: 0 11px; color: #263247; background: #fff; border: 1px solid #d7deeb; border-radius: 5px; font: inherit; }
.secret-card-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.secret-permission-panel { margin: 0 16px 16px; overflow: hidden; }
.secret-permission-table { min-width: 1100px; }
.secret-permission-table th:nth-child(1) { width: 170px; }
.secret-permission-table th:nth-child(2) { width: 250px; }
.secret-permission-table th:nth-child(3),.secret-permission-table th:nth-child(4),.secret-permission-table th:nth-child(5) { width: 110px; }
.secret-permission-table th:nth-child(6) { width: 260px; }
.secret-permission-table td input[type="text"],.secret-permission-table td input:not([type]) { width: 100%; height: 36px; padding: 0 10px; color: #263247; background: #fff; border: 1px solid #d7deeb; border-radius: 5px; font: inherit; }
.secret-check { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #53627a; }
.setting-item { min-height: 112px; padding: 16px; display: grid; grid-template-columns: 38px 1fr 20px; align-items: start; gap: 11px; background: white; border: 1px solid var(--line); cursor: pointer; transition: .15s; }
.setting-item:hover { border-color: #adc4b9; box-shadow: 0 5px 16px rgba(20,50,37,.06); transform: translateY(-1px); }
.setting-icon { width: 37px; height: 37px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 5px; }
.setting-icon svg { width: 18px; }
.setting-copy h3 { margin: 1px 0 5px; font-size: 12px; }
.setting-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.setting-item > svg { width: 15px; color: #a9b0ad; margin-top: 11px; }
.dingtalk-config { margin-bottom: 14px; overflow: hidden; }
.dingtalk-config-body { display: block; }
.dingtalk-brand { min-height: 104px; padding: 18px 24px; display: grid; grid-template-columns: 44px minmax(150px,190px) minmax(0,1fr); align-items: center; gap: 16px; color: white; background: #176b78; }
.dingtalk-brand > .dingtalk-brand-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #176b78; background: white; border-radius: 5px; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.dingtalk-brand > .dingtalk-brand-icon svg { width: 22px; }
.dingtalk-brand > span { display: flex; flex-direction: column; gap: 7px; }
.dingtalk-brand > span > strong { font-size: 16px; }
.dingtalk-brand > span > small { color: rgba(255,255,255,.78); font-size: 10px; line-height: 1.6; }
.dingtalk-bot-brand { background: #176b52; }
.dingtalk-bot-brand > .dingtalk-brand-icon { color: #176b52; }
.dingtalk-robot-list { width: 100%; display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); align-items: stretch; }
.dingtalk-robot-row { min-width: 0; min-height: 52px; padding: 7px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-left: 1px solid rgba(255,255,255,.2); }
.dingtalk-robot-row > span { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; }
.dingtalk-robot-row > span strong { overflow: hidden; text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
.dingtalk-robot-row > span small { overflow: hidden; color: rgba(255,255,255,.7); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.dingtalk-robot-row > div { flex: 0 0 auto; display: flex; gap: 3px; }
.dingtalk-robot-row .icon-button { color: white; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.dingtalk-robot-row .icon-button:hover { background: rgba(255,255,255,.2); }
.dingtalk-robot-row .icon-button.active { color: #176b78; background: white; border-color: white; }
.dingtalk-robot-row .icon-button.danger:hover { color: #ffd7d7; border-color: rgba(255,215,215,.5); }
.dingtalk-robot-empty { min-height: 52px; padding: 18px 12px; color: rgba(255,255,255,.68); border-left: 1px solid rgba(255,255,255,.2); font-size: 10px; }
.dingtalk-form { padding: 20px 24px 24px; display: grid; grid-template-columns: minmax(150px,.55fr) minmax(310px,1.35fr) minmax(220px,1fr) minmax(170px,.65fr); align-items: end; gap: 14px 16px; background: #fbfdfd; }
.dingtalk-schedule-form { grid-template-columns: minmax(150px,.7fr) minmax(150px,.75fr) minmax(130px,.6fr) minmax(170px,.7fr) minmax(210px,1fr); }
.dingtalk-form-heading { min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dingtalk-form > .dingtalk-form-heading { grid-column: 1 / -1; }
.dingtalk-form-heading > strong { font-size: 14px; }
.dingtalk-form > label { min-width: 0; display: flex; flex-direction: column; gap: 7px; color: #49544f; font-size: 11px; font-weight: 700; }
.dingtalk-form input { width: 100%; height: 42px; padding: 0 44px 0 12px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; font-size: 12px; }
.dingtalk-form select { width: 100%; height: 42px; padding: 0 32px 0 12px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; font-size: 12px; }
.dingtalk-form input:focus,.dingtalk-form select:focus { border-color: #55949d; box-shadow: 0 0 0 3px rgba(23,107,120,.09); }
.dingtalk-form select:disabled { color: #a0a8a4; background: #f2f5f3; }
.dingtalk-schedule-toggle > span:last-child { height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 9px; background: white; border: 1px solid var(--line-strong); border-radius: 4px; }
.dingtalk-form .dingtalk-schedule-enabled { width: 16px; height: 16px; padding: 0; accent-color: #176b78; }
.dingtalk-schedule-toggle b { font-size: 11px; }
.dingtalk-secret-field { position: relative; }
.dingtalk-secret-toggle { position: absolute; top: 1px; right: 1px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); background: transparent; border: 0; cursor: pointer; }
.dingtalk-secret-toggle svg { width: 16px; }
.dingtalk-actions { min-height: 61px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 7px; }
.dingtalk-actions > span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.dingtalk-schedule-form .dingtalk-actions > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dingtalk-actions > span svg { width: 14px; color: #176b78; }
.dingtalk-actions > .primary-button { width: 100%; height: 42px; }
.accounting-dingtalk-target { max-width: 180px; height: 36px; padding: 0 28px 0 9px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; font-size: 10px; }
.wanliniu-config { margin-bottom: 14px; }
.wanliniu-config-body { display: grid; grid-template-columns: minmax(210px,.65fr) minmax(420px,1.35fr); }
.wanliniu-brand { min-height: 250px; padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 18px; color: white; background: linear-gradient(145deg,#164f3a,#0b7650); }
.secret-management-tabs { margin: 0 0 14px; display: inline-flex; gap: 6px; padding: 5px; background: #edf3f1; border: 1px solid var(--line); border-radius: 8px; }
.secret-management-tabs button { min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; color: #52625c; background: transparent; border: 0; border-radius: 6px; font-size: 12px; font-weight: 800; cursor: pointer; }
.secret-management-tabs button svg { width: 16px; }
.secret-management-tabs button.active { color: white; background: #176b52; box-shadow: 0 6px 16px rgba(23,107,82,.18); }
.upload-key-panel { margin-bottom: 14px; overflow: hidden; }
.upload-key-header-actions,.upload-key-row-actions { display: flex; align-items: center; gap: 8px; }
.upload-key-row-actions { justify-content: flex-end; gap: 4px; }
.upload-key-action { width: 30px; height: 30px; color: #60706a; background: transparent; border: 0; box-shadow: none; }
.upload-key-action svg { width: 16px; }
.upload-key-action:hover { color: #176b52; background: #edf6f2; }
.upload-key-action.danger { color: #a05a5a; }
.upload-key-action.danger:hover { color: #b4232d; background: #fff1f1; }
.secret-manager-panel { margin-bottom: 14px; overflow: hidden; }
.secret-manager-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.secret-manager-banner { margin: 0 16px 14px; padding: 12px 14px; display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; color: #254dc8; background: #f3f6ff; border-left: 3px solid #3560df; }
.secret-manager-banner svg { width: 20px; height: 20px; margin-top: 1px; }
.secret-manager-banner strong { display: block; color: #173678; font-size: 13px; }
.secret-manager-banner span { display: block; margin-top: 2px; color: #65738f; font-size: 11px; line-height: 1.5; }
.secret-manager-grid { padding: 0 16px 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.secret-card { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.secret-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.secret-card h3 { margin: 0 0 5px; font-size: 14px; }
.secret-card p,.secret-card small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.secret-summary { min-height: 34px; margin: 10px 0; padding: 9px 10px; color: #49566b; background: #f8fbff; border: 1px solid #dfe7f3; border-radius: 4px; font-size: 10px; line-height: 1.5; }
.secret-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.secret-field-grid label { display: flex; flex-direction: column; gap: 6px; color: #49544f; font-size: 10px; font-weight: 700; }
.secret-field-grid input { width: 100%; height: 38px; padding: 0 10px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; }
.secret-card-actions { margin: 12px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.secret-permission-panel { margin: 0 16px 16px; padding: 12px; background: #fbfcff; border: 1px solid var(--line); border-radius: 6px; }
.secret-permission-panel > strong { display: block; margin-bottom: 8px; font-size: 11px; }
.secret-permission-panel table { min-width: 760px; }
.secret-permission-panel small { display: block; margin-top: 3px; color: var(--muted); }
.upload-key-create label { display: flex; flex-direction: column; gap: 7px; color: #49544f; font-size: 11px; font-weight: 700; }
.upload-key-create input { width: 100%; height: 42px; padding: 0 12px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; }
.upload-key-create { padding: 18px 24px; display: grid; grid-template-columns: minmax(260px,520px) auto; justify-content: start; align-items: end; gap: 12px; border-bottom: 1px solid var(--line); }
.internal-api-key-create { grid-template-columns: minmax(260px,520px) auto auto; }
.upload-key-reveal { padding: 18px 24px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto auto; align-items: center; gap: 12px; color: #28513f; background: #edf8f3; border-bottom: 1px solid #c9e2d6; }
.upload-key-reveal > svg { width: 38px; height: 38px; padding: 9px; color: var(--green); background: white; border-radius: 7px; }
.upload-key-reveal > div { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.upload-key-reveal strong { font-size: 11px; }
.upload-key-reveal code,.upload-key-table code { font-family: "SFMono-Regular",Consolas,monospace; }
.upload-key-reveal code { padding: 9px 11px; overflow: auto; color: #143c2d; background: white; border: 1px solid #bfd8cc; border-radius: 4px; white-space: nowrap; }
.upload-key-table { min-width: 980px; }
.upload-key-table td { white-space: nowrap; }
.upload-key-table td:first-child { white-space: normal; }
.upload-key-audit { padding: 15px 24px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); background: #fbfcfb; border-top: 1px solid var(--line); font-size: 9px; }
.upload-key-audit strong { width: 100%; color: var(--ink); font-size: 10px; }
.credential-placeholder-panel { margin-bottom: 14px; overflow: hidden; }
.credential-placeholder-body { margin: 0 16px 14px; padding: 18px; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 13px; align-items: center; color: #655126; background: #fff8e8; border: 1px solid #ead7a8; border-radius: 6px; }
.credential-placeholder-body svg { width: 42px; height: 42px; padding: 10px; color: #a67819; background: white; border-radius: 9px; }
.credential-placeholder-body strong { display: block; color: #6b4a12; font-size: 13px; }
.credential-placeholder-body span { display: block; margin-top: 4px; color: #856a39; font-size: 11px; line-height: 1.6; }
.credential-placeholder-table { min-width: 760px; }
.secret-manager-table { min-width: 1120px; }
.secret-manager-table th:nth-child(1) { width: 190px; }
.secret-manager-table th:nth-child(2) { width: 110px; }
.secret-manager-table th:nth-child(4) { width: 180px; }
.secret-manager-table th:nth-child(6) { width: 165px; }
.secret-manager-table th:nth-child(7) { width: 130px; }
.secret-manager-table td { vertical-align: top; }
.secret-manager-table td strong,.secret-manager-table td small { display: block; }
.secret-manager-table td small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.secret-manager-table code { font-family: "SFMono-Regular",Consolas,monospace; white-space: normal; word-break: break-all; }
.secret-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.secret-row-actions .icon-button { width: 34px; height: 34px; }
.secret-row-actions .icon-button.active { color: white; background: var(--green); border-color: var(--green); }
.secret-plain-row td { padding: 0 14px 14px; background: #fbfcff; border-top: 0; }
.secret-plain-box { padding: 12px; display: grid; gap: 9px; background: #0f172a; color: #e2e8f0; border-radius: 6px; }
.secret-plain-box > div { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 10px; align-items: start; }
.secret-plain-box > div:first-child { grid-template-columns: 1fr; gap: 3px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.12); }
.secret-plain-box strong { font-size: 12px; }
.secret-plain-box small { color: #94a3b8; font-size: 9px; line-height: 1.5; }
.secret-plain-box span { color: #94a3b8; font-size: 10px; font-weight: 700; }
.secret-plain-box code { color: #f8fafc; white-space: pre-wrap; word-break: break-all; }
.secret-editor-panel { overflow: hidden; }
.secret-editor-form { padding: 18px 24px 22px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 16px; background: #fbfdfc; }
.secret-editor-form label { min-width: 0; display: flex; flex-direction: column; gap: 7px; color: #49544f; font-size: 11px; font-weight: 700; }
.secret-editor-form input { width: 100%; height: 42px; padding: 0 12px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; font: inherit; }
.secret-editor-form input:focus { border-color: #2b865f; box-shadow: 0 0 0 3px rgba(43,134,95,.09); }
.secret-editor-form input:disabled { color: #7b8797; background: #f1f5f4; }
.secret-editor-submit { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 3px; }
.secret-editor-submit small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.test-data-maintenance { margin-bottom: 14px; overflow: hidden; }
.test-data-maintenance-body { min-height: 104px; padding: 20px 24px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; }
.test-data-scope { min-width: 0; display: flex; align-items: center; gap: 14px; }
.test-data-scope > svg { width: 40px; height: 40px; padding: 10px; flex: 0 0 40px; color: #315bd8; background: #edf2ff; border-radius: 6px; }
.test-data-scope > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.test-data-scope strong { font-size: 13px; }
.test-data-scope span,.test-data-scope small { color: var(--muted); font-size: 9px; line-height: 1.55; }
.test-data-maintenance button:disabled { cursor: not-allowed; opacity: .5; }
@media (max-width:640px) {
  .test-data-maintenance-body { grid-template-columns: 1fr; gap: 14px; }
  .test-data-maintenance-body > button { width: 100%; }
}
.wanliniu-brand > div { width: 52px; height: 52px; display: grid; place-items: center; color: #156a4b; background: white; border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.wanliniu-brand > div svg { width: 25px; }
.wanliniu-brand span { display: flex; flex-direction: column; gap: 7px; }
.wanliniu-brand strong { font-size: 21px; }
.wanliniu-brand small { color: rgba(255,255,255,.76); font-size: 10px; line-height: 1.6; }
.wanliniu-form { padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 18px; background: #fbfdfc; }
.wanliniu-form > label { display: flex; flex-direction: column; gap: 7px; color: #49544f; font-size: 11px; font-weight: 700; }
.wanliniu-form input { width: 100%; height: 42px; padding: 0 12px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; font-size: 12px; }
.wanliniu-form input:focus { border-color: #75a28e; box-shadow: 0 0 0 3px rgba(18,107,77,.08); }
.wanliniu-secret-field { position: relative; }
.wanliniu-secret-field input { padding-right: 44px; }
.wanliniu-secret-toggle { position: absolute; top: 1px; right: 1px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); background: transparent; border: 0; cursor: pointer; }
.wanliniu-secret-toggle svg { width: 16px; }
.wanliniu-actions { padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wanliniu-actions > span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.wanliniu-actions > span svg { width: 14px; color: var(--amber); }
.wanliniu-flow { overflow: hidden; }
.wanliniu-flow-steps { padding: 24px; display: grid; grid-template-columns: 1fr 20px 1fr 20px 1fr; align-items: center; gap: 10px; }
.wanliniu-flow-steps > div { min-height: 74px; padding: 14px; display: flex; align-items: center; gap: 12px; background: #f7faf8; border: 1px solid var(--line); }
.wanliniu-flow-steps > div.active { background: var(--green-soft); border-color: #bcd9ca; }
.wanliniu-flow-steps > div > b { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; color: var(--green); background: white; border: 1px solid #c8dcd2; border-radius: 50%; font-size: 11px; }
.wanliniu-flow-steps span { display: flex; flex-direction: column; gap: 5px; }
.wanliniu-flow-steps strong { font-size: 11px; }
.wanliniu-flow-steps small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.wanliniu-flow-steps > svg { width: 16px; color: #aab7b1; }
.wanliniu-order-ledger { overflow: hidden; }
.wanliniu-order-actions { display: flex; align-items: center; gap: 9px; }
.wanliniu-order-actions button:disabled { cursor: not-allowed; opacity: .48; }
.wanliniu-date-sync-control { display:flex; align-items:center; gap:7px; }
.wanliniu-date-sync-control input { width:132px; height:32px; padding:0 8px; color:var(--ink); background:#fff; border:1px solid #cfd7e6; border-radius:5px; font:inherit; }
.wanliniu-date-sync-control input:focus { border-color:#6d89e7; box-shadow:0 0 0 3px rgba(49,91,216,.1); outline:0; }
.wanliniu-date-sync-control button { min-height:32px; display:inline-flex; align-items:center; gap:5px; }
.wanliniu-date-sync-control button svg { width:14px; height:14px; }
.wanliniu-sync-coverage { min-height:70px; display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr); background:#f8faff; border-top:1px solid #e5eaf3; border-bottom:1px solid #dfe5ef; }
.wanliniu-sync-coverage > div { min-width:0; padding:12px 16px; display:flex; align-items:center; gap:11px; }
.wanliniu-sync-coverage > div + div { border-left:1px solid #dfe5ef; }
.wanliniu-sync-coverage svg { width:18px; height:18px; flex:0 0 auto; color:#315bd8; }
.wanliniu-sync-coverage span { min-width:0; display:flex; flex-direction:column; gap:4px; }
.wanliniu-sync-coverage small { color:#7b879b; font-size:9px; }
.wanliniu-sync-coverage strong { overflow:hidden; color:#263652; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.wanliniu-sync-coverage em { overflow:hidden; color:#7b879b; font-size:9px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.wanliniu-order-state { min-height: 64px; padding: 12px 16px; display: flex; align-items: center; gap: 11px; color: #355d78; background: var(--blue-soft); border-bottom: 1px solid #cedfe9; }
.wanliniu-order-state > svg { width: 19px; flex: 0 0 auto; }
.wanliniu-order-state > span { display: flex; flex-direction: column; gap: 4px; }
.wanliniu-order-state strong { font-size: 10px; }
.wanliniu-order-state small { color: #587286; font-size: 9px; line-height: 1.5; }
.wanliniu-order-state.syncing { color: #70540d; background: #fff8df; border-bottom-color: #ead99a; }
.wanliniu-order-state.failed { color: #8e3333; background: #fff0f0; border-bottom-color: #ecc5c5; }
.wanliniu-order-state.syncing > svg,.wanliniu-order-sync:disabled svg { animation: wanliniu-spin 1s linear infinite; }
.wanliniu-order-filterbar { padding:0; background:#fff; border-bottom:1px solid var(--line); }
.wanliniu-order-filter-head { min-height:72px; padding:15px 18px 13px; display:flex; align-items:center; justify-content:space-between; gap:16px; background:linear-gradient(90deg,#f8faff 0%,#fff 68%); border-bottom:1px solid #e7ebf3; }
.wanliniu-order-filter-eyebrow { display:inline-flex; align-items:center; gap:6px; color:#315bd8; font-size:10px; font-weight:800; letter-spacing:.03em; }
.wanliniu-order-filter-eyebrow svg { width:14px; height:14px; }
.wanliniu-order-filter-head h3 { margin:5px 0 2px; color:var(--ink); font-size:14px; letter-spacing:0; }
.wanliniu-order-filter-head p { margin:0; color:#8290a6; font-size:10px; }
.wanliniu-order-filter-tools { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.wanliniu-order-filter-count { min-height:30px; padding:0 10px; display:inline-flex; align-items:center; gap:6px; color:#8490a4; background:#f4f6fa; border:1px solid #e2e7ef; border-radius:5px; font-size:10px; white-space:nowrap; }
.wanliniu-order-filter-count.active { color:#315bd8; background:#edf2ff; border-color:#cbd7ff; }
.wanliniu-order-filter-count svg { width:14px; height:14px; }
.wanliniu-order-filter-tools button { min-height:32px; padding:0 11px; white-space:nowrap; }
.wanliniu-order-filter-submit { min-width:82px; justify-content:center; }
.wanliniu-order-filter-submit[aria-busy="true"] svg,.wanliniu-aftersale-filter-submit[aria-busy="true"] svg,.wanliniu-query-feedback.loading > svg,.wanliniu-query-table-loading > svg { animation:wanliniu-spin 1s linear infinite; }
.wanliniu-order-filter-grid { padding:15px 18px 17px; display:grid; grid-template-columns:minmax(280px,1.7fr) repeat(3,minmax(130px,1fr)) minmax(280px,1.4fr); align-items:end; gap:12px; background:#fff; }
.wanliniu-order-filter-grid > label,.wanliniu-order-date-field { min-width:0; display:flex; flex-direction:column; gap:6px; color:#69778d; font-size:10px; font-weight:700; }
.wanliniu-order-filter-grid > label > span,.wanliniu-order-date-field > span { line-height:1.2; }
.wanliniu-order-filterbar input,.wanliniu-order-filterbar select { width:100%; height:38px; padding:0 11px; color:var(--ink); background:#fff; border:1px solid #cfd7e6; border-radius:5px; outline:0; font:inherit; font-weight:500; }
.wanliniu-order-filterbar input::placeholder { color:#a0aabb; }
.wanliniu-order-filterbar input:focus,.wanliniu-order-filterbar select:focus { border-color:#6d89e7; box-shadow:0 0 0 3px rgba(49,91,216,.1); }
.wanliniu-order-search > div { position:relative; }
.wanliniu-order-search > div svg { position:absolute; top:11px; left:11px; width:16px; height:16px; color:#7f8ca2; pointer-events:none; }
.wanliniu-order-search > div input { padding-left:34px; }
.wanliniu-order-date-range { min-width:0; display:grid; grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr); align-items:center; gap:6px; }
.wanliniu-order-date-range > label { min-width:0; display:block; }
.wanliniu-order-date-range > svg { width:14px; height:14px; color:#9aa5b8; }
.wanliniu-query-feedback { min-height:54px; padding:10px 18px; display:flex; align-items:center; gap:10px; border-top:1px solid #e7ebf3; font-size:10px; }
.wanliniu-query-feedback > svg { width:18px; height:18px; flex:0 0 auto; }
.wanliniu-query-feedback > span { min-width:0; display:flex; flex-direction:column; gap:3px; }
.wanliniu-query-feedback strong { font-size:11px; }
.wanliniu-query-feedback small { color:inherit; opacity:.78; line-height:1.45; }
.wanliniu-query-feedback.loading { color:#70540d; background:#fff8df; border-top-color:#ead99a; }
.wanliniu-query-feedback.success { color:#176343; background:#eef9f4; border-top-color:#c8e8d8; }
.wanliniu-query-feedback.empty { color:#765a19; background:#fff9e9; border-top-color:#ecdcae; }
.wanliniu-query-feedback.failed { color:#8e3333; background:#fff0f0; border-top-color:#ecc5c5; }
.wanliniu-query-table-loading > svg { display:block; width:20px; height:20px; margin:0 auto 8px; color:#315bd8; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:1500px) { .wanliniu-order-filter-grid { grid-template-columns:minmax(240px,1.4fr) repeat(3,minmax(120px,1fr)); }.wanliniu-order-date-field { grid-column:span 2; } }
@media (max-width:1100px) { .wanliniu-order-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.wanliniu-order-search,.wanliniu-order-date-field { grid-column:1 / -1; } }
.wanliniu-sync-progress { padding: 11px 16px 12px; color: #665323; background: #fffdf3; border-bottom: 1px solid #eee4c9; }
.wanliniu-sync-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wanliniu-sync-progress-head strong { font-size: 10px; }
.wanliniu-sync-progress-head span,.wanliniu-sync-progress small { color: #8a7b55; font-size: 9px; }
.wanliniu-sync-progress-track { height: 6px; margin: 8px 0 6px; overflow: hidden; background: #eee8d3; border-radius: 4px; }
.wanliniu-sync-progress-track i { display: block; height: 100%; min-width: 2px; background: #c89443; border-radius: inherit; transition: width .3s ease; }
.wanliniu-sync-progress small { display: block; line-height: 1.5; }
.wanliniu-sync-limitation { min-height: 38px; padding: 8px 16px; display: flex; align-items: center; gap: 8px; color: #6b5b33; background: #fffdf5; border-bottom: 1px solid #eee4c9; font-size: 9px; line-height: 1.5; }
.wanliniu-sync-limitation svg { width: 14px; flex: 0 0 auto; color: #a57b19; }
@keyframes wanliniu-spin { to { transform: rotate(360deg); } }
.wanliniu-order-table { min-width: 3380px; }
.wanliniu-order-table th { min-width: 118px; white-space: nowrap; }
.wanliniu-order-table th:nth-child(1),.wanliniu-order-table th:nth-child(2) { min-width: 180px; }
.wanliniu-order-table th:nth-child(5) { min-width: 210px; }
.wanliniu-order-table th:nth-child(7),.wanliniu-order-table th:nth-child(8),.wanliniu-order-table th:nth-child(9),.wanliniu-order-table th:nth-child(24) { min-width: 170px; }
.wanliniu-order-table th:nth-child(10) { min-width: 170px; }
.wanliniu-order-table th:nth-child(11) { min-width: 240px; }
.wanliniu-order-table th:nth-child(21),.wanliniu-order-table th:nth-child(22) { min-width: 150px; }
.wanliniu-order-table .wanliniu-tracking-number { min-width: 190px; color: #1a674d; }
.wanliniu-order-table td { vertical-align: middle; white-space: nowrap; }
.wanliniu-order-table td:nth-child(5),.wanliniu-order-table td:nth-child(11) { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.wanliniu-order-table td > strong,.wanliniu-order-table td > small { display: block; }
.wanliniu-order-table td > small { margin-top: 4px; color: var(--muted); line-height: 1.55; }
.wanliniu-order-table td > .status { margin-top: 5px; }
.wanliniu-order-mark { display:inline-flex; min-height:16px; align-items:center; gap:3px; color:var(--ink); white-space:nowrap; }
.wanliniu-order-flag { width:9px; height:12px; flex:0 0 9px; background:var(--wanliniu-flag-color); clip-path:polygon(0 0,100% 0,100% 100%,50% 76%,0 100%); }
.wanliniu-order-flag.flag-1 { --wanliniu-flag-color:#f5222d; }
.wanliniu-order-flag.flag-2 { --wanliniu-flag-color:#fadb14; }
.wanliniu-order-flag.flag-3 { --wanliniu-flag-color:#20e419; }
.wanliniu-order-flag.flag-4 { --wanliniu-flag-color:#1677ff; }
.wanliniu-order-flag.flag-5 { --wanliniu-flag-color:#722ed1; }
.wanliniu-order-table .empty-state { height: 250px; }
.wanliniu-order-table .empty-state strong,.wanliniu-order-table .empty-state small { display: block; }
.wanliniu-order-table .empty-state strong { color: var(--ink); font-size: 12px; }
.wanliniu-order-table .empty-state small { margin-top: 7px; }
.wanliniu-view-tabs { width:100%; margin:0 0 16px; padding:4px; gap:4px; background:#fff; border:1px solid var(--line); border-radius:7px; box-shadow:0 3px 12px rgba(37,58,112,.06); }
.wanliniu-view-tabs button { min-height:38px; flex:1; display:inline-flex; align-items:center; justify-content:center; gap:7px; font-size:12px; }
.wanliniu-view-tabs button.active { box-shadow:inset 0 -2px #315bd8; }
.wanliniu-view-tabs svg { width:16px; height:16px; }
.wanliniu-aftersale-source { min-height:58px; padding:12px 16px; display:flex; align-items:center; gap:11px; color:#315f4d; background:#f1f8f5; border-bottom:1px solid #d6e8df; }
.wanliniu-aftersale-source > svg { width:19px; flex:0 0 auto; }
.wanliniu-aftersale-source span,.wanliniu-aftersale-source strong,.wanliniu-aftersale-source small { display:block; }
.wanliniu-aftersale-source small { margin-top:3px; color:var(--muted); line-height:1.5; }
.wanliniu-aftersale-ledger .wanliniu-order-filter-grid { grid-template-columns:minmax(260px,1.35fr) minmax(320px,1.45fr) minmax(170px,.7fr) auto; }
.wanliniu-aftersale-ledger .wanliniu-order-date-field { grid-column:auto; }
.wanliniu-aftersale-filter-actions { display:flex; align-items:flex-end; gap:8px; }
.wanliniu-aftersale-filter-actions button { min-width:92px; }
@media (max-width:1100px) { .wanliniu-aftersale-ledger .wanliniu-order-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.wanliniu-aftersale-ledger .wanliniu-order-date-field { grid-column:1 / -1; } }
.wanliniu-aftersale-table { min-width:1900px; }
.wanliniu-aftersale-table th { min-width:120px; white-space:nowrap; }
.wanliniu-aftersale-table th:nth-child(1),.wanliniu-aftersale-table th:nth-child(2),.wanliniu-aftersale-table th:nth-child(3) { min-width:180px; }
.wanliniu-aftersale-table th:nth-child(7),.wanliniu-aftersale-table th:nth-child(8),.wanliniu-aftersale-table th:nth-child(12) { min-width:165px; }
.wanliniu-aftersale-table th:nth-child(11) { min-width:320px; }
.wanliniu-aftersale-table td { vertical-align:middle; white-space:nowrap; }
.wanliniu-aftersale-table td > strong,.wanliniu-aftersale-table td > small { display:block; }
.wanliniu-aftersale-table td > small { margin-top:4px; color:var(--muted); }
.wanliniu-aftersale-items { max-width:360px; overflow:hidden; text-overflow:ellipsis; }
.wanliniu-raw-order-table th { min-width:145px; text-transform:none; }
.wanliniu-raw-order-table th strong,.wanliniu-raw-order-table th small { display:block; }
.wanliniu-raw-order-table th small { margin-top:3px; color:#8a96aa; font-size:9px; font-weight:500; }
.wanliniu-raw-order-table td { max-width:320px; vertical-align:top; }
.wanliniu-raw-scalar { display:block; max-width:300px; overflow:hidden; text-overflow:ellipsis; }
.wanliniu-raw-empty { color:#a1aaba; font-style:italic; }
.wanliniu-raw-json { min-width:120px; }
.wanliniu-raw-json summary { color:#315bd8; cursor:pointer; font-weight:700; }
.wanliniu-raw-json pre { width:520px; max-height:320px; margin:8px 0 0; padding:10px; overflow:auto; color:#24324a; background:#f5f7fb; border:1px solid #dfe5ef; border-radius:5px; white-space:pre-wrap; word-break:break-all; font:10px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace; }
.middle-order-table { min-width: 3570px; }
.middle-order-table .middle-order-tracking-number { min-width: 190px; color: #1a674d; }
.wanliniu-order-pager { min-height: 58px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.wanliniu-order-pager > span { color: var(--muted); font-size: 10px; }
.wanliniu-order-pager > div { display: flex; gap: 7px; }
.wanliniu-order-pager button:disabled { cursor: not-allowed; opacity: .45; }
.courier-rate-pager { min-height: 52px; padding: 8px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; }
.courier-rate-pager > div { display: flex; gap: 8px; }
.courier-rate-pager button:disabled { cursor: not-allowed; opacity: .45; }
.external-data-pager > div { align-items:center; flex-wrap:wrap; }
.external-data-page-size,.wanliniu-page-size { min-height:34px; padding-left:9px; display:flex; align-items:center; gap:7px; color:var(--muted); background:#fff; border:1px solid var(--line-strong); border-radius:4px; font-size:10px; }
.external-data-page-size select,.wanliniu-page-size select { height:32px; padding:0 26px 0 8px; color:var(--ink); background:#fff; border:0; border-left:1px solid var(--line); outline:0; font:inherit; cursor:pointer; }
.external-data-page-size:focus-within,.wanliniu-page-size:focus-within { border-color:#8da4ec; box-shadow:0 0 0 3px rgba(49,91,216,.1); }
@media (max-width: 640px) {
  .courier-summary-chart { grid-template-columns:minmax(0,1fr); row-gap:12px; padding:14px; }
  .courier-summary-chart h4 { grid-column:auto; margin-bottom:0; }
  .courier-summary-pie { margin:0 auto; }
  .courier-summary-weight-legend { grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
  .courier-rate-pager { align-items: stretch; flex-direction: column; }
  .courier-rate-pager > div { display: grid; grid-template-columns: 1fr 1fr; }
  .courier-rate-pager button { width: 100%; }
}
.quick-profit-panel { margin-top: 14px; padding: 15px 16px 11px; display: grid; grid-template-columns: 210px minmax(420px,1fr) 350px; gap: 15px; align-items: center; background: white; border: 1px solid var(--line); }
.quick-profit-heading { display: flex; align-items: center; gap: 11px; }
.quick-profit-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 5px; }
.quick-profit-icon svg { width: 18px; }
.quick-profit-heading h2 { margin: 3px 0 2px; font-size: 13px; }
.quick-profit-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.quick-profit-inputs { display: grid; grid-template-columns: repeat(5,minmax(80px,1fr)); gap: 7px; }
.quick-profit-inputs label { min-width: 0; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 8px; }
.quick-profit-inputs label > div { height: 34px; padding: 0 7px; display: flex; align-items: center; gap: 3px; border: 1px solid var(--line-strong); border-radius: 4px; }
.quick-profit-inputs b, .quick-profit-inputs em { color: #77827d; font-size: 9px; font-style: normal; }
.quick-profit-inputs input { min-width: 0; width: 100%; height: 31px; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 11px; }
.quick-profit-inputs label > div:focus-within { border-color: #75a28e; box-shadow: 0 0 0 3px rgba(18,107,77,.08); }
.quick-profit-results { display: grid; grid-template-columns: repeat(3,1fr); background: #f1f7f4; border-left: 3px solid var(--green); }
.quick-profit-results > div { min-width: 0; padding: 10px; display: flex; flex-direction: column; border-right: 1px solid #d9e7e0; }
.quick-profit-results > div:last-child { border-right: 0; }
.quick-profit-results span { color: #66766f; font-size: 8px; }
.quick-profit-results strong { margin-top: 5px; font-size: 13px; white-space: nowrap; }
.quick-profit-actions { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; }
.quick-profit-actions small { color: #8a938f; font-size: 8px; }
.profit-analysis-panel { margin-top: 14px; }
.page-heading + .profit-analysis-panel { margin-top: 0; }
.profit-analysis-controls { display: flex; align-items: center; gap: 8px; }
.profit-view-switch { display: flex; padding: 3px; background: #edf1ef; border-radius: 4px; }
.profit-view-switch button { height: 30px; padding: 0 10px; display: flex; align-items: center; gap: 6px; color: var(--muted); background: transparent; border: 0; border-radius: 3px; font-size: 10px; }
.profit-view-switch button.active { color: var(--green); background: white; box-shadow: 0 1px 4px rgba(15,30,23,.09); font-weight: 700; }
.profit-view-switch svg { width: 14px; }
.profit-analysis-summary { display: grid; grid-template-columns: repeat(4,1fr); background: #f8faf9; border-bottom: 1px solid var(--line); }
.profit-analysis-summary > div { padding: 13px 16px; border-right: 1px solid var(--line); }
.profit-analysis-summary > div:last-child { border-right: 0; }
.profit-analysis-summary span { display: block; color: var(--muted); font-size: 9px; }
.profit-analysis-summary strong { display: block; margin-top: 5px; font-size: 16px; }
.profit-analysis-table { min-width: 1420px; }
.profit-analysis-table tbody tr { cursor: pointer; }
.profit-analysis-table td > strong, .profit-analysis-table td > small { display: block; }
.profit-analysis-table td > small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.profit-analysis-table .entity-cell > div { display: flex; flex-direction: column; }
.profit-analysis-table .entity-cell small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.vertical-profit-head { min-height: 58px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid var(--line); }
.vertical-profit-head > div { display: flex; align-items: center; gap: 9px; }
.vertical-profit-head span, .vertical-profit-head small { color: var(--muted); font-size: 9px; }
.profit-product-select, .accounting-object-select { min-width: 250px; height: 34px; padding: 0 9px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; font-size: 10px; }
.profit-breakdown-table { min-width: 820px; }
.accounting-daily-head { min-height: 66px; }
.accounting-active-day { display: flex; align-items: flex-end; gap: 12px; }
.accounting-active-day strong { color: var(--green); font-size: 13px; }
.accounting-active-day small { color: var(--muted); font-size: 9px; }
.accounting-rolling-days { min-height: 76px; padding: 10px 14px; display: flex; align-items: stretch; gap: 12px; background: #f8faf9; border-bottom: 1px solid var(--line); }
.accounting-rolling-label { width: 105px; flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.accounting-rolling-label strong { font-size: 11px; }
.accounting-rolling-label small { color: var(--muted); font-size: 8px; }
.accounting-day-scroll { min-width: 0; flex: 1; display: grid; grid-template-columns: repeat(7,minmax(90px,1fr)); gap: 6px; overflow-x: auto; }
.accounting-day-button { min-width: 90px; padding: 7px 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; text-align: left; cursor: pointer; }
.accounting-day-button:hover { border-color: #8bb5a1; }
.accounting-day-button.active { color: var(--green); background: var(--green-soft); border-color: #79ae94; box-shadow: inset 0 0 0 1px #79ae94; }
.accounting-day-button.empty { color: #9aa39e; }
.accounting-day-button span { font-size: 10px; font-weight: 800; }
.accounting-day-button small { color: var(--muted); font-size: 8px; }
.accounting-day-button strong { margin-top: 2px; font-size: 10px; }
.accounting-daily-table { min-width: 650px; }
.accounting-matrix-toolbar { padding: 10px 14px; display: flex; align-items: flex-end; gap: 9px; background: #f8faf9; border-bottom: 1px solid var(--line); }
.accounting-matrix-toolbar label { min-width: 150px; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 8px; }
.accounting-matrix-toolbar label:first-child { min-width: 260px; }
.accounting-matrix-toolbar input,.accounting-matrix-toolbar select { width: 100%; height: 34px; padding: 0 9px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; font-size: 10px; }
.accounting-matrix-toolbar small { margin: 0 0 8px auto; color: var(--muted); font-size: 8px; }
.accounting-period-summary { display: grid; grid-template-columns: repeat(4,1fr); background: white; border-bottom: 1px solid var(--line); }
.accounting-period-summary article { padding: 11px 14px; border-right: 1px solid var(--line); }
.accounting-period-summary article:last-child { border-right: 0; }
.accounting-period-summary span,.accounting-period-summary strong,.accounting-period-summary small { display: block; }
.accounting-period-summary span { color: var(--muted); font-size: 8px; }
.accounting-period-summary strong { margin: 5px 0 2px; font-size: 16px; }
.accounting-period-summary small { color: var(--muted); font-size: 8px; }
.accounting-matrix-title { padding: 9px 14px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: white; background: var(--green-dark); text-align: center; font-size: 13px; font-weight: 800; }
.accounting-matrix-title small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,.78); font-size: 8px; font-weight: 500; }
.accounting-matrix-wrap { max-height: 670px; overflow: auto; }
.accounting-matrix-table { min-width: 1640px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.accounting-matrix-table th,.accounting-matrix-table td { height: 34px; padding: 5px 7px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 8px; white-space: nowrap; }
.accounting-matrix-table th { color: var(--green-dark); background: var(--green-soft); }
.accounting-matrix-table thead tr:nth-child(2) th { height: 27px; color: var(--muted); background: #f8faf9; font-size: 7px; }
.accounting-matrix-table th:first-child,.accounting-matrix-table td:first-child { width: 180px; position: sticky; left: 0; z-index: 2; text-align: left; background: white; font-weight: 700; }
.accounting-matrix-table thead th:first-child { z-index: 4; color: var(--ink); background: #f4f7f5; }
.accounting-matrix-table td:nth-last-child(4),.accounting-matrix-table td:nth-last-child(2),.accounting-matrix-table th:nth-last-child(4),.accounting-matrix-table th:nth-last-child(2),.accounting-matrix-table .period-start { border-left: 2px solid #aab9b1; }
.accounting-matrix-table tr.section td { color: var(--green-dark); background: var(--green-soft); font-weight: 800; }
.accounting-matrix-table tr.section td:first-child { background: var(--green-soft); }
.accounting-matrix-table tr.recovery td { color: var(--green); font-weight: 700; }
.accounting-matrix-table tr.profit td { color: var(--green-dark); background: #d9ebe2; border-top: 2px solid var(--green); font-weight: 900; }
.accounting-matrix-table tr.profit td:first-child { background: #d9ebe2; }
.accounting-matrix-table .ratio { color: #4f5f58; }
.accounting-capture-clone { position: fixed !important; top: 0; left: -20000px; z-index: -100; margin: 0 !important; background: white; box-shadow: none !important; }
.accounting-capture-clone .table-wrap,.accounting-capture-clone .accounting-matrix-wrap { max-height: none !important; overflow: visible !important; }
.accounting-capture-clone .accounting-matrix-table th:first-child,.accounting-capture-clone .accounting-matrix-table td:first-child { position: static; }
.accounting-screenshot:disabled,.accounting-dingtalk:disabled { opacity: .65; cursor: wait; }
.accounting-rule-window { width: min(760px, 100%); }
.accounting-rule-window .detail-body { padding: 18px 20px 26px; background: #f7faf8; }
.accounting-rule-primary { margin-bottom: 14px; padding: 13px 14px; display: flex; align-items: flex-start; gap: 10px; color: #365b4b; background: var(--green-soft); border: 1px solid #c9e2d4; border-left: 3px solid var(--green); }
.accounting-rule-primary svg { width: 17px; flex: 0 0 auto; color: var(--green); }
.accounting-rule-primary strong, .accounting-rule-primary span { display: block; }
.accounting-rule-primary strong { color: var(--ink); font-size: 11px; }
.accounting-rule-primary span { margin-top: 4px; font-size: 9px; line-height: 1.6; }
.accounting-rule-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.accounting-rule-list article { min-height: 72px; padding: 10px; display: grid; grid-template-columns: 26px 1fr; gap: 8px; background: white; border: 1px solid var(--line); }
.accounting-rule-list article > i { width: 24px; height: 24px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 800; }
.accounting-rule-list strong { display: block; font-size: 10px; }
.accounting-rule-list p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.profit-direction { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 800; }
.profit-direction.plus { color: var(--green); background: var(--green-soft); }
.profit-direction.minus { color: var(--red); background: var(--red-soft); }
.profit-direction.equal { color: var(--blue); background: var(--blue-soft); }
.profit-total-row { background: #f1f7f4; font-weight: 700; }
.profit-total-row td { border-top: 2px solid #bad4c8; }
.profit-analysis-foot { min-height: 46px; padding: 8px 14px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.profit-analysis-foot > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.profit-analysis-foot > span svg { width: 14px; color: var(--green); }
.profit-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.72fr); gap: 14px; align-items: start; }
.profit-form { padding: 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.profit-form label { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: #59645f; font-size: 10px; }
.profit-form label.wide { grid-column: span 2; }
.profit-form input, .profit-form select { width: 100%; height: 38px; padding: 0 10px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; }
.profit-form input:focus, .profit-form select:focus { border-color: #75a28e; box-shadow: 0 0 0 3px rgba(18,107,77,.08); }
.profit-results { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 84px; }
.profit-result-main { padding: 20px; color: white; background: #173f31; border: 1px solid #173f31; }
.profit-result-main span, .profit-result-main small { display: block; color: #abc4b8; font-size: 10px; }
.profit-result-main strong { display: block; margin: 8px 0 5px; font-size: 27px; }
.profit-result-grid { display: grid; grid-template-columns: 1fr 1fr; background: white; border: 1px solid var(--line); }
.profit-result-grid > div { min-height: 76px; padding: 13px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profit-result-grid > div:nth-child(2n) { border-right: 0; }
.profit-result-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.profit-result-grid span { color: var(--muted); font-size: 9px; }
.profit-result-grid strong { margin-top: 7px; font-size: 16px; }
.negative { color: var(--red) !important; }
.cost-composition { padding: 14px; background: white; border: 1px solid var(--line); }
.cost-composition > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.cost-composition h3 { margin: 0; font-size: 11px; }
.cost-composition b { font-size: 12px; }
.cost-stack { height: 11px; margin-top: 14px; display: flex; gap: 2px; overflow: hidden; background: #eef2f0; border-radius: 2px; }
.cost-stack i { display: block; height: 100%; background: var(--green); }
.cost-stack i:nth-child(2) { background: #d1a85d; }
.cost-stack i:nth-child(3) { background: #6486a0; }
.cost-legend { margin-top: 8px; display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }
.cost-legend span::before { content: ""; width: 6px; height: 6px; margin-right: 4px; display: inline-block; background: var(--green); border-radius: 1px; }
.cost-legend span:nth-child(2)::before { background: #d1a85d; }
.cost-legend span:nth-child(3)::before { background: #6486a0; }
.formula-note { padding: 11px 12px; display: flex; align-items: flex-start; gap: 8px; color: #53635c; background: var(--green-soft); border-left: 3px solid var(--green); }
.formula-note svg { flex: 0 0 auto; width: 15px; margin-top: 2px; }
.formula-note p { margin: 0; font-size: 9px; line-height: 1.65; }
.profit-save { width: 100%; }
.product-tests { margin-top: 14px; }
.product-tests table { min-width: 880px; }
.product-tests .entity-cell > div { display: flex; flex-direction: column; }
.product-tests .entity-cell small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.product-tests tbody tr { cursor: pointer; }
.order-ledger { margin-top: 14px; }
.promotion-page-heading .heading-actions { flex:0 0 auto; }
.promotion-view-tabs { display:inline-flex; align-items:center; border:1px solid var(--line-strong); border-radius:5px; overflow:hidden; }
.promotion-view-tabs button { height:34px; padding:0 13px; display:inline-flex; align-items:center; gap:6px; color:var(--muted); background:#fff; border:0; border-right:1px solid var(--line); cursor:pointer; font:inherit; font-size:10px; font-weight:700; }
.promotion-view-tabs button:last-child { border-right:0; }
.promotion-view-tabs button svg { width:14px; height:14px; }
.promotion-view-tabs button.active { color:var(--green); background:var(--green-soft); }
.promotion-platform-row { min-width:0; margin-top:14px; display:flex; align-items:center; gap:18px; border-bottom:1px solid var(--line); }
.promotion-platform-tabs { min-width:0; flex:1 1 auto; display:flex; align-items:flex-end; gap:24px; overflow-x:auto; scrollbar-width:thin; }
.promotion-platform-tabs button { min-width:max-content; height:44px; padding:0 2px; position:relative; display:inline-flex; align-items:center; gap:7px; color:var(--muted); background:transparent; border:0; cursor:pointer; font:inherit; font-size:12px; font-weight:700; line-height:1; }
.promotion-platform-tabs button::after { height:2px; position:absolute; right:0; bottom:-1px; left:0; background:transparent; content:""; }
.promotion-platform-tabs button:hover { color:var(--ink); }
.promotion-platform-tabs button.active { color:var(--green); }
.promotion-platform-tabs button.active::after { background:var(--green); }
.promotion-platform-tabs small { padding:2px 5px; color:#7c8794; background:#edf0f2; border-radius:3px; font-size:8px; font-weight:600; }
.promotion-platform-row > .promotion-export { flex:0 0 auto; margin-bottom:5px; white-space:nowrap; }
.promotion-raw-workspace { padding:0 18px 18px; background:#fff; border-bottom:1px solid var(--line); }
.promotion-raw-toolbar { min-height:66px; padding:12px 0; display:flex; align-items:flex-end; gap:12px; border-bottom:1px solid var(--line); }
.promotion-raw-toolbar > label { min-width:150px; display:flex; flex-direction:column; gap:5px; color:var(--muted); font-size:9px; }
.promotion-raw-toolbar input { width:100%; height:34px; padding:0 9px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; outline:0; font:inherit; }
.promotion-raw-toolbar input:focus { border-color:#75a28e; box-shadow:0 0 0 2px rgba(18,107,77,.08); }
.promotion-raw-toolbar .promotion-raw-search { min-width:260px; max-width:430px; flex:1 1 340px; }
.promotion-raw-search > div { position:relative; display:flex; align-items:center; }
.promotion-raw-search svg { width:15px; height:15px; position:absolute; left:9px; color:#8590a4; pointer-events:none; }
.promotion-raw-search input { padding-left:31px; }
.promotion-raw-actions { margin-left:auto; display:flex; align-items:center; gap:8px; }
.promotion-raw-actions button { white-space:nowrap; }
.promotion-raw-table { min-width:1420px; }
.promotion-raw-taofactory-table { min-width:3100px; }
.promotion-raw-pdd-table { min-width:1920px; }
.promotion-raw-table td small { display:block; margin-top:3px; color:var(--muted); font-size:8px; }
.promotion-raw-table code { color:#42526b; font:inherit; font-variant-numeric:tabular-nums; }
.promotion-raw-table td.promotion-product-title { width:420px; min-width:320px; max-width:460px; padding-top:10px; padding-bottom:10px; overflow-wrap:anywhere; white-space:normal; line-height:1.55; }
.promotion-raw-placeholder { min-height:360px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--muted); text-align:center; }
.promotion-raw-placeholder > svg { width:28px; height:28px; margin-bottom:4px; color:#91a19a; }
.promotion-raw-placeholder strong { color:var(--ink); font-size:13px; }
.promotion-raw-placeholder span { max-width:460px; font-size:10px; line-height:1.6; }
.promotion-raw-pager { min-height:50px; display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--muted); border-top:1px solid var(--line); font-size:10px; }
.promotion-raw-pager > div { display:flex; align-items:center; gap:6px; }
.promotion-raw-pager .icon-button { width:32px; min-width:32px; height:32px; min-height:32px; padding:0; }
.promotion-bi-workspace { padding:0 18px 18px; background:#fff; border-bottom:1px solid var(--line); }
.promotion-bi-toolbar { min-height:66px; padding:12px 0; display:flex; align-items:flex-end; gap:10px; border-bottom:1px solid var(--line); }
.promotion-bi-toolbar > label,.promotion-bi-grain { min-width:150px; display:flex; flex-direction:column; gap:5px; color:var(--muted); font-size:9px; }
.promotion-bi-toolbar input { width:100%; height:34px; padding:0 9px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; outline:0; font:inherit; }
.promotion-bi-toolbar input:focus { border-color:#75a28e; box-shadow:0 0 0 2px rgba(18,107,77,.08); }
.promotion-bi-grain { min-width:132px; }
.promotion-bi-grain > div { height:34px; display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--line-strong); border-radius:4px; overflow:hidden; }
.promotion-bi-grain button { color:var(--muted); background:#fff; border:0; border-right:1px solid var(--line); font:inherit; font-size:9px; cursor:pointer; }
.promotion-bi-grain button:last-child { border-right:0; }
.promotion-bi-grain button.active { color:var(--green); background:var(--green-soft); font-weight:700; }
.promotion-bi-refresh { margin-left:auto; }
.promotion-bi-state { min-height:360px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--muted); text-align:center; }
.promotion-bi-state > svg { width:28px; height:28px; color:#91a19a; }
.promotion-bi-state strong { color:var(--ink); font-size:13px; }
.promotion-bi-state span { max-width:520px; font-size:10px; line-height:1.6; }
.promotion-bi-state.error > svg { color:var(--red); }
.promotion-bi-warning { min-height:40px; padding:8px 0; display:flex; align-items:center; gap:7px; color:#8a641f; border-bottom:1px solid #eadbbf; font-size:9px; }
.promotion-bi-warning svg { width:14px; height:14px; flex:0 0 auto; }
.promotion-bi-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-bottom:1px solid var(--line); }
.promotion-bi-kpis > div { min-width:0; min-height:92px; padding:15px 16px; display:flex; flex-direction:column; border-right:1px solid var(--line); }
.promotion-bi-kpis > div:last-child { border-right:0; }
.promotion-bi-kpis span,.promotion-bi-kpis small { color:var(--muted); font-size:9px; }
.promotion-bi-kpis strong { margin:8px 0 5px; overflow:hidden; text-overflow:ellipsis; color:var(--ink); font-size:20px; white-space:nowrap; }
.promotion-bi-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr); border-bottom:1px solid var(--line); }
.promotion-bi-section { min-width:0; padding:16px 0 12px; }
.promotion-bi-trend { padding-right:18px; border-right:1px solid var(--line); }
.promotion-bi-structure { padding-left:18px; }
.promotion-bi-section-head { min-height:38px; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.promotion-bi-section-head h2 { margin:0; font-size:12px; }
.promotion-bi-section-head p { margin:4px 0 0; color:var(--muted); font-size:9px; }
.promotion-bi-legend { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:9px; }
.promotion-bi-legend span { display:flex; align-items:center; gap:5px; }
.promotion-bi-legend span::before { width:14px; height:2px; background:var(--green); content:""; }
.promotion-bi-legend .gmv::before { background:#c08a32; }
.promotion-bi-chart { height:300px; }
.promotion-bi-chart canvas { width:100%; height:100%; }
.promotion-bi-ranking { padding:14px 0 6px; display:flex; flex-direction:column; gap:13px; }
.promotion-bi-rank { min-width:0; display:flex; flex-direction:column; gap:6px; }
.promotion-bi-rank-head { min-width:0; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.promotion-bi-rank-head > span { min-width:0; overflow:hidden; color:var(--ink); text-overflow:ellipsis; font-size:10px; white-space:nowrap; }
.promotion-bi-rank-head strong { flex:0 0 auto; color:var(--ink); font-size:10px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.promotion-bi-rank-track { height:6px; overflow:hidden; background:#e9efec; border-radius:2px; }
.promotion-bi-rank-track i { height:100%; display:block; background:var(--green); }
.promotion-bi-rank-meta { display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--muted); font-size:9px; font-variant-numeric:tabular-nums; }
.promotion-bi-rank-meta small { color:inherit; font-size:inherit; }
.promotion-bi-segmented { flex:0 0 auto; display:flex; border:1px solid var(--line-strong); border-radius:4px; overflow:hidden; }
.promotion-bi-segmented button { min-height:28px; padding:0 9px; color:var(--muted); background:#fff; border:0; border-right:1px solid var(--line); font:inherit; font-size:9px; cursor:pointer; white-space:nowrap; }
.promotion-bi-segmented button:last-child { border-right:0; }
.promotion-bi-segmented button.active { color:var(--green); background:var(--green-soft); font-weight:700; }
.promotion-bi-segmented button:disabled { color:#9ba5a0; background:#f4f6f5; cursor:not-allowed; }
.promotion-bi-detail-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); border-bottom:1px solid var(--line); }
.promotion-bi-detail-grid.single { grid-template-columns:1fr; }
.promotion-bi-detail-grid.single .promotion-bi-comparison { padding-left:0; }
.promotion-bi-funnel-section { padding-right:18px; border-right:1px solid var(--line); }
.promotion-bi-comparison { padding-left:18px; }
.promotion-bi-funnel { min-height:240px; padding:16px 12px 14px; display:flex; align-items:center; justify-content:center; }
.promotion-bi-funnel-visual { position:relative; width:min(100%,520px); height:216px; }
.promotion-bi-funnel-shape { width:100%; height:100%; display:grid; grid-template-rows:repeat(3,1fr); overflow:hidden; clip-path:polygon(0 0,100% 0,66% 100%,34% 100%); filter:drop-shadow(0 5px 8px rgba(31,86,66,.12)); }
.promotion-bi-funnel-stage { min-width:0; padding:8px 20%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; color:#fff; text-align:center; background:#246f56; }
.promotion-bi-funnel-stage.click { background:#4c8b73; }
.promotion-bi-funnel-stage.order { background:#7ba892; }
.promotion-bi-funnel-stage span { color:rgba(255,255,255,.88); font-size:10px; line-height:1; }
.promotion-bi-funnel-stage strong { color:#fff; font-size:15px; line-height:1.1; font-variant-numeric:tabular-nums; white-space:nowrap; }
.promotion-bi-funnel-conversion { position:absolute; left:50%; z-index:1; min-height:26px; padding:4px 10px; display:flex; align-items:center; justify-content:center; gap:5px; transform:translate(-50%,-50%); color:var(--muted); background:#fff; border:1px solid var(--line); border-radius:4px; box-shadow:0 2px 6px rgba(31,86,66,.08); font-size:9px; line-height:1; white-space:nowrap; }
.promotion-bi-funnel-conversion.exposure-to-click { top:33.333%; }
.promotion-bi-funnel-conversion.click-to-order { top:66.666%; }
.promotion-bi-funnel-conversion svg { width:12px; height:12px; color:var(--green); }
.promotion-bi-funnel-conversion strong { color:var(--green); font-size:10px; font-variant-numeric:tabular-nums; }
.promotion-bi-rates,.promotion-bi-compare-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid var(--line); }
.promotion-bi-rates > div,.promotion-bi-compare-grid > div { min-width:0; padding:10px 8px; display:flex; flex-direction:column; gap:5px; border-right:1px solid var(--line); }
.promotion-bi-rates > div:last-child,.promotion-bi-compare-grid > div:last-child { border-right:0; }
.promotion-bi-rates span,.promotion-bi-compare-grid span,.promotion-bi-compare-grid small { color:var(--muted); font-size:8px; }
.promotion-bi-rates strong { font-size:11px; }
.promotion-bi-compare-grid { margin-top:16px; grid-template-columns:1fr 1fr; border:1px solid var(--line); }
.promotion-bi-compare-grid > div:nth-child(2) { border-right:0; }
.promotion-bi-compare-grid > div:nth-child(-n+2) { border-bottom:1px solid var(--line); }
.promotion-bi-compare-grid strong { font-size:15px; }
.promotion-bi-unavailable { min-height:180px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:var(--muted); text-align:center; }
.promotion-bi-unavailable svg { width:22px; height:22px; color:#91a19a; }
.promotion-bi-unavailable strong { color:var(--ink); font-size:11px; }
.promotion-bi-unavailable span { font-size:9px; }
.promotion-bi-products,.promotion-bi-anomalies { border-bottom:1px solid var(--line); }
.promotion-bi-product-table { min-width:980px; }
.promotion-bi-product-table.spend-only { min-width:720px; }
.promotion-bi-product-table td strong,.promotion-bi-product-table td small { display:block; }
.promotion-bi-product-table td small { margin-top:3px; color:var(--muted); font-size:8px; font-variant-numeric:tabular-nums; }
.promotion-bi-anomalies table { min-width:760px; }
.promotion-bi-anomaly-count { color:var(--muted); font-size:9px; }
.promotion-bi-inline-empty { padding:28px 12px !important; color:var(--muted); text-align:center !important; font-size:9px; }
.product-tracking-heading { margin-bottom: 14px; }
.product-tracking-heading .heading-actions { flex: 0 0 auto; }
.product-tracking-executive { display: grid; grid-template-columns: minmax(250px,1.05fr) minmax(420px,1.75fr) minmax(270px,1fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.product-tracking-result,.product-tracking-period { min-width: 0; padding: 17px 19px; display: flex; flex-direction: column; justify-content: center; }
.product-tracking-result { border-right: 1px solid var(--line); }
.product-tracking-result > span,.product-tracking-period > small,.product-tracking-facts span { color: var(--muted); font-size: 9px; }
.product-tracking-result > strong { margin: 5px 0 4px; font-size: 27px; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.product-tracking-result > small { color: var(--muted); font-size: 9px; }
.product-tracking-facts { min-width: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-right: 1px solid var(--line); }
.product-tracking-facts > div { min-width: 0; padding: 14px 12px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.product-tracking-facts > div:last-child { border-right: 0; }
.product-tracking-facts strong { margin-top: 5px; font-size: 18px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.product-tracking-facts small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.product-tracking-period { align-items: flex-start; gap: 5px; }
.product-tracking-period .status { margin-bottom: 2px; }
.product-tracking-period > strong { font-size: 11px; font-variant-numeric: tabular-nums; }
.product-tracking-workbench { margin-top: 12px; position: relative; overflow: visible; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.product-tracking-filterbar { min-width: 0; height: 56px; padding: 10px 12px; display: flex; align-items: center; gap: 7px; overflow: visible; background: #f8fafc; border-radius: 6px 6px 0 0; }
.product-tracking-filterbar label { min-width: 0; height: 34px; flex: 0 0 auto; display: flex; align-items: center; color: var(--muted); background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 8px; font-weight: 700; }
.product-tracking-filterbar label > span { flex: 0 0 auto; padding: 0 8px; white-space: nowrap; }
.product-tracking-filterbar input,.product-tracking-filterbar select { min-width: 0; width: 104px; height: 32px; padding: 0 8px; color: var(--ink); background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; outline: 0; font: inherit; font-size: 10px; }
.product-tracking-filterbar label:focus-within { border-color: #7d9ae7; box-shadow: 0 0 0 3px rgba(49,91,216,.09); }
.product-tracking-filterbar .tracking-search { min-width: 150px; flex: 1 1 230px; }
.product-tracking-filterbar .tracking-search > div { min-width: 0; flex: 1; position: relative; display: flex; align-items: center; border-left: 1px solid var(--line); }
.product-tracking-filterbar .tracking-search svg { position: absolute; left: 9px; z-index: 1; width: 14px; height: 14px; color: #8290a5; pointer-events: none; }
.product-tracking-filterbar .tracking-search input { width: 100%; padding-left: 30px; border-left: 0; }
.product-tracking-filterbar .tracking-platform-primary select { width: 92px; }
.product-tracking-filterbar .tracking-owner-primary select { width: 105px; }
.tracking-range-filter,.tracking-more-filter { position: relative; flex: 0 0 auto; }
.tracking-range-filter > summary,.tracking-more-filter > summary { height: 34px; padding: 0 9px; display: flex; align-items: center; gap: 6px; color: #445064; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; list-style: none; white-space: nowrap; font-size: 9px; font-weight: 700; }
.tracking-range-filter > summary::-webkit-details-marker,.tracking-more-filter > summary::-webkit-details-marker { display: none; }
.tracking-range-filter > summary svg,.tracking-more-filter > summary svg { width: 13px; height: 13px; color: #6b7a91; }
.tracking-range-filter > summary svg:last-child,.tracking-more-filter > summary svg:last-child { width: 12px; transition: transform .15s ease; }
.tracking-range-filter[open] > summary,.tracking-more-filter[open] > summary { color: var(--green); border-color: #8fb6a6; box-shadow: 0 0 0 3px rgba(35,111,86,.08); }
.tracking-range-filter[open] > summary svg:last-child,.tracking-more-filter[open] > summary svg:last-child { transform: rotate(180deg); }
.tracking-more-filter > summary b { min-width: 17px; height: 17px; padding: 0 5px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 9px; font-size: 8px; }
.tracking-filter-popover { position: absolute; top: calc(100% + 7px); right: 0; z-index: 30; width: 250px; padding: 12px; display: grid; gap: 10px; background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; box-shadow: 0 12px 28px rgba(24,42,78,.17); }
.tracking-range-popover { width: 284px; grid-template-columns: 1fr 1fr; right: auto; left: 0; }
.product-tracking-filterbar .tracking-filter-popover label { width: 100%; height: auto; display: grid; gap: 5px; color: var(--muted); background: transparent; border: 0; }
.product-tracking-filterbar .tracking-filter-popover label > span { padding: 0; }
.product-tracking-filterbar .tracking-filter-popover input,.product-tracking-filterbar .tracking-filter-popover select { width: 100%; height: 34px; padding: 0 8px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 10px; }
.tracking-mobile-fields { display: none; }
.product-tracking-filterbar > .icon-button { width: 34px; min-width: 34px; height: 34px; flex: 0 0 34px; color: #607089; background: #fff; border: 1px solid var(--line-strong); }
.product-tracking-filterbar > .icon-button:hover { color: var(--green); background: #f2f7f4; }
.product-tracking-decisions { min-height: 44px; display: flex; align-items: stretch; overflow-x: auto; border-top: 1px solid var(--line); }
.product-tracking-decisions > span { flex: 0 0 auto; padding: 0 14px; display: flex; align-items: center; color: var(--muted); background: #fbfcfd; border-right: 1px solid var(--line); font-size: 9px; font-weight: 700; white-space: nowrap; }
.product-tracking-decisions button,.product-tracking-unmapped { flex: 0 0 auto; min-width: 165px; padding: 0 13px; display: flex; align-items: center; gap: 7px; color: #445064; background: #fff; border: 0; border-right: 1px solid var(--line); white-space: nowrap; }
.product-tracking-decisions button { cursor: pointer; }
.product-tracking-decisions button svg,.product-tracking-unmapped svg { width: 14px; height: 14px; color: #6b7a91; }
.product-tracking-decisions button span,.product-tracking-unmapped span { font-size: 9px; }
.product-tracking-decisions button strong,.product-tracking-unmapped strong { margin-left: auto; color: var(--ink); font-size: 10px; font-variant-numeric: tabular-nums; }
.product-tracking-unmapped { color: var(--muted); background: #fbfcfd; }
.product-tracking-decisions button:hover { background: #f7f9fc; }
.product-tracking-decisions button.active { color: #235944; background: #edf6f1; box-shadow: inset 0 -2px 0 var(--green); }
.product-tracking-decisions button.active svg,.product-tracking-decisions button.active strong { color: var(--green); }
.product-tracking-feedback { min-height: 42px; margin-top: 12px; padding: 9px 12px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 5px; font-size: 9px; }
.product-tracking-feedback svg { flex: 0 0 auto; width: 15px; height: 15px; }
.product-tracking-feedback span { flex: 1 1 auto; }
.product-tracking-feedback.warning { color: #8a5b15; background: #fff9ec; border-color: #eeddb6; }
.product-tracking-feedback.danger { color: #9b3740; background: #fff4f4; border-color: #edc8cc; }
.product-tracking-feedback.loading { color: #315bd8; background: #f4f7ff; border-color: #d7e0f5; }
.product-tracking-feedback.loading svg { animation: button-spin .8s linear infinite; }
.product-tracking-ledger { margin-top: 12px; }
.product-tracking-table { min-width: 1280px; }
.product-tracking-table th:nth-child(1) { min-width: 210px; }
.product-tracking-table th:nth-child(2) { min-width: 190px; }
.product-tracking-table th:nth-child(8) { min-width: 245px; }
.product-tracking-table tbody tr { cursor: pointer; }
.product-tracking-table tbody tr:hover { background: #f7fbf8; }
.product-tracking-table td > strong { display: block; font-size: 10px; }
.product-tracking-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.product-tracking-table .tracking-alert { display: inline-flex; margin: 2px 3px 2px 0; }
.product-tracking-table .positive { color: var(--green); }
.product-tracking-table .negative { color: #b14d47; }
.product-tracking-leader { color: #506178 !important; }
.product-tracking-pager { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.product-tracking-pager > div { display: flex; gap: 8px; }
.product-tracking-detail-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); }
.product-tracking-detail-summary > div { min-width: 0; padding: 14px; display: flex; flex-direction: column; gap: 5px; border-right: 1px solid var(--line); }
.product-tracking-detail-summary > div:last-child { border-right: 0; }
.product-tracking-detail-summary span { color: var(--muted); font-size: 9px; }
.product-tracking-detail-summary strong { font-size: 15px; }
.product-tracking-conclusion { margin-top: 14px; }
.product-tracking-detail-section { margin-top: 14px; }
.product-tracking-detail-table { min-width: 560px; }
.product-tracking-detail-table.seller { min-width: 1180px; }
.product-tracking-detail-table.trend { min-width: 720px; }
.product-tracking-detail-table td, .product-tracking-detail-table th { font-size: 10px; }
.product-tracking-detail-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.product-tracking-trend-bar { width: 150px; height: 6px; overflow: hidden; background: #e7eeea; }
.product-tracking-trend-bar i { display: block; height: 100%; background: var(--green); }
@media (max-width: 1180px) {
  .product-tracking-executive { grid-template-columns: minmax(230px,.9fr) minmax(420px,1.6fr); }
  .product-tracking-facts { border-right: 0; }
  .product-tracking-period { grid-column: 1 / -1; padding: 11px 17px; flex-direction: row; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); }
  .product-tracking-period > small { margin-left: auto; }
}
@media (max-width: 760px) {
  .product-tracking-heading { align-items: flex-end; flex-direction: row; gap: 12px; }
  .product-tracking-heading > div:first-child { min-width: 0; flex: 1 1 auto; }
  .product-tracking-heading .heading-actions,.product-tracking-heading .secondary-button { width: auto; flex: 0 0 auto; }
  .product-tracking-executive { grid-template-columns: 1fr; }
  .product-tracking-result { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-tracking-facts { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .product-tracking-facts > div:nth-child(2) { border-right: 1px solid var(--line); }
  .product-tracking-facts > div:nth-child(-n+2) { border-bottom: 0; }
  .product-tracking-period { grid-column: auto; align-items: flex-start; flex-direction: column; }
  .product-tracking-period > small { margin-left: 0; }
  .product-tracking-filterbar { height: 54px; padding: 9px 10px; gap: 6px; }
  .product-tracking-filterbar .tracking-search { min-width: 0; flex: 1 1 auto; }
  .product-tracking-filterbar .tracking-search > span { display: none; }
  .tracking-range-filter,.product-tracking-filterbar .tracking-primary { display: none; }
  .tracking-mobile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .tracking-mobile-fields label:nth-child(n+3) { grid-column: 1 / -1; }
  .tracking-more-filter > summary { width: 39px; padding: 0; justify-content: center; }
  .tracking-more-filter > summary > span,.tracking-more-filter > summary > svg:last-child { display: none; }
  .tracking-more-filter > summary b { position: absolute; top: -5px; right: -5px; }
  .tracking-more-popover { width: min(310px,calc(100vw - 44px)); }
  .product-tracking-decisions { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .product-tracking-decisions > span { min-height: 38px; grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .product-tracking-decisions button,.product-tracking-unmapped { min-width: 0; min-height: 44px; border-bottom: 1px solid var(--line); }
  .product-tracking-decisions button:nth-of-type(2),.product-tracking-unmapped { border-right: 0; }
  .product-tracking-decisions button:nth-of-type(3),.product-tracking-unmapped { border-bottom: 0; }
  .product-tracking-pager { align-items: stretch; flex-direction: column; }
  .product-tracking-pager > div,.product-tracking-pager button { width: 100%; }
  .product-tracking-detail-summary { grid-template-columns: 1fr 1fr; }
  .product-tracking-detail-summary > div:nth-child(2) { border-right: 0; }
  .product-tracking-detail-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.return-rate-table { min-width: 1940px; }
.return-rate-table .entity-cell > div { display: flex; flex-direction: column; }
.return-rate-table .entity-cell small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.return-rate-table tbody tr { cursor: pointer; }
.catalog-ledger { margin-top: 14px; }
.catalog-table { min-width: 1540px; }
.catalog-table th { white-space: nowrap; }
.catalog-table th:nth-child(1) { min-width: 220px; }
.catalog-table th:nth-child(2) { min-width: 120px; }
.catalog-table th:nth-child(3) { min-width: 110px; }
.catalog-table th:nth-child(4) { min-width: 90px; }
.catalog-table th:nth-child(5) { min-width: 100px; }
.catalog-table th:nth-child(6) { min-width: 110px; }
.catalog-table th:nth-child(7) { min-width: 260px; }
.catalog-table th:nth-child(8) { min-width: 220px; }
.catalog-table th:nth-child(9) { min-width: 250px; }
.catalog-table tbody tr { cursor: pointer; }
.catalog-product-cost { min-width: 130px; }
.catalog-product-cost small { display:block; margin-top:3px; color:var(--muted); font-size:9px; }
.product-cost-version-ledger .panel-header { gap:18px; }
.product-cost-workspace { overflow:hidden; }
.product-cost-workspace > .panel-header { min-height:60px; gap:18px; }
.product-cost-workspace .product-cost-filterbar { border-top:0; }
.product-cost-compact-version { min-height:48px; padding:8px 14px; display:grid; grid-template-columns:minmax(220px,1fr) 180px auto; align-items:center; gap:8px; background:#fbfcfe; border-bottom:1px solid var(--line); }
.product-cost-compact-version > span { min-width:0; display:flex; align-items:baseline; gap:9px; }
.product-cost-compact-version b { color:var(--ink); font-size:10px; }
.product-cost-compact-version small { min-width:0; overflow:hidden; color:var(--muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.product-cost-compact-version select { width:100%; height:34px; padding:0 28px 0 9px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; outline:0; font-size:10px; }
.product-cost-compact-version select:focus { border-color:#7d9ae7; box-shadow:0 0 0 3px rgba(49,91,216,.09); }
.product-cost-filterbar { min-height:54px; padding:9px 14px; display:flex; align-items:end; justify-content:space-between; gap:12px; background:#f8fafc; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.product-cost-search { min-width:260px; display:grid; gap:5px; }
.product-cost-search > span { color:var(--muted); font-size:8px; }
.product-cost-search > div { position:relative; }
.product-cost-search svg { width:14px; position:absolute; top:10px; left:9px; color:#8390a5; }
.product-cost-search input { width:100%; height:34px; padding:0 10px 0 30px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; outline:0; font-size:10px; }
.product-cost-search input:focus { border-color:#7d9ae7; box-shadow:0 0 0 3px rgba(49,91,216,.09); }
.product-cost-filter-summary { padding-bottom:8px; color:var(--muted); font-size:9px; }
.product-cost-pager { min-height:54px; padding:8px 14px; display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--muted); border-top:1px solid var(--line); font-size:9px; }
.product-cost-pager > div { display:flex; align-items:center; gap:8px; }
.product-cost-pager b { min-width:74px; color:var(--ink); font-size:9px; text-align:center; }
.product-cost-pager button:disabled { cursor:not-allowed; opacity:.45; }
.product-cost-page-size { height:34px; padding-left:9px; display:flex; align-items:center; gap:7px; background:#fff; border:1px solid var(--line-strong); border-radius:4px; }
.product-cost-page-size select { height:32px; padding:0 26px 0 8px; color:var(--ink); background:#fff; border:0; border-left:1px solid var(--line); outline:0; font:inherit; cursor:pointer; }
@media(max-width:760px){.product-cost-workspace>.panel-header{align-items:stretch;flex-direction:column}.product-cost-workspace .product-cost-import-controls{width:100%;display:grid;grid-template-columns:1fr}.product-cost-workspace .product-cost-import-month-field,.product-cost-workspace .product-cost-import-month-field input,.product-cost-workspace .product-cost-import-controls button{width:100%}.product-cost-compact-version{grid-template-columns:1fr}.product-cost-compact-version>span{align-items:flex-start;flex-direction:column;gap:3px}.product-cost-compact-version small{white-space:normal}.product-cost-compact-version button{width:100%;justify-content:center}.product-cost-filterbar{align-items:stretch;flex-direction:column}.product-cost-search{width:100%;min-width:0}.product-cost-filter-summary{padding-bottom:0}.product-cost-pager{align-items:stretch;flex-direction:column}.product-cost-pager>div{display:grid;grid-template-columns:1fr 1fr}.product-cost-pager b{grid-column:1/-1;grid-row:1;text-align:left}.product-cost-page-size{grid-column:1/-1}.product-cost-pager button{width:100%}}
.product-cost-period-control { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex:0 0 auto; }
.product-cost-period-control>span { color:var(--muted); font-size:9px; font-weight:700; white-space:nowrap; }
.product-cost-period-select { width:150px; height:36px; padding:0 10px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; outline:0; font-size:10px; }
.product-cost-period-select:focus { border-color:#7d9ae7; box-shadow:0 0 0 3px rgba(49,91,216,.09); }
.product-cost-period-control .product-cost-period-activate { min-width:112px; justify-content:center; }
.return-timing-grid { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); }
.return-timing-grid > div { min-height: 72px; padding: 13px 14px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.return-timing-grid > div:last-child { border-right: 0; }
.return-timing-grid span, .return-timing-grid small { color: var(--muted); font-size: 9px; }
.return-timing-grid strong { margin: 7px 0 3px; font-size: 14px; }
.return-date-filter { padding: 12px 14px; display: grid; grid-template-columns: repeat(3,minmax(150px,1fr)) auto; gap: 10px; align-items: end; background: #f3f7f5; border-bottom: 1px solid var(--line); }
.return-date-filter label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 9px; }
.return-date-filter select, .return-date-filter input { width: 100%; height: 34px; padding: 0 9px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; }
.return-product-selector { padding: 14px; display: grid; grid-template-columns: minmax(360px,1.4fr) minmax(220px,.6fr); gap: 12px; align-items: end; background: #f8faf9; border-bottom: 1px solid var(--line); }
.return-product-selector label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 9px; }
.return-product-selector label > div { display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; background: white; border: 1px solid var(--line-strong); border-radius: 4px; }
.return-product-selector label svg { width: 14px; margin-left: 8px; }
.return-product-input { min-width: 0; height: 38px; padding: 0 8px; border: 0; outline: 0; }
.return-product-selector .primary-button { margin: 3px; height: 32px; }
.return-selected-product { min-height: 56px; padding: 9px 12px; display: flex; flex-direction: column; justify-content: center; background: var(--green-soft); border-left: 3px solid var(--green); }
.return-selected-product span,.return-selected-product small { color: var(--muted); font-size: 9px; }
.return-selected-product strong { margin: 4px 0; font-size: 13px; }
.return-analysis { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); }
.return-analysis > div { min-height: 86px; padding: 13px 14px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.return-analysis > div:last-child { border-right: 0; }
.return-analysis span,.return-analysis small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.return-analysis strong { margin: 7px 0 4px; font-size: 14px; }
.return-platform-title { border-top: 1px solid var(--line); }
.return-snapshot-filterbar { padding: 10px 14px; display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)) auto; gap: 10px; align-items: end; background: #f3f7f5; border-bottom: 1px solid var(--line); }
.return-snapshot-filterbar label { min-width: 0; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 9px; }
.return-snapshot-filterbar select { width: 100%; height: 34px; padding: 0 9px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; }
.return-snapshot-filterbar .secondary-button { height: 34px; white-space: nowrap; }
.return-ops-brief { position: relative; padding: 18px 20px 14px; color: var(--ink); background: #fff; border-top: 3px solid var(--green); border-bottom: 1px solid var(--line); }
.return-ops-brief > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.return-ops-brief > header span { color: var(--green); font-size: 9px; font-weight: 800; }
.return-ops-brief > header h3 { margin: 5px 0 3px; font-size: 20px; letter-spacing: 0; }
.return-ops-brief > header p { margin: 0; color: var(--muted); font-size: 9px; }
.return-ops-actions { display: flex; gap: 8px; }
.return-ops-actions button { height: 34px; }
.return-ops-sales { margin-top: 16px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 14px; align-items: center; background: #f3f7f5; border: 1px solid var(--line); }
.return-ops-sales > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.return-ops-sales > i { width: 18px; color: var(--green); }
.return-ops-sales span,.return-ops-sales small { color: var(--muted); font-size: 8px; }
.return-ops-sales strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.return-ops-metrics { margin-top: 16px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.return-ops-metrics > div { min-height: 78px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.return-ops-metrics > div:last-child { border-right: 0; }
.return-ops-metrics span,.return-ops-metrics small { color: var(--muted); font-size: 8px; }
.return-ops-metrics strong,.return-ops-metrics .status { width: fit-content; margin: 6px 0 4px; font-size: 16px; }
.return-ops-conclusion { padding: 13px 14px; display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 14px; align-items: center; background: var(--green-soft); border-left: 3px solid var(--green); }
.return-ops-conclusion > div { display: flex; flex-direction: column; gap: 5px; }
.return-ops-conclusion span { color: var(--muted); font-size: 8px; }
.return-ops-conclusion strong { color: var(--green-dark); font-size: 14px; }
.return-ops-conclusion p { margin: 0; color: #40534b; font-size: 10px; line-height: 1.65; }
.return-ops-conclusion.warning { background: #fff8e7; border-left-color: #d89716; }
.return-ops-conclusion.warning strong { color: #996500; }
.return-ops-conclusion.danger { background: #fff0f0; border-left-color: #d84b4b; }
.return-ops-conclusion.danger strong { color: #b42323; }
.return-ops-platforms { margin-top: 14px; }
.return-ops-platforms h4 { margin: 0 0 8px; font-size: 11px; }
.return-ops-platforms table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.return-ops-platforms th,.return-ops-platforms td { height: 34px; padding: 0 8px; border-bottom: 1px solid var(--line); font-size: 9px; text-align: left; }
.return-ops-platforms th { color: var(--muted); background: #f7f9f8; font-weight: 700; }
.return-ops-platforms .status { padding: 2px 5px; font-size: 8px; }
.return-ops-brief > footer { padding-top: 10px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.return-ops-capture-clone { position: fixed !important; top: 0; left: -20000px; z-index: -100; box-shadow: none !important; }
.return-ops-download:disabled { opacity: .65; cursor: wait; }
.return-platform-table { width: 100%; min-width: 0; table-layout: fixed; }
.return-platform-table th,
.return-platform-table td { padding: 0 7px; overflow: hidden; font-size: 9px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.return-platform-table th { height: 34px; }
.return-platform-table td { height: 44px; }
.return-platform-table th:nth-child(1),
.return-platform-table td:nth-child(1) { width: 8%; }
.return-platform-table th:nth-child(2),
.return-platform-table td:nth-child(2),
.return-platform-table th:nth-child(6),
.return-platform-table td:nth-child(6) { width: 8%; }
.return-platform-table th:nth-child(3),
.return-platform-table td:nth-child(3),
.return-platform-table th:nth-child(7),
.return-platform-table td:nth-child(7) { width: 12%; }
.return-platform-table th:nth-child(4),
.return-platform-table td:nth-child(4),
.return-platform-table th:nth-child(8),
.return-platform-table td:nth-child(8) { width: 11%; }
.return-platform-table th:nth-child(5),
.return-platform-table td:nth-child(5),
.return-platform-table th:nth-child(9),
.return-platform-table td:nth-child(9) { width: 8%; }
.return-platform-table th:nth-child(10),
.return-platform-table td:nth-child(10) { width: 14%; }
.return-platform-table .status { padding: 2px 5px; font-size: 8px; }
@media (max-width: 1100px) {
  .return-platform-table { min-width: 980px; table-layout: auto; }
  .return-platform-table th,
  .return-platform-table td { padding: 0 8px; }
}
@media (max-width: 760px) {
  .return-snapshot-filterbar { grid-template-columns: 1fr 1fr; }
  .return-snapshot-filterbar .secondary-button { width: 100%; }
  .return-ops-brief > header { flex-direction: column; }
  .return-ops-actions { width: 100%; }
  .return-ops-actions button { flex: 1; }
  .return-ops-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .return-ops-metrics > div:nth-child(2) { border-right: 0; }
  .return-ops-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .return-ops-sales { grid-template-columns: 1fr; }
  .return-ops-sales > i { transform: rotate(90deg); }
  .return-ops-conclusion { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .return-snapshot-filterbar { grid-template-columns: 1fr; }
}
.rule-settings-panel { margin-top: 14px; }
.rule-config-grid { padding: 16px; display: grid; grid-template-columns: repeat(4,minmax(150px,1fr)); gap: 13px; background: #f8faf9; border-bottom: 1px solid var(--line); }
.rule-config-grid label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 9px; }
.rule-config-grid input, .rule-config-grid select { width: 100%; height: 36px; padding: 0 9px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; }
.rule-definition-table { min-width: 980px; }
.platform-accounting-rule-panel { margin-top: 14px; overflow: hidden; }
.platform-accounting-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-bottom: 1px solid var(--line); background: #f8faf9; }
.platform-accounting-tabs button { min-height: 52px; padding: 8px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); background: transparent; border: 0; border-right: 1px solid var(--line); cursor: pointer; }
.platform-accounting-tabs button:last-child { border-right: 0; }
.platform-accounting-tabs button.active { color: var(--green-dark); background: white; box-shadow: inset 0 3px 0 var(--green); }
.platform-accounting-tabs span { font-size: 10px; font-weight: 800; }
.platform-accounting-tabs small { font-size: 8px; }
.platform-accounting-editor { padding: 16px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; border-bottom: 1px solid var(--line); }
.platform-accounting-editor label { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 9px; }
.platform-accounting-editor select,.platform-accounting-editor input { width: 100%; height: 36px; padding: 0 9px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; }
.platform-accounting-editor label > small { line-height: 1.45; }
.platform-accounting-editor .percent-input { display: grid; grid-template-columns: minmax(0,1fr) 32px; align-items: center; border: 1px solid var(--line-strong); border-radius: 4px; background: white; }
.platform-accounting-editor .percent-input input { border: 0; }
.platform-accounting-editor .percent-input b { text-align: center; font-size: 9px; }
.platform-store-rate-head { min-height: 64px; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #f8faf9; border-bottom: 1px solid var(--line); }
.platform-store-rate-head strong,.platform-store-rate-head small { display: block; }
.platform-store-rate-head strong { font-size: 10px; }
.platform-store-rate-head small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.platform-store-rate-head > div:last-child { min-width: 360px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.platform-store-rate-head input { min-width: 0; height: 34px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; }
.platform-store-rate-table { min-width: 980px; }
.platform-store-rate-table th:nth-child(1) { width: 34%; }
.platform-store-rate-table th:nth-child(2) { width: 12%; }
.platform-store-rate-table th:nth-child(3) { width: 20%; }
.platform-store-rate-table td strong,.platform-store-rate-table td small { display: block; }
.platform-store-rate-table td small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.platform-store-rate-table .percent-input { width: 170px; display: grid; grid-template-columns: minmax(0,1fr) 30px; align-items: center; background: white; border: 1px solid var(--line-strong); border-radius: 4px; }
.platform-store-rate-table .percent-input input { min-width: 0; height: 32px; padding: 0 8px; border: 0; outline: 0; }
.platform-store-rate-table .percent-input b { text-align: center; font-size: 9px; }
.platform-accounting-formula { min-height: 58px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; color: #365b4b; background: var(--green-soft); border-top: 1px solid #c9e2d4; }
.platform-accounting-formula svg { width: 17px; flex: 0 0 auto; color: var(--green); }
.platform-accounting-formula strong,.platform-accounting-formula span { display: block; }
.platform-accounting-formula strong { color: var(--ink); font-size: 10px; }
.platform-accounting-formula span { margin-top: 4px; font-size: 9px; line-height: 1.5; }
.courier-simulator, .courier-actual { margin-top: 14px; }
.courier-controls { padding: 14px; display: grid; grid-template-columns: repeat(3,minmax(150px,1fr)) minmax(180px,.9fr); gap: 11px; align-items: end; background: #f8faf9; border-bottom: 1px solid var(--line); }
.courier-controls label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 9px; }
.courier-controls select, .courier-controls input, .courier-actual-filter { width: 100%; height: 36px; padding: 0 9px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; }
.courier-dimensions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.courier-dimensions input { min-width: 0; padding: 0 6px; text-align: center; }
.courier-batch-panel { margin-top: 14px; }
.courier-batch-summary { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); }
.courier-batch-summary > div { min-height: 78px; padding: 13px 14px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.courier-batch-summary > div:last-child { border-right: 0; }
.courier-batch-summary span,.courier-batch-summary small { color: var(--muted); font-size: 9px; }
.courier-batch-summary strong { margin: 7px 0 3px; font-size: 14px; }
.courier-batch-table { min-width: 1540px; }
.courier-batch-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.courier-rate-ledger { margin-top: 14px; }
.courier-rate-ledger-table { min-width: 2300px; }
.courier-rate-ledger-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.courier-company-quote-panel { margin-top: 14px; }
.courier-company-quote-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.courier-company-quote-buttons button { height: 32px; font-size: 10px; }
.settlement-carrier-tabs { margin-top: 14px; padding: 4px; display: flex; gap: 4px; background: #e9eeeb; border: 1px solid var(--line); }
.settlement-carrier-tabs button { min-width: 105px; height: 38px; padding: 0 12px; color: var(--muted); background: transparent; border: 0; border-radius: 3px; font-size: 10px; }
.settlement-carrier-tabs button.active { color: var(--ink); background: white; box-shadow: 0 1px 5px rgba(15,30,23,.1); font-weight: 700; }
.courier-bill-archive { margin-top: 14px; }
.courier-bill-archive-actions { display: flex; align-items: center; gap: 8px; }
.courier-bill-archive-actions button { height: 34px; }
.courier-bill-source-filter { padding: 12px 14px; display: flex; justify-content: flex-end; background: #f8fafc; border-bottom: 1px solid var(--line); }
.courier-bill-source-filter .courier-summary-range-actions { width: 100%; }
.courier-bill-archive-controls { padding: 12px 14px; display: grid; grid-template-columns: minmax(240px,.7fr) minmax(420px,1.3fr); gap: 14px; background: #f8fafc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.courier-bill-archive-controls > div { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.courier-bill-archive-controls > div > span { color: var(--muted); font-size: 8px; }
.archive-courier-tabs { min-height: 36px; padding: 3px; display: flex; gap: 3px; overflow-x: auto; background: #eef2f7; border: 1px solid var(--line); }
.archive-courier-tabs button { min-width: 92px; height: 28px; padding: 0 10px; flex: 0 0 auto; color: var(--muted); background: transparent; border: 0; border-radius: 3px; font-size: 9px; }
.archive-courier-tabs button.active { color: var(--ink); background: white; box-shadow: 0 1px 4px rgba(15,30,23,.1); font-weight: 700; }
.archive-month-filter { position: relative; width: min(220px,100%); min-height: 36px; padding: 3px 9px; display: flex; align-items: center; gap: 7px; color: #315bd8; background: white; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.archive-month-filter:hover { border-color: #aebbd8; }
.archive-month-filter:focus-within { border-color: #315bd8; box-shadow: 0 0 0 2px rgba(49,91,216,.12); }
.archive-month-filter svg { width: 14px; height: 14px; flex: 0 0 auto; }
.archive-month-filter select { min-width: 0; width: 100%; height: 28px; padding: 0 24px 0 2px; color: var(--ink); background: transparent; border: 0; outline: 0; appearance: none; cursor: pointer; font-size: 10px; font-weight: 600; }
.archive-month-filter .archive-month-chevron { position: absolute; right: 9px; width: 13px; height: 13px; color: var(--muted); pointer-events: none; }
.courier-bill-archive-table { min-width: 980px; }
.courier-bill-archive-table th:last-child,.courier-bill-archive-table td:last-child { width: 150px; text-align: right; }
.courier-bill-archive-table tr.missing { background: #fffaf1; }
.courier-bill-archive-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.archive-file-name { display: inline-flex; align-items: center; gap: 7px; }
.archive-file-name svg { width: 15px; height: 15px; color: #315bd8; }
.courier-bill-archive-table code { color: var(--muted); font-size: 8px; }
.archive-download { min-width: 126px; height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 9px; text-decoration: none; }
.archive-download svg { width: 13px; height: 13px; }
.archive-unavailable { color: var(--muted); font-size: 9px; }
.courier-bill-archive-note { min-height: 42px; padding: 10px 14px; display: flex; align-items: center; gap: 9px; color: var(--muted); background: #f4f7ff; border-top: 1px solid #d8e0f2; font-size: 9px; line-height: 1.5; }
.courier-bill-archive-note svg { width: 16px; height: 16px; flex: 0 0 auto; color: #315bd8; }
.courier-bill-import-modal { width: min(520px,100%); }
.courier-bill-import-file-row { min-height: 46px; padding: 6px; display: flex; align-items: center; gap: 10px; background: #f8fafc; border: 1px solid var(--line); border-radius: 4px; }
.courier-bill-import-file-trigger { height: 32px; flex: 0 0 auto; }
.courier-bill-import-file-name { min-width: 0; overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.courier-bill-import-form .modal-footer button { min-width: 96px; }
.courier-bill-rate-audit { margin-top: 14px; }
.courier-bill-audit-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.courier-bill-audit-summary > button { min-height: 72px; padding: 13px 14px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: var(--ink); background: #fff; border: 0; border-right: 1px solid var(--line); text-align: left; cursor: pointer; }
.courier-bill-audit-summary > button:last-child { border-right: 0; }
.courier-bill-audit-summary > button:hover,.courier-bill-audit-summary > button.active { background: #f4f7ff; box-shadow: inset 0 -2px #315bd8; }
.courier-bill-audit-summary > button.active strong { color: #315bd8; }
.courier-bill-audit-summary span { color: var(--muted); font-size: 8px; }
.courier-bill-audit-summary strong { margin-top: 7px; font-size: 14px; }
.courier-bill-audit-filters { padding: 12px 14px; display: grid; grid-template-columns: minmax(150px,.65fr) minmax(160px,.7fr) minmax(260px,1.4fr); gap: 10px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.courier-bill-audit-filters > label { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 8px; }
.courier-bill-audit-filters select,.courier-bill-audit-filters label > div { width: 100%; height: 36px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; font-size: 10px; }
.courier-bill-audit-filters select { padding: 0 9px; }
.courier-bill-audit-filters label > div { padding: 0 9px; display: flex; align-items: center; gap: 7px; }
.courier-bill-audit-filters label > div:focus-within,.courier-bill-audit-filters select:focus { border-color: #315bd8; box-shadow: 0 0 0 2px rgba(49,91,216,.12); }
.courier-bill-audit-filters svg { width: 14px; flex: 0 0 auto; }
.courier-bill-audit-filters label > div input { min-width: 0; width: 100%; border: 0; outline: 0; font-size: 10px; }
.courier-bill-audit-status-field { min-width: 0; position: relative; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 8px; }
.courier-bill-audit-status-filter { position: relative; }
.courier-bill-audit-status-filter > summary { height: 36px; padding: 0 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; list-style: none; font-size: 10px; }
.courier-bill-audit-status-filter > summary::-webkit-details-marker { display: none; }
.courier-bill-audit-status-filter[open] > summary { border-color: #315bd8; box-shadow: 0 0 0 2px rgba(49,91,216,.12); }
.courier-bill-audit-status-filter[open] > summary svg { transform: rotate(180deg); }
.courier-bill-audit-status-menu { width: max(230px,100%); padding: 8px; position: absolute; top: calc(100% + 5px); left: 0; z-index: 20; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 12px 28px rgba(32,50,83,.16); }
.courier-bill-audit-status-head { min-height: 28px; padding: 0 4px 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); }
.courier-bill-audit-status-head > span { color: var(--muted); font-size: 8px; }
.courier-bill-audit-status-head > div { display: flex; gap: 8px; }
.courier-bill-audit-status-head button { padding: 0; color: #315bd8; background: transparent; border: 0; cursor: pointer; font-size: 8px; }
.courier-bill-audit-status-menu > label { min-height: 32px; padding: 0 4px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 9px; }
.courier-bill-audit-status-menu > label:hover { background: #f4f7ff; }
.courier-bill-audit-status-menu input { width: 14px; height: 14px; flex: 0 0 auto; accent-color: #315bd8; }
.courier-bill-audit-status-menu .primary-button { width: 100%; height: 32px; margin-top: 6px; }
.courier-bill-audit-table { min-width: 1300px; }
.courier-bill-audit-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.courier-bill-audit-table td:first-child { min-width: 100px; }
.settlement-rule-panel,.settlement-ledger { margin-top: 14px; }
.settlement-carrier-filter { margin-top: 14px; }
.settlement-carrier-filter .panel-header { min-height: 64px; }
.settlement-rule-steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); padding: 22px 14px; }
.settlement-rule-steps > div { min-height: 94px; padding: 0 16px; display: grid; grid-template-columns: 28px 1fr; grid-template-rows: 24px auto; column-gap: 9px; border-right: 1px solid var(--line); }
.settlement-rule-steps > div:last-child { border-right: 0; }
.settlement-rule-steps b { width: 25px; height: 25px; grid-row: 1 / 3; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: 9px; }
.settlement-rule-steps strong { font-size: 10px; }
.settlement-rule-steps p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.6; white-space: normal; }
.settlement-rate-strip { margin: 0 14px 14px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); background: #f2f7f4; border: 1px solid #dce8e2; }
.settlement-rate-strip > div { min-height: 62px; padding: 11px 14px; display: flex; flex-direction: column; border-right: 1px solid #dce8e2; }
.settlement-rate-strip > div:last-child { border-right: 0; }
.settlement-rate-strip span { color: var(--muted); font-size: 8px; }
.settlement-rate-strip strong { margin-top: 6px; color: var(--green-dark); font-size: 10px; }
.settlement-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.settlement-actions button { height: 32px; padding: 0 10px; font-size: 10px; }
.settlement-actions .active { color: var(--red); background: var(--red-soft); border-color: #efcbd0; }
.settlement-filterbar { padding: 12px 14px; display: grid; grid-template-columns: minmax(150px,.8fr) minmax(150px,.8fr) minmax(260px,1.5fr) repeat(3,minmax(130px,.55fr)); gap: 10px; background: #f8faf9; border-bottom: 1px solid var(--line); }
.settlement-filterbar label,.settlement-filterbar > div { min-height: 52px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.settlement-filterbar span { color: var(--muted); font-size: 8px; }
.settlement-filterbar label > div { height: 34px; padding: 0 9px; display: flex; align-items: center; gap: 7px; background: white; border: 1px solid var(--line-strong); border-radius: 4px; }
.settlement-filterbar label svg { width: 14px; color: var(--muted); }
.settlement-filterbar select { width: 100%; height: 34px; padding: 0 9px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; font-size: 10px; }
.settlement-filterbar select:focus,.settlement-filterbar label > div:focus-within { border-color: #315bd8; box-shadow: 0 0 0 2px rgba(49,91,216,.12); }
.settlement-filterbar input { min-width: 0; width: 100%; border: 0; outline: 0; font-size: 10px; }
.settlement-filterbar strong { font-size: 11px; }
.courier-settlement-table { min-width: 1950px; }
.courier-settlement-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.courier-settlement-table tbody tr { cursor: pointer; }
.return-query-tool { width: 100%; min-width: 0; max-width: 100%; margin-top: 14px; overflow: hidden; }
.return-query-head { min-height: 126px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; color: #1b2943; background: #f4f7ff; border-bottom: 1px solid #d8e0f2; box-shadow: inset 4px 0 #315bd8; }
.return-query-head span { color: #5870a6; font-size: 9px; }
.return-query-head h2 { margin: 7px 0 5px; font-size: 22px; letter-spacing: 0; }
.return-query-head p { margin: 0; color: #6d7990; font-size: 10px; }
.return-query-head > svg { width: 48px; height: 48px; color: #315bd8; }
.return-query-mode-tabs { height: 48px; padding: 5px 8px; display: flex; gap: 4px; background: #f8f9fc; border-bottom: 1px solid var(--line); }
.return-query-mode-tabs button { min-width: 120px; padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); background: transparent; border: 0; border-radius: 4px; font-size: 10px; }
.return-query-mode-tabs button svg { width: 14px; }
.return-query-mode-tabs button.active { color: #254dc8; background: white; box-shadow: inset 0 -2px #315bd8,0 1px 5px rgba(37,58,112,.09); font-weight: 700; }
.return-query-form { padding: 22px 28px; display: grid; grid-template-columns: minmax(320px,1fr) auto; gap: 12px; align-items: end; }
.return-query-form label { min-width: 0; display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 9px; }
.return-query-number { width: 100%; height: 44px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; }
.return-query-number { display: flex; align-items: center; }
.return-query-number svg { width: 16px; margin-left: 12px; flex: 0 0 auto; color: var(--muted); }
.return-query-number input { min-width: 0; width: 100%; height: 100%; padding: 0 11px; border: 0; outline: 0; font-size: 12px; }
.return-query-number:focus-within { border-color: #8fa3ed; box-shadow: 0 0 0 3px rgba(49,91,216,.09); }
.return-query-submit { height: 44px; padding: 0 20px; }
.return-query-buttons { display: flex; align-items: center; gap: 8px; }
.return-query-buttons button { height: 44px; padding: 0 16px; justify-content: center; white-space: nowrap; }
.return-query-buttons button svg { width: 15px; }
.return-dingtalk-result { min-height: 66px; margin: 0 28px 18px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--line); border-radius: 5px; background: #f8faff; }
.return-dingtalk-result > svg { width: 20px; height: 20px; flex: 0 0 auto; color: #315bd8; }
.return-dingtalk-result > div { min-width: 0; }
.return-dingtalk-result strong,.return-dingtalk-result span,.return-dingtalk-result small { display: block; }
.return-dingtalk-result span { margin-top: 4px; color: #5f6e83; line-height: 1.55; }
.return-dingtalk-result small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.return-dingtalk-result.loading > svg { animation: wanliniu-spin 1s linear infinite; }
.return-dingtalk-result.success { border-color: #b9dfce; background: #f1fbf6; }
.return-dingtalk-result.success > svg { color: var(--green); }
.return-dingtalk-result.error { border-color: #efc4c8; background: #fff6f7; }
.return-dingtalk-result.error > svg { color: var(--red); }
.return-dingtalk-result.empty { border-color: #e8d9aa; background: #fffaf0; }
.return-dingtalk-result.empty > svg { color: #a87616; }
.return-query-source { min-height: 48px; padding: 10px 28px; display: flex; align-items: center; gap: 9px; color: #5f6e8b; background: #f3f6ff; border-top: 1px solid #dce3f3; font-size: 9px; }
.return-query-source svg { width: 16px; flex: 0 0 auto; color: var(--green); }
.return-batch-toolbar { padding: 18px 28px 12px; display: flex; align-items: end; justify-content: flex-end; gap: 14px; }
.return-batch-toolbar > div { display: flex; gap: 7px; }
.return-batch-text { width: calc(100% - 56px); min-height: 168px; margin: 0 28px; padding: 13px 14px; resize: vertical; color: var(--ink); background: #fbfcff; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; font: 11px/1.8 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.return-batch-text:focus { border-color: #8fa3ed; box-shadow: 0 0 0 3px rgba(49,91,216,.09); }
.return-batch-actions { padding: 12px 28px 18px; display: flex; justify-content: flex-end; gap: 8px; }
.return-batch-actions button { height: 36px; }
.return-batch-query span { white-space: nowrap; }
.return-batch-progress { margin: 0 28px 16px; padding: 13px 14px; color: #40506d; background: #f6f8ff; border: 1px solid #d9e0f4; border-radius: 5px; }
.return-batch-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.return-batch-progress strong { color: #254dc8; font-size: 10px; }
.return-batch-progress span,.return-batch-progress small { color: var(--muted); font-size: 9px; }
.return-batch-progress-track { height: 6px; margin: 10px 0 8px; overflow: hidden; background: #e0e6f5; border-radius: 999px; }
.return-batch-progress-track i { height: 100%; display: block; background: #315bd8; border-radius: inherit; transition: width .2s ease; }
.return-batch-progress.complete { background: #f1fbf6; border-color: #b9dfce; }
.return-batch-progress.complete strong { color: var(--green); }
.return-batch-progress.complete .return-batch-progress-track i { background: var(--green); }
.return-batch-summary { min-height: 52px; padding: 10px 28px; display: flex; align-items: center; gap: 18px; background: #f7f9ff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 9px; }
.return-batch-summary span { color: var(--muted); }
.return-batch-summary strong { color: #254dc8; }
.return-batch-summary b { color: var(--red); }
.return-batch-page-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.return-batch-page-nav .icon-button { width: 28px; height: 28px; }
.return-batch-page-nav .icon-button svg { width: 13px; }
.return-batch-page-nav span { color: #52617d; white-space: nowrap; }
.return-batch-page-nav span strong { color: #254dc8; }
.return-batch-preview-table { min-width: 760px; }
.return-batch-preview-table td strong { font-size: 10px; }
.return-query-history { width: 100%; min-width: 0; max-width: 100%; margin-top: 14px; overflow: hidden; }
.return-query-history .table-wrap { width: 100%; max-width: 100%; }
.return-query-history-table { min-width: 820px; }
.return-query-row-actions { display: flex; align-items: center; gap: 6px; }
.return-query-row-actions .text-button { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.return-query-row-actions .text-button svg,.return-query-row-actions .icon-button svg { width: 13px; }
.return-query-row-actions .icon-button { width: 28px; height: 28px; }
.return-receipt-result-panel { width: 100%; min-width: 0; margin-top: 14px; overflow: hidden; }
.return-receipt-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.return-receipt-result-table-wrap { max-height: 480px; overflow: auto; }
.return-receipt-result-table { min-width: 1180px; }
.return-receipt-result-table th { position: sticky; z-index: 2; top: 0; background: #f8fafc; }
.return-receipt-result-table td { max-width: 310px; }
.return-receipt-result-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.return-receipt-foot { min-height: 44px; padding: 8px 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); background: #f8faff; border-top: 1px solid var(--line); font-size: 9px; }
.factory-receipt-page { width: 100%; min-width: 0; max-width: 100%; overflow-x: hidden; }
.factory-receipt-summary { margin-top: 14px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: white; border: 1px solid var(--line); border-radius: 5px; box-shadow: var(--shadow-soft); }
.factory-receipt-summary > div { min-height: 82px; padding: 15px 18px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.factory-receipt-summary > div:last-child { border-right: 0; }
.factory-receipt-summary span { color: var(--muted); font-size: 9px; }
.factory-receipt-summary strong { margin-top: 7px; color: #263247; font-size: 19px; }
.factory-receipt-summary > div:nth-child(3) strong { color: #14724f; }
.factory-receipt-summary > div:nth-child(4) strong { color: #315bd8; }
.factory-receipt-mapping-panel,.factory-receipt-result-panel { width: 100%; min-width: 0; margin-top: 14px; overflow: hidden; }
.factory-receipt-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.factory-receipt-form { padding: 16px; display: grid; grid-template-columns: minmax(130px,.9fr) minmax(150px,.9fr) minmax(260px,1.8fr) minmax(90px,.55fr) auto; gap: 10px; align-items: end; background: #fbfcff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.factory-receipt-form label { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 9px; }
.factory-receipt-form input,.factory-receipt-form select { width: 100%; min-width: 0; height: 38px; padding: 0 10px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; font-size: 10px; }
.factory-receipt-form input:focus,.factory-receipt-form select:focus { border-color: #8fa3ed; box-shadow: 0 0 0 3px rgba(49,91,216,.09); }
.factory-receipt-add { height: 38px; white-space: nowrap; }
.factory-receipt-rule-note { min-height: 44px; padding: 9px 16px; display: flex; align-items: center; gap: 8px; color: #52617d; background: #f3f6ff; border-bottom: 1px solid #dce3f3; font-size: 9px; }
.factory-receipt-rule-note svg { width: 15px; flex: 0 0 auto; color: #315bd8; }
.factory-receipt-mapping-table { min-width: 760px; }
.factory-receipt-mapping-table td small,.factory-receipt-result-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.factory-receipt-mapping-table .icon-button { width: 28px; height: 28px; }
.factory-receipt-mapping-table .icon-button svg { width: 13px; }
.factory-receipt-toolbar { min-height: 58px; padding: 10px 14px; display: flex; align-items: center; gap: 14px; background: #fbfcff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.factory-receipt-tabs { min-width: 0; display: flex; align-items: center; gap: 3px; overflow-x: auto; }
.factory-receipt-tabs button { height: 34px; padding: 0 10px; display: flex; align-items: center; gap: 6px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 4px; white-space: nowrap; font-size: 9px; }
.factory-receipt-tabs button b { min-width: 18px; color: #7a879e; text-align: right; font-size: 8px; }
.factory-receipt-tabs button.active { color: #254dc8; background: white; border-color: #b8c6ee; box-shadow: 0 1px 4px rgba(37,58,112,.08); font-weight: 700; }
.factory-receipt-tabs button.active b { color: #254dc8; }
.factory-receipt-search { width: 260px; height: 36px; margin-left: auto; display: flex; align-items: center; flex: 0 0 auto; background: white; border: 1px solid var(--line-strong); border-radius: 4px; }
.factory-receipt-search:focus-within { border-color: #8fa3ed; box-shadow: 0 0 0 3px rgba(49,91,216,.09); }
.factory-receipt-search svg { width: 14px; margin-left: 10px; flex: 0 0 auto; color: var(--muted); }
.factory-receipt-search input { min-width: 0; width: 100%; height: 100%; padding: 0 10px 0 7px; border: 0; outline: 0; font-size: 9px; }
.factory-receipt-result-table { min-width: 1420px; }
.factory-receipt-result-table td { max-width: 290px; line-height: 1.55; }
.waybill-monitor,.promotion-fund-monitor,.fund-monitor { margin-top: 14px; }
.monitor-toolbar { min-height: 60px; padding: 10px 14px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.monitor-toolbar > div:first-child { min-width: 86px; display: flex; flex-direction: column; }
.monitor-toolbar > div:first-child span { color: var(--muted); font-size: 9px; }
.monitor-toolbar > div:first-child strong { margin-top: 3px; font-size: 11px; }
.monitor-tabs { display: flex; padding: 3px; background: #edf1ef; border-radius: 5px; }
.monitor-tabs button { height: 30px; padding: 0 12px; color: var(--muted); background: transparent; border: 0; border-radius: 3px; font-size: 10px; }
.monitor-tabs button.active { color: var(--ink); background: white; box-shadow: 0 1px 4px rgba(15,30,23,.09); font-weight: 700; }
.monitor-actions { margin-left: auto; display: flex; gap: 7px; }
.monitor-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.waybill-balance-table { min-width: 1460px; }
.waybill-recharge-table { min-width: 1180px; }
.waybill-consumption-table { min-width: 1320px; }
.promotion-fund-balance-table { min-width: 1820px; }
.promotion-fund-recharge-table { min-width: 1050px; }
.promotion-fund-consumption-table { min-width: 1380px; }
.fund-tabs { flex: 1; overflow-x: auto; }
.fund-tabs button { min-width: 76px; }
.fund-ledger-table { min-width: 1760px; }
.monitor-actions a { text-decoration: none; white-space: nowrap; }
.promotion-platform-template-panel { margin-top: 14px; }
.promotion-platform-import-menu { position: relative; }
.promotion-platform-import-menu > summary { height: 34px; padding: 0 11px; display: flex; align-items: center; gap: 7px; color: var(--green); background: white; border: 1px solid #a9c9ba; border-radius: 4px; cursor: pointer; list-style: none; font-size: 11px; font-weight: 700; }
.promotion-platform-import-menu > summary::-webkit-details-marker { display: none; }
.promotion-platform-import-menu > summary svg { width: 15px; }
.promotion-platform-import-menu > summary svg:last-child { margin-left: 2px; transition: transform .18s ease; }
.promotion-platform-import-menu[open] > summary svg:last-child { transform: rotate(180deg); }
.promotion-platform-menu-popover { width: 330px; padding: 6px 10px; position: absolute; z-index: 25; top: 42px; right: 0; background: white; border: 1px solid var(--line-strong); border-radius: 5px; box-shadow: var(--shadow); }
.promotion-platform-menu-row { min-height: 51px; display: grid; grid-template-columns: minmax(70px,1fr) auto auto auto auto; gap: 6px; align-items: center; border-bottom: 1px solid var(--line); }
.promotion-platform-menu-row:last-child { border-bottom: 0; }
.promotion-platform-menu-row strong { font-size: 11px; }
.promotion-platform-menu-row small { color: var(--muted); font-size: 8px; }
.promotion-platform-menu-row button { height: 30px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.promotion-platform-menu-row button svg { width: 14px; }
.promotion-template-action { color: var(--muted); background: transparent; border: 0; }
.promotion-import-action { color: var(--green); background: var(--green-soft); border: 1px solid #bed8cb; }
.promotion-clear-action { width: 30px; padding: 0 !important; justify-content: center; color: #a84d45; background: #fff5f3; border: 1px solid #ead0cc; }
.monitor-balance-input { height: 28px; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 8px; }
.monitor-balance-input input { width: 76px; height: 26px; padding: 0 6px; color: var(--ink); background: #f8faf9; border: 1px solid var(--line-strong); border-radius: 3px; outline: 0; text-align: right; font-size: 10px; }
.monitor-balance-input input:focus { border-color: #75a28e; box-shadow: 0 0 0 2px rgba(18,107,77,.08); }
.monitor-formula { min-height: 48px; padding: 10px 14px; display: flex; align-items: center; gap: 8px; color: var(--muted); background: #f8faf9; border-top: 1px solid var(--line); font-size: 9px; line-height: 1.6; }
.monitor-formula svg { width: 15px; flex: 0 0 auto; color: var(--green); }
.monitor-formula b { color: var(--ink); }
.promotion-rule-summary { min-height: 46px; padding: 7px 10px 7px 13px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: white; border: 1px solid var(--line); }
.promotion-dashboard-filterbar { margin-bottom: 12px; padding: 12px 13px; display: grid; grid-template-columns: repeat(3,minmax(145px,1fr)) repeat(2,minmax(140px,.8fr)) auto; align-items: end; gap: 10px; }
.promotion-dashboard-filterbar label { min-width: 0; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 8px; }
.promotion-dashboard-filterbar select,.promotion-dashboard-filterbar input { width: 100%; height: 34px; padding: 0 9px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; font-size: 9px; }
.promotion-dashboard-filterbar select:focus,.promotion-dashboard-filterbar input:focus { border-color: #75a28e; box-shadow: 0 0 0 2px rgba(18,107,77,.08); }
.promotion-dashboard-filterbar > button { height: 34px; }
.promotion-rule-summary > div { min-width: 0; display: flex; align-items: center; gap: 9px; }
.promotion-rule-summary > div > svg { width: 16px; color: var(--green); flex: 0 0 auto; }
.promotion-rule-summary span b,.promotion-rule-summary span small { display: block; }
.promotion-rule-summary span b { font-size: 9px; }
.promotion-rule-summary span small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.promotion-rule-summary button { flex: 0 0 auto; }
.promotion-rule-editor { margin: -4px 0 14px; }
.promotion-rule-fields { padding: 14px; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; border-bottom: 1px solid var(--line); }
.promotion-rule-fields label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 8px; }
.promotion-rule-fields input { width: 100%; height: 32px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; }
.promotion-rule-fields input:focus { border-color: #75a28e; box-shadow: 0 0 0 2px rgba(18,107,77,.08); }
.promotion-rule-checks { padding: 11px 14px; display: flex; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); }
.promotion-rule-checks label { display: inline-flex; align-items: center; gap: 7px; font-size: 8px; font-weight: 700; }
.promotion-rule-checks input { accent-color: var(--green); }
.promotion-rule-actions { padding: 10px 14px; display: flex; justify-content: flex-end; gap: 8px; }
.promotion-roi-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin-bottom: 14px; background: white; border: 1px solid var(--line); }
.promotion-roi-metrics article { min-width: 0; padding: 16px 17px; border-right: 1px solid var(--line); }
.promotion-roi-metrics article:last-child { border-right: 0; }
.promotion-roi-metrics article > div { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.promotion-roi-metrics article i { color: var(--green); font-size: 14px; font-style: normal; }
.promotion-roi-metrics article > b { display: block; margin: 9px 0 7px; font: 700 22px/1.1 "DIN Alternate",Inter,sans-serif; white-space: nowrap; }
.promotion-roi-metrics article small { display: block; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.positive { color: var(--green) !important; }
.promotion-roi-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; margin-bottom: 14px; }
.promotion-roi-table { min-width: 0; table-layout: fixed; font-size: 8px; }
.promotion-roi-table th:nth-child(1) { width: 16%; }
.promotion-roi-table th:nth-child(2) { width: 13%; }
.promotion-roi-table th:nth-child(3) { width: 9%; }
.promotion-roi-table th:nth-child(4) { width: 7%; }
.promotion-roi-table th:nth-child(5) { width: 13%; }
.promotion-roi-table th:nth-child(6) { width: 11%; }
.promotion-roi-table th:nth-child(7) { width: 9%; }
.promotion-roi-table th:nth-child(8) { width: 12%; }
.promotion-roi-table th:nth-child(9) { width: 10%; }
.promotion-roi-table th { height: 38px; padding: 0 8px; font-size: 7px; }
.promotion-roi-table td { height: 56px; padding: 7px 8px; }
.promotion-roi-table td > b,.promotion-roi-table td > small { display: block; }
.promotion-roi-table td > small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.promotion-platform-cell { display: flex; align-items: center; gap: 7px; }
.promotion-platform-cell > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; color: #526c7f; background: #eef2f6; border-radius: 5px; font-size: 8px; font-weight: 800; }
.promotion-platform-cell b,.promotion-platform-cell small { display: block; }
.promotion-platform-cell small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.promotion-platform-cell > svg { width: 13px; margin-left: auto; color: #8aa196; transition: transform .15s ease; }
.promotion-store-row { cursor: pointer; }
.promotion-store-row:hover td { background: #f6faf8; }
.promotion-store-row.selected td { background: #edf7f2; }
.promotion-store-row.selected td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.promotion-store-row.selected .promotion-platform-cell > svg { color: var(--green); transform: rotate(90deg); }
.roi-value { font-size: 11px; font-weight: 800; }
.roi-target-input { width: 42px; }
.promotion-roi-table label { display: inline-flex; }
.promotion-roi-table input { width: 42px; height: 24px; padding: 0 4px; border: 1px solid var(--line-strong); border-radius: 3px; text-align: center; font-size: 8px; }
.promotion-budget-bar { width: 76px; height: 4px; margin-top: 5px; overflow: hidden; background: #e7ece9; border-radius: 2px; }
.promotion-budget-bar i { display: block; height: 100%; background: var(--amber); }
.promotion-budget-bar.over i { background: var(--red); }
.promotion-roi-table .status { max-width: 100%; white-space: normal; line-height: 1.3; font-size: 7px; }
.status.normal { color: var(--green); background: var(--green-soft); }
.promotion-roi-actions > div:nth-child(2) { padding: 12px 13px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.promotion-roi-actions > div:nth-child(2) > button { width: 100%; min-height: 72px; padding: 10px; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 9px; background: #fbfcfb; border: 1px solid var(--line); border-radius: 5px; text-align: left; }
.promotion-roi-actions > div:nth-child(2) > button > i { width: 22px; height: 22px; display: grid; place-items: center; color: white; background: var(--red); border-radius: 50%; font-size: 9px; font-style: normal; font-weight: 700; }
.promotion-roi-actions button span b,.promotion-roi-actions button span small { display: block; }
.promotion-roi-actions button span b { font-size: 9px; }
.promotion-roi-actions button span small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.promotion-roi-actions button em { padding: 6px 8px; color: var(--green); border: 1px solid #b9d4c7; border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 700; }
.promotion-roi-actions > section { margin: 0 13px 13px; padding: 10px 12px; display: grid; grid-template-columns: auto repeat(3,minmax(0,1fr)); align-items: center; gap: 14px; background: #f8faf9; border: 1px solid var(--line); border-radius: 5px; }
.promotion-roi-actions > section b { font-size: 9px; white-space: nowrap; }
.promotion-roi-actions > section p { margin: 0; color: var(--muted); font-size: 8px; }
.promotion-roi-actions > section p::before { content: "✓"; margin-right: 6px; color: var(--green); font-weight: 800; }
.promotion-link-drilldown { scroll-margin-top: 82px; }
.promotion-drill-path { margin-bottom: 5px; display: flex; align-items: center; gap: 4px; color: var(--green); font-size: 8px; font-weight: 700; }
.promotion-drill-path svg { width: 11px; }
.promotion-link-table { table-layout: fixed; min-width: 0; font-size: 9px; }
.promotion-link-table th:nth-child(1) { width: 24%; }
.promotion-link-table th:nth-child(2),.promotion-link-table th:nth-child(3) { width: 8%; }
.promotion-link-table th:nth-child(4),.promotion-link-table th:nth-child(5) { width: 13%; }
.promotion-link-table th:nth-child(6) { width: 10%; }
.promotion-link-table th:nth-child(7) { width: 13%; }
.promotion-link-table th:nth-child(8) { width: 11%; }
.promotion-link-table th,.promotion-link-table td { padding: 9px 11px; }
.promotion-link-table td > strong,.promotion-link-table td > small { display: block; }
.promotion-link-table td > small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.promotion-link-table tbody tr { cursor: pointer; }
.promotion-link-table tbody tr:hover td { background: #f6faf8; }
.promotion-link-share { width: 72px; height: 4px; margin-top: 5px; overflow: hidden; background: #e7ece9; border-radius: 2px; }
.promotion-link-share i { display: block; height: 100%; background: var(--green); }
.overview-chart-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(0,1.45fr) minmax(340px,.55fr); gap: 14px; }
.overview-chart-grid .panel { min-width: 0; }
.overview-donut-layout { min-height: 276px; padding: 18px; display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 18px; align-items: center; }
.overview-donut { width: 146px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; }
.overview-donut > div { width: 88px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: white; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.overview-donut strong { font-size: 13px; }
.overview-donut span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.overview-donut-legend { display: flex; flex-direction: column; gap: 8px; }
.overview-donut-legend div { display: grid; grid-template-columns: 8px minmax(70px,1fr) 42px 72px; gap: 6px; align-items: center; font-size: 9px; }
.overview-donut-legend i,.expense-legend i { width: 7px; height: 7px; display: inline-block; border-radius: 1px; }
.overview-donut-legend small { color: var(--muted); text-align: right; }
.overview-expense-wrap { min-height: 276px; padding: 28px 18px 18px; }
.expense-period { margin-bottom: 26px; }
.expense-period > div:first-child { margin-bottom: 8px; display: flex; justify-content: space-between; font-size: 10px; }
.expense-stack { height: 28px; display: flex; gap: 2px; overflow: hidden; background: #edf1ef; border-radius: 3px; }
.expense-stack i { display: block; height: 100%; }
.expense-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: 9px; }
.expense-legend span { display: flex; align-items: center; gap: 5px; }
.overview-source { margin-top: 14px; }
.platform-target-panel { margin-top: 14px; }
.calculation-rules { background: #f8faf9; border-bottom: 1px solid var(--line); }
.calculation-rules summary { min-height: 44px; padding: 9px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.calculation-rules summary::-webkit-details-marker { display: none; }
.calculation-rules summary > span { min-width: 0; display: flex; align-items: center; gap: 7px; }
.calculation-rules summary svg { width: 15px; color: var(--green); }
.calculation-rules summary > svg { color: var(--muted); transition: transform .18s ease; }
.calculation-rules[open] summary > svg { transform: rotate(180deg); }
.calculation-rules summary b { font-size: 10px; }
.calculation-rules summary small { color: var(--muted); font-size: 9px; }
.calculation-rule-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); }
.calculation-rule-grid > div { min-height: 82px; padding: 12px 15px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calculation-rule-grid > div:nth-child(3n) { border-right: 0; }
.calculation-rule-grid > div:nth-last-child(-n+3) { border-bottom: 0; }
.calculation-rule-grid span,.calculation-rule-grid small { color: var(--muted); font-size: 8px; }
.calculation-rule-grid strong { margin: 7px 0 4px; font-size: 10px; line-height: 1.45; }
.platform-target-summary { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); }
.platform-target-summary.five { grid-template-columns: repeat(5,1fr); }
.platform-target-summary.atomic-six { grid-template-columns: repeat(6,minmax(0,1fr)); }
.platform-target-summary > div { min-height: 78px; padding: 13px 15px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.platform-target-summary > div:last-child { border-right: 0; }
.platform-target-summary span,.platform-target-summary small { color: var(--muted); font-size: 9px; }
.platform-target-summary strong { margin: 7px 0 3px; font-size: 16px; }
.platform-target-table { min-width: 1280px; }
.platform-target-table.enhanced { min-width: 1740px; }
.atomic-target-wrap { border-top: 1px solid var(--line); }
.atomic-target-table.enhanced { min-width: 2440px; table-layout: auto; }
.atomic-target-table th,.atomic-target-table td { height: 42px; padding: 7px 8px; white-space: nowrap; vertical-align: middle; border-right: 1px solid #edf1ef; }
.atomic-target-table th:last-child,.atomic-target-table td:last-child { border-right: 0; }
.atomic-target-table th:first-child,.atomic-target-table td:first-child { position: sticky; left: 0; z-index: 2; background: white; }
.atomic-target-table thead th:first-child { z-index: 4; background: #f8faf9; }
.atomic-target-table td > small { margin-top: 2px; }
.atomic-target-table .target-sales-income { color: var(--green); font-weight: 800; }
.target-input-cell { position: relative; }
.platform-target-table .target-input-cell input { width: 78px; height: 27px; margin: 0; padding: 0 20px 0 7px; background: white; }
.target-input-cell > span { position: absolute; right: 12px; top: 50%; color: var(--muted); font-size: 8px; transform: translateY(-50%); pointer-events: none; }
.platform-target-table td > small,.platform-target-table td > label { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.platform-target-table input { width: 70px; height: 24px; margin-left: 3px; padding: 0 5px; color: var(--ink); background: #f8faf9; border: 1px solid var(--line-strong); border-radius: 3px; font-size: 9px; outline: 0; }
.platform-target-table input:focus { border-color: #75a28e; box-shadow: 0 0 0 2px rgba(18,107,77,.08); }
.receivable-drilldown { padding: 0; display: inline-flex; flex-direction: column; align-items: flex-start; color: var(--ink); background: transparent; border: 0; text-align: left; }
.receivable-drilldown strong { border-bottom: 1px dashed #8ea89c; }
.receivable-drilldown small { margin-top: 4px; color: var(--green); font-size: 8px; }
.receivable-drilldown:hover strong { color: var(--green); border-bottom-color: var(--green); }
.platform-store-drilldown { width: 100%; padding: 2px 0; display: grid; grid-template-columns: 1fr 14px; align-items: center; color: var(--ink); background: transparent; border: 0; text-align: left; }
.platform-store-drilldown strong { grid-column: 1; width: max-content; border-bottom: 1px dashed #8ea89c; }
.platform-store-drilldown small { grid-column: 1; margin-top: 4px; color: var(--green); font-size: 8px; }
.platform-store-drilldown svg { grid-column: 2; grid-row: 1 / 3; width: 14px; color: var(--green); transition: transform .16s ease; }
.platform-store-drilldown:hover strong { color: var(--green); border-bottom-color: var(--green); }
.platform-store-drilldown:hover svg { transform: translateX(2px); }
.store-link-drilldown { width: 100%; padding: 2px 0; display: grid; grid-template-columns: minmax(0,1fr) 14px; align-items: center; color: var(--ink); background: transparent; border: 0; text-align: left; }
.store-link-drilldown strong { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-link-drilldown small { grid-column: 1; margin-top: 4px; color: var(--green); font-size: 8px; }
.store-link-drilldown svg { grid-column: 2; grid-row: 1 / 3; width: 14px; color: var(--green); transition: transform .16s ease; }
.store-link-drilldown:hover strong { color: var(--green); }
.store-link-drilldown:hover svg { transform: translateX(2px); }
.detail-drawer.platform-store-window { width: min(1460px, calc(100% - 32px)); }
.platform-store-window .detail-body { padding: 16px 20px; background: #f5f7f6; }
.platform-store-summary { margin-bottom: 14px; background: white; border: 1px solid var(--line); }
.platform-store-summary.atomic-six { margin-bottom: 10px; border: 0; border-bottom: 1px solid var(--line); }
.platform-store-table-wrap { background: white; border: 1px solid var(--line); }
.platform-store-target-table { min-width: 1240px; }
.platform-store-target-table.enhanced { min-width: 1580px; }
.platform-store-target-table.atomic-target-table.enhanced { min-width: 2440px; }
.platform-store-target-table td > small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.rolling-target-copy { min-width: 178px; margin-top: 7px; padding-top: 6px; display: grid; gap: 3px; border-top: 1px solid var(--line); }
.rolling-target-copy span { color: var(--muted); font-size: 8px; white-space: nowrap; }
.store-target-toolbar { min-height: 42px; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); background: white; border: 1px solid var(--line); border-bottom: 0; font-size: 9px; }
.store-target-toolbar span:last-child { color: var(--green); white-space: nowrap; }
.platform-store-rule { min-height: 48px; padding: 10px 13px; display: flex; align-items: center; gap: 8px; color: var(--muted); background: white; border: 1px solid var(--line); border-top: 0; font-size: 9px; line-height: 1.55; }
.platform-store-rule svg { width: 15px; flex: 0 0 auto; color: var(--green); }
.platform-store-rule b { color: var(--ink); }
.target-progress { min-width: 88px; display: grid; grid-template-columns: minmax(46px,1fr) 36px; gap: 5px; align-items: center; }
.target-progress > div { height: 7px; overflow: hidden; background: #edf1ef; border-radius: 4px; }
.target-progress i { display: block; height: 100%; border-radius: inherit; }
.target-progress i.success { background: var(--green); }
.target-progress i.warning { background: var(--amber); }
.target-progress i.danger { background: var(--red); }
.target-progress strong { text-align: right; font-size: 9px; }
.platform-target-formula { min-height: 46px; padding: 10px 14px; display: flex; align-items: center; gap: 8px; color: var(--muted); background: #f8faf9; border-top: 1px solid var(--line); font-size: 9px; line-height: 1.55; }
.platform-target-formula svg { width: 15px; flex: 0 0 auto; color: var(--green); }
.platform-target-formula b { color: var(--ink); }
.top-link-panel { margin-top: 14px; }
.top-link-controls { padding: 12px 14px; display: grid; grid-template-columns: auto repeat(3,minmax(150px,1fr)) auto; gap: 10px; align-items: end; background: #f8faf9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.top-link-controls label { display: grid; gap: 5px; }
.top-link-controls label > span { color: var(--muted); font-size: 8px; }
.top-link-controls select { height: 34px; padding: 0 10px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 9px; }
.top-link-ranks { height: 34px; padding: 3px; display: flex; align-items: center; background: #eaf0ed; border-radius: 4px; }
.top-link-ranks button { height: 28px; padding: 0 12px; color: var(--muted); background: transparent; border: 0; border-radius: 3px; font-size: 9px; white-space: nowrap; }
.top-link-ranks button.active { color: var(--green); background: white; box-shadow: 0 1px 3px rgba(24,58,45,.08); font-weight: 700; }
.top-link-table { min-width: 1500px; }
.top-link-table tbody tr { cursor: pointer; }
.top-link-table tbody tr:hover { background: #f6faf8; }
.top-link-table td > small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.top-link-name { display: flex; align-items: center; gap: 10px; }
.top-link-name > b { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; color: var(--green); background: #eaf4ef; border-radius: 3px; font-size: 10px; }
.top-link-name span { display: grid; gap: 3px; }
.top-link-name small { color: var(--muted); font-size: 8px; }
.store-link-window .detail-body { padding: 14px 20px; }
.store-link-summary { display: grid; grid-template-columns: repeat(4,1fr); background: white; border: 1px solid var(--line); }
.store-link-summary > div { min-height: 72px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.store-link-summary > div:last-child { border-right: 0; }
.store-link-summary span { color: var(--muted); font-size: 8px; }
.store-link-summary strong { margin-top: 7px; font-size: 15px; }
.store-link-controls { padding: 11px 13px; display: grid; grid-template-columns: auto minmax(150px,1fr) 150px 150px auto; gap: 10px; align-items: end; background: #f8faf9; border: 1px solid var(--line); border-top: 0; }
.store-link-controls label { display: grid; gap: 5px; }
.store-link-controls label span { color: var(--muted); font-size: 8px; }
.store-link-controls select,.store-link-controls input { width: 100%; height: 34px; padding: 0 9px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 9px; }
.store-link-table-wrap { background: white; border: 1px solid var(--line); border-top: 0; }
.store-link-ranking-table { min-width: 1420px; }
.store-link-ranking-table tbody tr { cursor: pointer; }
.store-link-ranking-table tbody tr:hover { background: #f5faf7; }
.store-link-ranking-table td > small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.store-link-ranking-table .top-link-name { min-width: 190px; }
.store-link-ranking-table .top-link-name span { min-width: 0; }
.store-link-ranking-table .top-link-name > svg { width: 14px; margin-left: auto; color: var(--green); }
.short-product-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-platform-compare { margin-top: 16px; background: white; border: 1px solid var(--line); }
.product-platform-compare-head { min-height: 82px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.product-platform-compare-head h3 { margin-top: 4px; font-size: 14px; }
.product-platform-compare-head p { margin-top: 5px; color: var(--muted); font-size: 9px; }
.product-platform-compare-head > div:last-child { min-width: 190px; padding-left: 16px; display: grid; gap: 4px; border-left: 2px solid var(--green); }
.product-platform-compare-head > div:last-child span,.product-platform-compare-head > div:last-child small { color: var(--muted); font-size: 8px; }
.product-platform-compare-head > div:last-child strong { font-size: 15px; }
.product-platform-table { min-width: 1320px; }
.product-platform-table td > small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.budget-scenario-bar { margin-top: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 18px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.budget-scenario-bar > div:first-child { display: flex; align-items: center; gap: 10px; }
.budget-scenario-bar > div:first-child > span { color: var(--muted); font-size: 9px; }
.budget-assumptions { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.budget-assumptions span { padding: 7px 9px; color: var(--muted); background: #f4f7f5; border: 1px solid var(--line); font-size: 9px; }
.budget-assumptions strong { margin-left: 4px; color: var(--ink); }
.budget-risk-list { min-height: 276px; display: flex; flex-direction: column; }
.budget-risk-list > div { min-height: 62px; padding: 12px 14px; display: grid; grid-template-columns: 50px minmax(100px,.6fr) minmax(0,1.4fr); gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.budget-risk-list > div:last-child { border-bottom: 0; }
.budget-risk-list strong { font-size: 10px; }
.budget-risk-list small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.budget-dimension-panel { margin-top: 14px; }
.budget-dimension-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.budget-dimension-tabs button { height: 30px; padding: 0 9px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 3px; font-size: 9px; cursor: pointer; }
.budget-dimension-tabs button.active { color: white; background: var(--green); border-color: var(--green); }
.budget-dimension-table { min-width: 1320px; }
.budget-dimension-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.courier-choice { min-height: 58px; padding: 9px 11px; display: flex; flex-direction: column; justify-content: center; color: white; background: var(--green); border-left: 3px solid #d9b56d; }
.courier-choice span, .courier-choice small { font-size: 9px; opacity: .82; }
.courier-choice strong { margin: 3px 0; font-size: 13px; }
.courier-simulation-table, .courier-rate-matrix { min-width: 980px; }
.courier-rate-title { border-top: 1px solid var(--line); }
.recommended-row { background: #eef7f3; }
.courier-recommendations { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--line); }
.courier-recommendations > div { min-height: 72px; padding: 13px 14px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.courier-recommendations > div:last-child { border-right: 0; }
.courier-recommendations span, .courier-recommendations small { color: var(--muted); font-size: 9px; }
.courier-recommendations strong { margin: 7px 0 3px; font-size: 14px; }
.courier-actual-table { min-width: 1320px; }
.courier-actual-table tbody tr { cursor: pointer; }
.order-filterbar { padding: 13px 14px; display: grid; grid-template-columns: minmax(190px,1.35fr) repeat(3,minmax(120px,1fr)); gap: 10px; align-items: end; background: #f8faf9; border-bottom: 1px solid var(--line); }
.middle-order-filterbar { grid-template-columns: repeat(5,minmax(0,1fr)); }
.middle-order-filterbar .order-search { grid-column: span 2; }
.middle-order-filterbar > button { width:100%; min-width:0; justify-content:center; }
.order-filterbar label { min-width: 0; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 9px; }
.order-filterbar select, .order-filterbar input[type="date"] { width: 100%; height: 34px; padding: 0 9px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; }
.order-filterbar select:focus, .order-filterbar input[type="date"]:focus { border-color: #75a28e; box-shadow: 0 0 0 3px rgba(18,107,77,.08); }
.middle-order-filterbar > button { height: 34px; white-space: nowrap; }
.platform-daily-filterbar { padding: 13px 14px; display: grid; grid-template-columns: repeat(3,minmax(160px,1fr)) auto; gap: 10px; align-items: end; background: #f8faf9; border-bottom: 1px solid var(--line); }
.platform-daily-filterbar label { min-width: 0; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 9px; }
.platform-daily-filterbar select { width: 100%; height: 34px; padding: 0 9px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; }
.platform-daily-filterbar select:focus { border-color: #75a28e; box-shadow: 0 0 0 3px rgba(18,107,77,.08); }
.platform-daily-income-table { min-width: 1880px; }
.platform-daily-income-table tbody tr { cursor: pointer; }
.platform-daily-income-table tbody tr:hover { background: #f5faf7; }
.platform-daily-vertical { margin: 14px; border: 1px solid var(--line); background: #fff; }
.platform-daily-vertical .panel-header { min-height: 52px; }
.platform-daily-vertical table { min-width: 980px; }
.platform-daily-vertical th, .platform-daily-vertical td { padding: 9px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); text-align: right; }
.platform-daily-vertical th:first-child, .platform-daily-vertical td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; }
.platform-daily-vertical thead th { color: var(--muted); background: #f8faf9; font-size: 10px; cursor: pointer; }
.platform-daily-vertical thead th small { display: block; margin-top: 3px; color: var(--green); font-weight: 500; }
.platform-daily-vertical tbody th { color: var(--muted); font-size: 10px; font-weight: 600; }
.platform-daily-vertical .vertical-total-row th, .platform-daily-vertical .vertical-total-row td { background: #eef7f3; color: var(--green); font-weight: 700; }
.data-source-note { min-height: 52px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; color: #66522d; background: var(--amber-soft); border-bottom: 1px solid #efdfbf; }
.data-source-note > svg { flex: 0 0 auto; width: 18px; color: var(--amber); }
.data-source-note > div { display: flex; flex-direction: column; }
.data-source-note strong { font-size: 10px; }
.data-source-note span { margin-top: 3px; color: #78694d; font-size: 9px; line-height: 1.5; }
.data-source-note.demo { color: #355d78; background: var(--blue-soft); border-bottom-color: #cedfe9; }
.data-source-note.demo > svg { color: var(--blue); }
.data-source-note.demo span { color: #587286; }
.platform-bill-ledger { margin-top: 14px; overflow: hidden; }
.platform-bill-tabs { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); background: #f8faf9; border-bottom: 1px solid var(--line); }
.platform-bill-tabs button { min-height: 58px; padding: 9px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); background: transparent; border: 0; border-right: 1px solid var(--line); cursor: pointer; }
.platform-bill-tabs button:last-child { border-right: 0; }
.platform-bill-tabs button.active { color: var(--green-dark); background: white; box-shadow: inset 0 3px 0 var(--green); }
.platform-bill-tabs strong { font-size: 11px; }
.platform-bill-tabs small { font-size: 8px; }
.platform-bill-importbar { padding: 14px; display: grid; grid-template-columns: minmax(150px,.7fr) minmax(220px,1.4fr) auto; gap: 12px; align-items: end; border-bottom: 1px solid var(--line); }
.platform-bill-importbar label { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 9px; }
.platform-bill-importbar select,.platform-bill-importbar input { width: 100%; height: 36px; padding: 0 10px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; }
.platform-bill-actions { display: flex; gap: 8px; }
.platform-bill-filterbar { min-height: 58px; padding: 11px 14px; display: flex; align-items: center; gap: 12px; background: #f8faf9; border-bottom: 1px solid var(--line); }
.platform-bill-filterbar .toolbar-search { flex: 1; max-width: 360px; }
.platform-bill-filterbar .product-data-tabs { margin: 0 auto 0 0; }
.platform-bill-table { min-width: 1240px; }
.platform-bill-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.platform-bill-resolve { margin-top: 7px; display: flex; gap: 5px; }
.platform-bill-resolve button { height: 25px; padding: 0 7px; display: inline-flex; align-items: center; gap: 4px; color: var(--green); background: white; border: 1px solid #b9d0c5; border-radius: 3px; font-size: 8px; font-weight: 700; }
.platform-bill-resolve svg { width: 11px; }
.order-search > div { height: 34px; padding: 0 9px; display: flex; align-items: center; gap: 7px; background: white; border: 1px solid var(--line-strong); border-radius: 4px; }
.order-search svg { width: 14px; color: #87908c; }
.order-search input { min-width: 0; width: 100%; border: 0; outline: 0; }
.order-audit-strip { min-height: 68px; padding: 10px 14px; display: grid; grid-template-columns: .7fr 1fr 20px 1fr 20px 1fr 1.15fr; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.order-audit-strip > div { min-width: 0; display: flex; flex-direction: column; }
.order-audit-strip span { color: var(--muted); font-size: 9px; }
.order-audit-strip strong { margin-top: 4px; font-size: 13px; white-space: nowrap; }
.order-audit-strip > i { color: #9ca5a0; font-size: 16px; font-style: normal; text-align: center; }
.order-audit-strip .audit-result { padding: 9px 11px; display: grid; grid-template-columns: 18px 1fr; align-items: center; background: var(--green-soft); border-left: 3px solid var(--green); }
.order-audit-strip .audit-result svg { grid-row: 1 / 3; width: 15px; color: var(--green); }
.order-audit-strip .audit-result strong { font-size: 11px; }
.accounting-link-reconciliation { grid-template-columns: 1fr 20px 1fr 20px 1.15fr 1.8fr; }
.accounting-link-reconciliation > small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.ecommerce-table td { height: 56px; vertical-align: middle; }
.ecommerce-table td > strong, .ecommerce-table td > small { display: block; }
.ecommerce-table td > small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.ecommerce-table tbody tr { cursor: pointer; }
.order-detail-table { min-width: 1760px; }
.douyin-template-table { min-width: 2520px; }
.income-order-table { min-width: 1320px; }
.expense-order-table { min-width: 1420px; }
.accounting-table { min-width: 1840px; }
.accounting-table tbody tr { cursor: pointer; }
.accounting-table td > strong, .accounting-table td > small { display: block; }
.accounting-table td > small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.accounting-table .entity-cell > div { display: flex; flex-direction: column; }
.accounting-table .entity-cell small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.accounting-table .entity-cell strong { white-space: nowrap; }
.rate-chip { display: inline-flex; padding: 3px 7px; color: var(--blue); background: var(--blue-soft); border-radius: 10px; font-size: 9px; font-weight: 700; }
.modal-backdrop, .command-backdrop { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(9,20,15,.52); backdrop-filter: blur(3px); }
.modal-backdrop.open, .command-backdrop.open { display: flex; }
.modal { width: min(620px, 100%); background: white; box-shadow: var(--shadow); border-radius: 7px; }
.modal-header { padding: 18px 20px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 4px 0 0; font-size: 18px; }
.form-grid { padding: 19px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; color: #49544f; font-size: 11px; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; padding: 0 10px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; }
.form-grid input, .form-grid select { height: 38px; }
.form-grid textarea { height: 72px; padding-top: 9px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #75a28e; box-shadow: 0 0 0 3px rgba(18,107,77,.08); }
.money-input { position: relative; }
.money-input b { position: absolute; left: 11px; top: 10px; }
.money-input input { padding-left: 27px; }
.modal-footer { padding: 13px 20px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
.store-backend-dingtalk-config-modal { width: min(640px,100%); }
.store-backend-dingtalk-config-modal .dingtalk-secret-field input { padding-right:44px; }
.store-backend-dingtalk-config-modal .modal-footer { align-items:center; }
.store-backend-dingtalk-config-modal .modal-footer .status { margin-right:auto; display:inline-flex; align-items:center; gap:5px; }
.store-backend-dingtalk-config-modal .modal-footer .status svg { width:14px; }
.command-backdrop { align-items: flex-start; padding-top: 12vh; }
.command-panel { width: min(620px, 100%); background: white; border-radius: 7px; box-shadow: var(--shadow); overflow: hidden; }
.command-input { height: 58px; padding: 0 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.command-input svg { width: 20px; color: var(--green); }
.command-input input { flex: 1; border: 0; outline: 0; font-size: 14px; }
.command-results { max-height: 360px; padding: 8px; overflow-y: auto; }
.command-result { width: 100%; padding: 10px; display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; color: var(--ink); background: white; border: 0; border-radius: 4px; text-align: left; }
.command-result:hover { background: #f2f6f4; }
.command-result > i { width: 31px; height: 31px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 4px; }
.command-result svg { width: 15px; }
.command-result div { display: flex; flex-direction: column; }
.command-result strong { font-size: 11px; }
.command-result span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.command-result > small { color: #8f9894; }
.detail-backdrop { position: fixed; inset: 0; z-index: 110; display: none; justify-content: flex-end; background: rgba(9,20,15,.36); }
.detail-backdrop.open { display: flex; }
.detail-drawer { width: min(480px, 100%); height: 100%; display: flex; flex-direction: column; background: white; box-shadow: -16px 0 45px rgba(14,29,22,.16); animation: drawer-in .2s ease; }
.detail-drawer.wide { width: min(1120px, calc(100% - 72px)); }
.promotion-link-window .detail-body { padding: 16px 20px; background: #f6f8f7; }
.promotion-link-window-summary { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: white; border: 1px solid var(--line); }
.promotion-link-window-summary > div { padding: 14px 16px; border-right: 1px solid var(--line); }
.promotion-link-window-summary > div:last-child { border-right: 0; }
.promotion-link-window-summary span,.promotion-link-window-summary b { display: block; }
.promotion-link-window-summary span { color: var(--muted); font-size: 9px; }
.promotion-link-window-summary b { margin-top: 7px; font-size: 17px; }
.promotion-link-window .table-wrap { background: white; border: 1px solid var(--line); }
.promotion-link-window-rule { min-height: 48px; padding: 10px 13px; display: flex; align-items: center; gap: 8px; color: var(--muted); background: white; border: 1px solid var(--line); border-top: 0; font-size: 9px; }
.promotion-link-window-rule svg { width: 15px; color: var(--green); }
.promotion-link-window-rule b { color: var(--ink); }
@keyframes drawer-in { from { transform: translateX(24px); opacity: .7; } to { transform: translateX(0); opacity: 1; } }
.detail-header { padding: 22px 20px 17px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.detail-header h2 { margin: 5px 0 4px; font-size: 19px; }
.detail-header p { margin: 0; color: var(--muted); font-size: 10px; }
.detail-body { flex: 1; padding: 18px 20px; overflow-y: auto; }
.detail-section { margin-bottom: 22px; }
.detail-section h3 { margin: 0 0 10px; font-size: 11px; }
.detail-fields { border-top: 1px solid var(--line); }
.detail-field { min-height: 45px; display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.detail-field span { color: var(--muted); font-size: 10px; }
.detail-field strong { font-size: 11px; text-align: right; word-break: break-word; }
.detail-chart { height: 92px; padding: 12px; display: flex; align-items: end; gap: 7px; background: #f5f8f6; }
.detail-chart i { flex: 1; min-height: 8px; background: #8fb9a6; border-radius: 2px 2px 0 0; }
.detail-note { padding: 12px; color: #4f6058; background: var(--green-soft); border-left: 3px solid var(--green); font-size: 10px; line-height: 1.7; }
.detail-footer { min-height: 66px; padding: 14px 20px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
.metric-selected { background: #eef7f3 !important; }
.filter-button.active { color: var(--green); background: var(--green-soft); border-color: #b8d2c5; }
.toast { position: fixed; top: 84px; left: 50%; z-index: 1400; width: min(520px,calc(100vw - 32px)); min-width: min(210px,calc(100vw - 32px)); max-width: calc(100vw - 32px); padding: 13px 16px; display: flex; gap: 9px; align-items: center; justify-content: center; box-sizing: border-box; color: white; background: #173f31; box-shadow: var(--shadow); border-radius: 5px; opacity: 0; transform: translate(-50%,-12px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.toast span { line-height: 1.45; text-align: center; }
.toast svg { width: 17px; color: #a9d4c0; }
.toast.warning { background:#825514; }
.toast.danger { background:#9f3039; }
@media (max-width: 560px) { .toast { top: 72px; width: calc(100vw - 24px); min-width: 0; max-width: calc(100vw - 24px); } }
@media (pointer:coarse) { .primary-button,.secondary-button,.danger-button,.success-button,.icon-button { min-height:44px; }.icon-button { min-width:44px; } }
@media (prefers-reduced-motion:reduce) { button,.primary-button,.secondary-button,.text-button,.danger-button,.icon-button { scroll-behavior:auto; transition:none!important; }.button-acknowledged:not(:disabled) { animation:none; box-shadow:0 0 0 3px rgba(49,91,216,.2); } }
.promotion-fund-monitor .promotion-fund-import { display: none; }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); }
.mobile-overlay { display: none; }
@media (min-width: 1181px) and (max-width: 1500px) {
  .middle-order-filterbar { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 1180px) {
  .middle-order-filterbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .middle-order-filterbar .order-search { grid-column:1 / -1; }
  .dingtalk-brand { grid-template-columns: 44px minmax(150px,190px) minmax(0,1fr); }
  .dingtalk-form { grid-template-columns: 1fr 1fr; }
  .dingtalk-form > .dingtalk-form-heading,.dingtalk-form > .dingtalk-actions { grid-column: 1 / -1; }
  .dingtalk-actions { min-height: 42px; flex-direction: row; align-items: center; justify-content: space-between; }
  .dingtalk-actions > .primary-button { width: auto; min-width: 180px; }
  .wanliniu-config-body { grid-template-columns: 1fr; }
  .wanliniu-brand { min-height: 160px; }
  .platform-target-summary.five { grid-template-columns: repeat(2,1fr); }
  .platform-target-summary.atomic-six { grid-template-columns: repeat(3,1fr); }
  .platform-target-summary.five > div:last-child { grid-column: 1 / -1; }
  .top-link-controls { grid-template-columns: 1fr 1fr; }
  .top-link-ranks { grid-column: 1 / -1; }
  .store-link-summary { grid-template-columns: 1fr 1fr; }
  .store-link-summary > div:nth-child(2) { border-right: 0; }
  .store-link-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .store-link-controls { grid-template-columns: 1fr 1fr; }
  .store-link-controls .top-link-ranks { grid-column: 1 / -1; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .analysis-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr 1fr; }
  .secret-manager-actions { justify-content: flex-start; }
  .secret-manager-grid { grid-template-columns: 1fr; }
  .secret-field-grid { grid-template-columns: 1fr; }
  .secret-permission-panel { margin: 0 12px 14px; }
  .secret-editor-form { grid-template-columns: 1fr; padding: 16px 12px; }
  .secret-editor-submit { align-items: stretch; flex-direction: column; }
  .secret-plain-box > div { grid-template-columns: 1fr; }
  .dimension-filterbar { grid-template-columns: 1fr 1fr; }
  .dimension-filter-heading { grid-column: 1 / -1; }
  .profit-form { grid-template-columns: 1fr 1fr; }
  .quick-profit-panel { grid-template-columns: 190px 1fr; }
  .quick-profit-results { grid-column: 1 / -1; }
  .quick-profit-actions { grid-column: 1 / -1; }
  .profit-analysis-summary { grid-template-columns: 1fr 1fr; }
  .profit-analysis-summary > div:nth-child(2) { border-right: 0; }
  .profit-analysis-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .order-filterbar, .platform-daily-filterbar { grid-template-columns: 1fr 1fr; }
  .return-timing-grid { grid-template-columns: 1fr 1fr; }
  .return-date-filter { grid-template-columns: 1fr 1fr; }
  .return-product-selector { grid-template-columns: 1fr; }
  .return-analysis { grid-template-columns: 1fr 1fr; }
  .rule-config-grid { grid-template-columns: 1fr 1fr; }
  .platform-accounting-editor { grid-template-columns: 1fr 1fr; }
  .platform-store-rate-head { align-items: flex-start; flex-direction: column; }
  .platform-store-rate-head > div:last-child { width: 100%; min-width: 0; }
  .courier-controls { grid-template-columns: 1fr 1fr; }
  .courier-batch-summary { grid-template-columns: 1fr 1fr; }
  .overview-chart-grid { grid-template-columns: 1fr; }
  .courier-summary-layout { grid-template-columns: 1fr; }
  .courier-summary-visuals { grid-template-columns: minmax(0,1fr); }
  .courier-summary-pie { margin: 0 auto; }
  .courier-summary-title { flex-direction:column; }
  .courier-summary-range-actions { width:100%; justify-content:flex-start; }
  .settlement-rule-steps { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .settlement-rule-steps > div:nth-child(2n) { border-right: 0; }
  .settlement-rule-steps > div:last-child { border-right: 1px solid var(--line); }
  .settlement-rate-strip { grid-template-columns: 1fr 1fr; }
  .settlement-rate-strip > div { border-bottom: 1px solid #dce8e2; }
  .settlement-rate-strip > div:nth-child(2n) { border-right: 0; }
  .settlement-filterbar { grid-template-columns: 1fr 1fr; }
  .settlement-filterbar label { grid-column: 1 / -1; }
  .courier-bill-archive-controls { grid-template-columns: 1fr; }
  .courier-bill-audit-filters { grid-template-columns: 1fr 1fr; }
  .courier-bill-audit-filters .wide { grid-column: 1 / -1; }
  .return-query-form { grid-template-columns: minmax(260px,1fr) auto; }
  .factory-receipt-form { grid-template-columns: 1fr 1fr 1fr; }
  .factory-receipt-form .wide { grid-column: span 2; }
  .factory-receipt-add { width: 100%; }
  .factory-receipt-toolbar { align-items: stretch; flex-direction: column; }
  .factory-receipt-search { width: 100%; margin-left: 0; }
  .monitor-toolbar { align-items: stretch; flex-direction: column; }
  .monitor-actions { width: 100%; margin-left: 0; }
  .monitor-actions button { flex: 1; }
  .platform-target-summary { grid-template-columns: 1fr 1fr; }
  .calculation-rule-grid { grid-template-columns: 1fr 1fr; }
  .calculation-rule-grid > div,.calculation-rule-grid > div:nth-child(3n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .calculation-rule-grid > div:nth-child(2n) { border-right: 0; }
  .calculation-rule-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .platform-target-summary > div:nth-child(2) { border-right: 0; }
  .platform-target-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .budget-scenario-bar { align-items: stretch; flex-direction: column; }
  .courier-recommendations { grid-template-columns: 1fr; }
  .courier-recommendations > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .return-timing-grid > div:nth-child(2) { border-right: 0; }
  .order-audit-strip { grid-template-columns: 1fr 1fr; }
  .accounting-link-reconciliation > small { grid-column: 1 / -1; }
  .monitor-tabs { width: 100%; }
  .promotion-roi-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .promotion-roi-metrics article { border-bottom: 1px solid var(--line); }
  .promotion-roi-metrics article:nth-child(2n) { border-right: 0; }
  .promotion-roi-metrics article:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .promotion-roi-grid { grid-template-columns: 1fr; }
  .promotion-roi-table { min-width: 1080px; table-layout: auto; }
  .promotion-roi-actions > div:nth-child(2) { grid-template-columns: 1fr; }
  .promotion-roi-actions > section { grid-template-columns: 1fr; gap: 7px; }
  .promotion-link-table { min-width: 820px; table-layout: auto; }
  .detail-drawer.wide { width: 100%; }
  .promotion-link-window-summary { grid-template-columns: 1fr 1fr; }
  .promotion-link-window-summary > div:nth-child(2) { border-right: 0; }
  .promotion-link-window-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .promotion-rule-summary { align-items: flex-start; }
  .promotion-dashboard-filterbar { grid-template-columns: 1fr 1fr; }
  .promotion-dashboard-filterbar > button { width: 100%; }
  .promotion-rule-summary span small { white-space: normal; }
  .promotion-rule-fields { grid-template-columns: 1fr 1fr; }
  .promotion-rule-checks { align-items: flex-start; flex-direction: column; gap: 9px; }
  .fund-tabs { justify-content: flex-start; }
  .fund-tabs button { flex: 0 0 82px; }
  .settlement-carrier-tabs { overflow-x: auto; }
  .settlement-carrier-tabs button { min-width: 92px; }
  .courier-bill-archive .panel-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .courier-bill-archive-actions { width: 100%; justify-content: space-between; }
  .courier-bill-audit-summary { grid-template-columns: 1fr 1fr; }
  .courier-bill-audit-summary > button:nth-child(2) { border-right: 0; }
  .courier-bill-audit-summary > button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .courier-bill-audit-filters { grid-template-columns: 1fr; }
  .courier-bill-audit-filters .wide { grid-column: auto; }
  .archive-courier-tabs button { min-width: 84px; }
  .settlement-ledger .panel-header,.courier-company-quote-panel .panel-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .settlement-actions,.courier-company-quote-buttons { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .settlement-rule-steps { grid-template-columns: 1fr; padding: 16px 10px; }
  .settlement-rule-steps > div,.settlement-rule-steps > div:nth-child(2n),.settlement-rule-steps > div:last-child { padding: 0 10px 13px; border-right: 0; border-bottom: 1px solid var(--line); }
  .settlement-rule-steps > div:last-child { border-bottom: 0; }
  .settlement-rate-strip,.settlement-filterbar { grid-template-columns: 1fr; }
  .settlement-rate-strip > div { border-right: 0; }
  .promotion-platform-template-panel .panel-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .promotion-raw-toolbar { align-items:flex-end; flex-wrap:nowrap; gap:8px; }
  .promotion-raw-toolbar > label { flex:0 1 150px; }
  .promotion-raw-toolbar .promotion-raw-search { flex:1 1 260px; }
  .promotion-raw-actions { width:auto; margin-left:auto; justify-content:flex-end; }
  .promotion-platform-import-menu { width: 100%; }
  .promotion-platform-import-menu > summary { justify-content: center; }
  .promotion-platform-menu-popover { width: 100%; right: auto; left: 0; }
  .monitor-tabs button { min-width: 0; flex: 1; padding: 0 6px; }
  .order-audit-strip > i { display: none; }
  .order-audit-strip .audit-result { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .mobile-overlay.open { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(0,0,0,.34); }
  .app-shell.sidebar-expanded .main-shell { width:100%; margin-left:0; }
  .dashboard-grid, .lower-grid, .module-layout { grid-template-columns: 1fr; }
  .topbar { padding: 0 18px; }
  .page { padding: 20px 18px 34px; }
  .page.middle-orders-page { padding-right:18px; padding-left:18px; }
  .risk-row { grid-template-columns: 32px 1fr 90px; }
  .risk-desc { display: none; }
  .dimension-content { grid-template-columns: 1fr; }
  .dimension-summary { display: grid; grid-template-columns: 1fr 1fr; border-right: 0; border-bottom: 1px solid var(--line); }
  .dimension-summary > div { padding: 9px; border-bottom: 0; }
  .profit-layout { grid-template-columns: 1fr; }
  .profit-results { position: static; }
  .quick-profit-panel { grid-template-columns: 1fr; }
  .quick-profit-inputs, .quick-profit-results, .quick-profit-actions { grid-column: auto; }
}
@media (max-width: 640px) {
  .courier-summary-range-actions,.courier-summary-range-actions .period-selector,.courier-summary-range-actions .global-time-filter { width:100%; }
  .courier-summary-range-actions .period-selector button { flex:1; }
  .courier-summary-range-actions .global-time-filter { justify-content:space-between; }
  .courier-summary-range-actions .global-time-filter input { min-width:0; width:auto; flex:1; }
  .system-switch-link { width: 36px; padding: 0; justify-content: center; }
  .system-switch-link span,.system-switch-link svg:last-child { display: none; }
  .dingtalk-brand { padding: 18px 20px; grid-template-columns: 42px minmax(0,1fr); }
  .dingtalk-brand > .dingtalk-robot-list { grid-column: 1 / -1; grid-template-columns: minmax(0,1fr); }
  .dingtalk-robot-row,.dingtalk-robot-empty { border-top: 1px solid rgba(255,255,255,.16); border-left: 0; }
  .dingtalk-form,.wanliniu-brand,.wanliniu-form { padding: 20px; }
  .dingtalk-form { grid-template-columns: minmax(0,1fr); }
  .dingtalk-form > .dingtalk-form-heading,.dingtalk-form > .dingtalk-actions { grid-column: auto; }
  .dingtalk-actions { align-items: stretch; flex-direction: column-reverse; }
  .dingtalk-actions button { width: 100%; }
  .wanliniu-flow-steps { grid-template-columns: 1fr; }
  .wanliniu-flow-steps > svg { margin: -3px auto; transform: rotate(90deg); }
  .wanliniu-actions { flex-direction: column-reverse; }
  .wanliniu-actions button { width: 100%; }
  .wanliniu-order-ledger .panel-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .wanliniu-order-actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .wanliniu-date-sync-control { flex: 1 1 230px; }
  .wanliniu-date-sync-control input { flex: 1 1 auto; width: auto; }
  .wanliniu-order-actions .wanliniu-order-sync { flex: 1 1 145px; }
  .wanliniu-sync-coverage { grid-template-columns:1fr; }
  .wanliniu-sync-coverage > div + div { border-left:0; border-top:1px solid #dfe5ef; }
  .wanliniu-order-filter-head { align-items:flex-start; flex-direction:column; }
  .wanliniu-order-filter-tools { width:100%; justify-content:space-between; }
  .wanliniu-order-filter-tools .wanliniu-order-filter-count { width:100%; justify-content:center; }
  .wanliniu-order-filter-tools button { flex:1 1 120px; justify-content:center; }
  .wanliniu-order-filter-grid { grid-template-columns:1fr; padding:14px 12px 16px; }
  .wanliniu-order-date-field { grid-column:auto; }
  .wanliniu-order-date-range { grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr); }
  .wanliniu-aftersale-filter-actions,.wanliniu-aftersale-filter-actions button { width:100%; }
  .wanliniu-aftersale-filter-actions button { flex:1; }
  .wanliniu-order-pager { align-items: flex-start; flex-direction: column; }
  .wanliniu-order-pager > div,.wanliniu-order-pager button { width: 100%; }
  .external-data-page-size,.wanliniu-page-size { width:100%; }
  .external-data-page-size select,.wanliniu-page-size select { flex:1; }
  .platform-target-summary.five { grid-template-columns: 1fr; }
  .platform-target-summary.atomic-six { grid-template-columns: 1fr 1fr; }
  .platform-target-summary.five > div:last-child { grid-column: auto; }
  .top-link-controls { grid-template-columns: 1fr; }
  .top-link-ranks { grid-column: auto; overflow-x: auto; }
  .store-target-toolbar { align-items: flex-start; flex-direction: column; }
  .store-link-summary { grid-template-columns: 1fr; }
  .store-link-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .store-link-summary > div:last-child { border-bottom: 0; }
  .store-link-controls { grid-template-columns: 1fr; }
  .store-link-controls .top-link-ranks { grid-column: auto; }
  .product-platform-compare-head { align-items: flex-start; flex-direction: column; }
  .product-platform-compare-head > div:last-child { width: 100%; border-left: 0; border-top: 2px solid var(--green); padding: 10px 0 0; }
  .topbar { height: 62px; padding: 0 12px; }
  .page { padding: 16px 12px 30px; }
  .page.embedded-page { padding: 0; }
  .breadcrumb span, .breadcrumb svg, .search-trigger, .notice-button { display: none; }
  .primary-button { padding: 0 10px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 21px; }
  .heading-actions { width: 100%; justify-content: space-between; }
  .heading-actions .period-selector { width: 100%; }
  .heading-actions .period-selector button { flex: 1; }
  .heading-actions .global-time-filter { width: 100%; justify-content: space-between; }
  .heading-actions .global-time-filter input { flex: 1; width: auto; min-width: 0; }
  .heading-actions > button { flex: 1; min-width: 108px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .promotion-platform-row { gap:10px; }
  .promotion-page-heading { align-items:center; flex-direction:row; gap:10px; }
  .promotion-page-heading > div:first-child { min-width:0; flex:1 1 auto; }
  .promotion-page-heading .heading-actions { width:auto; flex:0 0 auto; }
  .promotion-page-heading .promotion-view-tabs { width:auto; }
  .promotion-page-heading .promotion-view-tabs button { padding:0 8px; justify-content:center; }
  .promotion-platform-tabs { gap:18px; }
  .promotion-platform-row > .promotion-export { height:32px; padding:0 8px; font-size:9px; }
  .promotion-raw-workspace,.promotion-bi-workspace { padding-right:10px; padding-bottom:12px; padding-left:10px; }
  .promotion-raw-toolbar { min-width:0; min-height:58px; padding:8px 0; flex-direction:row; align-items:flex-end; gap:5px; overflow:hidden; }
  .promotion-raw-toolbar > label { width:auto; min-width:78px; flex:0 1 105px; gap:3px; font-size:8px; }
  .promotion-raw-toolbar .promotion-raw-search { width:auto; min-width:65px; max-width:none; flex:1 1 125px; }
  .promotion-raw-toolbar input { min-width:0; height:32px; padding-right:5px; padding-left:5px; font-size:9px; }
  .promotion-raw-search input { padding-left:26px; }
  .promotion-raw-search svg { left:7px; width:13px; height:13px; }
  .promotion-raw-actions { width:auto; margin-left:0; display:flex; flex:0 0 auto; gap:4px; }
  .promotion-raw-actions button { width:auto; min-width:0; height:32px; padding:0 6px; justify-content:center; gap:4px; white-space:nowrap; font-size:9px; }
  .promotion-raw-actions button svg { width:13px; height:13px; }
  .promotion-bi-toolbar { padding:10px 0; display:grid; grid-template-columns:1fr 1fr; align-items:end; gap:8px; }
  .promotion-bi-toolbar > label,.promotion-bi-grain { width:100%; min-width:0; }
  .promotion-bi-refresh { width:100%; margin-left:0; justify-content:center; }
  .promotion-bi-kpis { grid-template-columns:1fr 1fr; }
  .promotion-bi-kpis > div:nth-child(2) { border-right:0; }
  .promotion-bi-kpis > div:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .promotion-bi-grid { grid-template-columns:1fr; }
  .promotion-bi-trend { padding-right:0; border-right:0; border-bottom:1px solid var(--line); }
  .promotion-bi-structure { padding-left:0; }
  .promotion-bi-detail-grid { grid-template-columns:1fr; }
  .promotion-bi-funnel-section { padding-right:0; border-right:0; border-bottom:1px solid var(--line); }
  .promotion-bi-funnel { min-height:220px; padding-right:0; padding-left:0; }
  .promotion-bi-funnel-visual { height:196px; }
  .promotion-bi-funnel-stage { padding-right:22%; padding-left:22%; }
  .promotion-bi-funnel-stage strong { font-size:13px; }
  .promotion-bi-funnel-conversion { min-height:24px; padding:3px 8px; }
  .promotion-bi-comparison { padding-left:0; }
  .promotion-bi-section-head { flex-wrap:wrap; }
  .promotion-bi-segmented { max-width:100%; overflow-x:auto; }
  .promotion-bi-chart { height:250px; }
  .promotion-raw-pager { align-items:flex-start; flex-direction:column; padding:10px 0; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:nth-child(3) { border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .summary-item:nth-child(2) { border-right: 0; }
  .summary-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .toolbar { flex-wrap: wrap; }
  .toolbar-search { width: 100%; }
  .toolbar-spacer { display: none; }
  .settings-grid { grid-template-columns: 1fr; }
  .secret-manager-banner,.secret-manager-grid { margin-left: 12px; margin-right: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.full { grid-column: auto; }
  .ai-hero { grid-template-columns: 1fr; gap: 18px; }
  .ai-score { width: 74px; height: 74px; }
  .risk-row { grid-template-columns: 30px 1fr auto; padding: 12px; }
  .risk-row .status { display: none; }
  .chart-wrap { height: 225px; }
  .dimension-filterbar { grid-template-columns: 1fr 1fr; }
  .dimension-filter-heading { grid-column: 1 / -1; }
  .dimension-tabs { height: auto; padding: 6px; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .dimension-tab { width: 100%; min-width: 0; height: 38px; padding: 0 8px; border: 1px solid transparent; }
  .dimension-tab::after { display: none; }
  .dimension-tab.active { background: var(--green-soft); border-color: #cfe2d9; border-radius: 4px; }
  .dimension-summary { grid-template-columns: 1fr 1fr; }
  .profit-form { grid-template-columns: 1fr; padding: 14px; }
  .profit-form label.wide { grid-column: auto; }
  .quick-profit-inputs { grid-template-columns: 1fr 1fr; }
  .quick-profit-inputs label:last-child { grid-column: 1 / -1; }
  .quick-profit-results { grid-template-columns: 1fr; }
  .quick-profit-results > div { border-right: 0; border-bottom: 1px solid #d9e7e0; }
  .quick-profit-results > div:last-child { border-bottom: 0; }
  .quick-profit-actions { align-items: flex-start; flex-direction: column; gap: 7px; }
  .profit-analysis-panel .panel-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .profit-analysis-controls { width: 100%; align-items: stretch; flex-direction: column; }
  .profit-view-switch { width: 100%; }
  .profit-view-switch button { flex: 1; justify-content: center; }
  .profit-analysis-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
  .vertical-profit-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .vertical-profit-head > div { width: 100%; align-items: flex-start; flex-direction: column; }
  .profit-product-select { width: 100%; min-width: 0; }
  .accounting-ledger > .panel-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .accounting-object-select { width: 100%; min-width: 0; }
  .accounting-active-day { width: 100%; align-items: flex-start; flex-direction: column; gap: 3px; }
  .accounting-rolling-days { align-items: flex-start; flex-direction: column; }
  .accounting-rolling-label { width: auto; }
  .accounting-day-scroll { width: 100%; display: flex; padding-bottom: 3px; overflow-x: auto; }
  .accounting-rule-list { grid-template-columns: 1fr; }
  .platform-accounting-tabs { display: flex; overflow-x: auto; }
  .platform-accounting-tabs button { min-width: 96px; }
  .platform-accounting-editor { grid-template-columns: 1fr; padding: 13px; }
  .platform-store-rate-head > div:last-child { grid-template-columns: 1fr; }
  .platform-store-rate-head button { width: 100%; justify-content: center; }
  .platform-store-rate-table { min-width: 0; }
  .platform-store-rate-table thead { display: none; }
  .platform-store-rate-table,.platform-store-rate-table tbody,.platform-store-rate-table tr,.platform-store-rate-table td { display: block; width: 100%; }
  .platform-store-rate-table tr { padding: 13px; border-bottom: 1px solid var(--line); }
  .platform-store-rate-table td { padding: 0; border: 0; }
  .platform-store-rate-table .store-rate-status { margin: 9px 0; }
  .platform-store-rate-table .store-rate-value::before { content: '发货后退货率'; display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; }
  .platform-store-rate-table .percent-input { width: 100%; }
  .platform-store-rate-table .store-rate-basis { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
  .accounting-rule-window { width: 100%; }
  .accounting-matrix-toolbar { align-items: stretch; flex-direction: column; }
  .accounting-matrix-toolbar label,.accounting-matrix-toolbar label:first-child { width: 100%; min-width: 0; }
  .accounting-matrix-toolbar small { margin: 0; }
  .accounting-period-summary { grid-template-columns: 1fr 1fr; }
  .accounting-period-summary article:nth-child(2) { border-right: 0; }
  .accounting-period-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .order-filterbar, .platform-daily-filterbar { grid-template-columns: 1fr; }
  .platform-bill-tabs { display: flex; overflow-x: auto; }
  .platform-bill-tabs button { min-width: 105px; }
  .platform-bill-importbar { grid-template-columns: 1fr; }
  .platform-bill-actions,.platform-bill-actions button { width: 100%; }
  .platform-bill-actions button { justify-content: center; }
  .platform-bill-filterbar { align-items: stretch; flex-direction: column; }
  .platform-bill-filterbar .toolbar-search { width: 100%; max-width: none; }
  .platform-bill-filterbar .product-data-tabs { width: 100%; overflow-x: auto; }
  .order-audit-strip { grid-template-columns: 1fr 1fr; }
  .return-query-head { min-height: 108px; padding: 20px; }
  .return-query-tool,.return-query-history,.return-receipt-result-panel { width: 100%; max-width: 100%; }
  .return-query-head > svg { width: 38px; height: 38px; }
  .return-query-mode-tabs button { min-width: 0; flex: 1; }
  .return-query-form { padding: 18px 16px; grid-template-columns: 1fr; }
  .return-query-submit { grid-column: auto; }
  .return-query-buttons { align-items: stretch; flex-direction: column; }
  .return-query-buttons button { width: 100%; }
  .return-dingtalk-result { margin: 0 16px 16px; }
  .return-batch-toolbar { padding: 16px; }
  .return-batch-toolbar > div { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .return-batch-toolbar button { width: 100%; min-width: 0; padding: 0 8px; justify-content: center; }
  .return-batch-text { width: calc(100% - 32px); min-height: 190px; margin: 0 16px; }
  .return-batch-actions { padding: 12px 16px 16px; display: grid; grid-template-columns: 1fr 1fr; }
  .return-batch-actions button { min-width: 0; justify-content: center; }
  .return-batch-actions .return-batch-query { grid-column: 1 / -1; }
  .return-batch-progress { margin: 0 16px 16px; }
  .return-batch-summary { padding: 10px 16px; flex-wrap: wrap; gap: 8px 14px; }
  .return-batch-page-nav { width: 100%; margin-left: 0; justify-content: space-between; }
  .return-query-source { padding: 10px 16px; }
  .return-query-history .panel-header { align-items: flex-start; flex-direction: column; gap: 9px; }
  .return-receipt-result-panel .panel-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .return-receipt-result-panel .panel-title { width: 100%; min-width: 0; }
  .return-receipt-result-panel .panel-title p { line-height: 1.55; }
  .return-receipt-actions { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .return-receipt-actions button { width: 100%; min-width: 0; padding: 0 8px; justify-content: center; }
  .return-receipt-actions button:last-of-type { grid-column: 1 / -1; }
  .factory-receipt-summary { grid-template-columns: 1fr 1fr; }
  .factory-receipt-summary > div { min-height: 72px; padding: 13px; border-bottom: 1px solid var(--line); }
  .factory-receipt-summary > div:nth-child(2) { border-right: 0; }
  .factory-receipt-summary > div:nth-child(n+3) { border-bottom: 0; }
  .factory-receipt-mapping-panel .panel-header,.factory-receipt-result-panel .panel-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .factory-receipt-mapping-panel .panel-title,.factory-receipt-result-panel .panel-title { width: 100%; min-width: 0; }
  .factory-receipt-mapping-panel .panel-title p,.factory-receipt-result-panel .panel-title p { line-height: 1.55; }
  .factory-receipt-actions { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .factory-receipt-actions button { min-width: 0; width: 100%; padding: 0 8px; justify-content: center; }
  .factory-receipt-form { padding: 14px; grid-template-columns: 1fr; }
  .factory-receipt-form .wide { grid-column: auto; }
  .factory-receipt-rule-note { align-items: flex-start; }
  .factory-receipt-tabs { width: 100%; }
  .factory-receipt-tabs button { flex: 0 0 auto; }
  .platform-target-panel .panel-header { align-items: flex-start; flex-direction: column; gap: 9px; }
  .calculation-rules summary small { display: none; }
  .calculation-rule-grid { grid-template-columns: 1fr; }
  .calculation-rule-grid > div,.calculation-rule-grid > div:nth-child(2n),.calculation-rule-grid > div:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .calculation-rule-grid > div:last-child { border-bottom: 0; }
  .platform-target-summary { grid-template-columns: 1fr; }
  .platform-target-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .platform-target-summary > div:last-child { border-bottom: 0; }
}

/* Keep global shell overrides after the legacy component rules. */
.sidebar { color:#4f5d72; background:#fff; border-right:1px solid var(--line); }
.brand { border-bottom-color:var(--line); }
.brand-mark { color:#fff; background:var(--green); }
.brand-copy strong { color:var(--ink); }
.brand-copy span { color:#8792a5; }
.company-switcher { background:#f7f9fd; border-color:var(--line); }
.company-switcher strong { color:var(--ink); }
.company-switcher span,.company-switcher svg { color:#8490a4; }
.company-avatar { color:var(--green); background:#e8edff; }
.nav-label { color:#9aa4b5; }
.nav-group-toggle { color:#263247; }
.nav-group-toggle:hover { color:var(--green); background:#f5f7fc; }
.nav-group-toggle small { color:#9aa4b5; }
.nav-group-items { border-left-color:#e3e7ef; }
.nav-item { color:#647085; }
.nav-item:hover { color:var(--green); background:#f5f7fc; }
.nav-item.active { color:#254dc8; background:#edf2ff; box-shadow:inset 3px 0 #4d6ff0; }
.sidebar-footer { border-top-color:var(--line); }
.period-progress span,.user-card span { color:#8792a5; }
.period-progress span b,.user-card strong { color:var(--ink); }
.period-progress > div { background:#e7ebf2; }
.period-progress i { background:#4d6ff0; }
.user-avatar { color:#fff; background:#315bd8; }
.topbar { background:rgba(255,255,255,.97); }
.primary-button { background:var(--green); }
.primary-button:hover { background:var(--green-dark); }
.secondary-button:hover { color:var(--green); background:#f7f9fd; border-color:#aebcf0; }
.period-selector { background:#edf0f6; }
.period-selector button.active { color:var(--green); }
.global-time-filter input:focus,.dimension-filterbar select:focus,.overview-link-filter[open] summary { border-color:#8fa3ed; box-shadow:0 0 0 3px rgba(49,91,216,.09); }
.metric:hover { background:#f8faff; }
.status.success { color:#14724f; background:#e8f6f0; }
.status.warning { color:#9a671a; background:#fff3d8; }
.status.danger { color:#a73d47; background:#fdecee; }

/* Final hierarchy overrides must follow the legacy select rules above. */
.global-hierarchy .hierarchy-step { position:relative; overflow:visible; }
.global-hierarchy .hierarchy-step:hover,.global-hierarchy .hierarchy-step.menu-open { z-index:40; border-color:#8ea4ef; }
.global-hierarchy .hierarchy-step > .hierarchy-menu { position:absolute; top:calc(100% + 5px); left:0; z-index:80; min-width:240px; width:max-content; max-width:340px; max-height:320px; padding:6px; display:none; overflow-y:auto; color:var(--ink); background:#fff; border:1px solid #cdd7ea; border-radius:6px; box-shadow:0 12px 30px rgba(24,42,78,.16); }
.global-hierarchy .hierarchy-step.menu-open::after { content:""; position:absolute; top:100%; right:0; left:0; z-index:79; height:7px; }
.global-hierarchy .hierarchy-step.menu-open > .hierarchy-menu { display:block; }
.global-hierarchy .hierarchy-step:nth-last-child(-n+2) > .hierarchy-menu { right:0; left:auto; }
.global-hierarchy .hierarchy-step > .hierarchy-step-meta { min-width:0; display:flex; align-items:center; justify-content:space-between; gap:6px; }
.global-hierarchy .hierarchy-step-meta > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:8px; font-weight:700; }
.global-hierarchy .hierarchy-step-meta > small { flex:0 0 auto; color:#8793a8; font-size:8px; white-space:nowrap; }
@media (max-width:640px) {
  .global-hierarchy .hierarchy-step.menu-open { height:auto; min-height:61px; }
  .global-hierarchy .hierarchy-step:hover:not(.menu-open) > .hierarchy-menu { display:none; }
  .global-hierarchy .hierarchy-step > .hierarchy-menu,.global-hierarchy .hierarchy-step:nth-last-child(-n+2) > .hierarchy-menu { position:static; width:100%; min-width:0; max-height:240px; margin-top:5px; }
  .global-hierarchy .hierarchy-step.menu-open > .hierarchy-menu { display:block; }
}

/* Operating BI */
.overview-bi-tabs { height:42px; margin:0 0 10px; display:flex; align-items:stretch; border:1px solid var(--line-strong); background:#fff; }
.overview-bi-tabs button { min-width:150px; padding:0 16px; display:flex; align-items:center; justify-content:center; gap:7px; color:#5f6d83; background:#f8faff; border:0; border-right:1px solid var(--line-strong); font-size:10px; font-weight:700; }
.overview-bi-tabs button.active { color:var(--green); background:#fff; box-shadow:inset 0 -3px var(--green); }
.overview-bi-tabs button:hover { color:var(--green); background:#f3f6ff; }
.overview-bi-tabs button svg { width:15px; }
.overview-bi-tabs > span { margin-left:auto; padding:0 13px; display:flex; align-items:center; color:var(--muted); font-size:9px; }
.overview-bi-kpis { margin-bottom:10px; display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); background:#fff; border:1px solid var(--line-strong); }
.overview-bi-kpis article { min-width:0; min-height:78px; padding:12px 13px; display:flex; flex-direction:column; border-right:1px solid var(--line); box-shadow:inset 3px 0 #dfe5ef; }
.overview-bi-kpis article:last-child { border-right:0; }
.overview-bi-kpis article.blue { background:#f3f7ff; box-shadow:inset 3px 0 #4d7be8; }
.overview-bi-kpis article.orange { background:#fff7ed; box-shadow:inset 3px 0 #f09a48; }
.overview-bi-kpis article.danger { background:#fff1f2; box-shadow:inset 3px 0 #e25261; }
.overview-bi-kpis article.pending { background:#fff9ed; box-shadow:inset 3px 0 #d6a446; }
.overview-bi-kpis span,.overview-bi-kpis small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:8px; }
.overview-bi-kpis strong { margin:6px 0 5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink); font-size:16px; }
.overview-bi-main-grid { display:grid; grid-template-columns:minmax(0,1.18fr) minmax(280px,.9fr) minmax(260px,.82fr); gap:10px; }
.overview-bi-secondary-grid { margin-top:10px; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.82fr) minmax(280px,.93fr); gap:10px; }
.bi-panel { min-width:0; background:#fff; border:1px solid var(--line-strong); }
.bi-panel-head { min-height:48px; padding:10px 12px; display:flex; align-items:center; justify-content:space-between; gap:10px; border-bottom:1px solid var(--line); }
.bi-panel-head h2 { margin:0; color:var(--ink); font-size:11px; }
.bi-panel-head p { margin:3px 0 0; color:var(--muted); font-size:8px; }
.bi-legend { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:8px; }
.bi-legend span::before { content:""; width:11px; height:3px; margin-right:5px; display:inline-block; vertical-align:middle; background:#315bd8; }
.bi-legend span:last-child::before { background:#d1a85d; }
.bi-chart { height:218px; padding:8px 8px 2px; }
.bi-chart canvas { width:100%; height:100%; }
.bi-contribution-list { padding:6px 12px 10px; }
.bi-contribution-row { min-height:40px; display:grid; grid-template-columns:90px minmax(60px,1fr) 72px 40px; align-items:center; gap:8px; border-bottom:1px solid #eef1f6; }
.bi-contribution-row:last-child { border-bottom:0; }
.bi-contribution-row > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:9px; font-weight:600; }
.bi-contribution-row > div { height:6px; overflow:hidden; background:#edf1f7; border-radius:3px; }
.bi-contribution-row > div i { height:100%; display:block; background:#4b78e6; border-radius:3px; }
.bi-contribution-row strong { text-align:right; font-size:9px; }
.bi-contribution-row small { color:var(--muted); text-align:right; font-size:8px; }
.bi-status-layout { min-height:226px; padding:18px; display:flex; align-items:center; justify-content:center; gap:24px; }
.bi-status-donut { width:128px; aspect-ratio:1; display:grid; place-items:center; border-radius:50%; background:conic-gradient(#ef6b7a 0 var(--refund-share),#4f7dec var(--refund-share) 100%); }
.bi-status-donut > div { width:80px; aspect-ratio:1; display:flex; flex-direction:column; align-items:center; justify-content:center; background:#fff; border-radius:50%; }
.bi-status-donut strong { font-size:20px; }
.bi-status-donut span { color:var(--muted); font-size:8px; }
.bi-status-layout > div:last-child { min-width:120px; }
.bi-status-layout p { margin:0; min-height:36px; display:grid; grid-template-columns:8px 1fr auto; align-items:center; gap:7px; border-bottom:1px solid var(--line); font-size:9px; }
.bi-status-layout p i { width:7px; height:7px; border-radius:2px; }
.bi-status-layout p i.normal { background:#4f7dec; }
.bi-status-layout p i.refund { background:#ef6b7a; }
.bi-status-layout > div:last-child > small { margin-top:9px; display:block; color:var(--muted); font-size:8px; }
.bi-category-table { min-width:700px; }
.bi-category-table th { height:34px; }
.bi-category-table td { height:42px; font-size:9px; }
.bi-health-grid { padding:10px; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.bi-health-grid > div { min-height:66px; padding:11px; display:flex; flex-direction:column; justify-content:center; background:#f5f8ff; border-left:3px solid #4e7bea; }
.bi-health-grid > div.orange { background:#fff6e9; border-color:#ed9a49; }
.bi-health-grid > div.red { background:#fff0f2; border-color:#e65a68; }
.bi-health-grid > div.pending { background:#f7f8fb; border-color:#aab4c4; }
.bi-health-grid span { color:var(--muted); font-size:8px; }
.bi-health-grid strong { margin-top:7px; font-size:14px; }
.bi-inventory-note { margin:0 10px 10px; padding:9px 10px; display:flex; align-items:flex-start; gap:8px; color:#68768d; background:#fafbfe; border:1px dashed #cbd4e4; }
.bi-inventory-note svg { width:15px; flex:0 0 auto; color:var(--green); }
.bi-inventory-note span strong,.bi-inventory-note span small { display:block; }
.bi-inventory-note span strong { color:var(--ink); font-size:9px; }
.bi-inventory-note span small { margin-top:3px; line-height:1.45; font-size:8px; }
.bi-store-list { padding:6px 12px 9px; }
.bi-store-row { min-height:45px; display:grid; grid-template-columns:minmax(110px,1fr) minmax(60px,.8fr) 42px; align-items:center; gap:8px; border-bottom:1px solid #eef1f6; }
.bi-store-row:last-child { border-bottom:0; }
.bi-store-row > span { min-width:0; }
.bi-store-row > span strong,.bi-store-row > span small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bi-store-row > span strong { font-size:9px; }
.bi-store-row > span small { margin-top:3px; color:var(--muted); font-size:8px; }
.bi-store-row > div { height:6px; overflow:hidden; background:#edf1f7; border-radius:3px; }
.bi-store-row > div i { height:100%; display:block; background:#4f7dec; border-radius:3px; }
.bi-store-row > b { text-align:right; font-size:9px; }
.bi-empty { padding:24px; color:var(--muted); text-align:center; font-size:9px; }
.bi-action-strip { margin-top:10px; display:grid; grid-template-columns:160px repeat(4,minmax(0,1fr)); background:#fff; border:1px solid var(--line-strong); }
.bi-action-strip > div,.bi-action-strip article { min-width:0; min-height:82px; padding:12px; display:flex; flex-direction:column; justify-content:center; border-right:1px solid var(--line); }
.bi-action-strip article:last-child { border-right:0; }
.bi-action-strip > div { background:#f3f7ff; }
.bi-action-strip span,.bi-action-strip small { overflow:hidden; text-overflow:ellipsis; color:var(--muted); font-size:8px; }
.bi-action-strip > div span { color:var(--ink); font-size:10px; font-weight:700; }
.bi-action-strip strong { margin:6px 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#315bd8; font-size:13px; }
.bi-action-strip article.risk strong { color:#dc4f5e; }
.bi-action-strip article.pending strong { color:#b17a25; }
.overview-bi-finance-grid { grid-template-columns:1fr 1fr; }

@media (max-width:1180px) {
  .overview-bi-kpis { grid-template-columns:repeat(4,1fr); }
  .overview-bi-kpis article:nth-child(4) { border-right:0; }
  .overview-bi-main-grid { grid-template-columns:1fr 1fr; }
  .bi-trend-panel { grid-column:1 / -1; }
  .overview-bi-secondary-grid { grid-template-columns:1fr 1fr; }
  .bi-category-panel { grid-column:1 / -1; }
  .bi-action-strip { grid-template-columns:1fr 1fr; }
  .bi-action-strip > div { grid-column:1 / -1; }
}
@media (max-width:640px) {
  .overview-bi-tabs { height:auto; flex-wrap:wrap; }
  .overview-bi-tabs button { min-width:50%; height:44px; padding:0 8px; }
  .overview-bi-tabs > span { width:100%; height:32px; margin:0; }
  .overview-bi-kpis { grid-template-columns:1fr 1fr; }
  .overview-bi-kpis article { border-bottom:1px solid var(--line); }
  .overview-bi-kpis article:nth-child(2n) { border-right:0; }
  .overview-bi-kpis article:last-child { grid-column:1 / -1; }
  .overview-bi-main-grid,.overview-bi-secondary-grid,.overview-bi-finance-grid { grid-template-columns:1fr; }
  .bi-trend-panel,.bi-category-panel { grid-column:auto; }
  .bi-contribution-row { grid-template-columns:82px minmax(50px,1fr) 62px; }
  .bi-contribution-row small { display:none; }
  .bi-status-layout { flex-direction:column; }
  .bi-status-layout > div:last-child { width:100%; }
  .bi-action-strip { grid-template-columns:1fr; }
  .bi-action-strip > div { grid-column:auto; }
  .bi-action-strip > div,.bi-action-strip article { border-right:0; border-bottom:1px solid var(--line); }
}
.bi-inventory-dataset { margin-top:10px; background:#fff; border:1px solid var(--line-strong); }
.bi-inventory-dataset summary { min-height:48px; padding:9px 13px; display:flex; align-items:center; justify-content:space-between; gap:10px; cursor:pointer; list-style:none; }
.bi-inventory-dataset summary::-webkit-details-marker { display:none; }
.bi-inventory-dataset summary > span { min-width:0; display:grid; grid-template-columns:16px minmax(0,1fr); align-items:center; gap:3px 8px; }
.bi-inventory-dataset summary > span > svg { width:16px; grid-row:1 / 3; color:var(--green); }
.bi-inventory-dataset summary b { font-size:10px; }
.bi-inventory-dataset summary small { color:var(--muted); font-size:8px; }
.bi-inventory-dataset summary > svg { width:15px; color:#77849a; transition:transform .2s ease; }
.bi-inventory-dataset[open] summary > svg { transform:rotate(180deg); }
.bi-inventory-dataset .table-wrap { border-top:1px solid var(--line); }
.bi-inventory-dataset table { min-width:1180px; }
.bi-inventory-dataset td small { display:block; margin-top:3px; color:var(--muted); font-size:8px; }
.bi-inventory-dataset-foot { padding:8px 13px; color:var(--muted); background:#fafbfe; border-top:1px solid var(--line); font-size:8px; }

/* Store rule center */
.daily-entry-tabs { margin-bottom:10px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); background:#fff; border:1px solid var(--line-strong); }
.daily-entry-tabs button { min-height:64px; padding:10px 14px; display:grid; grid-template-columns:28px minmax(0,1fr); grid-template-rows:auto auto; align-items:center; column-gap:9px; color:var(--muted); background:#fff; border:0; border-right:1px solid var(--line); text-align:left; cursor:pointer; }
.daily-entry-tabs button:last-child { border-right:0; }
.daily-entry-tabs button:hover { background:#f8faff; }
.daily-entry-tabs button.active { color:#315bd8; background:#f1f5ff; box-shadow:inset 0 3px 0 #315bd8; }
.daily-entry-tabs svg { width:28px; height:28px; padding:7px; grid-row:1 / 3; color:#315bd8; background:#edf2ff; border-radius:4px; }
.daily-entry-tabs span { color:var(--ink); font-size:10px; font-weight:800; }
.daily-entry-tabs small { margin-top:3px; font-size:8px; }
.daily-entry-sync-bar { min-height:52px; margin-bottom:10px; padding:8px 10px; display:flex; align-items:center; justify-content:space-between; gap:12px; background:#fff; border:1px solid var(--line-strong); }
.daily-entry-sync-bar > span { min-width:0; display:flex; align-items:center; gap:9px; }
.daily-entry-sync-bar > span > svg { width:28px; height:28px; padding:6px; flex:0 0 auto; color:#287553; background:#edf8f2; border-radius:4px; }
.daily-entry-sync-bar > span > span { min-width:0; display:flex; flex-direction:column; gap:2px; }
.daily-entry-sync-bar strong { overflow-wrap:anywhere; color:var(--ink); font-size:9px; }
.daily-entry-sync-bar small { color:var(--muted); font-size:8px; }
.daily-entry-sync-bar button { flex:0 0 auto; }
.daily-entry-sync-bar button:disabled svg { animation:daily-entry-spin 1s linear infinite; }
@keyframes daily-entry-spin { to { transform:rotate(360deg); } }
.reception-workspace { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr); gap:10px; }
.reception-paste-panel,.reception-check-panel,.reception-preview-panel { min-width:0; }
.reception-date-row { padding:12px 14px; display:flex; align-items:flex-end; justify-content:space-between; gap:12px; background:#f8faff; border-bottom:1px solid var(--line); }
.reception-date-row label { width:min(240px,100%); }
.reception-date-row label span { display:block; margin-bottom:5px; color:var(--muted); font-size:8px; font-weight:700; }
.reception-date-row input { width:100%; height:35px; padding:0 10px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; outline:0; }
.reception-date-row input:focus,.reception-paste-input:focus { border-color:#8fa3ed; box-shadow:0 0 0 3px rgba(49,91,216,.09); }
.reception-date-actions { display:flex; align-items:center; gap:8px; }
.reception-date-actions button { height:35px; white-space:nowrap; }
.reception-paste-input { width:calc(100% - 28px); min-height:250px; margin:14px; padding:12px; display:block; resize:vertical; color:#263247; background:#fbfcfe; border:1px solid var(--line-strong); border-radius:4px; outline:0; font:10px/1.7 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; tab-size:4; }
.reception-paste-input::placeholder { color:#929dad; }
.reception-actions { padding:0 14px 14px; display:flex; justify-content:flex-end; gap:8px; }
.reception-check-panel > .panel-header > svg { width:22px; color:#315bd8; }
.reception-check-grid { display:grid; grid-template-columns:1fr 1fr; }
.reception-check-grid > div { min-height:75px; padding:13px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.reception-check-grid > div:nth-child(2n) { border-right:0; }
.reception-check-grid span,.reception-check-grid strong { display:block; }
.reception-check-grid span { color:var(--muted); font-size:8px; }
.reception-check-grid strong { margin-top:7px; font-size:18px; }
.reception-check-grid .pending strong { color:#ad741f; }
.daily-entry-reconcile { margin:12px 12px 0; display:grid; grid-template-columns:repeat(2,1fr); border:1px solid #c8dfd3; }
.daily-entry-reconcile.warning { border-color:#ead7b8; }
.daily-entry-reconcile span { min-height:40px; padding:7px 9px; display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--muted); background:#f5faf7; border-right:1px solid #dce9e2; border-bottom:1px solid #dce9e2; font-size:8px; }
.daily-entry-reconcile.warning span { background:#fffaf1; border-color:#f0e2cb; }
.daily-entry-reconcile span:nth-child(2n) { border-right:0; }
.daily-entry-reconcile strong { color:var(--ink); font-size:9px; }
.daily-entry-reconcile.warning span:nth-child(3) strong { color:#ad741f; }
.reception-formula { min-height:66px; margin:12px; padding:10px; display:flex; align-items:center; gap:9px; color:#315bd8; background:#f1f5ff; border-left:3px solid #315bd8; }
.reception-formula > svg { width:18px; flex:0 0 auto; }
.reception-formula strong,.reception-formula small { display:block; }
.reception-formula strong { font-size:9px; }
.reception-formula small { margin-top:5px; color:#64728b; font-size:8px; line-height:1.45; }
.reception-save { width:calc(100% - 24px); margin:0 12px 12px; justify-content:center; }
.reception-save:disabled { cursor:not-allowed; opacity:.45; }
.reception-preview-panel { margin-top:10px; }
.reception-preview-table { min-width:760px; }
.reception-preview-table td strong,.reception-preview-table td small { display:block; }
.reception-preview-table td small { margin-top:3px; color:var(--muted); font-size:8px; }
.reception-row-pending td { background:#fffaf1; }
.reception-missing { color:#ad741f; font-weight:800; }
.reception-external-ledger .reception-ledger-date { min-width:180px; }
.reception-entry-dialog-backdrop { position:fixed; inset:0; z-index:130; padding:20px; display:flex; align-items:center; justify-content:center; background:rgba(15,24,42,.48); backdrop-filter:blur(2px); }
.reception-entry-dialog { width:min(1120px,100%); max-height:calc(100vh - 40px); overflow:hidden; display:flex; flex-direction:column; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:8px; box-shadow:0 24px 70px rgba(15,24,42,.24); }
.reception-entry-dialog-header { min-height:78px; padding:16px 20px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); }
.reception-entry-dialog-header span { color:#315bd8; font-size:8px; font-weight:800; letter-spacing:0; }
.reception-entry-dialog-header h3 { margin:3px 0 2px; font-size:18px; letter-spacing:0; }
.reception-entry-dialog-header p { margin:0; color:var(--muted); font-size:9px; }
.reception-entry-dialog-body { min-height:0; overflow:auto; display:grid; grid-template-columns:minmax(0,1.55fr) minmax(310px,.65fr); background:#f7f9fd; }
.reception-entry-source { min-width:0; background:#fff; border-right:1px solid var(--line); }
.reception-entry-source .reception-paste-input { min-height:340px; }
.reception-entry-check { min-width:0; background:#fff; }
.reception-entry-check-heading { min-height:76px; padding:14px 15px; display:flex; align-items:center; gap:10px; border-bottom:1px solid var(--line); }
.reception-entry-check-heading > span { width:34px; height:34px; display:grid; place-items:center; flex:0 0 auto; color:#315bd8; background:#edf2ff; border-radius:5px; }
.reception-entry-check-heading svg { width:17px; }
.reception-entry-check-heading h4 { margin:0; font-size:13px; }
.reception-entry-check-heading p { margin:4px 0 0; color:var(--muted); font-size:8px; line-height:1.45; }
.reception-entry-dialog-footer { min-height:56px; padding:10px 20px; display:flex; align-items:center; justify-content:space-between; gap:16px; color:var(--muted); background:#fbfcfe; border-top:1px solid var(--line); font-size:9px; }
.reception-entry-dialog-footer > div { display:flex; align-items:center; gap:8px; }
.commission-filterbar .douyin-promotion-search-label { min-width:260px; flex:1 1 300px; }
.commission-filterbar input,.commission-filterbar select { height:35px; }
.cashback-header-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.cashback-header-actions button { white-space:nowrap; }
.commission-reconcile-table { min-width:1700px; }
.commission-reconcile-table td { max-width:260px; }
.commission-reconcile-table td small { max-width:250px; overflow:hidden; text-overflow:ellipsis; }
.cashback-table { min-width:920px; }
.cashback-table td { max-width:300px; }
.cashback-table td small { max-width:280px; overflow:hidden; text-overflow:ellipsis; }
.cashback-review-panel { margin-bottom:12px; }
.cashback-review-table { min-width:1040px; }
.cashback-review-table td:nth-child(4) { min-width:360px; line-height:1.7; }
.cashback-review-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; white-space:nowrap; }
.cashback-order-match { display:flex; flex-direction:column; gap:4px; margin-top:8px; padding-top:8px; border-top:1px solid var(--line-color,#e5e7eb); }
.cashback-order-match select { min-width:320px; max-width:100%; }
.cashback-dialog-backdrop { position:fixed; inset:0; z-index:var(--z-modal); display:flex; align-items:center; justify-content:center; padding:24px; background:rgba(17,24,39,.38); }
.cashback-dialog { width:min(1180px,100%); max-height:min(86vh,820px); overflow:auto; background:#fff; border:1px solid #d9e1ef; border-radius:8px; box-shadow:0 18px 50px rgba(24,39,75,.22); }
.cashback-dialog-header { display:flex; align-items:flex-start; justify-content:space-between; padding:18px 22px; border-bottom:1px solid #e5eaf2; }
.cashback-dialog-header span { color:#315bd8; font-size:10px; letter-spacing:.08em; }
.cashback-dialog-header h3 { margin:5px 0 0; font-size:18px; }
.cashback-dialog-body { padding:18px 22px 24px; }
.cashback-calendar-summary { display:flex; gap:28px; margin-bottom:14px; }
.cashback-calendar-summary span { display:block; color:#7a869d; font-size:11px; }
.cashback-calendar-summary strong { display:block; margin-top:4px; font-size:16px; }
.cashback-calendar-drill { margin-top:18px; border-top:1px solid #e5eaf2; padding-top:14px; }
.cashback-calendar-table tr.missing td { background:#fff6f5; }
.cashback-calendar-table tr.warning td { background:#fffaf0; }
.commission-upload-dialog { width:min(1240px,100%); }
.commission-upload-body { min-height:0; padding:16px; overflow:auto; background:#f7f9fd; }
.commission-file-drop { min-height:74px; padding:14px; display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--line); }
.commission-file-drop > div { min-width:0; display:flex; flex-direction:column; gap:5px; }
.commission-file-drop strong { overflow:hidden; text-overflow:ellipsis; font-size:11px; }
.commission-file-drop small { color:var(--muted); font-size:8px; line-height:1.5; }
.commission-preview-metrics { margin-top:12px; }
.commission-upload-error,.commission-upload-warnings { min-height:42px; margin-top:10px; padding:10px 12px; display:flex; align-items:flex-start; gap:8px; font-size:9px; line-height:1.5; }
.commission-upload-error { color:#a13b3b; background:#fff3f3; border-left:3px solid #c75b5b; }
.commission-upload-error svg { width:16px; flex:0 0 auto; }
.commission-upload-warnings { flex-direction:column; color:#8b611d; background:#fffaf0; border-left:3px solid #c69742; }
.commission-upload-preview { max-height:340px; margin-top:12px; background:#fff; border:1px solid var(--line); }
.commission-upload-preview table { min-width:1120px; }
.commission-upload-preview th { position:sticky; top:0; z-index:2; }
.commission-upload-confirm svg[data-lucide="loader-circle"] { animation:daily-entry-spin 1s linear infinite; }
.backend-upload-dataset-legend { min-height:42px; padding:7px 18px; display:flex; align-items:center; flex-wrap:wrap; gap:7px; background:#fff; border-bottom:1px solid var(--line); }
.backend-upload-dataset-legend > span { min-height:26px; padding:4px 8px; display:inline-flex; align-items:center; gap:5px; border:1px solid currentColor; border-radius:4px; font-size:9px; font-weight:700; }
.backend-upload-dataset-legend svg { width:12px; height:12px; }
.backend-upload-dataset-legend .promotion,.backend-upload-dataset-badge.promotion { color:#285cc7; background:#eef4ff; }
.backend-upload-dataset-legend .author,.backend-upload-dataset-badge.author { color:#087d82; background:#eaf9f8; }
.backend-upload-dataset-legend .orders,.backend-upload-dataset-badge.orders { color:#a3620c; background:#fff6e7; }
.backend-upload-dataset-legend .reception,.backend-upload-dataset-badge.reception { color:#28704e; background:#edf8f2; }
.backend-upload-dataset-legend .generic,.backend-upload-dataset-badge.generic { color:#647188; background:#f1f4f8; }
.backend-upload-record-table .backend-upload-record-row td:first-child { border-left:4px solid transparent; }
.backend-upload-record-table .dataset-promotion td { background:#f8faff; }
.backend-upload-record-table .dataset-promotion td:first-child { border-left-color:#4775d6; }
.backend-upload-record-table .dataset-author td { background:#f5fbfb; }
.backend-upload-record-table .dataset-author td:first-child { border-left-color:#269398; }
.backend-upload-record-table .dataset-orders td { background:#fffbf4; }
.backend-upload-record-table .dataset-orders td:first-child { border-left-color:#d18a27; }
.backend-upload-record-table .dataset-reception td { background:#f6fbf8; }
.backend-upload-record-table .dataset-reception td:first-child { border-left-color:#3b8a65; }
.backend-upload-dataset-badge { width:max-content; max-width:300px; padding:6px 8px; display:inline-flex; align-items:center; gap:8px; border:1px solid currentColor; border-radius:5px; }
.backend-upload-dataset-badge > svg { width:16px; height:16px; flex:0 0 auto; }
.backend-upload-dataset-badge > span,.backend-upload-dataset-badge strong,.backend-upload-dataset-badge small { min-width:0; display:block; }
.backend-upload-dataset-badge strong { font-size:10px; }
.backend-upload-dataset-badge small { margin-top:2px; opacity:.72; font-size:7px; }
.reception-audit-window .detail-body { padding:16px 20px; background:#f7f9fd; }
.reception-audit-summary { margin-bottom:12px; display:grid; grid-template-columns:repeat(4,1fr); background:#fff; border:1px solid var(--line); }
.reception-audit-summary > div { min-height:68px; padding:11px 13px; border-right:1px solid var(--line); }
.reception-audit-summary > div:last-child { border-right:0; }
.reception-audit-summary span,.reception-audit-summary strong { display:block; }
.reception-audit-summary span { color:var(--muted); font-size:8px; }
.reception-audit-summary strong { margin-top:7px; font-size:16px; }
.reception-audit-summary .danger strong { color:#c64545; }
.reception-audit-summary .warning strong { color:#ad741f; }
.reception-audit-summary .success strong { color:#27845d; }
.reception-audit-scope { min-height:48px; padding:10px 12px; display:flex; align-items:flex-start; gap:9px; color:#536178; background:#fff; border:1px solid var(--line); border-bottom:0; }
.reception-audit-scope > svg { width:16px; flex:0 0 auto; color:#315bd8; }
.reception-audit-scope strong,.reception-audit-scope small { display:block; }
.reception-audit-scope strong { font-size:9px; }
.reception-audit-scope small { margin-top:4px; color:var(--muted); font-size:8px; line-height:1.5; }
.reception-audit-window .table-wrap { background:#fff; border:1px solid var(--line); }
.reception-audit-table { min-width:820px; }
.reception-audit-table th { height:34px; font-size:8px; }
.reception-audit-table td { height:43px; font-size:8px; }
.reception-audit-table tr.missing td { background:#fff8f7; }
.reception-audit-table tr.partial td { background:#fffbf3; }
.reception-audit-table .icon-button { width:29px; height:29px; }
.reception-audit-table .icon-button svg { width:14px; }
.kayini-daily-comparison { margin-top:14px; }
.kayini-daily-comparison .accounting-period-summary { margin:0; border-top:0; }
.kayini-date-tabs { min-height:58px; padding:9px 14px; display:grid; grid-template-columns:repeat(6,minmax(110px,1fr)); gap:6px; background:#f7f9f8; border-top:1px solid var(--line); border-bottom:1px solid var(--line); overflow-x:auto; }
.kayini-date-tabs button { min-width:110px; height:40px; padding:5px 10px; display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--muted); background:transparent; border:1px solid transparent; border-radius:4px; font-size:9px; }
.kayini-date-tabs button span { white-space:nowrap; font-weight:700; }
.kayini-date-tabs button small { white-space:nowrap; font-size:8px; }
.kayini-date-tabs button.active { color:#254dc8; background:white; border-color:#b8c6ee; box-shadow:0 1px 4px rgba(37,58,112,.08); }
.kayini-comparison-context { min-height:66px; padding:10px 14px; display:grid; grid-template-columns:repeat(3,minmax(90px,.55fr)) minmax(220px,1.6fr) minmax(120px,.7fr); gap:0; background:white; border-bottom:1px solid var(--line); }
.kayini-comparison-context > div { min-width:0; padding:3px 14px; display:flex; flex-direction:column; justify-content:center; border-right:1px solid var(--line); }
.kayini-comparison-context > div:first-child { padding-left:0; }
.kayini-comparison-context > div:last-child { border-right:0; }
.kayini-comparison-context span { color:var(--muted); font-size:8px; }
.kayini-comparison-context strong { margin-top:5px; font-size:11px; }
.kayini-comparison-context small { margin-top:3px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:8px; }
.kayini-detail-wrap { max-height:700px; }
.kayini-comparison-table { min-width:760px; table-layout:fixed; }
.kayini-comparison-table th:first-child,.kayini-comparison-table td:first-child { width:28%; text-align:left; }
.kayini-comparison-table th:not(:first-child),.kayini-comparison-table td:not(:first-child) { width:24%; text-align:right; }
.kayini-comparison-table td { height:46px; vertical-align:middle; }
.kayini-comparison-table td strong { display:block; }
.kayini-shipping-note { display:block; margin-top:4px; color:var(--muted); font-size:8px; line-height:1.45; }
.kayini-comparison-table .section-row td { border-top:2px solid #dfe5e2; background:#fbfcfb; }
.kayini-comparison-table .result-row td { background:#f7faf8; font-weight:700; }
.kayini-comparison-table .result-profit-row td { border-top:2px solid #bccac3; }
.kayini-missing-value { color:#a0a9b5; }
.kayini-comparison-table .positive { color:#27845d; }
@media (max-width:980px) {
  .reception-workspace { grid-template-columns:1fr; }
  .reception-entry-dialog-body { grid-template-columns:1fr; }
  .reception-entry-source { border-right:0; border-bottom:1px solid var(--line); }
  .kayini-date-tabs { grid-template-columns:repeat(6,110px); }
  .kayini-comparison-context { grid-template-columns:repeat(3,1fr); }
  .kayini-comparison-context > div:nth-child(3) { border-right:0; }
  .kayini-comparison-context > div:nth-child(n+4) { margin-top:8px; padding-top:8px; border-top:1px solid var(--line); }
  .kayini-comparison-context > div:nth-child(4) { grid-column:span 2; padding-left:0; }
}
@media (max-width:640px) {
  .daily-entry-tabs { grid-template-columns:1fr; }
  .daily-entry-tabs button { border-right:0; border-bottom:1px solid var(--line); }
  .daily-entry-tabs button:last-child { border-bottom:0; }
  .daily-entry-sync-bar { align-items:stretch; flex-direction:column; }
  .daily-entry-sync-bar button { width:100%; }
  .reception-date-row { align-items:stretch; flex-direction:column; }
  .reception-date-row label,.reception-date-row button { width:100%; }
  .reception-date-actions { width:100%; flex-direction:column; }
  .reception-audit-summary { grid-template-columns:1fr 1fr; }
  .reception-audit-summary > div:nth-child(2) { border-right:0; }
  .reception-audit-summary > div:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .reception-check-grid { grid-template-columns:1fr 1fr; }
  .reception-entry-dialog-backdrop { padding:8px; }
  .reception-entry-dialog { max-height:calc(100vh - 16px); }
  .reception-entry-dialog-footer { align-items:stretch; flex-direction:column; }
  .reception-entry-dialog-footer button { width:100%; }
}

.store-rule-heading { margin-bottom:14px; }
.store-rule-flow { min-height:64px; padding:0 18px; display:grid; grid-template-columns:repeat(3,1fr); background:#fff; border:1px solid var(--line-strong); }
.store-rule-flow > div { position:relative; display:flex; align-items:center; gap:10px; }
.store-rule-flow > div:not(:last-child)::after { content:""; width:58px; height:1px; position:absolute; right:20px; background:#d4ddea; }
.store-rule-flow i { width:30px; height:30px; display:grid; place-items:center; color:#315bd8; background:#edf2ff; border-radius:4px; font-style:normal; font-weight:800; }
.store-rule-flow .active i { color:#fff; background:#315bd8; }
.store-rule-flow strong,.store-rule-flow small { display:block; }
.store-rule-flow strong { font-size:10px; }
.store-rule-flow small { margin-top:3px; color:var(--muted); font-size:8px; }
.store-rule-summary { margin-top:10px; display:grid; grid-template-columns:repeat(3,1fr); background:#fff; border:1px solid var(--line-strong); }
.store-rule-summary article { min-height:72px; padding:11px 14px; border-right:1px solid var(--line); }
.store-rule-summary article:last-child { border-right:0; }
.store-rule-summary span,.store-rule-summary small { display:block; color:var(--muted); font-size:8px; }
.store-rule-summary strong { display:block; margin:6px 0 4px; font-size:15px; }
.store-rule-layout { margin-top:10px; display:grid; grid-template-columns:minmax(0,1.45fr) minmax(350px,.55fr); gap:10px; }
.store-rule-list,.store-rule-editor { min-width:0; }
.store-rule-import-actions { flex-wrap:nowrap; }
.store-rule-import-actions .primary-button,.store-rule-import-actions .secondary-button { height:31px; padding:0 8px; white-space:nowrap; font-size:8px; }
.store-rule-import-actions .status { white-space:nowrap; }
.store-rule-filters { padding:10px 12px; display:grid; grid-template-columns:.8fr .9fr 1.65fr auto; gap:8px; align-items:end; background:#f8faff; border-bottom:1px solid var(--line); }
.store-rule-filters > label > span { display:block; margin-bottom:4px; color:var(--muted); font-size:8px; font-weight:700; }
.store-rule-filters select { width:100%; height:34px; padding:0 9px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; outline:0; }
.store-rule-filters select:focus,.store-rule-store-filter details[open] > summary { border-color:#8fa3ed; box-shadow:0 0 0 3px rgba(49,91,216,.09); }
.store-rule-filters > button { align-self:end; height:34px; }
.store-rule-store-filter { min-width:0; }
.store-rule-store-filter details { position:relative; }
.store-rule-store-filter summary { height:34px; padding:0 9px; display:grid; grid-template-columns:14px minmax(0,1fr) 13px; align-items:center; gap:7px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; cursor:pointer; list-style:none; }
.store-rule-store-filter summary::-webkit-details-marker { display:none; }
.store-rule-store-filter summary svg { width:13px; color:#8390a5; }
.store-rule-store-filter summary strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:9px; }
.store-rule-store-menu { width:100%; min-width:310px; padding:7px; position:absolute; z-index:50; top:40px; right:0; background:#fff; border:1px solid #cdd7ea; border-radius:5px; box-shadow:0 12px 30px rgba(24,42,78,.16); }
.store-rule-store-menu > label { height:32px; padding:0 8px; display:flex; align-items:center; gap:7px; border:1px solid var(--line-strong); border-radius:4px; }
.store-rule-store-menu > label svg { width:14px; color:#8390a5; }
.store-rule-store-menu > label input { min-width:0; width:100%; border:0; outline:0; font-size:9px; }
.store-rule-store-menu > div { max-height:250px; margin-top:6px; overflow-y:auto; }
.store-rule-store-menu > div > button { width:100%; min-height:37px; padding:6px 8px; display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--ink); background:#fff; border:0; border-radius:3px; text-align:left; }
.store-rule-store-menu > div > button:hover,.store-rule-store-menu > div > button.active { color:#315bd8; background:#edf2ff; }
.store-rule-store-menu > div > button[hidden] { display:none; }
.store-rule-store-menu > div > button span { min-width:0; }
.store-rule-store-menu > div > button strong,.store-rule-store-menu > div > button small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.store-rule-store-menu > div > button strong { font-size:9px; }
.store-rule-store-menu > div > button small { margin-top:2px; color:var(--muted); font-size:7px; }
.store-rule-store-menu > div > button > svg { width:13px; flex:0 0 auto; }
.store-rule-table { min-width:830px; }
.store-rule-table th { height:34px; font-size:8px; }
.store-rule-table td { height:50px; font-size:9px; }
.store-rule-table tr.selected td { background:#f3f6ff; }
.store-rule-table td strong,.store-rule-table td small { display:block; }
.store-rule-table td small { max-width:240px; margin-top:3px; overflow:hidden; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; font-size:8px; }
.store-rule-table td b { font-size:10px; }
.store-rule-table .icon-button { width:27px; height:27px; }
.store-rule-pending { color:#a56d19; font-weight:700; }
.store-rule-editor-body { padding:12px; }
.store-rule-selected { min-height:52px; padding:9px 11px; display:flex; align-items:center; justify-content:space-between; color:#fff; background:#315bd8; border-radius:5px; }
.store-rule-selected span { min-width:0; }
.store-rule-selected small,.store-rule-selected strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.store-rule-selected small { color:#dbe4ff; font-size:8px; }
.store-rule-selected strong { margin-top:4px; font-size:11px; }
.store-rule-selected > svg { width:15px; flex:0 0 auto; }
.store-rule-selector { position:relative; }
.store-rule-selector > summary { min-height:54px; padding:9px 11px; display:flex; align-items:center; justify-content:space-between; gap:8px; color:#fff; background:#315bd8; border-radius:5px; cursor:pointer; list-style:none; }
.store-rule-selector > summary::-webkit-details-marker { display:none; }
.store-rule-selector > summary span { min-width:0; }
.store-rule-selector > summary small,.store-rule-selector > summary strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.store-rule-selector > summary small { color:#dbe4ff; font-size:8px; }
.store-rule-selector > summary strong { margin-top:4px; font-size:11px; }
.store-rule-selector > summary > svg { width:15px; flex:0 0 auto; transition:transform .18s ease; }
.store-rule-selector[open] > summary > svg { transform:rotate(180deg); }
.store-rule-selector-popover { width:100%; padding:8px; position:absolute; z-index:30; top:60px; left:0; background:#fff; border:1px solid var(--line-strong); border-radius:5px; box-shadow:0 12px 28px rgba(24,42,78,.17); }
.store-rule-selector-popover > label { height:32px; padding:0 8px; display:flex; align-items:center; gap:7px; border:1px solid var(--line-strong); border-radius:4px; }
.store-rule-selector-popover > label svg { width:14px; color:var(--muted); }
.store-rule-selector-popover > label input { min-width:0; width:100%; border:0; outline:0; }
.store-rule-selector-options { max-height:240px; margin-top:7px; overflow-y:auto; }
.store-rule-selector-options button { width:100%; min-height:44px; padding:7px 8px; display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--ink); background:#fff; border:0; border-bottom:1px solid var(--line); text-align:left; }
.store-rule-selector-options button:hover,.store-rule-selector-options button.active { color:#315bd8; background:#f1f5ff; }
.store-rule-selector-options button[hidden] { display:none; }
.store-rule-selector-options button span { min-width:0; }
.store-rule-selector-options button strong,.store-rule-selector-options button small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.store-rule-selector-options button strong { font-size:9px; }
.store-rule-selector-options button small { margin-top:3px; color:var(--muted); font-size:8px; }
.store-rule-selector-options button > svg { width:14px; flex:0 0 auto; }
.store-rule-editor-context { min-height:42px; display:flex; align-items:center; justify-content:space-between; gap:9px; }
.store-rule-editor-context > span:first-child { min-width:0; }
.store-rule-editor-context small,.store-rule-editor-context strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.store-rule-editor-context small { color:var(--muted); font-size:8px; }
.store-rule-editor-context strong { margin-top:4px; font-size:10px; }
.store-rule-indicators { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--line); border-top:0; }
.store-rule-indicators button { min-width:0; min-height:45px; padding:7px 8px; color:var(--ink); background:#fff; border:0; border-right:1px solid var(--line); text-align:left; }
.store-rule-indicators button:last-child { border-right:0; }
.store-rule-indicators button:hover { background:#f5f8ff; }
.store-rule-indicators span,.store-rule-indicators strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.store-rule-indicators span { color:var(--muted); font-size:7px; }
.store-rule-indicators strong { margin-top:4px; color:#315bd8; font-size:10px; }
.store-rule-metric-toolbar { min-height:38px; margin-top:7px; padding:6px 8px; display:flex; align-items:center; justify-content:space-between; background:#f8faff; border:1px solid var(--line); }
.store-rule-metric-toolbar > span { color:var(--muted); font-size:8px; }
.store-rule-metric-toolbar > span strong { color:var(--ink); }
.store-rule-metric-filter { position:relative; }
.store-rule-metric-filter > summary { height:28px; padding:0 8px; display:flex; align-items:center; gap:5px; color:#315bd8; background:#fff; border:1px solid #b9c7ee; border-radius:4px; cursor:pointer; list-style:none; font-size:8px; font-weight:700; }
.store-rule-metric-filter > summary::-webkit-details-marker { display:none; }
.store-rule-metric-filter > summary svg { width:12px; }
.store-rule-metric-filter > div { width:170px; padding:5px; position:absolute; z-index:35; top:34px; right:0; background:#fff; border:1px solid var(--line-strong); border-radius:4px; box-shadow:0 10px 24px rgba(24,42,78,.15); }
.store-rule-metric-filter > div button { width:100%; height:31px; padding:0 8px; display:flex; align-items:center; justify-content:space-between; color:var(--ink); background:#fff; border:0; border-radius:3px; text-align:left; font-size:8px; }
.store-rule-metric-filter > div button:hover,.store-rule-metric-filter > div button.active { color:#315bd8; background:#edf2ff; }
.store-rule-metric-filter > div button svg { width:12px; }
.store-rule-form label.metric-hidden { display:none; }
.store-rule-form { margin-top:11px; display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.store-rule-form label > span { min-height:14px; display:flex; justify-content:space-between; color:#657288; font-size:8px; font-weight:700; }
.store-rule-form label > span small { color:#315bd8; font-size:7px; }
.store-rule-form label > div,.store-rule-form label > select { width:100%; height:34px; margin-top:4px; display:flex; align-items:center; background:#fff; border:1px solid var(--line-strong); border-radius:4px; overflow:hidden; }
.store-rule-form label > select { padding:0 8px; color:var(--ink); }
.store-rule-form input,.store-rule-form div select { min-width:0; width:100%; height:100%; padding:0 8px; color:var(--ink); background:#fff; border:0; outline:0; }
.store-rule-form label > div > b { height:100%; padding:0 8px; display:flex; align-items:center; color:#6f7c90; background:#f5f7fb; border-right:1px solid var(--line); font-size:9px; }
.store-rule-form label > div > input + b { border-right:0; border-left:1px solid var(--line); }
.store-rule-form .full { grid-column:1 / -1; }
.store-rule-form .locked { padding:0 9px; justify-content:space-between; color:#536178; background:#f7f9fd; }
.store-rule-form .locked strong { font-size:9px; }
.store-rule-form .locked svg { width:14px; color:#315bd8; }
.store-rule-note { margin-top:10px; padding:9px 10px; display:flex; align-items:flex-start; gap:7px; color:#657288; background:#f8faff; border-left:3px solid #315bd8; font-size:8px; line-height:1.55; }
.store-rule-note svg { width:14px; flex:0 0 auto; color:#315bd8; }
.store-rule-save { width:100%; margin-top:10px; justify-content:center; }
.store-rule-formulas { margin-top:10px; }
.store-rule-formula-grid { display:grid; grid-template-columns:repeat(3,1fr); }
.store-rule-formula-grid article { min-height:118px; padding:13px; display:flex; gap:10px; border-right:1px solid var(--line); }
.store-rule-formula-grid article:last-child { border-right:0; }
.store-rule-formula-grid article > svg { width:29px; height:29px; padding:7px; flex:0 0 auto; color:#315bd8; background:#edf2ff; border-radius:4px; }
.store-rule-formula-grid span { min-width:0; }
.store-rule-formula-grid strong,.store-rule-formula-grid b,.store-rule-formula-grid small { display:block; }
.store-rule-formula-grid strong { margin-top:2px; font-size:10px; }
.store-rule-formula-grid b { margin-top:8px; padding:8px 9px; color:#294bb9; background:#f1f5ff; border-radius:4px; font-size:9px; }
.store-rule-formula-grid small { margin-top:7px; color:var(--muted); font-size:8px; line-height:1.45; }
.store-rule-import-window .detail-body { padding:16px 20px; background:#f7f9fd; }
.store-rule-import-summary { margin-bottom:12px; display:grid; grid-template-columns:repeat(4,1fr); background:#fff; border:1px solid var(--line); }
.store-rule-import-summary > div { min-height:66px; padding:11px 13px; border-right:1px solid var(--line); }
.store-rule-import-summary > div:last-child { border-right:0; }
.store-rule-import-summary span,.store-rule-import-summary strong { display:block; }
.store-rule-import-summary span { color:var(--muted); font-size:8px; }
.store-rule-import-summary strong { margin-top:7px; font-size:15px; }
.store-rule-import-summary .danger strong { color:#c64545; }
.store-rule-import-window .table-wrap { background:#fff; border:1px solid var(--line); }
.store-rule-import-preview { min-width:1040px; }
.store-rule-import-preview th { height:34px; font-size:8px; }
.store-rule-import-preview td { height:46px; font-size:8px; }
.store-rule-import-preview td strong,.store-rule-import-preview td small { display:block; }
.store-rule-import-preview td small { margin-top:3px; color:var(--muted); font-size:7px; }
.store-rule-import-preview tr.invalid td { background:#fff8f7; }
.store-rule-import-error { color:#c64545; font-weight:700; }
.store-rule-import-note { min-height:44px; padding:10px 12px; display:flex; align-items:center; gap:8px; color:var(--muted); background:#fff; border:1px solid var(--line); border-top:0; font-size:8px; }
.store-rule-import-note svg { width:15px; flex:0 0 auto; color:#315bd8; }
@media (max-width:1180px) {
  .store-rule-layout { grid-template-columns:1fr; }
  .store-rule-formula-grid { grid-template-columns:1fr; }
  .store-rule-formula-grid article { border-right:0; border-bottom:1px solid var(--line); }
}
@media (max-width:640px) {
  .store-rule-flow,.store-rule-summary { grid-template-columns:1fr; }
  .store-rule-flow > div { min-height:55px; }
  .store-rule-flow > div::after { display:none; }
  .store-rule-summary article { border-right:0; border-bottom:1px solid var(--line); }
  .store-rule-filters { grid-template-columns:1fr 1fr; }
  .store-rule-import-actions .status { display:none; }
  .store-rule-import-summary { grid-template-columns:1fr 1fr; }
  .store-rule-import-summary > div { border-bottom:1px solid var(--line); }
}

/* Warehouse fee rules */
.warehouse-rule-summary { display:grid; grid-template-columns:repeat(3,1fr); background:#fff; border:1px solid var(--line-strong); }
.warehouse-rule-summary article { min-height:78px; padding:12px 14px; display:flex; align-items:center; gap:11px; border-right:1px solid var(--line); }
.warehouse-rule-summary article:last-child { border-right:0; }
.warehouse-rule-summary article > svg { width:32px; height:32px; padding:8px; flex:0 0 auto; color:#315bd8; background:#edf2ff; border-radius:4px; }
.warehouse-rule-summary span,.warehouse-rule-summary small,.warehouse-rule-summary strong,.warehouse-rule-summary b { display:block; }
.warehouse-rule-summary small { color:var(--muted); font-size:8px; }
.warehouse-rule-summary strong { margin:4px 0; font-size:13px; }
.warehouse-rule-summary b { color:#315bd8; font-size:8px; }
.warehouse-rule-layout { margin-top:10px; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr); gap:10px; }
.warehouse-rule-effective { padding:11px 13px; display:grid; grid-template-columns:1fr 1fr; gap:9px; background:#f8faff; border-bottom:1px solid var(--line); }
.warehouse-rule-effective label > span,.warehouse-fee-grid label > span,.warehouse-fee-test-body label > span { display:block; margin-bottom:5px; color:#657288; font-size:8px; font-weight:700; }
.warehouse-rule-effective input,.warehouse-fee-test-body input,.warehouse-fee-test-body select { width:100%; height:34px; padding:0 9px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; }
.warehouse-fee-section { padding:13px; border-bottom:1px solid var(--line); }
.warehouse-fee-section:last-child { border-bottom:0; }
.warehouse-fee-page { display:grid; gap:14px; }
.warehouse-fee-page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; padding:2px 2px 0; }
.warehouse-fee-page-head h2 { margin:4px 0 3px; font-size:22px; letter-spacing:0; }
.warehouse-fee-page-head p { margin:0; color:var(--muted); font-size:12px; }
.warehouse-fee-view-toggle { display:flex; align-items:center; gap:4px; padding:4px; background:#f3f6fa; border:1px solid var(--line); border-radius:6px; }
.warehouse-fee-view-toggle button { min-height:34px; display:inline-flex; align-items:center; gap:7px; padding:0 12px; color:#68768b; background:transparent; border:0; border-radius:4px; font:inherit; font-size:12px; font-weight:700; white-space:nowrap; }
.warehouse-fee-view-toggle button.active { color:#173b65; background:#fff; box-shadow:0 1px 3px rgba(28,47,73,.12); }
.warehouse-fee-view-toggle button.disabled { cursor:not-allowed; opacity:.58; }
.warehouse-fee-view-toggle svg { width:15px; height:15px; }
.warehouse-fee-view-toggle button span { color:#9aa5b4; font-size:10px; font-weight:600; }
.warehouse-fee-external-ledger { min-width:0; }
.warehouse-fee-external-ledger > .panel-header { align-items:center; gap:16px; }
.warehouse-fee-data-view-toggle { display:flex; align-items:center; gap:2px; padding:3px; background:#f3f6fa; border:1px solid var(--line); border-radius:6px; flex:0 0 auto; }
.warehouse-fee-data-view-toggle button { height:30px; display:inline-flex; align-items:center; justify-content:center; gap:5px; padding:0 10px; color:#68768b; background:transparent; border:0; border-radius:4px; font:inherit; font-size:11px; font-weight:700; white-space:nowrap; cursor:pointer; }
.warehouse-fee-data-view-toggle button:hover { color:#244e7d; background:#e9eef5; }
.warehouse-fee-data-view-toggle button.active { color:#1f58bf; background:#fff; box-shadow:0 1px 3px rgba(28,47,73,.14); }
.warehouse-fee-data-view-toggle svg { width:14px; height:14px; }
.warehouse-fee-search-label { min-width:190px; flex:0 1 230px; }
.warehouse-fee-table { min-width:1680px; }
.warehouse-fee-table.warehouse-fee-aggregate-table { min-width:1040px; }
.warehouse-fee-table th { white-space:nowrap; }
.warehouse-fee-table td { white-space:nowrap; }
@media (max-width:760px) {
  .warehouse-fee-page-head { display:grid; align-items:stretch; gap:12px; }
  .warehouse-fee-view-toggle { width:100%; }
  .warehouse-fee-view-toggle button { flex:1; justify-content:center; padding:0 6px; }
  .warehouse-fee-external-ledger > .panel-header { align-items:stretch; }
  .warehouse-fee-data-view-toggle { width:100%; }
  .warehouse-fee-data-view-toggle button { flex:1; padding:0 4px; }
}
.warehouse-fee-section-title { margin-bottom:11px; display:flex; align-items:center; gap:9px; }
.warehouse-fee-section-title > svg { width:28px; height:28px; padding:7px; color:#315bd8; background:#edf2ff; border-radius:4px; }
.warehouse-fee-section-title strong,.warehouse-fee-section-title small { display:block; }
.warehouse-fee-section-title strong { font-size:10px; }
.warehouse-fee-section-title small { margin-top:3px; color:var(--muted); font-size:8px; }
.warehouse-fee-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.warehouse-fee-grid.two { grid-template-columns:1fr 1fr; }
.warehouse-fee-grid label.direct > span { color:#315bd8; }
.warehouse-direct-after-sale { min-height:34px; margin-top:9px; padding:8px 10px; display:flex; align-items:center; gap:8px; color:#657288; background:#f7f9fd; border:1px solid var(--line); }
.warehouse-direct-after-sale svg { width:15px; color:#315bd8; }
.warehouse-direct-after-sale strong { color:var(--ink); }
.warehouse-fee-input { height:34px; display:flex; align-items:center; overflow:hidden; background:#fff; border:1px solid var(--line-strong); border-radius:4px; }
.warehouse-fee-input input { min-width:0; width:100%; height:100%; padding:0 8px; color:var(--ink); background:#fff; border:0; outline:0; }
.warehouse-fee-input b { height:100%; padding:0 8px; display:flex; align-items:center; color:#68768b; background:#f5f7fb; border-left:1px solid var(--line); white-space:nowrap; font-size:8px; }
.warehouse-fee-test-body { padding:13px; }
.warehouse-fee-test-body label { display:block; margin-bottom:10px; }
.warehouse-test-definition { min-height:34px; margin:-2px 0 10px; padding:0 9px; display:flex; align-items:center; justify-content:space-between; background:#f7f9fd; border:1px solid var(--line); }
.warehouse-test-definition span { color:var(--muted); font-size:8px; }
.warehouse-test-definition strong { color:#315bd8; font-size:10px; }
.warehouse-test-result { min-height:93px; margin-top:12px; padding:14px; color:#fff; background:#315bd8; border-radius:5px; }
.warehouse-test-result small,.warehouse-test-result strong,.warehouse-test-result span { display:block; }
.warehouse-test-result small { color:#dce5ff; font-size:8px; }
.warehouse-test-result strong { margin:7px 0 5px; font-size:23px; }
.warehouse-test-result span { color:#e5ebff; font-size:9px; }
.warehouse-test-path { margin-top:10px; padding:9px 10px; display:flex; align-items:flex-start; gap:7px; color:#657288; background:#f8faff; border-left:3px solid #315bd8; line-height:1.5; font-size:8px; }
.warehouse-test-path svg { width:14px; flex:0 0 auto; color:#315bd8; }
.warehouse-sku-size-panel { margin-top:10px; }
.warehouse-sku-size-panel .panel-header { gap:16px; }
.warehouse-sku-size-panel .toolbar { flex-wrap:wrap; justify-content:flex-end; }
.warehouse-sku-size-summary { display:grid; grid-template-columns:repeat(4,1fr); background:#f8fafc; border-bottom:1px solid var(--line); }
.warehouse-sku-size-summary article { min-height:58px; padding:10px 13px; border-right:1px solid var(--line); }
.warehouse-sku-size-summary article:last-child { border-right:0; }
.warehouse-sku-size-summary span,.warehouse-sku-size-summary strong { display:block; }
.warehouse-sku-size-summary span { color:var(--muted); font-size:8px; }
.warehouse-sku-size-summary strong { margin-top:5px; color:var(--ink); font-size:16px; }
.warehouse-sku-size-summary .pending strong { color:#a45f10; }
.warehouse-sku-size-toolbar { min-height:52px; padding:9px 13px; display:flex; align-items:center; gap:10px; border-bottom:1px solid var(--line); }
.warehouse-sku-size-toolbar .warehouse-directory-search { width:min(360px,45vw); }
.warehouse-sku-size-toolbar > label:not(.warehouse-directory-search) { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:8px; font-weight:700; }
.warehouse-sku-size-toolbar select,.warehouse-sku-size-select { height:30px; padding:0 27px 0 8px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; }
.warehouse-sku-size-count { margin-left:auto; color:var(--muted); font-size:8px; white-space:nowrap; }
.warehouse-sku-size-note { min-height:39px; padding:8px 13px; display:flex; align-items:center; gap:8px; color:#58667a; background:#fffaf0; border-bottom:1px solid #ecd9b7; font-size:8px; line-height:1.5; }
.warehouse-sku-size-note svg { width:15px; flex:0 0 auto; color:#a45f10; }
.warehouse-sku-size-scroll { max-height:420px; overflow:auto; }
.warehouse-sku-size-scroll table { width:100%; min-width:860px; border-collapse:collapse; table-layout:fixed; }
.warehouse-sku-size-scroll th { position:sticky; top:0; z-index:1; height:34px; padding:0 13px; color:#68758a; background:#eef3fb; border-bottom:1px solid var(--line); text-align:left; font-size:8px; }
.warehouse-sku-size-scroll td { height:43px; padding:6px 13px; border-bottom:1px solid var(--line); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:9px; }
.warehouse-sku-size-scroll th:nth-child(1),.warehouse-sku-size-scroll td:nth-child(1) { width:22%; }
.warehouse-sku-size-scroll th:nth-child(2),.warehouse-sku-size-scroll td:nth-child(2) { width:24%; }
.warehouse-sku-size-scroll th:nth-child(3),.warehouse-sku-size-scroll td:nth-child(3) { width:13%; }
.warehouse-sku-size-scroll th:nth-child(4),.warehouse-sku-size-scroll td:nth-child(4) { width:14%; }
.warehouse-sku-size-select { width:100%; min-width:92px; }
.warehouse-sku-size-pager { min-height:54px; padding:9px 13px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--line); background:#fff; }
.warehouse-sku-size-pager > span { color:var(--muted); font-size:9px; }
.warehouse-sku-size-pager > div { display:flex; align-items:center; gap:9px; }
.warehouse-sku-size-pager strong { min-width:82px; color:#52617d; font-size:9px; text-align:center; }
.warehouse-sku-size-pager button:disabled { cursor:not-allowed; opacity:.45; }
.warehouse-rule-logic { margin-top:10px; }
.warehouse-logic-grid { display:grid; grid-template-columns:repeat(4,1fr); }
.warehouse-logic-grid article { min-height:76px; padding:12px; display:flex; align-items:center; gap:9px; border-right:1px solid var(--line); }
.warehouse-logic-grid article:last-child { border-right:0; }
.warehouse-logic-grid article > i { width:27px; height:27px; display:grid; place-items:center; flex:0 0 auto; color:#315bd8; background:#edf2ff; border-radius:4px; font-style:normal; font-weight:800; }
.warehouse-logic-grid strong,.warehouse-logic-grid small { display:block; }
.warehouse-logic-grid strong { font-size:9px; }
.warehouse-logic-grid small { margin-top:4px; color:var(--muted); font-size:8px; line-height:1.4; }
.warehouse-directory-panel { margin-top:10px; }
.warehouse-directory-search { width:230px; height:32px; padding:0 9px; display:flex; align-items:center; gap:7px; background:#fff; border:1px solid var(--line-strong); border-radius:4px; }
.warehouse-directory-search svg { width:14px; color:var(--muted); }
.warehouse-directory-search input { min-width:0; width:100%; border:0; outline:0; }
.warehouse-directory-scroll { max-height:360px; overflow:auto; }
.warehouse-directory-scroll table { width:100%; border-collapse:collapse; table-layout:fixed; }
.warehouse-directory-scroll th { position:sticky; top:0; z-index:1; height:34px; padding:0 13px; color:#68758a; background:#eef3fb; border-bottom:1px solid var(--line); text-align:left; font-size:8px; }
.warehouse-directory-scroll td { height:42px; padding:0 13px; border-bottom:1px solid var(--line); font-size:9px; }
.warehouse-directory-scroll th:first-child,.warehouse-directory-scroll td:first-child { width:48%; }
.warehouse-directory-scroll td select { width:130px; height:29px; padding:0 7px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:4px; }
.warehouse-directory-scroll tr[hidden] { display:none; }
@media (max-width:1000px) {
  .warehouse-rule-layout { grid-template-columns:1fr; }
  .warehouse-fee-grid { grid-template-columns:1fr; }
  .warehouse-logic-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:640px) {
  .warehouse-rule-summary,.warehouse-rule-effective,.warehouse-fee-grid.two,.warehouse-logic-grid { grid-template-columns:1fr; }
  .warehouse-rule-summary article,.warehouse-logic-grid article { border-right:0; border-bottom:1px solid var(--line); }
  .warehouse-sku-size-panel .panel-header { align-items:flex-start; }
  .warehouse-sku-size-panel .toolbar { width:100%; justify-content:flex-start; }
  .warehouse-sku-size-summary { grid-template-columns:1fr 1fr; }
  .warehouse-sku-size-summary article:nth-child(2) { border-right:0; }
  .warehouse-sku-size-summary article:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .warehouse-sku-size-toolbar { align-items:stretch; flex-wrap:wrap; }
  .warehouse-sku-size-toolbar .warehouse-directory-search { width:100%; }
  .warehouse-sku-size-count { width:100%; margin-left:0; }
  .warehouse-sku-size-pager { align-items:stretch; flex-direction:column; }
  .warehouse-sku-size-pager > div { justify-content:space-between; }
}

/* Unified blue and white theme —— 变量已合并到文件顶部 :root */

html,body,.main-shell { background:var(--bg); color:var(--ink); }
.sidebar { color:#506078; background:#fff; border-right:1px solid var(--line); box-shadow:3px 0 14px rgba(27,48,84,.035); }
.brand,.sidebar-footer { border-color:var(--line); }
.brand-mark,.user-avatar { color:#fff; background:var(--brand-blue); }
.brand-copy strong,.company-switcher strong,.user-card strong,.period-progress span b { color:var(--ink); }
.brand-copy span,.company-switcher span,.company-switcher svg,.period-progress span,.user-card span { color:#8390a5; }
.company-switcher { background:var(--brand-blue-faint); border-color:var(--line); }
.company-avatar { color:var(--brand-blue); background:var(--brand-blue-soft); }
.nav-label,.nav-group-toggle small { color:#929eb1; }
.nav-group-toggle { color:#263550; }
.nav-group-toggle:hover,.nav-item:hover { color:var(--brand-blue); background:#f6f8fc; }
.nav-group-items { border-left-color:#dfe7f3; }
.nav-item { color:#617089; }
.nav-item.active { color:#2457b7; background:var(--brand-blue-soft); box-shadow:inset 2px 0 var(--brand-blue); }
.period-progress > div { background:#e4eaf4; }
.period-progress i { background:var(--brand-blue); }

.topbar { background:rgba(255,255,255,.97); border-bottom-color:var(--line); box-shadow:0 1px 8px rgba(27,48,84,.025); }
.breadcrumb { color:#7a879b; }
.breadcrumb strong { color:#25344e; }
.search-trigger,.global-time-filter input { color:#65748d; background:#f8faff; border-color:var(--line); }
.system-switch-link { color:#2457b7; background:#f3f6fb; border-color:#d5deeb; }
.system-switch-link:hover { color:#fff; background:var(--brand-blue); border-color:var(--brand-blue); }
.primary-button { color:#fff; background:var(--brand-blue); border-color:var(--brand-blue); }
.primary-button:hover { background:var(--brand-blue-dark); border-color:var(--brand-blue-dark); }
.secondary-button { color:#34445f; background:#fff; border-color:var(--line-strong); }
.secondary-button:hover,.filter-button:hover { color:var(--brand-blue); background:#f6f8fc; border-color:#aebfdf; }
.primary-button:active:not(:disabled) { background:#214e9e; border-color:#214e9e; }
.secondary-button:active:not(:disabled), .icon-button:active:not(:disabled) { background:#e9eef7; border-color:#aebfdf; }
.period-selector,.profit-view-switch,.monitor-tabs,.settlement-carrier-tabs,.top-link-ranks { background:#eef2f7; }
.period-selector button.active,.profit-view-switch button.active,.monitor-tabs button.active { color:var(--brand-blue); background:#fff; }

.panel,.metrics-grid,.dimension-section,.stat-block,.risk-list,.settings-grid .setting-item { background:#fff; border-color:var(--line); border-radius:6px; box-shadow:0 1px 3px rgba(27,48,84,.035); }
.metrics-grid { overflow:hidden; }
.panel-header,.bi-panel-head { border-bottom-color:var(--line); }
.metric:hover,.metric-selected { background:#f5f8fd !important; box-shadow:inset 0 -2px var(--brand-blue); }
th,.atomic-ledger-table thead th:first-child { color:#617088; background:#f4f7fb; }
tbody tr:hover,.promotion-store-row:hover td,.promotion-link-table tbody tr:hover td { background:#f8fafc; }
input:focus,select:focus,textarea:focus { border-color:#809bd3; box-shadow:0 0 0 3px rgba(47,100,200,.08); }

.directory-import-foot,.dimension-filterbar,.dimension-return-note,.accounting-rolling-days,.accounting-matrix-toolbar,
.accounting-matrix-table thead tr:nth-child(2) th,.profit-analysis-summary,.return-product-selector,.rule-config-grid,
.platform-accounting-tabs,.platform-store-rate-head,.courier-controls,.settlement-filterbar,.monitor-formula,
.promotion-roi-actions > section,.calculation-rules,.platform-target-formula,.top-link-controls,.store-link-controls,
.order-filterbar,.platform-daily-filterbar,.platform-daily-vertical thead th,.platform-bill-tabs,.platform-bill-filterbar {
  background:var(--brand-blue-faint);
}
.insight,.quick-profit-results,.profit-total-row,.formula-note,.accounting-rule-primary,.recommended-row,
.platform-daily-vertical .vertical-total-row th,.platform-daily-vertical .vertical-total-row td {
  background:#f1f5fb;
}
.accounting-matrix-table tr.profit td,.accounting-matrix-table tr.profit td:first-child { color:#2453a6; background:#eaf1fb; border-top-color:var(--brand-blue); }

.dingtalk-config { border-radius:6px; }
.dingtalk-brand { min-height:92px; color:var(--ink); background:#f3f6fb; border-bottom:1px solid var(--line); }
.dingtalk-brand > .dingtalk-brand-icon { color:#fff; background:var(--brand-blue); box-shadow:0 4px 12px rgba(47,100,200,.16); }
.dingtalk-brand.dingtalk-bot-brand { background:#eef8f3; border-left:3px solid #176b52; }
.dingtalk-brand.dingtalk-bot-brand > .dingtalk-brand-icon { color:#fff; background:#176b52; box-shadow:0 4px 12px rgba(23,107,82,.16); }
.dingtalk-brand > span > small { color:var(--muted); }
.dingtalk-robot-list { gap:8px; }
.dingtalk-robot-row { min-height:50px; color:var(--ink); background:#fff; border:1px solid #d9e2ef; border-radius:5px; }
.dingtalk-robot-row > span small { color:var(--muted); }
.dingtalk-robot-row .icon-button { color:#607089; background:#f8fafc; border-color:#dbe3ee; }
.dingtalk-robot-row .icon-button:hover { color:var(--brand-blue); background:var(--brand-blue-soft); border-color:#bdcde8; }
.dingtalk-robot-row .icon-button.active { color:#fff; background:var(--brand-blue); border-color:var(--brand-blue); }
.dingtalk-robot-row .icon-button.danger:hover { color:var(--red); background:var(--red-soft); border-color:#efcbd0; }
.dingtalk-robot-empty { min-height:50px; padding:15px 12px; color:var(--muted); background:#fff; border:1px dashed #cad5e5; border-radius:5px; }
.dingtalk-form,.wanliniu-form { background:#f8fbff; }
.dingtalk-form .dingtalk-schedule-enabled { accent-color:var(--brand-blue); }
.dingtalk-actions > span svg { color:var(--brand-blue); }
.wanliniu-config { border-radius:6px; overflow:hidden; }
.wanliniu-config-body { grid-template-columns:minmax(250px,.48fr) minmax(480px,1.52fr); }
.wanliniu-brand { min-height:236px; color:var(--ink); background:#eef3fa; border-right:1px solid var(--line); }
.wanliniu-brand > div { color:#fff; background:var(--brand-blue); border-radius:8px; box-shadow:0 5px 14px rgba(47,100,200,.15); }
.wanliniu-brand small { color:var(--muted); }
.ai-hero,.profit-result-main,.toast { color:#fff; background:var(--brand-blue-dark); border-color:var(--brand-blue-dark); }
.wanliniu-flow-steps > div { background:#f7f9fd; }
.wanliniu-flow-steps > div.active { background:var(--brand-blue-soft); border-color:#bfd0f0; }
.ai-hero p,.profit-result-main span,.profit-result-main small { color:#cfdbf7; }
.toast svg { color:#c9d8ff; }

.status.success,.status.normal { color:#14724f; background:#e8f6f0; }
.positive,.change.up { color:#14724f !important; }
.target-progress i.success { background:#16805a; }
.status.warning { color:#9a671a; background:#fff3d8; }
.status.danger { color:#a73d47; background:#fdecee; }

.dingtalk-bot-config { min-width:0; border-color:#cdd9eb; box-shadow:0 4px 18px rgba(37,68,122,.06); }
.dingtalk-bot-header { min-height:66px; padding:15px 22px; background:#fff; }
.dingtalk-bot-header .status { display:inline-flex; align-items:center; gap:5px; }
.dingtalk-bot-header .status svg { width:12px; height:12px; }
.dingtalk-bot-header .status.muted { color:#66758c; background:#edf1f6; }
.dingtalk-bot-layout { min-width:0; display:grid; grid-template-columns:minmax(260px,.7fr) minmax(480px,1.3fr); }
.dingtalk-bot-overview { min-width:0; min-height:258px; padding:24px; background:#f1f5fb; border-right:1px solid #dbe3ef; }
.dingtalk-bot-identity { display:flex; align-items:center; gap:13px; }
.dingtalk-bot-mark { width:44px; height:44px; flex:0 0 auto; display:grid; place-items:center; color:#fff; background:var(--brand-blue); border-radius:6px; box-shadow:0 5px 14px rgba(47,100,200,.16); }
.dingtalk-bot-mark svg { width:21px; }
.dingtalk-bot-identity > div:last-child { min-width:0; display:flex; flex-direction:column; gap:4px; }
.dingtalk-bot-identity strong { color:var(--ink); font-size:15px; }
.dingtalk-bot-identity small { color:var(--muted); font-size:10px; }
.dingtalk-bot-facts { margin:22px 0 0; display:grid; gap:0; }
.dingtalk-bot-facts > div { min-width:0; padding:11px 0; display:grid; grid-template-columns:104px minmax(0,1fr); align-items:center; gap:10px; border-top:1px solid #dce4ef; }
.dingtalk-bot-facts dt { display:flex; align-items:center; gap:7px; color:#6c7990; font-size:10px; }
.dingtalk-bot-facts dt svg { width:14px; color:#7893c3; }
.dingtalk-bot-facts dd { min-width:0; margin:0; overflow:hidden; color:#314057; font-size:10px; font-weight:700; text-align:right; text-overflow:ellipsis; white-space:nowrap; }
.dingtalk-bot-facts dd.connected { color:#14724f; }
.dingtalk-form.dingtalk-bot-form { min-width:0; min-height:258px; padding:24px 26px; display:flex; flex-direction:column; align-items:stretch; gap:19px; background:#fff; }
.dingtalk-bot-form-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.dingtalk-bot-form-heading > span:first-child { display:flex; flex-direction:column; gap:4px; }
.dingtalk-bot-form-heading strong { color:var(--ink); font-size:13px; }
.dingtalk-bot-form-heading small { color:var(--muted); font-size:9px; font-weight:400; }
.dingtalk-bot-form-heading > span:last-child { padding:5px 8px; display:inline-flex; align-items:center; gap:5px; color:#52688e; background:#f1f5fb; border-radius:4px; font-size:9px; white-space:nowrap; }
.dingtalk-bot-form-heading > span:last-child svg { width:13px; color:var(--brand-blue); }
.dingtalk-bot-fields { min-width:0; display:grid; grid-template-columns:minmax(180px,.85fr) minmax(260px,1.15fr); gap:16px; }
.dingtalk-bot-fields > label { min-width:0; display:flex; flex-direction:column; gap:7px; color:#49566b; font-size:10px; font-weight:700; }
.dingtalk-bot-fields > label > span { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.dingtalk-bot-fields > label > span small { color:#8b96a8; font-size:8px; font-weight:500; }
.dingtalk-form.dingtalk-bot-form input { height:44px; border-color:#cbd6e6; border-radius:5px; }
.dingtalk-form.dingtalk-bot-form input:focus { border-color:#6f8fc8; box-shadow:0 0 0 3px rgba(47,100,200,.08); }
.dingtalk-bot-secret-toggle { position:absolute; top:2px; right:2px; width:40px; height:40px; display:grid; place-items:center; color:#6f7c90; background:transparent; border:0; border-radius:4px; cursor:pointer; }
.dingtalk-bot-secret-toggle:hover { color:var(--brand-blue); background:#f1f5fb; }
.dingtalk-bot-secret-toggle svg { width:16px; }
.dingtalk-bot-form-footer { margin-top:auto; padding-top:15px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-top:1px solid #e1e7f0; }
.dingtalk-bot-form-footer > span { min-width:0; display:inline-flex; align-items:center; gap:7px; color:var(--muted); font-size:9px; }
.dingtalk-bot-form-footer > span svg { width:14px; flex:0 0 auto; color:var(--brand-blue); }
.dingtalk-bot-form-footer .primary-button { min-width:146px; height:40px; justify-content:center; }
@media (max-width:1180px) {
  .dingtalk-bot-layout { grid-template-columns:minmax(230px,.65fr) minmax(420px,1.35fr); }
  .dingtalk-bot-fields { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .upload-key-create { grid-template-columns:minmax(0,1fr); }
  .upload-key-reveal { grid-template-columns:38px minmax(0,1fr); }
  .upload-key-reveal button { grid-column:auto; }
  .middle-order-filterbar { grid-template-columns:minmax(0,1fr); }
  .middle-order-filterbar .order-search { grid-column:auto; }
  .dingtalk-bot-header { align-items:flex-start; gap:10px; }
  .dingtalk-bot-header .panel-title { min-width:0; }
  .dingtalk-bot-layout { grid-template-columns:minmax(0,1fr); }
  .dingtalk-bot-overview { min-height:0; padding:20px; border-right:0; border-bottom:1px solid #dbe3ef; }
  .dingtalk-bot-facts > div { grid-template-columns:94px minmax(0,1fr); }
  .dingtalk-form.dingtalk-bot-form { min-height:0; padding:20px; gap:17px; }
  .dingtalk-bot-form-heading { align-items:flex-start; flex-direction:column; }
  .dingtalk-bot-fields { grid-template-columns:minmax(0,1fr); }
  .dingtalk-bot-fields > label,.dingtalk-secret-field { width:100%; min-width:0; }
  .dingtalk-bot-form-footer { align-items:stretch; flex-direction:column; }
  .dingtalk-bot-form-footer .primary-button { width:100%; }
}

/* API reference */
.api-doc-facts { margin-bottom:14px; display:grid; grid-template-columns:1.45fr repeat(3,1fr); background:#fff; border:1px solid var(--line); border-radius:6px; overflow:hidden; box-shadow:0 1px 3px rgba(27,48,84,.035); }
.api-doc-facts > div { min-width:0; min-height:74px; padding:15px 17px; display:flex; flex-direction:column; justify-content:center; gap:4px; border-right:1px solid var(--line); }
.api-doc-facts > div:last-child { border-right:0; }
.api-doc-facts span { color:var(--muted); font-size:9px; }
.api-doc-facts strong { min-width:0; color:var(--ink); font-size:12px; }
.api-doc-facts code,.api-doc-panel code { color:#28539f; font-family:"SFMono-Regular",Consolas,monospace; font-size:9px; word-break:break-word; }
.api-doc-panel { margin-bottom:14px; overflow:hidden; }
.api-method { min-width:44px; height:22px; padding:0 7px; display:inline-flex; align-items:center; justify-content:center; border-radius:4px; font-family:"SFMono-Regular",Consolas,monospace; font-size:8px; font-weight:800; }
.api-method.get { color:#2457b7; background:#eaf1fb; border:1px solid #c3d2ec; }
.api-method.post { color:#14724f; background:#e8f6f0; border:1px solid #bfdfd2; }
.api-endpoint-table { min-width:760px; }
.api-endpoint-table th:nth-child(1) { width:70px; }
.api-endpoint-table th:nth-child(2) { width:300px; }
.api-endpoint-table th:nth-child(4) { width:160px; }
.api-auth-grid { display:grid; grid-template-columns:repeat(3,1fr); border-bottom:1px solid var(--line); }
.api-auth-grid > div { min-width:0; min-height:80px; padding:15px 16px; display:grid; grid-template-columns:28px minmax(0,1fr); align-items:center; gap:9px; border-right:1px solid var(--line); }
.api-auth-grid > div:last-child { border-right:0; }
.api-auth-grid svg { width:17px; color:var(--brand-blue); }
.api-auth-grid strong,.api-auth-grid small { display:block; }
.api-auth-grid strong { color:var(--ink); font-size:10px; }
.api-auth-grid small { margin-top:4px; color:var(--muted); font-size:8px; line-height:1.45; }
.api-delete-note { padding:13px 16px; display:grid; grid-template-columns:24px minmax(0,1fr); align-items:start; gap:10px; color:#6b4a12; background:#fff8e8; border-bottom:1px solid #ead7a8; }
.api-delete-note svg { width:18px; color:#a67819; }
.api-delete-note strong,.api-delete-note span { display:block; }
.api-delete-note strong { font-size:10px; }
.api-delete-note span { margin-top:4px; font-size:8px; line-height:1.55; }
.api-method.delete { color:#a33d49; background:#fbecef; border:1px solid #edc6cd; }
.api-status-table th:first-child { width:90px; }
.api-doc-contracts { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr); gap:14px; align-items:start; }
.api-contract-note { padding:11px 16px; display:grid; grid-template-columns:18px minmax(0,1fr); align-items:start; gap:8px; color:#4f607a; background:#f6f8fc; border-bottom:1px solid var(--line); font-size:9px; line-height:1.55; }
.api-contract-note svg { width:16px; color:var(--brand-blue); }
.api-field-table { min-width:620px; }
.api-field-table th:nth-child(1) { width:180px; }
.api-field-table th:nth-child(2) { width:110px; }
.api-field-table th:nth-child(3) { width:65px; }
.api-required { color:#6f7b8e; font-size:9px; }
.api-required.required { color:#a73d47; }
.api-query-table { min-width:780px; }
.api-query-table th:first-child { width:330px; }
@media (max-width:1120px) { .api-doc-facts { grid-template-columns:1fr 1fr; } .api-doc-facts > div:nth-child(2) { border-right:0; } .api-doc-facts > div:nth-child(-n+2) { border-bottom:1px solid var(--line); } .api-doc-contracts { grid-template-columns:1fr; } }
@media (max-width:720px) { .api-doc-facts { grid-template-columns:1fr; } .api-doc-facts > div { min-height:64px; border-right:0; border-bottom:1px solid var(--line); } .api-doc-facts > div:last-child { border-bottom:0; } .api-auth-grid { grid-template-columns:1fr; } .api-auth-grid > div { border-right:0; border-bottom:1px solid var(--line); } .api-auth-grid > div:last-child { border-bottom:0; } .api-doc-panel .panel-header { align-items:flex-start; } }

/* Desktop hover rail: reveal over the page without reflowing large report tables. */
@media (min-width:921px) {
  .sidebar {
    width:var(--sidebar);
    transform:none;
    clip-path:inset(0 calc(var(--sidebar) - var(--sidebar-rail)) 0 0);
    contain:layout paint;
    will-change:clip-path;
    transition:clip-path .16s ease,box-shadow .16s ease;
  }
  .sidebar:hover,.sidebar:focus-within { clip-path:inset(0); box-shadow:8px 0 26px rgba(27,48,84,.12); }
  .main-shell,.app-shell.sidebar-expanded .main-shell { width:calc(100% - var(--sidebar-rail)); margin-left:var(--sidebar-rail); }
  .menu-button,.sidebar-close { display:none; }

  .sidebar > .brand,.sidebar > .nav,.sidebar > .sidebar-footer { width:var(--sidebar-rail); }
  .sidebar > .company-switcher { width:calc(var(--sidebar-rail) - 20px); }
  .sidebar .brand { padding:0; justify-content:center; }
  .sidebar .brand-copy { display:none; }
  .sidebar .company-switcher { margin:14px 10px 8px; padding:5px; grid-template-columns:1fr; justify-items:center; }
  .sidebar .company-switcher > div:nth-child(2),.sidebar .company-switcher > svg { display:none; }
  .sidebar .nav { padding:4px 9px 18px; overflow-x:hidden; }
  .sidebar .nav-label { display:none; }
  .sidebar .nav-pinned .nav-item { padding:0; justify-content:center; }
  .sidebar .nav-pinned .nav-item span,.sidebar .nav-pinned .nav-item b { display:none; }
  .sidebar .nav-group-toggle { padding:0; grid-template-columns:1fr; place-items:center; }
  .sidebar .nav-group-toggle > svg:first-child { width:20px; height:20px; }
  .sidebar .nav-group-toggle span,.sidebar .nav-group-toggle small,.sidebar .nav-group-chevron { display:none; }
  .sidebar .nav-group-items,.sidebar .nav-group.open .nav-group-items { display:none; }

  .sidebar:hover > .brand,.sidebar:hover > .nav,.sidebar:hover > .sidebar-footer,
  .sidebar:focus-within > .brand,.sidebar:focus-within > .nav,.sidebar:focus-within > .sidebar-footer { width:var(--sidebar); }
  .sidebar:hover > .company-switcher,.sidebar:focus-within > .company-switcher { width:calc(var(--sidebar) - 24px); }
  .sidebar:hover .brand,.sidebar:focus-within .brand { padding:0 18px; justify-content:flex-start; }
  .sidebar:hover .brand-copy,.sidebar:focus-within .brand-copy { display:flex; }
  .sidebar:hover .company-switcher,.sidebar:focus-within .company-switcher { margin:14px 12px 8px; padding:10px; grid-template-columns:30px 1fr 16px; justify-items:stretch; }
  .sidebar:hover .company-switcher > div:nth-child(2),.sidebar:focus-within .company-switcher > div:nth-child(2) { display:flex; }
  .sidebar:hover .company-switcher > svg,.sidebar:focus-within .company-switcher > svg { display:block; }
  .sidebar:hover .nav,.sidebar:focus-within .nav { padding:4px 10px 18px; }
  .sidebar:hover .nav-label,.sidebar:focus-within .nav-label { display:block; }
  .sidebar:hover .nav-pinned .nav-item,.sidebar:focus-within .nav-pinned .nav-item { padding:0 10px; justify-content:flex-start; }
  .sidebar:hover .nav-pinned .nav-item span,.sidebar:focus-within .nav-pinned .nav-item span { display:block; }
  .sidebar:hover .nav-pinned .nav-item b,.sidebar:focus-within .nav-pinned .nav-item b { display:grid; }
  .sidebar:hover .nav-group-toggle,.sidebar:focus-within .nav-group-toggle { padding:0 10px; grid-template-columns:20px 1fr auto 14px; place-items:center stretch; }
  .sidebar:hover .nav-group-toggle > svg:first-child,.sidebar:focus-within .nav-group-toggle > svg:first-child { width:17px; height:17px; }
  .sidebar:hover .nav-group-toggle span,.sidebar:hover .nav-group-toggle small,.sidebar:hover .nav-group-chevron,
  .sidebar:focus-within .nav-group-toggle span,.sidebar:focus-within .nav-group-toggle small,.sidebar:focus-within .nav-group-chevron { display:block; }
  .sidebar:hover .nav-group.open .nav-group-items,.sidebar:focus-within .nav-group.open .nav-group-items { display:block; }
}

.scheduled-accounting-report body{background:#f4f6f8;overflow:auto}
.scheduled-accounting-report .app-shell,.scheduled-accounting-report .topbar,.scheduled-accounting-report .sidebar,.scheduled-accounting-report #mobileOverlay{display:none!important}
.scheduled-accounting-report .main-shell{margin:0;min-height:0}
.scheduled-accounting-report .page{padding:0;max-width:none}
.scheduled-accounting-report .accounting-ledger{margin:0;border:0;box-shadow:none}
.scheduled-accounting-report .accounting-ledger>.panel-header,.scheduled-accounting-report .accounting-ledger>.order-filterbar,.scheduled-accounting-report .accounting-ledger>.data-source-note,.scheduled-accounting-report .accounting-ledger>.profit-analysis-foot,.scheduled-accounting-report .accounting-link-reconciliation{display:none!important}

.warehouse-package-test-form,.promotion-attribution-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end;padding:16px}.warehouse-package-test-form label,.promotion-attribution-form label{display:grid;gap:6px}.warehouse-package-test-form label>span,.promotion-attribution-form label>span{font-size:12px;color:var(--text-muted)}.warehouse-package-test-result{display:grid;gap:4px;padding:10px 12px;border:1px solid var(--line);background:var(--surface-muted);border-radius:6px}.warehouse-package-test-result strong{font-size:20px}.warehouse-package-test-result small{color:var(--text-muted);line-height:1.5}.promotion-attribution-form{grid-template-columns:1.4fr .8fr 1.4fr auto}.promotion-attribution-rules{margin-top:16px}.promotion-attribution-table td,.promotion-attribution-table th{padding:10px 12px}
.live-labor-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px;background:var(--surface-muted);border:1px solid var(--line);border-radius:6px}.live-labor-form label{display:grid;gap:6px}.live-labor-form label>span{font-size:12px;color:var(--text-muted)}.live-labor-form label>div{display:flex;align-items:center;gap:6px}.live-labor-form label>div input{min-width:0;flex:1}.live-labor-form .primary-button{margin-top:8px}.live-labor-table td,.live-labor-table th{padding:10px 12px}
@media(max-width:900px){.warehouse-package-test-form,.promotion-attribution-form{grid-template-columns:1fr}.promotion-attribution-form .primary-button{width:100%}}
@media(max-width:900px){.live-labor-form{grid-template-columns:1fr}}

/* System settings: DingTalk organization directory. */
.directory-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.directory-summary article{min-height:100px;padding:16px;display:flex;flex-direction:column;justify-content:center;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:0 1px 3px rgba(27,48,84,.035)}.directory-summary span{color:var(--muted);font-size:10px}.directory-summary strong{margin-top:7px;color:var(--ink);font-size:25px;line-height:1}.directory-summary small{margin-top:8px;color:#7b8799;font-size:8px}.directory-toolbar{min-height:58px;margin-bottom:14px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#f7f9fc;border:1px solid var(--line);border-left:3px solid var(--brand-blue);border-radius:4px}.directory-toolbar>div{display:flex;align-items:center;gap:9px}.directory-toolbar>div:first-child{min-width:0}.directory-toolbar svg{width:17px;color:var(--brand-blue)}.directory-toolbar span strong,.directory-toolbar span small{display:block}.directory-toolbar span strong{font-size:10px}.directory-toolbar span small{margin-top:3px;color:var(--muted);font-size:8px}.directory-error{margin-bottom:14px;padding:10px 13px;display:flex;align-items:center;gap:8px;color:#9c3844;background:#fff3f4;border:1px solid #efc9ce;border-radius:4px;font-size:10px}.directory-error svg{width:16px}.directory-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:14px;align-items:start}.directory-tree{max-height:calc(100vh - 265px);position:sticky;top:82px;overflow:hidden}.directory-tree>.panel-header{padding:14px}.directory-tree>div:last-child{max-height:calc(100vh - 390px);padding:4px 8px 10px;overflow-y:auto}.directory-tree-all{margin:4px 8px;width:calc(100% - 16px)!important;min-height:42px;padding:6px 9px;display:flex;align-items:center;gap:8px;color:#5d687a;background:transparent;border:0;border-radius:4px;text-align:left}.directory-tree-all:hover,.directory-tree-all.active,.directory-tree-node:hover,.directory-tree-node.active{color:#2457b7;background:#edf3ff}.directory-tree-all svg,.directory-tree-node>svg{width:15px;flex:0 0 auto}.directory-tree-all span,.directory-tree-node span{min-width:0}.directory-tree-all strong,.directory-tree-all small,.directory-tree-node strong,.directory-tree-node small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.directory-tree-all strong,.directory-tree-node strong{font-size:10px}.directory-tree-all small,.directory-tree-node small{margin-top:2px;color:#8a95a6;font-size:8px}.directory-tree-row{min-height:42px;padding-left:calc(var(--directory-depth,0)*14px);display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center}.directory-tree-toggle{width:24px;height:30px;padding:0;display:grid;place-items:center;color:#8490a2;background:transparent;border:0;border-radius:4px}.directory-tree-toggle:hover{color:#2457b7;background:#edf3ff}.directory-tree-toggle svg{width:14px;transition:transform .16s ease}.directory-tree-toggle[aria-expanded="true"] svg{transform:rotate(90deg)}.directory-tree-toggle-spacer{width:24px}.directory-tree-node{width:100%;min-width:0;min-height:38px;padding:5px 7px;display:grid;grid-template-columns:15px minmax(0,1fr) auto;align-items:center;gap:8px;color:#5d687a;background:transparent;border:0;border-radius:4px;text-align:left}.directory-tree-count{min-width:25px;height:20px;padding:0 6px;display:grid;place-items:center;color:#667389;background:#eef1f5;border:1px solid #dfe4eb;border-radius:10px;font-size:8px;line-height:1}.directory-tree-node.active .directory-tree-count{color:#2457b7;background:#fff;border-color:#c7d6fb}.directory-employees{min-width:0}.directory-filters{padding:12px 14px;display:grid;grid-template-columns:minmax(240px,1.5fr) minmax(170px,1fr) minmax(120px,.65fr) auto 36px;gap:8px;align-items:end;border-bottom:1px solid var(--line)}.directory-filters label{display:grid;gap:5px}.directory-filters label>span{color:var(--muted);font-size:8px}.directory-filters input,.directory-filters select{width:100%;height:36px;padding:0 10px;color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:4px;outline:0;font-size:10px}.directory-filters input:focus,.directory-filters select:focus{border-color:#7d9ae7;box-shadow:0 0 0 3px rgba(49,91,216,.09)}.directory-search>div{position:relative}.directory-search svg{width:14px;position:absolute;top:11px;left:9px;color:#8390a5}.directory-search input{padding-left:30px}.directory-privacy-note{padding:9px 14px;display:flex;align-items:center;gap:8px;color:#53637a;background:#f8fafc;border-bottom:1px solid var(--line);font-size:9px}.directory-privacy-note svg{width:15px;color:#a56b18}.directory-employee-table{min-width:1460px}.directory-employee-table th,.directory-employee-table td{padding:10px 12px;vertical-align:middle}.directory-employee-table tbody tr{cursor:pointer}.directory-employee-table td strong,.directory-employee-table td small{display:block}.directory-employee-table td small{max-width:270px;margin-top:3px;color:var(--muted);font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.directory-employee-table td:nth-child(4),.directory-employee-table td:nth-child(5),.directory-employee-table td:nth-child(6){max-width:220px;word-break:break-all}.directory-person{display:flex;align-items:center;gap:9px}.directory-person>span{width:30px;height:30px;display:grid;place-items:center;flex:0 0 auto;color:#fff;background:#315bd8;border-radius:4px;font-size:12px;font-weight:800}.directory-pager{min-height:51px;padding:8px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);border-top:1px solid var(--line);font-size:9px}.directory-pager>div{display:flex;gap:7px}.directory-json-section{display:grid;gap:12px}.directory-json-section label{display:block;margin-bottom:5px;color:var(--muted);font-size:9px}.directory-json-section pre{max-height:280px;margin:0;padding:12px;overflow:auto;color:#24334f;background:#f5f7fa;border:1px solid var(--line);border-radius:4px;font:9px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;word-break:break-all}.directory-employee-window .detail-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1100px){.directory-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-layout{grid-template-columns:1fr}.directory-tree{max-height:none;position:static}.directory-tree>div:last-child{max-height:220px}.directory-filters{grid-template-columns:1fr 1fr}.directory-search{grid-column:1/-1}.directory-employee-window .detail-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.directory-summary{grid-template-columns:1fr 1fr}.directory-summary article{min-height:84px;padding:12px}.directory-toolbar,.directory-pager{align-items:stretch;flex-direction:column}.directory-toolbar>div:last-child,.directory-pager>div{display:grid;grid-template-columns:1fr 1fr}.directory-toolbar button,.directory-pager button{width:100%}.directory-filters{grid-template-columns:1fr}.directory-search{grid-column:auto}.directory-filters>.secondary-button{width:100%}.directory-filters>.icon-button{width:100%;height:36px}.directory-employee-window .detail-fields{grid-template-columns:1fr}}

/* Cross-platform product catalog. */
.platform-catalog-tabs{margin:0 0 14px;padding:0 14px;background:#fff;border:1px solid var(--line);border-radius:6px}.platform-catalog-unconnected{min-height:260px;display:grid;place-items:center;align-content:center;gap:10px;color:var(--muted)}.platform-catalog-unconnected svg{width:28px;height:28px}.platform-catalog-filterbar{padding:12px 14px;display:grid;grid-template-columns:minmax(250px,1.5fr) minmax(155px,.85fr) minmax(120px,.65fr) minmax(120px,.65fr) 36px;gap:8px;align-items:end;background:#f8fafc;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.platform-catalog-filterbar label{min-width:0;display:grid;gap:5px}.platform-catalog-filterbar label>span{color:var(--muted);font-size:8px}.platform-catalog-filterbar input,.platform-catalog-filterbar select{width:100%;height:36px;padding:0 10px;color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:4px;outline:0;font-size:10px}.platform-catalog-filterbar input:focus,.platform-catalog-filterbar select:focus{border-color:#7d9ae7;box-shadow:0 0 0 3px rgba(49,91,216,.09)}.platform-catalog-search>div{position:relative}.platform-catalog-search svg{width:14px;position:absolute;top:11px;left:9px;color:#8390a5}.platform-catalog-search input{padding-left:30px}.platform-catalog-ledger>.data-source-note{margin:12px 14px}.platform-catalog-table{min-width:1720px}.taofactory-catalog-table{min-width:2060px}.platform-catalog-table th,.platform-catalog-table td{padding:10px 12px;vertical-align:middle}.platform-catalog-table tbody tr{cursor:pointer}.platform-catalog-table tbody tr:hover{background:#f7f9fd}.platform-catalog-table td strong,.platform-catalog-table td small{display:block}.platform-catalog-table td small{max-width:260px;margin-top:3px;color:var(--muted);font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-product-cell{min-width:290px;display:flex;align-items:center;gap:10px}.platform-product-cell>span{min-width:0}.platform-product-cell>span strong{max-width:330px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-product-image{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;overflow:hidden;color:#315bd8;background:#edf3ff;border:1px solid #dfe6f2;border-radius:4px;font-size:13px;font-weight:800}.platform-product-image img{width:100%;height:100%;object-fit:cover}.platform-owner-cell{min-width:180px}.platform-owner-button{width:100%;min-width:165px;padding:6px 8px;display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;gap:8px;color:#2c3b51;background:transparent;border:1px solid transparent;border-radius:4px;text-align:left}.platform-owner-button:hover{background:#fff;border-color:#cfd8e7}.platform-owner-button>svg{width:17px;color:#2f67ce}.platform-owner-button.unclaimed>svg{color:#a56b18}.platform-owner-button span{min-width:0}.platform-owner-button strong,.platform-owner-button small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-owner-button small{margin-top:2px}.platform-catalog-pager{min-height:52px;padding:8px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);border-top:1px solid var(--line);font-size:9px}.platform-catalog-pager>div{display:flex;gap:8px}.platform-catalog-ledger .loader-circle{animation:spin 1s linear infinite}.catalog-owner-current{padding:12px 14px;display:grid;gap:4px;background:#f7f9fc;border:1px solid var(--line);border-left:3px solid #315bd8;border-radius:4px}.catalog-owner-current span,.catalog-owner-current small{color:var(--muted);font-size:9px}.catalog-owner-current strong{font-size:15px}.catalog-owner-search{display:grid;gap:6px;margin-top:16px}.catalog-owner-search>span{color:var(--muted);font-size:9px}.catalog-owner-search>div{position:relative}.catalog-owner-search svg{width:15px;position:absolute;top:11px;left:10px;color:#8390a5}.catalog-owner-search input{width:100%;height:38px;padding:0 12px 0 34px;border:1px solid var(--line-strong);border-radius:4px}.catalog-owner-candidates{min-height:180px;margin-top:10px;display:grid;align-content:start;border:1px solid var(--line);border-radius:4px;overflow:hidden}.platform-owner-candidate{width:100%;min-height:54px;padding:8px 11px;display:grid;grid-template-columns:32px minmax(0,1fr) 18px;align-items:center;gap:10px;color:var(--ink);background:#fff;border:0;border-bottom:1px solid var(--line);text-align:left}.platform-owner-candidate:last-child{border-bottom:0}.platform-owner-candidate:hover{background:#f4f7fc}.platform-owner-candidate>span{width:30px;height:30px;display:grid;place-items:center;color:#fff;background:#315bd8;border-radius:4px;font-size:12px;font-weight:700}.platform-owner-candidate div{min-width:0}.platform-owner-candidate strong,.platform-owner-candidate small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-owner-candidate small{margin-top:3px;color:var(--muted);font-size:9px}.platform-owner-candidate>svg{width:15px;color:#8995a7}.platform-catalog-detail-window .detail-section table{min-width:650px}
.shop-catalog-filterbar{grid-template-columns:minmax(300px,1.6fr) minmax(180px,.8fr) 36px}.platform-shop-ledger>.data-source-note{margin:12px 14px}.platform-shop-table{min-width:1180px}.platform-shop-table th,.platform-shop-table td{padding:10px 12px;vertical-align:middle}.platform-shop-table td strong,.platform-shop-table td small{display:block}.platform-shop-table td small{margin-top:3px;color:var(--muted);font-size:8px}
.platform-catalog-table tbody tr:focus{outline:2px solid #315bd8;outline-offset:-2px;background:#f2f6ff}
.platform-catalog-audit-events{margin:0;padding:0;list-style:none}.platform-catalog-audit-events li{padding:9px 0;display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;border-bottom:1px solid var(--line)}.platform-catalog-audit-events li:last-child{border-bottom:0}.platform-catalog-audit-events time{color:var(--muted);font-size:9px}.platform-catalog-audit-events strong,.platform-catalog-audit-events p{display:block;margin:0;font-size:10px}.platform-catalog-audit-events p{margin-top:3px;color:var(--muted)}
@media(max-width:1100px){.platform-catalog-filterbar{grid-template-columns:1fr 1fr}.platform-catalog-search{grid-column:1/-1}.platform-catalog-filterbar>.icon-button{width:100%;height:36px}}
@media(max-width:900px){.platform-catalog-ledger>.panel-header{align-items:flex-start;flex-direction:column}.platform-catalog-ledger>.panel-header .toolbar{width:100%;display:flex;flex-wrap:wrap}}
@media(max-width:640px){.platform-catalog-tabs{overflow-x:auto}.platform-catalog-tabs button{flex:0 0 auto}.platform-catalog-filterbar{grid-template-columns:1fr}.platform-catalog-search{grid-column:auto}.platform-catalog-pager{align-items:stretch;flex-direction:column}.platform-catalog-pager>div{display:grid;grid-template-columns:1fr 1fr}.platform-catalog-pager button{width:100%}.platform-catalog-ledger>.panel-header .toolbar button{flex:1 1 135px}.platform-catalog-audit-events li{grid-template-columns:1fr;gap:4px}}
.platform-catalog-config-detail{display:grid;gap:16px}.platform-catalog-config-detail .detail-note{display:grid;gap:5px}.platform-catalog-config-detail .detail-note span{color:var(--muted);font-size:11px;line-height:1.6}.platform-catalog-config-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.platform-catalog-config-form label{display:grid;gap:7px}.platform-catalog-config-form label>span{color:var(--muted);font-size:10px;font-weight:700}.platform-catalog-config-form input{width:100%;height:42px;padding:0 12px;border:1px solid var(--line-strong);border-radius:4px}.platform-catalog-config-form input:focus{border-color:#7d9ae7;box-shadow:0 0 0 3px rgba(49,91,216,.09);outline:0}.platform-catalog-config-form>small{grid-column:1/-1;color:var(--muted);font-size:9px}@media(max-width:640px){.platform-catalog-config-form{grid-template-columns:1fr}.platform-catalog-config-form>small{grid-column:auto}}
.platform-owner-rules-detail{display:grid;gap:16px}.platform-owner-rules-detail .detail-note{display:grid;gap:5px}.platform-owner-rules-detail .detail-note span{color:var(--muted);font-size:10px;line-height:1.6}.platform-owner-rule-form{padding:14px;display:grid;grid-template-columns:1fr 1fr 1.4fr auto;gap:10px;align-items:end;background:#f8fafc;border:1px solid var(--line);border-radius:5px}.platform-owner-rule-form label{min-width:0;display:grid;gap:6px}.platform-owner-rule-form label>span{color:var(--muted);font-size:9px;font-weight:700}.platform-owner-rule-form input,.platform-owner-rule-form select{width:100%;min-height:38px;padding:0 9px;color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:4px;outline:0;font-size:10px}.platform-owner-rule-form select[multiple]{height:92px;padding:5px}.platform-owner-rule-form input:focus,.platform-owner-rule-form select:focus{border-color:#7d9ae7;box-shadow:0 0 0 3px rgba(49,91,216,.09)}.platform-owner-rule-form button{height:38px;white-space:nowrap}.platform-owner-rule-form-actions{display:flex;gap:7px}.platform-owner-rule-entries{grid-column:1/-1;display:grid;gap:8px}.platform-owner-rule-entry{padding:10px;display:grid;grid-template-columns:1fr 1.8fr 1.2fr 34px;gap:8px;align-items:end;background:#fff;border:1px solid var(--line);border-radius:4px}.platform-owner-rule-entry label{display:grid;gap:5px}.platform-owner-rule-entry label>span{color:var(--muted);font-size:8px}.platform-owner-rule-entry-value{min-width:0}.platform-rule-help{display:block;margin-top:4px;color:var(--muted);font-size:8px}.platform-rule-text-value{display:grid;grid-template-columns:76px minmax(0,1fr);gap:6px}.platform-rule-text-value select[hidden]{display:none}.platform-rule-entry-remove{width:34px;height:38px}.platform-owner-rule-list{display:grid;gap:9px}.platform-owner-rule-list-head{display:flex;align-items:end;justify-content:space-between;gap:12px}.platform-owner-rule-list-head h3{margin:0;font-size:12px}.platform-owner-rule-list-head p{margin:4px 0 0;color:var(--muted);font-size:9px}.platform-owner-rule-row{min-width:0;padding:10px 12px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:4px}.platform-owner-rule-priority{width:24px;height:24px;display:grid;place-items:center;color:#fff;background:var(--brand-blue);border-radius:50%;font-size:10px;font-weight:700}.platform-owner-rule-row strong,.platform-owner-rule-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-owner-rule-row strong{font-size:10px}.platform-owner-rule-row small{margin-top:4px;color:var(--muted);font-size:8px}.platform-owner-rule-actions{display:flex;gap:4px}.platform-owner-rule-actions .icon-button{width:30px;height:30px}.platform-owner-rule-actions .icon-button:disabled,.platform-rule-entry-remove:disabled{opacity:.35;cursor:not-allowed}@media(max-width:900px){.platform-owner-rule-form{grid-template-columns:1fr 1fr}.platform-owner-rule-form-actions{grid-column:1/-1}.platform-owner-rule-entries{grid-column:1/-1}.platform-owner-rule-entry{grid-template-columns:1fr 1fr}.platform-owner-rule-entry-value{grid-column:1/-1}.platform-owner-rule-entry button{grid-column:2;justify-self:end}.platform-owner-rule-form-actions button{flex:1}}@media(max-width:640px){.platform-owner-rule-form{grid-template-columns:1fr}.platform-owner-rule-form-actions,.platform-owner-rule-entries{grid-column:auto}.platform-owner-rule-entry{grid-template-columns:1fr}.platform-owner-rule-entry-value{grid-column:auto}.platform-owner-rule-entry button{grid-column:auto;justify-self:end}.platform-owner-rule-form-actions{display:grid}.platform-owner-rule-form-actions button{width:100%}.platform-owner-rule-row{grid-template-columns:28px minmax(0,1fr)}.platform-owner-rule-actions{grid-column:2;justify-content:flex-end}}

/* Owner rule editor: keep setup, conditions, and actions visually separate. */
.platform-owner-rules-window{width:min(1240px,calc(100% - 32px))}.platform-owner-rules-window .detail-body{padding:20px 24px 24px;background:#f5f7fb}.platform-owner-rules-window .detail-note{color:#53637a;background:#edf3ff;border-left-color:#315bd8}.platform-owner-rule-form{grid-template-columns:1fr;align-items:stretch;gap:0;padding:16px;background:#fff}.platform-owner-rule-form-grid{display:grid;grid-template-columns:minmax(150px,.75fr) minmax(180px,.9fr) minmax(260px,1.35fr);gap:12px;align-items:end}.platform-owner-rule-form-toolbar{margin-top:16px;padding-top:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line)}.platform-owner-rule-form-toolbar>div:first-child{min-width:0}.platform-owner-rule-form-toolbar strong,.platform-owner-rule-form-toolbar small{display:block}.platform-owner-rule-form-toolbar strong{font-size:11px}.platform-owner-rule-form-toolbar small{margin-top:4px;color:var(--muted);font-size:9px}.platform-owner-rule-entries{margin-top:10px}.platform-owner-rule-entry{grid-template-columns:minmax(150px,.7fr) minmax(300px,1.7fr) minmax(210px,1fr) 34px;padding:12px;background:#f8fafc}.platform-rule-shop-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-height:132px;padding:6px;overflow:auto;background:#fff;border:1px solid var(--line-strong);border-radius:4px}.platform-rule-shop-option{min-width:0!important;min-height:32px!important;padding:5px 6px;display:grid!important;grid-template-columns:16px minmax(0,1fr);grid-template-rows:auto auto;column-gap:6px;align-items:center;cursor:pointer;border-radius:3px}.platform-rule-shop-option:hover{background:#edf3ff}.platform-rule-shop-option input{width:14px;height:14px;grid-row:1 / span 2;accent-color:#315bd8}.platform-rule-shop-option span,.platform-rule-shop-option small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-rule-shop-option span{font-size:9px}.platform-rule-shop-option small{color:var(--muted);font-size:8px}.platform-rule-empty{padding:12px;color:var(--muted);font-size:9px}.platform-rule-text-value{min-width:0}.platform-rule-text-value input,.platform-rule-text-value select{min-height:38px}.platform-owner-rule-list{padding-top:4px}.platform-owner-rule-list-head{padding-bottom:2px}.platform-owner-rule-row{padding:12px 14px}.platform-owner-rule-row small{white-space:normal;line-height:1.5}.platform-owner-rules-window .detail-footer{background:#fff}
@media(max-width:900px){.platform-owner-rules-window{width:100%}.platform-owner-rule-form-grid{grid-template-columns:1fr 1fr}.platform-owner-rule-form-grid label:last-child{grid-column:1/-1}.platform-owner-rule-form-toolbar{align-items:stretch;flex-direction:column}.platform-owner-rule-form-actions{width:100%}.platform-owner-rule-form-actions button{flex:1}.platform-owner-rule-entry{grid-template-columns:1fr 1fr}.platform-owner-rule-entry-value{grid-column:1/-1}.platform-rule-shop-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.platform-owner-rules-window .detail-body{padding:14px}.platform-owner-rule-form-grid{grid-template-columns:1fr}.platform-owner-rule-form-grid label:last-child{grid-column:auto}.platform-owner-rule-entry{grid-template-columns:1fr}.platform-owner-rule-entry-value{grid-column:auto}.platform-rule-shop-picker{grid-template-columns:1fr}.platform-owner-rule-form-actions{display:grid;grid-template-columns:1fr 1fr}.platform-owner-rule-form-actions button{width:100%}}
.platform-rule-shop-dropdown{position:relative;min-width:0}.platform-rule-shop-dropdown-toggle{width:100%;height:38px;padding:0 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:4px;outline:0;font-size:10px;text-align:left}.platform-rule-shop-dropdown-toggle:hover,.platform-rule-shop-dropdown-toggle[aria-expanded="true"]{border-color:#7d9ae7;box-shadow:0 0 0 3px rgba(49,91,216,.09)}.platform-rule-shop-dropdown-toggle span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-rule-shop-dropdown-toggle svg{width:14px;flex:0 0 auto;color:#75839a;transition:transform .16s ease}.platform-rule-shop-dropdown-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}.platform-rule-shop-menu{position:absolute;top:calc(100% + 5px);left:0;z-index:30;width:100%;min-width:260px;max-height:230px;padding:5px;overflow-y:auto;background:#fff;border:1px solid #cfd8e7;border-radius:5px;box-shadow:0 14px 34px rgba(27,48,84,.18)}.platform-rule-shop-menu[hidden]{display:none}.platform-rule-shop-option{min-width:0!important;min-height:34px!important;padding:6px 7px;display:grid!important;grid-template-columns:16px minmax(0,1fr);grid-template-rows:auto auto;column-gap:7px;align-items:center;cursor:pointer;border-radius:3px}.platform-rule-shop-option:hover{background:#edf3ff}.platform-rule-shop-option input{width:14px;height:14px;grid-row:1 / span 2;accent-color:#315bd8}.platform-rule-shop-option span,.platform-rule-shop-option small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-rule-shop-option span{font-size:9px}.platform-rule-shop-option small{color:var(--muted);font-size:8px}.platform-owner-rule-entry:has(.platform-rule-shop-menu[hidden]){z-index:auto}.platform-owner-rule-entry:has(.platform-rule-shop-menu:not([hidden])){z-index:20}
.platform-owner-rule-entry{align-items:start;gap:10px;padding:10px}.platform-owner-rule-entry label{align-content:start}.platform-owner-rule-entry label>span{min-height:14px;line-height:1.2}.platform-rule-help{margin-top:3px}.platform-rule-shop-option{min-height:29px!important;padding:4px 6px;grid-template-columns:16px minmax(0,1fr) max-content;grid-template-rows:1fr;column-gap:7px;line-height:1.15}.platform-rule-shop-option input{grid-row:auto}.platform-rule-shop-option span{font-size:8px}.platform-rule-shop-option small{font-size:7px;text-align:right}.platform-rule-shop-menu{max-height:210px;padding:4px}
.platform-rule-shop-option{display:flex!important;align-items:center;gap:7px}.platform-rule-shop-option input{flex:0 0 auto}.platform-rule-shop-option span{flex:1 1 auto}.platform-rule-shop-option small{flex:0 0 auto}
.platform-rule-shop-search,.platform-rule-owner-search{width:100%;height:28px;margin-bottom:5px;padding:0 7px;border:1px solid var(--line-strong);border-radius:3px;font-size:9px;outline:0}.platform-rule-shop-search:focus,.platform-rule-owner-search:focus,.platform-rule-shop-combobox:focus{border-color:#7d9ae7;box-shadow:0 0 0 2px rgba(49,91,216,.08)}.platform-rule-owner-search{margin:0}.platform-rule-shop-combobox{display:block!important;padding:0 10px;appearance:none}

/* Order profit ledger. */
.order-profit-ledger{display:flex;flex-direction:column}
.order-profit-ledger>.panel-header{order:1}
.order-profit-ledger>.order-profit-grainbar{order:2}
.order-profit-ledger>.order-profit-expense-note{order:3}
.order-profit-ledger>.order-profit-promotion-strip{order:4}
.order-profit-ledger>.order-profit-filterbar{order:5}
.order-profit-ledger>.table-wrap{order:6}
.order-profit-ledger>.order-profit-pager{order:7}
.order-profit-ledger>.order-profit-promotion-exceptions{order:8}
.order-profit-grainbar{padding:7px 12px;display:flex;gap:3px;align-items:center;background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);overflow-x:auto}
.order-profit-grainbar button{height:30px;padding:0 10px;display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;color:var(--muted);background:#f1f4f8;border:1px solid transparent;border-radius:4px;font-size:9px;cursor:pointer}
.order-profit-grainbar button:hover{color:var(--brand-blue);background:#edf2fb}.order-profit-grainbar button.active{color:#fff;background:var(--brand-blue);font-weight:700}.order-profit-grainbar svg{width:13px}
.order-profit-expense-note{padding:7px 12px;display:flex;align-items:center;gap:7px;color:#536174;background:#f8fafc;border-bottom:1px solid var(--line);font-size:9px}.order-profit-expense-note.warning{color:#9a5b00;background:#fff8e8}.order-profit-expense-note svg{width:14px;flex:0 0 auto}
.order-profit-filterbar{padding:7px 12px;display:grid;grid-template-columns:minmax(230px,1.4fr) minmax(170px,.8fr) minmax(170px,.8fr) minmax(175px,.8fr) 32px;gap:7px;align-items:center;background:#f8fafc;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.order-profit-filterbar label{min-width:0;height:32px;padding-left:8px;display:flex;align-items:center;gap:7px;color:var(--muted);background:#fff;border:1px solid var(--line-strong);border-radius:4px}.order-profit-filterbar label>span{flex:0 0 auto;font-size:8px;white-space:nowrap}.order-profit-filterbar input,.order-profit-filterbar select{min-width:0;width:100%;height:30px;padding:0 8px;color:var(--ink);background:transparent;border:0;border-left:1px solid var(--line);outline:0;font-size:10px}.order-profit-filterbar label:focus-within{border-color:#7d9ae7;box-shadow:0 0 0 3px rgba(49,91,216,.09)}.order-profit-filterbar>.icon-button{width:32px;height:32px}
.order-profit-search>div{min-width:0;position:relative;flex:1}.order-profit-search svg{width:13px;position:absolute;top:9px;left:7px;color:#8390a5}.order-profit-search input{padding-left:26px}.order-profit-ledger-note{padding:10px 14px;display:flex;flex-wrap:wrap;gap:14px;color:var(--muted);background:#fbfcfe;border-bottom:1px solid var(--line);font-size:9px}.order-profit-ledger-note span{display:inline-flex;align-items:center;gap:5px}.order-profit-ledger-note svg{width:14px;color:#315bd8}.order-profit-table{min-width:1750px}.order-profit-table th,.order-profit-table td{padding:10px 12px;vertical-align:middle}.order-profit-table tbody tr{cursor:pointer}.order-profit-table tbody tr:hover{background:#f7f9fd}.order-profit-table td strong,.order-profit-table td small{display:block}.order-profit-table td small{max-width:220px;margin-top:3px;color:var(--muted);font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-profit-table code{font-size:9px;color:#315bd8}.order-profit-ledger>.data-source-note{margin:12px 14px}
.order-profit-summary-table{min-width:1180px}.order-profit-summary-table th,.order-profit-summary-table td{padding:10px 12px;white-space:nowrap}.order-profit-summary-table td:first-child{font-weight:700;color:var(--ink)}
.order-profit-source-status{height:28px;padding:0 8px;display:inline-flex;align-items:center;gap:5px;color:#14724f;background:#e8f6f0;border:1px solid #bfdfd2;border-radius:4px;font-size:8px;white-space:nowrap}.order-profit-source-status svg{width:13px}.order-profit-source-status.warning{color:#9a671a;background:#fff3d8;border-color:#ecd7a3}.order-profit-source-status.loading{color:#355d78;background:#edf5fa;border-color:#cbdde8}.order-profit-source-status.loading svg{animation:spin 1s linear infinite}
.order-profit-promotion-strip{min-height:36px;padding:7px 12px;display:flex;align-items:center;gap:8px;color:#305d4c;background:#f1f8f5;border-top:1px solid #d6e9e1;border-bottom:1px solid #d6e9e1;font-size:9px}.order-profit-promotion-strip>svg{width:14px;flex:0 0 auto}.order-profit-promotion-strip strong{white-space:nowrap}.order-profit-promotion-strip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-profit-promotion-strip small{margin-left:auto;color:#688174;white-space:nowrap}.order-profit-promotion-strip.warning{color:#805d1f;background:#fff9e9;border-color:#eadbb3}.order-profit-promotion-strip.warning small{color:#8d784f}.order-profit-promotion-strip.danger{color:#9c3838;background:#fff3f3;border-color:#ebcaca}.order-profit-promotion-exceptions{border-top:1px solid var(--line)}.order-profit-promotion-exceptions summary{min-height:42px;padding:8px 14px;display:flex;align-items:center;gap:10px;color:var(--ink);background:#fbfcfe;cursor:pointer;list-style:none;font-size:9px}.order-profit-promotion-exceptions summary::-webkit-details-marker{display:none}.order-profit-promotion-exceptions summary span{display:flex;align-items:center;gap:7px}.order-profit-promotion-exceptions summary span svg{width:14px;color:#b27620}.order-profit-promotion-exceptions summary b{margin-left:auto;font-size:9px}.order-profit-promotion-exceptions summary>svg{width:14px;color:var(--muted);transition:transform .16s ease}.order-profit-promotion-exceptions[open] summary>svg{transform:rotate(180deg)}.order-profit-promotion-exceptions table{width:100%;min-width:760px}.order-profit-promotion-exceptions th,.order-profit-promotion-exceptions td{padding:9px 14px}.order-profit-promotion-exceptions code{color:#315bd8;font-size:9px}
.order-profit-table{min-width:2050px}.order-profit-table thead th[data-order-profit-column]{cursor:grab;user-select:none}.order-profit-table thead th[data-order-profit-column]:active{cursor:grabbing}.order-profit-table thead th[data-order-profit-column] svg{width:12px;margin-right:4px;color:#9aa6b8;vertical-align:-2px}.order-profit-table thead th[data-order-profit-column].dragging{opacity:.55;background:#e8eefc}.order-profit-table thead th[data-order-profit-column].drop-target{color:var(--brand-blue);background:#edf3ff;box-shadow:inset 2px 0 var(--brand-blue)}
.order-profit-pager{min-height:54px;padding:8px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);border-top:1px solid var(--line);font-size:9px}.order-profit-pager>div{display:flex;align-items:center;gap:8px}.order-profit-pager b{min-width:74px;color:var(--ink);font-size:9px;text-align:center}.order-profit-pager button:disabled{cursor:not-allowed;opacity:.45}.order-profit-page-size{height:34px;padding-left:9px;display:flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line-strong);border-radius:4px}.order-profit-page-size select{height:32px;padding:0 26px 0 8px;color:var(--ink);background:#fff;border:0;border-left:1px solid var(--line);outline:0;font:inherit;cursor:pointer}
@media(max-width:640px){.order-profit-filterbar{grid-template-columns:1fr}.order-profit-search{grid-column:auto}.order-profit-ledger-note{display:grid;gap:8px}.order-profit-promotion-strip{align-items:flex-start;flex-wrap:wrap}.order-profit-promotion-strip span{width:calc(100% - 24px);white-space:normal}.order-profit-promotion-strip small{width:100%;margin-left:22px;white-space:normal}.order-profit-filterbar>.icon-button{width:100%}.order-profit-pager{align-items:stretch;flex-direction:column}.order-profit-pager>div{display:grid;grid-template-columns:1fr 1fr}.order-profit-pager b{grid-column:1/-1;grid-row:1;text-align:left}.order-profit-page-size{grid-column:1/-1}.order-profit-pager button{width:100%}}

.order-profit-tabs{margin:0 0 14px;display:flex;gap:0;border-bottom:1px solid var(--line)}
.order-profit-tabs button{min-width:170px;min-height:54px;padding:9px 14px;display:grid;grid-template-columns:20px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:8px;color:var(--muted);background:#f8fafc;border:1px solid var(--line);border-bottom:0;border-radius:5px 5px 0 0;text-align:left}
.order-profit-tabs button+button{margin-left:6px}.order-profit-tabs button:hover{color:var(--brand-blue);background:#f1f5fb}.order-profit-tabs button.active{color:var(--brand-blue);background:#fff;border-top:2px solid var(--brand-blue);padding-top:8px}.order-profit-tabs button svg{width:17px;grid-row:1 / span 2}.order-profit-tabs button span{font-size:11px;font-weight:700}.order-profit-tabs button small{margin-top:2px;color:var(--muted);font-size:8px}.order-profit-metrics{grid-template-columns:repeat(7,minmax(0,1fr));margin-bottom:14px}.order-profit-cost-import{margin-bottom:14px}.order-profit-cost-import .panel-header{gap:18px}.order-profit-cost-import .data-source-note{margin:0 14px 14px}.product-cost-import-controls{display:flex;align-items:flex-end;justify-content:flex-end;gap:8px;flex-wrap:wrap}.product-cost-import-month-field{min-width:142px;display:grid;gap:5px}.product-cost-import-month-field>span{color:var(--muted);font-size:8px}.product-cost-import-month-field input{width:142px;height:36px;padding:0 9px;color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:4px;outline:0;font-size:10px}.product-cost-import-month-field input:focus{border-color:#7d9ae7;box-shadow:0 0 0 3px rgba(49,91,216,.09)}
.order-profit-rule-overview,.order-profit-platform-panel,.order-profit-store-panel{margin-bottom:14px}.order-profit-rule-priority{padding:14px;display:flex;align-items:center;justify-content:center;gap:14px;color:var(--muted);background:#f8fafc;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:10px}.order-profit-rule-priority span{display:inline-flex;align-items:center;gap:7px}.order-profit-rule-priority b{width:22px;height:22px;display:grid;place-items:center;color:#fff;background:var(--brand-blue);border-radius:50%;font-size:10px}.order-profit-rule-priority svg{width:14px;color:#9aa6b8}.order-profit-rule-cards{padding:14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.order-profit-rule-card{min-width:0;padding:14px;display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;background:#fff;border:1px solid var(--line);border-radius:5px}.order-profit-rule-card-icon{width:34px;height:34px;display:grid;place-items:center;color:var(--brand-blue);background:#edf3ff;border-radius:4px}.order-profit-rule-card-icon svg{width:17px}.order-profit-rule-card h3{margin:0;color:var(--ink);font-size:12px}.order-profit-rule-card p{margin:5px 0;color:var(--muted);font-size:9px;line-height:1.5}.order-profit-rule-card small{color:#8290a4;font-size:8px}.order-profit-rule-card .secondary-button{grid-column:1/-1;justify-content:center;margin-top:4px}.order-profit-rule-note{padding:12px 14px;display:flex;align-items:flex-start;gap:9px;color:#53637a;background:#f8fafc}.order-profit-rule-note>svg{width:16px;flex:0 0 auto;color:#2f67ce}.order-profit-rule-note strong,.order-profit-rule-note span{display:block}.order-profit-rule-note strong{font-size:10px}.order-profit-rule-note span{margin-top:3px;font-size:9px;line-height:1.5}.order-profit-platform-tabs{padding:12px 14px 0;display:flex;gap:6px;overflow-x:auto;border-bottom:1px solid var(--line)}.order-profit-platform-tabs button{min-width:104px;padding:8px 10px;color:var(--muted);background:#f8fafc;border:1px solid var(--line);border-bottom:0;border-radius:4px 4px 0 0;text-align:left}.order-profit-platform-tabs button:hover,.order-profit-platform-tabs button.active{color:var(--brand-blue);background:#fff}.order-profit-platform-tabs button.active{border-top:2px solid var(--brand-blue);padding-top:7px}.order-profit-platform-tabs span,.order-profit-platform-tabs small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-profit-platform-tabs span{font-size:10px;font-weight:700}.order-profit-platform-tabs small{margin-top:3px;color:var(--muted);font-size:8px}.order-profit-platform-summary{padding:14px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;background:#fbfcfe;border-bottom:1px solid var(--line)}.order-profit-platform-summary>div{min-width:0;padding:10px;background:#fff;border:1px solid var(--line);border-radius:4px}.order-profit-platform-summary span,.order-profit-platform-summary strong,.order-profit-platform-summary small{display:block}.order-profit-platform-summary span{color:var(--muted);font-size:8px}.order-profit-platform-summary strong{margin-top:6px;color:var(--ink);font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-profit-platform-summary small{margin-top:4px;color:#8290a4;font-size:8px}.order-profit-platform-table,.order-profit-store-table{width:100%;min-width:680px}.order-profit-platform-table th,.order-profit-platform-table td,.order-profit-store-table th,.order-profit-store-table td{padding:10px 14px;vertical-align:middle}.order-profit-platform-table td strong,.order-profit-store-table td strong,.order-profit-store-table td small{display:block}.order-profit-store-table td small{margin-top:3px;color:var(--muted);font-size:8px}.order-profit-store-panel .data-source-note{margin:0 14px 14px}
@media(max-width:1200px){.order-profit-metrics{grid-template-columns:repeat(7,minmax(0,1fr))}.order-profit-metrics .metric{padding:14px 12px}.order-profit-metrics .metric-value{font-size:19px}}
@media(max-width:900px){.order-profit-rule-cards{grid-template-columns:1fr 1fr}.order-profit-platform-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.order-profit-tabs{overflow-x:auto}.order-profit-tabs button{min-width:145px}.order-profit-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.order-profit-cost-import .panel-header,.product-cost-version-ledger .panel-header{align-items:stretch;flex-direction:column}.product-cost-import-controls,.product-cost-period-control{width:100%;display:grid;grid-template-columns:1fr}.product-cost-import-month-field,.product-cost-import-month-field input,.product-cost-period-select{width:100%}.product-cost-import-controls button,.product-cost-period-control button{width:100%}.order-profit-rule-priority{justify-content:flex-start;gap:7px;overflow-x:auto;white-space:nowrap}.order-profit-rule-priority i{display:none}.order-profit-rule-cards{grid-template-columns:1fr}.order-profit-platform-summary{grid-template-columns:1fr}}
.order-profit-metrics.order-profit-rule-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:640px){.order-profit-metrics.order-profit-rule-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep the order-profit overview dense and prevent long values from crossing cards. */
.order-profit-metrics{margin-bottom:10px;overflow:hidden;border-radius:6px;box-shadow:0 1px 3px rgba(27,48,84,.035)}
.order-profit-metrics .metric{min-width:0;min-height:108px;padding:14px 15px 12px}
.order-profit-metrics .metric-label{min-width:0;gap:6px}
.order-profit-metrics .metric-label span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-profit-metrics .metric-value{min-width:0;margin:8px 0 6px;font-size:20px;line-height:1.2;letter-spacing:0;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.order-profit-metrics .metric:nth-child(6){background:#f5f8ff;box-shadow:inset 0 -2px var(--brand-blue)}
.order-profit-metrics .metric:nth-child(6) .metric-value{font-size:17px}
.order-profit-metrics .metric-foot{min-width:0}
.order-profit-metrics .metric-foot .change{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-profit-ledger{overflow:hidden;border-radius:6px}
.order-profit-ledger>.panel-header{min-height:66px;padding:11px 16px;gap:12px}
.order-profit-ledger>.panel-header .panel-title{min-width:0}
.order-profit-ledger>.panel-header .panel-title h2{font-size:14px}
.order-profit-ledger>.panel-header .panel-title p{max-width:760px;margin-top:3px;font-size:9px;line-height:1.35}
.order-profit-ledger>.panel-header .toolbar{gap:7px}
.order-profit-ledger>.panel-header .toolbar button{min-height:32px;padding:0 10px}

@media(max-width:1200px) and (min-width:641px){
  .order-profit-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
  .order-profit-metrics .metric:nth-child(6) .metric-value{font-size:19px}
}
@media(max-width:640px){
  .order-profit-metrics .metric{min-height:96px;padding:12px 12px 10px}
  .order-profit-metrics .metric-value,.order-profit-metrics .metric:nth-child(6) .metric-value{font-size:18px}
  .order-profit-ledger>.panel-header{align-items:flex-start;flex-direction:column;gap:9px}
  .order-profit-ledger>.panel-header .toolbar{width:100%;display:flex;flex-wrap:wrap}
  .order-profit-ledger>.panel-header .toolbar button{flex:1 1 140px}
}

/* Collection center */
.collection-status-strip{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr)) minmax(250px,1.45fr);margin-bottom:14px;background:#fff;border:1px solid var(--line);border-left:3px solid #315bd8;border-radius:6px}
.collection-status-strip>div{min-width:0;min-height:66px;padding:11px 15px;display:flex;flex-direction:column;justify-content:center;border-right:1px solid var(--line)}
.collection-status-strip>div:last-child{border-right:0}.collection-status-strip span{color:var(--muted);font-size:9px}.collection-status-strip strong{margin-top:5px;font-size:20px;font-variant-numeric:tabular-nums}.collection-status-strip .active strong{color:#315bd8}.collection-status-strip .danger strong{color:#a73d47}.collection-status-strip .warning strong{color:#8a641f}.collection-status-strip .refresh{gap:5px}
.collection-refresh-control{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.collection-refresh-control>span{min-width:0;overflow:hidden;color:#53617a;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.collection-refresh-control .icon-button{width:30px;height:30px;flex:0 0 30px;color:#315bd8;background:#edf2ff;border:1px solid #c7d3f5}.collection-refresh-control .icon-button[aria-busy=true] svg{animation:button-spin .8s linear infinite}.collection-live-dot{width:7px;height:7px;margin-right:5px;display:inline-block;background:#315bd8;border-radius:50%;animation:collection-pulse 1.2s ease-in-out infinite}
.collection-source-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}.collection-source-card{position:relative;min-width:0;min-height:116px;padding:13px 42px 12px 14px;display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;gap:10px 11px;color:var(--ink);background:#fff;border:1px solid var(--line);border-left:3px solid #315bd8;border-radius:6px;text-align:left;cursor:pointer}.collection-source-card:hover{border-color:#aebbe4;box-shadow:0 4px 14px rgba(28,45,76,.08)}.collection-source-card.api{border-left-color:#16805a}.collection-source-card.upload{border-left-color:#b27b21}.collection-source-icon{width:34px;height:34px;display:grid;place-items:center;color:#315bd8;background:#edf2ff;border-radius:5px}.collection-source-card.api .collection-source-icon{color:#14724f;background:#edf8f3}.collection-source-card.upload .collection-source-icon{color:#8a641f;background:#fff8e7}.collection-source-icon svg{width:17px}.collection-source-card>span:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:3px}.collection-source-card>span b{font-size:12px}.collection-source-card>span small{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:8px}.collection-source-card dl{grid-column:1/-1;margin:0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.collection-source-card dl div{display:flex;align-items:baseline;gap:5px}.collection-source-card dt{color:var(--muted);font-size:8px}.collection-source-card dd{margin:0;font-size:15px;font-weight:800;font-variant-numeric:tabular-nums}.collection-source-card p{grid-column:1/-1;margin:0;overflow:hidden;color:#53617a;text-overflow:ellipsis;white-space:nowrap;font-size:8px}.collection-source-arrow{position:absolute;right:13px;top:16px;width:15px;color:#7d8aa0}
.collection-workspace{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.65fr);gap:14px;margin-bottom:14px}.collection-active-panel,.collection-exception-panel,.collection-matrix-panel,.collection-recent-panel,.collection-task-panel,.collection-runs-panel{min-width:0}.collection-matrix-panel,.collection-recent-panel{margin-top:14px}.collection-workspace+.collection-matrix-panel{margin-top:0}.collection-count{padding:4px 7px;color:#315bd8;background:#edf2ff;border:1px solid #cad6f7;border-radius:4px;font-size:9px;font-weight:700}.collection-count.danger{color:#a73d47;background:#fff4f4;border-color:#efcaca}
.collection-source-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.collection-source-group{min-width:0;padding:0 12px 10px;border-right:1px solid var(--line)}.collection-source-group:last-child{border-right:0}.collection-source-group>header{min-height:47px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line)}.collection-source-group>header span{display:flex;align-items:center;gap:7px}.collection-source-group>header svg{width:15px;color:#315bd8}.collection-source-group.api>header svg{color:#14724f}.collection-source-group.upload>header svg{color:#8a641f}.collection-source-group>header strong{font-size:11px}.collection-source-group>header small{color:var(--muted);font-size:8px}.collection-group-row{min-height:58px;display:grid;grid-template-columns:minmax(0,1fr) 92px minmax(94px,auto) 28px;gap:8px;align-items:center;border-bottom:1px solid #edf0f5}.collection-group-row:last-child{border-bottom:0}.collection-group-row>span{min-width:0}.collection-group-row>span strong,.collection-group-row>span small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collection-group-row>span strong{font-size:9px}.collection-group-row>span small{margin-top:3px;color:var(--muted);font-size:8px}.collection-group-row .collection-instance-summary{transform:scale(.92);transform-origin:left center}.collection-group-row>.icon-button{width:28px;height:28px}.collection-group-row>.icon-button svg{width:13px}
.collection-quiet{min-height:152px;padding:20px;display:flex;align-items:center;justify-content:center;gap:10px;color:#14724f}.collection-quiet.compact{min-height:118px}.collection-quiet>svg{width:24px}.collection-quiet span{display:flex;flex-direction:column;gap:4px}.collection-quiet strong{font-size:12px}.collection-quiet small{color:var(--muted);font-size:9px}
.collection-exception-list{max-height:220px;overflow:auto}.collection-exception-row{width:100%;min-height:55px;padding:9px 13px;display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:9px;align-items:center;color:inherit;background:#fff;border:0;border-bottom:1px solid var(--line);text-align:left;cursor:pointer}.collection-exception-row:hover{background:#fff8f8}.collection-exception-row>svg{width:17px;color:#b84d55}.collection-exception-row span{min-width:0;display:flex;flex-direction:column;gap:3px}.collection-exception-row strong,.collection-exception-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collection-exception-row strong{font-size:10px}.collection-exception-row small{color:var(--muted);font-size:8px}.collection-exception-row b{color:#a73d47;font-size:9px;white-space:nowrap}
.collection-active-table,.collection-table,.collection-runs-table{table-layout:fixed}.collection-active-table{min-width:760px}.collection-active-table tbody tr[data-collection-job],.collection-runs-table tbody tr[data-collection-job]{cursor:pointer}.collection-active-table tbody tr[data-collection-job]:hover td,.collection-runs-table tbody tr[data-collection-job]:hover td{background:#f7f9ff}.collection-active-table th:nth-child(1){width:220px}.collection-active-table th:nth-child(2){width:150px}.collection-active-table th:nth-child(3){width:180px}.collection-active-table th:nth-child(4){width:150px}.collection-active-table th:nth-child(5){width:58px}.collection-active-table td strong,.collection-active-table td small,.collection-runs-table td strong,.collection-runs-table td small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collection-active-table td small,.collection-runs-table td small,.collection-table td>small{margin-top:3px;color:var(--muted);font-size:8px}
.collection-table{min-width:1240px}.collection-table th:nth-child(1){width:230px}.collection-table th:nth-child(2){width:190px}.collection-table th:nth-child(3){width:145px}.collection-table th:nth-child(4){width:190px}.collection-table th:nth-child(5){width:125px}.collection-table th:nth-child(6){width:125px}.collection-table th:nth-child(7){width:95px}.collection-table th:nth-child(8){width:160px}.collection-table td,.collection-runs-table td{min-width:0;vertical-align:middle}.collection-task-link{width:100%;padding:0;display:block;color:inherit;background:transparent;border:0;text-align:left;cursor:pointer}.collection-task-link:disabled{cursor:default}.collection-task-link strong,.collection-task-link small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collection-task-link small{margin-top:4px;color:var(--muted);font-size:8px}.collection-stage{display:block;max-width:145px;margin-top:4px;overflow:hidden;color:#68758b;text-overflow:ellipsis;white-space:nowrap;font-size:8px}.collection-table .status,.collection-runs-table .status,.collection-active-table .status{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.collection-table .status svg,.collection-runs-table .status svg,.collection-active-table .status svg{width:12px}
.collection-mcp-table{min-width:1220px}.collection-mcp-table th:nth-child(1){width:245px}.collection-mcp-table th:nth-child(2){width:180px}.collection-mcp-table th:nth-child(3){width:230px}.collection-mcp-table th:nth-child(4){width:155px}.collection-mcp-table th:nth-child(5){width:120px}.collection-mcp-table th:nth-child(6){width:105px}.collection-mcp-table th:nth-child(7){width:185px}.collection-api-table{min-width:1130px}.collection-api-table th:nth-child(1){width:250px}.collection-api-table th:nth-child(2){width:180px}.collection-api-table th:nth-child(3){width:135px}.collection-api-table th:nth-child(4){width:165px}.collection-api-table th:nth-child(5){width:125px}.collection-api-table th:nth-child(6){width:110px}.collection-api-table th:nth-child(7){width:155px}.collection-upload-table{min-width:990px}.collection-upload-table th:nth-child(1){width:270px}.collection-upload-table th:nth-child(2){width:190px}.collection-upload-table th:nth-child(3){width:170px}.collection-upload-table th:nth-child(4){width:125px}.collection-upload-table th:nth-child(5){width:160px}.collection-upload-table th:nth-child(6){width:150px}.collection-task-primary{min-width:0;display:flex;align-items:center;gap:8px}.collection-task-primary>span{min-width:0}.collection-task-primary strong,.collection-task-primary small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collection-task-primary small{margin-top:4px;color:var(--muted);font-size:8px}.collection-expand-task{width:27px!important;height:27px!important;flex:0 0 27px}.collection-task-main-row.expanded td{background:#f7f9ff}.collection-instance-expansion>td{padding:0!important;background:#f7f9fc!important;border-bottom:1px solid #bdc9e2}.collection-inline-summary{min-height:42px;padding:8px 12px;display:flex;align-items:center;gap:16px;color:#53617a;background:#f0f4fb;border-top:1px solid #d7dfed;border-bottom:1px solid #d7dfed;font-size:8px}.collection-inline-summary strong{color:var(--ink);font-size:10px}.collection-inline-summary small{margin-left:auto;color:var(--muted)}.collection-inline-instance-table{min-width:1040px;table-layout:fixed;background:#fff}.collection-inline-instance-table th:nth-child(1){width:175px}.collection-inline-instance-table th:nth-child(2){width:180px}.collection-inline-instance-table th:nth-child(3){width:100px}.collection-inline-instance-table th:nth-child(4){width:155px}.collection-inline-instance-table th:nth-child(5){width:90px}.collection-inline-instance-table th:nth-child(6){width:145px}.collection-inline-instance-table th:nth-child(7){width:210px}.collection-inline-instance-table td strong,.collection-inline-instance-table td small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collection-inline-instance-table td small{margin-top:3px;color:var(--muted);font-size:8px}.collection-inline-state{min-height:92px;padding:18px;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--muted);background:#fff}.collection-inline-state svg{width:18px}.collection-inline-state svg[data-lucide="loader-circle"]{animation:button-spin .8s linear infinite}.collection-inline-state.danger{color:#a73d47}.collection-inline-state button{margin-left:8px}.collection-type-tabs{margin-bottom:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;border:1px solid var(--line);border-radius:6px}.collection-type-tabs button{height:48px;padding:0 14px;display:flex;align-items:center;justify-content:center;gap:8px;color:#66748b;background:transparent;border:0;border-right:1px solid var(--line);cursor:pointer}.collection-type-tabs button:last-child{border-right:0}.collection-type-tabs button svg{width:16px}.collection-type-tabs button b{min-width:20px;padding:2px 5px;color:#68758b;background:#eef1f5;border-radius:4px;font-size:8px}.collection-type-tabs button.active{color:#254dc8;background:#f2f5ff;box-shadow:inset 0 -2px #315bd8}.collection-type-tabs button.active b{color:#fff;background:#315bd8}.collection-upload-notice{min-height:58px;padding:10px 13px;display:flex;align-items:center;gap:10px;color:#6d531d;background:#fffbef;border-bottom:1px solid #ead9aa}.collection-upload-notice>svg{width:18px}.collection-upload-notice>span{min-width:0;flex:1}.collection-upload-notice strong,.collection-upload-notice small{display:block}.collection-upload-notice small{margin-top:3px;color:#766b55;font-size:8px}.collection-upload-notice>b{font-size:9px}
.collection-last-activity{min-width:0;display:grid;gap:4px}.collection-last-activity strong,.collection-last-activity small{display:block;overflow:visible;text-overflow:clip;white-space:nowrap}.collection-last-activity strong{font-size:9px;font-variant-numeric:tabular-nums}.collection-last-activity small{margin:0;color:var(--muted);font-size:8px}
.collection-runs-table{min-width:1180px}.collection-runs-table th:nth-child(1){width:225px}.collection-runs-table th:nth-child(2){width:135px}.collection-runs-table th:nth-child(3){width:160px}.collection-runs-table th:nth-child(4){width:190px}.collection-runs-table th:nth-child(5){width:135px}.collection-runs-table th:nth-child(6){width:205px}.collection-runs-table th:nth-child(7){width:65px}
.collection-source{display:inline-flex;align-items:center;gap:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:700}.collection-source svg{width:14px;flex:0 0 auto}.collection-source.mcp{color:#315bd8}.collection-source.api{color:#14724f}.collection-source.upload{color:#7e5b1b}.collection-actions{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.collection-actions .icon-button,.collection-active-table .icon-button,.collection-runs-table .icon-button{width:29px;height:29px;color:#315bd8;background:#edf2ff;border:1px solid #c7d3f5;border-radius:4px}.collection-actions .icon-button:hover,.collection-active-table .icon-button:hover,.collection-runs-table .icon-button:hover{color:#fff;background:#315bd8}.collection-actions .icon-button svg,.collection-active-table .icon-button svg,.collection-runs-table .icon-button svg{width:13px}.collection-record-button{height:29px;padding:0 9px;display:inline-flex;align-items:center;gap:5px;color:#fff;background:#315bd8;border:1px solid #315bd8;border-radius:4px;font-size:9px;font-weight:700;cursor:pointer}.collection-record-button:hover{background:#2446aa}.collection-record-button svg{width:13px}
.collection-instance-summary{max-width:100%;display:inline-grid;grid-template-columns:auto auto;align-items:baseline;gap:2px 5px;padding:4px 6px;color:#315bd8;background:#f2f5ff;border:1px solid #d4ddfb;border-radius:4px;font-variant-numeric:tabular-nums}.collection-instance-summary strong{font-size:11px}.collection-instance-summary span{font-size:8px}.collection-instance-summary small{grid-column:1/-1;overflow:hidden;color:#6f7c92;text-overflow:ellipsis;white-space:nowrap;font-size:7px}.collection-instance-summary.muted{padding:0;color:var(--muted);background:transparent;border:0}.collection-instance-summary.attention{color:#805d1f;background:#fff8e7;border-color:#ecd7a3}
.collection-toolbar{min-height:58px;padding:9px 12px;display:flex;align-items:end;gap:9px;background:#f8faff;border-bottom:1px solid var(--line)}.collection-toolbar>label{min-width:140px;display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:8px}.collection-toolbar select,.collection-search{height:34px;color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:4px}.collection-toolbar select{min-width:140px;padding:0 27px 0 9px;font:inherit}.collection-search{width:min(310px,30vw);display:flex!important;flex-direction:row!important;align-items:center;gap:7px;padding:0 9px}.collection-search svg{width:14px}.collection-search input{min-width:0;width:100%;border:0;outline:0;font:inherit}.collection-toolbar select:focus,.collection-search:focus-within{outline:0;border-color:#8fa3ed;box-shadow:0 0 0 3px rgba(49,91,216,.09)}.collection-task-count{margin-left:auto;align-self:center;color:var(--muted);font-size:9px;white-space:nowrap}.collection-toolbar>.collection-refresh-control{align-self:center;margin-left:auto}.collection-task-count+.collection-refresh-control{margin-left:0}.collection-runs-toolbar>label:first-child{min-width:210px}.collection-pager{min-height:54px;padding:9px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);border-top:1px solid var(--line);font-size:9px}.collection-pager>div{display:flex;align-items:center;gap:8px}.collection-pager b{min-width:58px;color:var(--ink);text-align:center;font-variant-numeric:tabular-nums}.collection-pager button{height:31px;padding:0 9px;font-size:9px}.collection-pager svg{width:13px}
.collection-tooltip{position:fixed;z-index:var(--z-tooltip);max-width:min(260px,calc(100vw - 16px));padding:6px 9px;color:#fff;background:#24334f;border:1px solid #344768;border-radius:4px;box-shadow:0 6px 18px rgba(18,31,53,.2);font-size:10px;line-height:1.35;white-space:nowrap;pointer-events:none;opacity:0;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.collection-tooltip.visible{opacity:1;transform:translateY(0)}
.detail-drawer.collection-instance-modal{width:min(1180px,calc(100% - 72px));height:100%;max-height:none;border-radius:0;animation:drawer-in .2s ease}.collection-instance-modal .detail-body{padding:15px 18px;background:#f7f9fc}.collection-instance-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.collection-instance-summary-card{min-width:0;padding:10px 11px;background:#fff;border:1px solid var(--line);border-radius:5px}.collection-instance-summary-card span{display:block;color:var(--muted);font-size:8px}.collection-instance-summary-card strong{display:block;margin-top:4px;overflow:hidden;color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:17px;font-variant-numeric:tabular-nums}.collection-instance-summary-card.collected strong{color:#14724f}.collection-instance-summary-card.failed strong{color:#a73d47}.collection-diagnostic-head{margin-bottom:10px;padding:11px 12px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid var(--line);border-left:3px solid #315bd8;border-radius:5px}.collection-diagnostic-head dl{margin:0;display:grid;grid-template-columns:repeat(4,minmax(100px,1fr));gap:14px}.collection-diagnostic-head dt{color:var(--muted);font-size:8px}.collection-diagnostic-head dd{margin:4px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.collection-diagnostic-section{margin-top:12px;background:#fff;border:1px solid var(--line);border-radius:5px}.collection-section-title{min-height:47px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.collection-section-title h3{margin:0;font-size:11px}.collection-section-title span{color:var(--muted);font-size:8px}.collection-instance-table{min-width:1040px;table-layout:fixed}.collection-instance-table th:nth-child(1){width:180px}.collection-instance-table th:nth-child(2){width:150px}.collection-instance-table th:nth-child(3){width:110px}.collection-instance-table th:nth-child(4){width:105px}.collection-instance-table th:nth-child(5){width:120px}.collection-instance-table th:nth-child(6){width:130px}.collection-instance-table th:nth-child(7){width:245px}.collection-instance-table td{vertical-align:middle}.collection-instance-table td strong,.collection-instance-table td small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collection-instance-table td small{margin-top:3px;color:var(--muted);font-size:8px}.collection-error-cell{overflow:hidden;color:#9c3838;text-overflow:ellipsis;white-space:nowrap}
.collection-event-timeline{max-width:900px;margin:0;padding:4px 14px 14px;list-style:none}.collection-event-timeline li{min-height:58px;display:grid;grid-template-columns:130px 14px minmax(0,1fr);gap:9px;align-items:start}.collection-event-timeline time{padding-top:13px;color:var(--muted);font-size:8px;font-variant-numeric:tabular-nums}.collection-event-timeline li>i{position:relative;width:9px;height:9px;margin-top:15px;background:#fff;border:2px solid #315bd8;border-radius:50%}.collection-event-timeline li>i:after{content:"";position:absolute;top:9px;left:2px;width:1px;height:43px;background:#cfd8eb}.collection-event-timeline li:last-child>i:after{display:none}.collection-event-timeline li>div{padding:10px 0;border-bottom:1px solid #edf0f5}.collection-event-timeline li header{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.collection-event-timeline strong{font-size:9px}.collection-event-timeline p{margin:4px 0 0;color:#5f6c80;font-size:9px;line-height:1.45;white-space:normal}.collection-event-instance,.collection-event-global{min-width:0;display:inline-flex;align-items:center;gap:4px;padding:2px 6px;color:#244b9b;background:#edf3ff;border:1px solid #cfdbf6;border-radius:4px;font-size:8px;font-weight:700}.collection-event-instance svg{width:11px;height:11px}.collection-event-global{color:var(--muted);background:#f4f6f8;border-color:#e1e5eb;font-weight:500}
.detail-backdrop.collection-config-modal-backdrop{align-items:center;justify-content:center;padding:20px;background:rgba(9,20,15,.46)}.detail-drawer.collection-config-modal{width:min(620px,100%);height:auto;max-height:min(720px,calc(100vh - 40px));border-radius:8px;box-shadow:0 20px 60px rgba(14,29,22,.24);animation:collection-modal-in .18s ease}.detail-drawer.collection-config-modal .detail-body{max-height:calc(100vh - 210px);overflow:auto}.collection-credential-fields{display:grid;grid-template-columns:1fr;gap:13px;margin-top:16px}.collection-credential-fields label{display:grid;gap:7px}.collection-credential-fields label span{color:var(--muted);font-size:11px;font-weight:700}.collection-credential-fields input{width:100%;height:40px;padding:0 11px;color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:5px;font:inherit}.collection-credential-fields input:focus{outline:0;border-color:#8fa3ed;box-shadow:0 0 0 3px rgba(49,91,216,.09)}.collection-credential-security{display:flex;align-items:center;gap:6px;margin-top:14px;color:var(--muted);font-size:9px}.collection-credential-security svg{width:14px;color:#14724f}
@keyframes collection-modal-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes collection-pulse{0%,100%{opacity:.45;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}
@media(max-width:1024px){.collection-source-overview{grid-template-columns:1fr}.collection-status-strip{grid-template-columns:repeat(4,minmax(110px,1fr))}.collection-status-strip .refresh{grid-column:1/-1;border-top:1px solid var(--line)}.collection-workspace{grid-template-columns:1fr}.collection-source-groups{grid-template-columns:1fr}.collection-source-group{border-right:0;border-bottom:1px solid var(--line)}.collection-source-group:last-child{border-bottom:0}.collection-toolbar{flex-wrap:wrap}.collection-toolbar>.collection-refresh-control{margin-left:auto}.collection-instance-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.collection-status-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-status-strip .refresh{grid-column:1/-1}.collection-type-tabs button{padding:0 7px}.collection-type-tabs button span{font-size:9px}.collection-table,.collection-runs-table{min-width:920px}.collection-mcp-table{min-width:1160px}.collection-api-table{min-width:1060px}.collection-upload-table{min-width:920px}.collection-toolbar{align-items:stretch;flex-direction:column}.collection-search{width:100%}.collection-toolbar>label,.collection-toolbar select{width:100%;min-width:0}.collection-task-count,.collection-toolbar>.collection-refresh-control{margin-left:0}.collection-upload-notice{align-items:flex-start;flex-wrap:wrap}.collection-upload-notice button{margin-left:28px}.collection-inline-summary{align-items:flex-start;flex-wrap:wrap}.collection-inline-summary small{width:100%;margin-left:0}.collection-pager{align-items:stretch;flex-direction:column}.detail-drawer.collection-instance-modal{width:100%}.collection-instance-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-diagnostic-head{align-items:flex-start;flex-direction:column}.collection-diagnostic-head dl{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.collection-event-timeline li{grid-template-columns:95px 14px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.collection-live-dot,.detail-drawer.collection-instance-modal{animation:none!important}.collection-tooltip{transition:none}}

/* Keep the view switcher quiet and move promotion details into a compact status badge. */
.order-profit-ledger>.order-profit-contextbar{order:2;display:flex;align-items:center;justify-content:space-between;min-width:0;gap:10px;padding:4px 10px;background:#f8fafc;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.order-profit-contextbar .order-profit-grainbar{min-width:0;flex:1;padding:0;background:transparent;border:0}
.order-profit-contextbar .order-profit-grainbar button{height:29px;padding:0 9px;background:transparent;border-color:transparent}
.order-profit-contextbar .order-profit-grainbar button:hover{background:#edf2fb}
.order-profit-contextbar .order-profit-grainbar button.active{background:#315bd8;color:#fff}
.order-profit-contextbar .order-profit-expense-note{min-width:0;max-width:380px;padding:5px 0 5px 10px;border:0;border-left:1px solid var(--line);background:transparent;font-size:8px}
.order-profit-contextbar .order-profit-expense-note span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-profit-promotion-status{height:29px;max-width:260px;padding:0 9px;display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;color:#14724f;background:#e8f6f0;border:1px solid #bfdfd2;border-radius:4px;font-size:8px;white-space:nowrap}
.order-profit-promotion-status svg{width:13px;flex:0 0 auto}
.order-profit-promotion-status span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-profit-promotion-status b{font-size:8px;font-weight:700}
.order-profit-promotion-status.warning{color:#805d1f;background:#fff3d8;border-color:#ecd7a3}
.order-profit-promotion-status.danger{color:#9c3838;background:#fff3f3;border-color:#ebcaca}
.order-profit-ledger>.panel-header .toolbar .order-profit-promotion-status{margin-right:1px}
@media(max-width:900px){
  .order-profit-ledger>.order-profit-contextbar{align-items:stretch;flex-direction:column;gap:3px}
  .order-profit-contextbar .order-profit-grainbar{width:100%;overflow-x:auto}
  .order-profit-contextbar .order-profit-expense-note{width:100%;max-width:none;padding:5px 0;border-top:1px solid var(--line);border-left:0}
}
@media(max-width:640px){
  .order-profit-ledger>.panel-header .toolbar .order-profit-promotion-status{order:3;max-width:none;width:100%;justify-content:center}
  .order-profit-contextbar .order-profit-expense-note span{white-space:normal}
}

.modal-note { margin:6px 0 0; color:var(--muted); font-size:11px; line-height:1.5; }
.platform-catalog-table { min-width:1810px; }
.taofactory-catalog-table { min-width:2150px; }
