:root {
    --ink: #20223a;
    --muted: #7a7d91;
    --line: #e8e9ef;
    --canvas: #f5f6fa;
    --card: #ffffff;
    --sidebar: #17182a;
    --sidebar-soft: #24263b;
    --coral: #f36e62;
    --coral-soft: #fff0ed;
    --indigo: #5d5fca;
    --indigo-soft: #efefff;
    --amber: #f0a94b;
    --amber-soft: #fff6e8;
    --teal: #32a795;
    --teal-soft: #e8f8f5;
    --shadow: 0 12px 30px rgba(27, 29, 54, 0.06);
}

/* Operations System: uses the existing Xiyue palette and layout while reading as a growth workspace. */
.ops-workspace { display: grid; gap: 16px; min-width: 0; }
.ops-header { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 4px 2px 0; }
.ops-header h1 { margin: 5px 0 2px; color: var(--ink); font-size: 25px; font-weight: 780; letter-spacing: -.035em; }
.ops-header p { margin: 0; color: var(--muted); font-size: 12px; }
.ops-breadcrumb { display: flex; gap: 7px; color: #9a9caf; font-size: 10px; }
.ops-breadcrumb a { color: var(--teal); text-decoration: none; }
.ops-local-nav,.ops-status-tabs { display: flex; align-items: center; gap: 4px; padding: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(27,29,54,.035); }
.ops-local-nav a,.ops-status-tabs a { padding: 8px 13px; border-radius: 8px; color: #74778a; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ops-local-nav a:hover,.ops-local-nav a.active,.ops-status-tabs a:hover,.ops-status-tabs a.active { background: var(--teal-soft); color: #237f72; }
.ops-metrics a { color: inherit; text-decoration: none; }
.ops-metrics .metric-card { min-height: 142px; }
.ops-compact-metrics { grid-template-columns: repeat(5,minmax(0,1fr)); }
.ops-compact-metrics .metric-card { min-height: 100px; padding: 18px; }
.ops-flow { padding: 18px 22px; }
.ops-flow > strong { display: block; margin-bottom: 12px; font-size: 12px; }
.ops-flow > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ops-flow a { padding: 7px 10px; border-radius: 8px; background: #f7f8fb; color: var(--ink); font-size: 11px; font-weight: 700; text-decoration: none; }
.ops-flow i { color: #b4b6c3; font-style: normal; }
.ops-section { min-width: 0; overflow: hidden; }
.ops-section > header,.ops-form > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ops-section > header strong,.ops-form > header strong { display: block; font-size: 13px; }
.ops-section > header small,.ops-form > header small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.ops-section > header a { color: var(--teal); font-size: 11px; text-decoration: none; }
.ops-empty { min-height: 310px; }
.ops-empty-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px; border-radius: 15px; background: var(--teal-soft); color: var(--teal); font-size: 24px; }
.ops-grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
.ops-form { padding-bottom: 18px; overflow: hidden; }
.ops-form > .btn-primary-custom,.ops-form > button { margin: 16px 18px 0; }
.ops-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 17px 18px 0; }
.ops-form-grid label { display: grid; gap: 6px; color: #6d7082; font-size: 10px; font-weight: 700; }
.ops-form-grid .span-2 { grid-column: span 2; }
.ops-form :is(input,select,textarea),.ops-filter :is(input,select),.ops-inline-form :is(input,select,textarea) { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid #dfe1e9; border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; outline: none; }
.ops-form textarea { min-height: 72px; resize: vertical; }
.ops-form :is(input,select,textarea):focus,.ops-filter :is(input,select):focus { border-color: rgba(50,167,149,.65); box-shadow: 0 0 0 3px rgba(50,167,149,.08); }
.ops-filter { display: flex; align-items: center; gap: 9px; padding: 12px; }
.ops-filter input { flex: 1 1 260px; }
.ops-filter select { width: auto; min-width: 140px; }
.ops-filter > a { color: var(--teal); font-size: 11px; text-decoration: none; }
.ops-object-hero { display: flex; align-items: center; gap: 16px; padding: 19px; }
.ops-object-hero h2 { margin: 2px 0; font-size: 19px; }
.ops-object-hero p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.ops-object-hero > div:nth-child(2) { min-width: 220px; }
.ops-thumb { display: grid; place-items: center; width: 72px; height: 72px; flex: 0 0 72px; border-radius: 15px; background: linear-gradient(145deg,var(--teal-soft),#f3f2ff); color: var(--teal); font-size: 22px; font-weight: 800; }
.ops-object-meta { display: grid; grid-template-columns: repeat(4,minmax(105px,1fr)); gap: 8px; width: 100%; margin-left: auto; }
.ops-object-meta span { padding: 10px; border-radius: 9px; background: #f8f8fb; color: var(--muted); font-size: 9px; }
.ops-object-meta strong { display: block; margin-top: 4px; color: var(--ink); font-size: 11px; }
.ops-tabs { display: flex; gap: 3px; padding: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.ops-tabs a { padding: 9px 12px; border-radius: 8px 8px 0 0; color: #74778a; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ops-tabs a.active { background: #fff; color: var(--teal); box-shadow: inset 0 -2px var(--teal); }
.ops-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 999px; background: var(--teal-soft); color: #287f73; font-size: 9px; font-weight: 750; }
.ops-badge.ops-warning { background: var(--amber-soft); color: #a56d22; }
.ops-inline-form { display: flex; align-items: center; gap: 7px; padding: 15px 18px; }
.ops-inline-form > * { flex: 1 1 0; }
.ops-inline-form button { min-height: 35px; border: 1px solid #dfe1e9; border-radius: 8px; background: #fff; color: var(--ink); font-size: 10px; }
.ops-record-card { display: grid; gap: 6px; padding: 13px 16px; border-bottom: 1px solid #f0f1f5; }
.ops-record-card:last-child { border-bottom: 0; }
.ops-record-card strong { color: var(--ink); font-size: 11px; }
.ops-record-card small,.ops-record-card p { margin: 0; color: var(--muted); font-size: 10px; }
.ops-record-card details { color: var(--teal); font-size: 10px; }
.ops-next-action { display: block; margin: 12px 18px 0; padding: 10px 12px; border-radius: 8px; background: var(--teal-soft); color: #277f72; font-size: 10px; font-weight: 750; text-decoration: none; }
.ops-no-fake-data { padding: 30px 20px; color: var(--muted); font-size: 11px; text-align: center; }
.ops-material-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.ops-grid-2 > .ops-material-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ops-material-card { display: grid; gap: 7px; padding: 13px; color: inherit; text-decoration: none; }
.ops-material-card p { margin: 0; color: var(--muted); font-size: 10px; }
.ops-material-preview { display: grid; place-items: center; min-height: 120px; border-radius: 11px; background: linear-gradient(145deg,#f2faf8,#f3f2ff); color: var(--teal); font-size: 26px; font-weight: 800; }
.ops-material-preview-large { min-height: 250px; margin: 14px 0; }
.ops-opportunity-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.ops-zone { padding: 17px; }
.ops-zone header { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.ops-zone header > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--teal-soft); color: var(--teal); font-weight: 800; }
.ops-zone header strong,.ops-zone header small { display: block; }
.ops-zone header small { color: var(--muted); font-size: 9px; }
.ops-zone h2 { font-size: 16px; }
.ops-zone dl { display: grid; gap: 0; margin: 0; }
.ops-zone dl div { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0; border-bottom: 1px solid #f0f1f4; font-size: 10px; }
.ops-zone dt { color: var(--muted); font-weight: 500; }
.ops-zone dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; }
.ops-zone > a { display: block; margin-top: 12px; color: var(--teal); font-size: 10px; text-decoration: none; }
.ops-note { margin: 12px 0 0; padding: 9px; border-radius: 8px; background: #fffaf0; color: #8f6d3d; font-size: 9px; line-height: 1.6; }
.ops-state-flow { margin: 18px; padding: 14px; border-radius: 9px; background: #f8f8fb; color: var(--ink); font-size: 11px; font-weight: 750; text-align: center; }
.ops-timeline { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 13px 17px; }
.ops-timeline > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo); font-size: 9px; font-weight: 800; }
.ops-timeline strong,.ops-timeline small { display: block; }
.ops-timeline small,.ops-timeline p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.ops-chart-empty { min-height: 210px; display: grid; place-content: center; gap: 5px; background: linear-gradient(180deg,#fff,#fafbfc); color: var(--muted); text-align: center; }
.ops-chart-empty span { color: var(--ink); font-size: 13px; font-weight: 700; }
.ops-pagination { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 16px; color: var(--muted); font-size: 10px; }
.ops-action-menu { position: relative; overflow: visible; }
.ops-action-menu summary { color: var(--teal); cursor: pointer; }
.ops-action-menu[open] { min-width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); }
.ops-action-menu form { display: grid; gap: 5px; margin-top: 7px; }
.ops-action-menu :is(input,select,button) { min-height: 30px; border: 1px solid var(--line); border-radius: 6px; background: white; font-size: 9px; }
.ops-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; padding: 18px; }
.ops-settings-grid article { padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.ops-settings-grid p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
@media(max-width:1100px){.ops-grid-2,.ops-opportunity-grid{grid-template-columns:1fr}.ops-object-hero{align-items:flex-start;flex-wrap:wrap}.ops-object-meta{grid-template-columns:repeat(2,1fr)}.ops-material-grid{grid-template-columns:repeat(2,1fr)}.ops-compact-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.ops-header{align-items:flex-start;flex-direction:column}.ops-form-grid,.ops-settings-grid{grid-template-columns:1fr}.ops-form-grid .span-2{grid-column:auto}.ops-inline-form{align-items:stretch;flex-direction:column}.ops-material-grid,.ops-grid-2>.ops-material-grid{grid-template-columns:1fr}.ops-object-meta{grid-template-columns:1fr}.ops-compact-metrics{grid-template-columns:1fr}}

/* V1 operating workflow: selection -> review -> listing -> promotion -> postmortem. */
.ops-stage-metrics { grid-template-columns: repeat(5,minmax(0,1fr)); }
.ops-stage-metrics .metric-card { min-height: 122px; padding: 16px; }
.ops-flow-v1 a { display:inline-flex; align-items:center; gap:6px; }
.ops-flow-v1 a b { color:var(--teal); font-size:9px; }
.ops-card-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.ops-card-links a,.ops-external-link { color:var(--teal); font-size:10px; text-decoration:none; }
.ops-listing-table td strong,.ops-listing-table td small { display:block; }
.ops-listing-table td small { max-width:260px; margin-top:3px; overflow:hidden; color:var(--muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.ops-review-page { color:#343947; }
.ops-review-identity { padding:18px 20px; display:grid; grid-template-columns:minmax(230px,.85fr) minmax(560px,1.6fr) auto; align-items:center; gap:22px; }
.ops-review-identity h2 { margin:3px 0; font-size:20px; }
.ops-review-identity p,.ops-review-identity small { margin:0; color:var(--muted); font-size:10px; }
.ops-review-identity dl { margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.ops-review-identity dl div { min-width:0; padding:10px; border-radius:9px; background:#f7f8fb; }
.ops-review-identity dt { color:var(--muted); font-size:9px; }
.ops-review-identity dd { margin:4px 0 0; overflow:hidden; font-size:11px; font-weight:750; text-overflow:ellipsis; white-space:nowrap; }
.ops-review-identity>a { color:var(--teal); font-size:10px; text-decoration:none; white-space:nowrap; }
.ops-profit-review { overflow:hidden; }
.ops-profit-review>header { padding:17px 20px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); background:linear-gradient(135deg,#fff,#f4fbf9); }
.ops-profit-review>header small { color:var(--teal); font-size:9px; font-weight:800; letter-spacing:.12em; }
.ops-profit-review>header h2 { margin:3px 0; font-size:18px; }
.ops-profit-review>header p { margin:0; color:var(--muted); font-size:10px; }
.ops-baseline-state { min-width:245px; padding:10px 13px; border:1px solid #d9eee9; border-radius:10px; background:#fff; }
.ops-baseline-state span,.ops-baseline-state strong { display:block; }
.ops-baseline-state span { color:var(--muted); font-size:8px; }
.ops-baseline-state strong { margin-top:3px; color:#267f72; font-size:10px; }
.ops-profit-form-grid { padding:14px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; background:#fafbfc; }
.ops-profit-form-grid article { min-width:0; padding:13px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.ops-profit-form-grid article.is-baseline { border-color:#d8ede8; background:#fbfffe; }
.ops-profit-form-grid h3 { margin:0 0 9px; font-size:12px; }
.ops-profit-form-grid .ops-form-grid { padding:0; gap:8px; }
.ops-profit-form-grid label { display:grid; gap:5px; color:#727688; font-size:9px; font-weight:700; }
.ops-profit-form-grid input { width:100%; min-height:34px; padding:6px 8px; border:1px solid #dfe2e8; border-radius:7px; color:var(--ink); font-size:11px; }
.ops-profit-result { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.ops-profit-result article { min-width:0; padding:14px 15px; border-right:1px solid var(--line); }
.ops-profit-result article:last-child { border-right:0; }
.ops-profit-result span,.ops-profit-result small,.ops-profit-result strong { display:block; }
.ops-profit-result span { color:var(--muted); font-size:9px; }
.ops-profit-result strong { margin:5px 0 2px; overflow:hidden; color:#2d766d; font-size:18px; text-overflow:ellipsis; white-space:nowrap; }
.ops-profit-result strong.is-loss { color:#d34f45; }
.ops-profit-result small { color:#9799a5; font-size:8px; }
.ops-profit-result article.is-primary { background:#f0faf7; }
.ops-review-notes { padding:13px 18px; display:grid; grid-template-columns:.65fr 1.3fr 1.3fr 1.3fr; gap:9px; }
.ops-review-notes label { display:grid; gap:5px; color:#737687; font-size:9px; font-weight:700; }
.ops-review-notes :is(input,select) { width:100%; min-height:35px; padding:6px 9px; border:1px solid #dfe2e8; border-radius:8px; font-size:10px; }
.ops-profit-review>footer { padding:12px 18px; display:flex; align-items:center; justify-content:space-between; gap:15px; }
.ops-profit-review>footer span { color:var(--muted); font-size:10px; }
@media(max-width:1250px){.ops-stage-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.ops-review-identity{grid-template-columns:1fr}.ops-profit-form-grid{grid-template-columns:1fr}.ops-profit-result{grid-template-columns:repeat(3,minmax(0,1fr))}.ops-profit-result article:nth-child(3){border-right:0}.ops-review-notes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.ops-stage-metrics,.ops-profit-result,.ops-review-notes{grid-template-columns:1fr}.ops-review-identity dl{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-baseline-state{min-width:0}.ops-profit-review>header{align-items:flex-start;flex-direction:column}.ops-profit-result article{border-right:0;border-bottom:1px solid var(--line)}}

/* Persistent profit snapshots: compact status and manual background refresh. */
.profit-cache-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 46px;
    margin: 10px 0;
    padding: 8px 12px;
    border: 1px solid #d9e6f7;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #f2f7ff 100%);
    color: #29415f;
}
.profit-cache-status-copy { display: flex; align-items: center; gap: 10px; min-width: 0; }
.profit-cache-status-copy > div { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.profit-cache-status-copy strong { font-size: 13px; white-space: nowrap; }
.profit-cache-status-copy small { color: #7890ad; font-size: 12px; }
.profit-cache-status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #44a985;
    box-shadow: 0 0 0 4px rgba(68, 169, 133, .12);
}
.profit-cache-status.is-updating .profit-cache-status-dot {
    background: #e3a244;
    box-shadow: 0 0 0 4px rgba(227, 162, 68, .14);
}
.profit-cache-status form { margin: 0; }
.profit-cache-status button {
    min-width: 82px;
    height: 30px;
    padding: 0 14px;
    border: 1px solid #bcd2ef;
    border-radius: 9px;
    background: #fff;
    color: #4975ad;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.profit-cache-status button:hover { border-color: #79a3da; background: #edf5ff; }
@media (max-width: 760px) {
    .profit-cache-status { align-items: flex-start; }
    .profit-cache-status-copy > div { display: block; }
    .profit-cache-status-copy small { display: block; margin-top: 2px; }
}

/* Purchase analysis: compact supplier-first reporting in the supply-chain palette. */
.purchase-analysis-page {
    width: 100%;
    display: grid;
    gap: 12px;
    color: #30485f;
    font-variant-numeric: tabular-nums;
}
.purchase-analysis-filter-card,
.purchase-analysis-table-card,
.purchase-analysis-insights > article {
    overflow: hidden;
    border: 1px solid var(--supply-line,#d9e6f3);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(45,84,122,.06);
}
.purchase-analysis-heading {
    min-height: 49px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e5eef7;
    background: linear-gradient(90deg,#f2f8fe,#fff 65%);
}
.purchase-analysis-heading > div { display: flex; align-items: baseline; gap: 10px; }
.purchase-analysis-heading strong { color: #294b68; font-size: 15px; }
.purchase-analysis-heading span { color: #8a9cac; font-size: 10px; }
.purchase-analysis-heading nav { display: flex; gap: 4px; }
.purchase-analysis-heading nav a {
    height: 27px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #70879a;
    font-size: 10px;
    font-weight: 650;
}
.purchase-analysis-heading nav a:hover,
.purchase-analysis-heading nav a.active { border-color: #bcd7ee; color: #2e72ac; background: #eaf4fd; }
.purchase-analysis-filter {
    padding: 10px 12px;
    display: grid;
    grid-template-columns: minmax(190px,1.35fr) minmax(170px,1.05fr) 130px 134px 12px 134px 150px 162px 78px 64px;
    align-items: center;
    gap: 7px;
}
.purchase-analysis-search { height: 34px; display: flex; align-items: center; border: 1px solid #d7e3ef; border-radius: 8px; background: #fff; }
.purchase-analysis-search span { padding-left: 10px; color: #7ca1c2; font-size: 15px; }
.purchase-analysis-search input { min-width: 0; flex: 1; padding: 0 9px; border: 0; outline: 0; color: #425b72; font-size: 10.5px; background: transparent; }
.purchase-analysis-filter > :is(.form-select,.form-control) { height: 34px; border-color: #d7e3ef; border-radius: 8px; color: #526a80; font-size: 10px; box-shadow: none; }
.purchase-analysis-date-separator { color: #a0afbc; text-align: center; }
.purchase-analysis-filter > button { height: 34px; border: 0; border-radius: 8px; color: #fff; background: #3f8fd8; font-size: 10.5px; font-weight: 700; }
.purchase-analysis-filter > button:hover { background: #2d78bb; }
.purchase-analysis-data-note {
    min-height: 38px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d9e7f3;
    border-radius: 10px;
    color: #526b80;
    background: #f6fafe;
}
.purchase-analysis-data-note > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: #387cb6; background: #e5f1fc; font-size: 10px; font-weight: 750; }
.purchase-analysis-data-note strong { font-size: 10.5px; white-space: nowrap; }
.purchase-analysis-data-note small { color: #8498aa; font-size: 9.5px; }
.purchase-analysis-data-note.is-warning { border-color: #eadbb8; background: #fffaf0; }
.purchase-analysis-data-note.is-warning > span { color: #9a722b; background: #fff1ce; }
.purchase-analysis-kpis { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; }
.purchase-analysis-kpis article {
    min-height: 105px;
    padding: 14px 15px;
    border: 1px solid #dbe7f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(45,84,122,.045);
}
.purchase-analysis-kpis article > span,
.purchase-analysis-account-strip span { display: flex; align-items: center; gap: 5px; color: #7b8fa1; font-size: 10px; }
.purchase-analysis-kpis i,
.purchase-analysis-account-strip i {
    width: 14px;
    height: 14px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #c9d8e5;
    border-radius: 50%;
    color: #9aabba;
    font-size: 8px;
    font-style: normal;
    cursor: help;
}
.purchase-analysis-kpis article > strong { margin: 9px 0 5px; display: block; color: #275f8d; font-size: 21px; font-weight: 720; letter-spacing: -.035em; }
.purchase-analysis-kpis article > small { display: block; overflow: hidden; color: #91a1af; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.purchase-analysis-kpis article.is-pending > strong { color: #9a742b; }
.purchase-analysis-kpis article.is-return > strong { color: #477c8e; }
.purchase-analysis-kpis article.is-rate > strong { color: #356f9e; }
.purchase-analysis-kpis article.is-paid > strong { color: #267c68; }
.purchase-analysis-account-strip {
    min-height: 72px;
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    overflow: hidden;
    border: 1px solid #d9e6f3;
    border-radius: 12px;
    background: #f6fafe;
}
.purchase-analysis-account-strip > div { padding: 11px 14px; border-right: 1px solid #deebf6; }
.purchase-analysis-account-strip > div:last-child { border-right: 0; }
.purchase-analysis-account-strip strong { margin-top: 6px; display: block; color: #2d648f; font-size: 15px; }
.purchase-analysis-account-strip small { margin-top: 2px; display: block; color: #8da0b1; font-size: 8.5px; }
.purchase-analysis-account-strip .is-payable,
.purchase-analysis-table .is-payable { color: #b55c4a !important; }
.purchase-analysis-insights { display: grid; grid-template-columns: minmax(360px,.82fr) minmax(520px,1.18fr); gap: 10px; }
.purchase-analysis-insights article > header,
.purchase-analysis-table-card > header { min-height: 46px; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e2ebf4; background: #f7fafd; }
.purchase-analysis-insights header > div:first-child,
.purchase-analysis-table-card > header > div { display: flex; align-items: baseline; gap: 8px; }
.purchase-analysis-insights header strong,
.purchase-analysis-table-card > header strong { color: #304f69; font-size: 12px; }
.purchase-analysis-insights header span,
.purchase-analysis-insights header small,
.purchase-analysis-table-card > header span,
.purchase-analysis-table-card > header small { color: #8ea0af; font-size: 9px; }
.purchase-analysis-ranking-list { min-height: 228px; padding: 10px 13px; display: grid; gap: 4px; }
.purchase-analysis-ranking-list > div { min-height: 17px; display: grid; grid-template-columns: 18px minmax(88px,1fr) minmax(80px,1.25fr) 73px 38px; align-items: center; gap: 7px; }
.purchase-analysis-ranking-list b { color: #7b91a4; font-size: 9px; text-align: center; }
.purchase-analysis-ranking-list span { overflow: hidden; color: #496177; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.purchase-analysis-ranking-list i { height: 7px; overflow: hidden; border-radius: 5px; background: #edf3f8; }
.purchase-analysis-ranking-list em { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#77afe0,#3f8fd8); }
.purchase-analysis-ranking-list strong { color: #356b97; font-size: 9px; text-align: right; }
.purchase-analysis-ranking-list small { color: #95a5b3; font-size: 8px; text-align: right; }
.purchase-analysis-ranking-list p,
.purchase-analysis-trend-chart > p { margin: auto; color: #93a2af; font-size: 10px; }
.purchase-analysis-legend { display: flex; align-items: center; gap: 5px; color: #8497a7; font-size: 8.5px; }
.purchase-analysis-legend i { width: 7px; height: 7px; margin-left: 5px; border-radius: 2px; }
.purchase-analysis-legend .purchase,
.purchase-analysis-trend-bars .purchase { background: #4c98d9; }
.purchase-analysis-legend .returned,
.purchase-analysis-trend-bars .returned { background: #86aebd; }
.purchase-analysis-legend .paid,
.purchase-analysis-trend-bars .paid { background: #56a58e; }
.purchase-analysis-trend-scroll { min-height: 228px; padding: 12px 12px 8px; overflow-x: auto; }
.purchase-analysis-trend-chart { min-width: 100%; height: 204px; display: flex; align-items: stretch; gap: 5px; }
.purchase-analysis-trend-column { min-width: 24px; flex: 1 0 24px; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.purchase-analysis-trend-bars { height: 176px; display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-bottom: 1px solid #dce7f0; background: repeating-linear-gradient(to top,transparent 0,transparent 43px,#f2f6fa 44px); }
.purchase-analysis-trend-bars i { width: 5px; min-height: 0; border-radius: 3px 3px 0 0; }
.purchase-analysis-trend-column > span { height: 20px; padding-top: 5px; overflow: hidden; color: #91a1ae; font-size: 7.5px; text-align: center; white-space: nowrap; }
.purchase-analysis-table-card > header { min-height: 50px; }
.purchase-analysis-table { width: 100%; min-width: 940px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.purchase-analysis-table th { height: 40px; padding: 7px 9px; border-bottom: 1px solid #dce7f0; color: #657c90; background: #f1f7fc; font-size: 9px; font-weight: 700; white-space: nowrap; }
.purchase-analysis-table td { height: 78px; padding: 8px 10px; border-bottom: 1px solid #e8eef4; color: #4e6477; font-size: 9.5px; vertical-align: middle; }
.purchase-analysis-table tr:last-child td { border-bottom: 0; }
.purchase-analysis-table th:nth-child(1) { width: 220px; }
.purchase-analysis-table th:nth-child(2),
.purchase-analysis-table th:nth-child(3) { width: 155px; }
.purchase-analysis-table th:nth-child(4) { width: 100px; }
.purchase-analysis-table th:nth-child(5) { width: 120px; }
.purchase-analysis-table th:nth-child(6),
.purchase-analysis-table th:nth-child(7) { width: 130px; }
.purchase-analysis-table td > strong { display: block; color: #36536c; font-size: 10.5px; font-weight: 700; }
.purchase-analysis-table td > small { margin-top: 3px; display: block; overflow: hidden; color: #8d9dac; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.purchase-analysis-table td.money > strong { color: #2f6d9e; }
.purchase-analysis-table td .pending { color: #9d7b3e; }
.purchase-analysis-table .is-settled { color: #8093a3; }
.purchase-analysis-supplier-name { display: flex; align-items: center; gap: 7px; }
.purchase-analysis-supplier-name b { width: 19px; height: 19px; display: grid; flex: 0 0 19px; place-items: center; border-radius: 6px; color: #3d78aa; background: #eaf4fd; font-size: 8px; }
.purchase-analysis-supplier-name strong { overflow: hidden; color: #36536c; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.purchase-analysis-row-links { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 3px; }
.purchase-analysis-row-links a { height: 19px; padding: 0 5px; display: inline-flex; align-items: center; border: 1px solid #d3e3f1; border-radius: 5px; color: #3c79aa; background: #fff; font-size: 7.5px; }
.purchase-analysis-row-links a:hover { border-color: #90bce0; background: #edf6fd; }
.purchase-analysis-empty { min-height: 150px; display: grid; place-content: center; gap: 5px; text-align: center; }
.purchase-analysis-empty strong { color: #61788b; font-size: 12px; }
.purchase-analysis-empty span { color: #99a7b3; font-size: 9px; }
.purchase-analysis-pagination { border-top-color: #dce7f0; background: #f8fbfd; }

@media (max-width: 1500px) {
    .purchase-analysis-filter { grid-template-columns: minmax(190px,1.3fr) minmax(160px,1fr) 120px 125px 10px 125px 140px 150px 72px 60px; }
    .purchase-analysis-kpis article { padding-inline: 12px; }
    .purchase-analysis-kpis article > strong { font-size: 18px; }
}
@media (max-width: 1260px) {
    .purchase-analysis-filter { display: flex; flex-wrap: wrap; }
    .purchase-analysis-filter > * { flex: 1 1 130px; }
    .purchase-analysis-filter > .purchase-analysis-search { flex-basis: 220px; }
    .purchase-analysis-date-separator { flex: 0 0 12px; }
    .purchase-analysis-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .purchase-analysis-account-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .purchase-analysis-account-strip > div:nth-child(3) { border-right: 0; }
    .purchase-analysis-account-strip > div:nth-child(-n+3) { border-bottom: 1px solid #deebf6; }
}
@media (max-width: 900px) {
    .purchase-analysis-heading { align-items: flex-start; flex-direction: column; }
    .purchase-analysis-heading nav { width: 100%; overflow-x: auto; }
    .purchase-analysis-heading nav a { white-space: nowrap; }
    .purchase-analysis-insights { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .purchase-analysis-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .purchase-analysis-account-strip { grid-template-columns: 1fr 1fr; }
    .purchase-analysis-account-strip > div { border-bottom: 1px solid #deebf6; }
    .purchase-analysis-account-strip > div:nth-child(even) { border-right: 0; }
    .purchase-analysis-data-note { align-items: flex-start; flex-wrap: wrap; }
    .purchase-analysis-data-note small { flex-basis: calc(100% - 32px); margin-left: 31px; }
}

/* 订单分析：按主订单合并的清爽明细表（2026-08-24） */
.analysis-order-clean-board {
    width: 100%;
    overflow: auto;
    border: 1px solid #dfe8f2;
    border-radius: 14px;
    background: #fff;
}
.analysis-order-clean-table {
    width: 100%;
    min-width: 1370px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #29394d;
    font-size: 12px;
}
.analysis-order-clean-table col:nth-child(1) { width: 38px; }
.analysis-order-clean-table col:nth-child(2) { width: 350px; }
.analysis-order-clean-table col:nth-child(3) { width: 118px; }
.analysis-order-clean-table col:nth-child(4) { width: 108px; }
.analysis-order-clean-table col:nth-child(5) { width: 100px; }
.analysis-order-clean-table col:nth-child(6) { width: 130px; }
.analysis-order-clean-table col:nth-child(7) { width: 190px; }
.analysis-order-clean-table col:nth-child(8) { width: 190px; }
.analysis-order-clean-table col:nth-child(9) { width: 146px; }
.analysis-order-clean-table th {
    height: 38px;
    padding: 8px 10px;
    color: #314359;
    background: #f4f7fb;
    border-bottom: 1px solid #dfe8f2;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}
.analysis-order-clean-table th:nth-child(3),
.analysis-order-clean-table th:nth-child(7),
.analysis-order-clean-table th:nth-child(9) { text-align: right; }
.analysis-order-clean-table td {
    padding: 10px;
    vertical-align: top;
    border-top: 1px solid #e5ecf3;
    background: #fff;
}
.analysis-order-clean-table td + td { border-left: 1px solid #e5ecf3; }
.analysis-order-clean-table input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #4f83ca;
}
.analysis-order-clean-group + .analysis-order-clean-group .analysis-order-clean-meta td {
    border-top: 8px solid #edf3f9;
}
.analysis-order-clean-meta td {
    height: 42px;
    padding-top: 8px;
    padding-bottom: 8px;
    vertical-align: middle;
    background: #fafcfe;
}
.analysis-order-clean-meta-line {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}
.analysis-order-clean-meta-line strong,
.analysis-order-clean-meta-line i,
.analysis-order-clean-meta-line em { white-space: nowrap; }
.analysis-order-clean-meta-line strong { font-style: normal; font-weight: 600; }
.analysis-order-clean-meta-line strong > span { color: #3477bc; }
.analysis-order-clean-meta-line i { color: #8290a1; font-style: normal; }
.analysis-order-clean-meta-line em {
    min-width: 0;
    overflow: hidden;
    margin-left: auto;
    color: #37485c;
    font-style: normal;
    text-overflow: ellipsis;
}
.analysis-order-clean-kind { color: #d27343; font-weight: 600; }
.analysis-order-clean-child { cursor: pointer; }
.analysis-order-clean-child:hover > td { background: #fbfdff; }
.analysis-order-clean-child + .analysis-order-clean-child td { border-top-color: #edf1f5; }
.analysis-order-clean-child.analysis-internal-row > td { background: #fffdfb; }
.analysis-order-clean-product {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
}
.analysis-order-clean-image {
    width: 54px;
    height: 62px;
    display: grid;
    overflow: hidden;
    place-items: center;
    color: #8a98a8;
    background: #f3f6f9;
    border-radius: 6px;
    font-size: 11px;
}
.analysis-order-clean-image img { width: 100%; height: 100%; object-fit: cover; }
.analysis-order-clean-product > div:last-child { min-width: 0; }
.analysis-order-clean-product strong {
    display: block;
    overflow: hidden;
    margin: 1px 0 4px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.analysis-order-clean-table small {
    display: block;
    margin-top: 3px;
    color: #8a97a7;
    font-size: 10px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.35;
}
.analysis-order-clean-code { color: #3f7fbd !important; }
.analysis-order-clean-financial { text-align: right; }
.analysis-order-clean-income { color: #d25443 !important; font-weight: 600; }
.analysis-order-clean-cost { color: #24846a !important; font-weight: 500; }
.analysis-order-clean-pair {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: baseline;
    column-gap: 6px;
    margin-top: 4px;
    white-space: nowrap;
}
.analysis-order-clean-pair > :first-child { text-align: right; }
.analysis-order-clean-pair > i {
    color: #a0a9b4 !important;
    font-size: 10px;
    font-weight: 400;
    font-style: normal;
    text-align: right;
}
.analysis-order-clean-status {
    display: block;
    color: #34465b;
    font-weight: 600;
    white-space: nowrap;
}
.analysis-order-clean-status.is-done { color: #24846a; }
.analysis-order-clean-status.is-wait { color: #d27343; }
.analysis-order-clean-status.is-muted { color: #9ba6b2; font-weight: 400; }
.analysis-order-clean-common { vertical-align: top !important; background: #fff !important; }
.analysis-order-clean-common > strong { display: block; white-space: nowrap; }
.analysis-order-clean-common > .analysis-order-clean-pair { margin-top: 5px; }
.analysis-order-clean-shipping > span {
    display: block;
    margin-top: 4px;
    color: #8491a1;
    white-space: nowrap;
}
.analysis-order-clean-shipping > span.analysis-order-clean-pair { margin-top: 6px; }
.analysis-order-clean-shipping b { font-weight: 500; }
.analysis-order-source-toggle,
.analysis-order-clean-detail {
    display: inline-block;
    margin-top: 5px;
    padding: 0;
    border: 0;
    color: #397fc4;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
.analysis-order-clean-source[hidden] { display: none; }
.analysis-order-clean-source td {
    padding: 8px 44px;
    color: #8390a0;
    background: #f8fbfe;
}
.analysis-order-clean-source td > div { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.analysis-order-clean-source span { white-space: nowrap; }
.analysis-order-clean-source i {
    margin-left: 4px;
    color: #a0a9b4;
    font-size: 10px;
    font-style: normal;
}
.analysis-order-clean-tip { position: relative; cursor: help; }
.analysis-order-clean-tip::after {
    position: absolute;
    z-index: 80;
    top: calc(100% + 5px);
    left: 0;
    min-width: max-content;
    padding: 5px 8px;
    border-radius: 5px;
    color: #fff;
    background: #263747;
    box-shadow: 0 5px 15px rgb(20 35 50 / 18%);
    content: attr(data-tip);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-2px);
    transition: opacity .12s ease, transform .12s ease;
    white-space: nowrap;
}
.analysis-order-clean-tip:hover::after,
.analysis-order-clean-tip:focus-visible::after { opacity: 1; transform: translateY(0); }
.analysis-order-clean-financial .analysis-order-clean-tip::after,
.analysis-order-clean-profit .analysis-order-clean-tip::after { right: 0; left: auto; }

@media (max-width: 1280px) {
    .analysis-order-clean-table { min-width: 1280px; }
    .analysis-order-clean-table col:nth-child(2) { width: 300px; }
    .analysis-order-clean-table col:nth-child(7),
    .analysis-order-clean-table col:nth-child(8) { width: 170px; }
}

/* 订单成本补录 */
.order-cost-hero { padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; position: relative; background: linear-gradient(135deg,#f9fbff 0%,#eef5ff 70%,#fff8f2 100%); }
.order-cost-hero::after { content: ""; width: 220px; height: 220px; position: absolute; right: 80px; top: -150px; border: 42px solid rgba(79,132,203,.08); border-radius: 50%; }
.order-cost-hero > div { position: relative; z-index: 1; }
.order-cost-hero .page-eyebrow { color: #6484ad; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.order-cost-hero h1 { margin: 5px 0 5px; color: #263c59; font-size: 27px; }
.order-cost-hero p { margin: 0; color: #6d7f95; font-size: 13px; }
.order-cost-lock { position: relative; z-index: 1; padding: 10px 15px; border: 1px solid #f0d8bd; border-radius: 999px; background: rgba(255,250,244,.88); color: #bd713e; font-size: 12px; font-weight: 750; white-space: nowrap; }
.order-cost-rules { margin: 14px 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.order-cost-rules article { min-height: 78px; padding: 14px 16px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid #dce6f2; border-radius: 14px; background: #fff; box-shadow: 0 7px 20px rgba(54,88,128,.05); }
.order-cost-rules i { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #e9f2ff; color: #4c7fc3; font-size: 10px; font-style: normal; font-weight: 800; }
.order-cost-rules article:last-child i { background: #fff1e7; color: #c77842; }
.order-cost-rules div { display: grid; gap: 4px; }
.order-cost-rules strong { color: #334a66; font-size: 13px; }
.order-cost-rules span { color: #8593a5; font-size: 11px; line-height: 1.55; }
.order-cost-filter-card { padding: 14px 16px; }
.order-cost-filter { display: flex; align-items: center; gap: 9px; }
.order-cost-filter select { min-width: 150px; }
.order-cost-filter input[type="date"] { max-width: 155px; }
.order-cost-filter .order-cost-search { min-width: 210px; flex: 1; }
.order-cost-filter .btn-primary-custom { min-width: 72px; border: 0; }
.order-cost-tabs { margin: 14px 0; display: flex; gap: 8px; }
.order-cost-tabs a { padding: 10px 16px; display: flex; align-items: center; gap: 9px; border: 1px solid #dce5ef; border-radius: 10px; background: #fff; color: #60758d; text-decoration: none; font-size: 12px; }
.order-cost-tabs a strong { min-width: 23px; padding: 2px 7px; border-radius: 999px; background: #edf2f8; color: #647d9b; text-align: center; font-size: 10px; }
.order-cost-tabs a.active { border-color: #5c87c5; background: #5883c2; color: #fff; box-shadow: 0 6px 14px rgba(76,126,194,.18); }
.order-cost-tabs a.active strong { background: rgba(255,255,255,.18); color: #fff; }
.order-cost-list-card { overflow: hidden; }
.order-cost-list-title { padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e3eaf2; }
.order-cost-list-title > div { display: grid; gap: 3px; }
.order-cost-list-title strong { color: #2d435f; font-size: 15px; }
.order-cost-list-title span { color: #8a98a8; font-size: 10px; }
.order-cost-table { min-width: 1180px; }
.order-cost-table th { background: #f4f7fb; color: #6d829b; font-size: 11px; }
.order-cost-table td { vertical-align: middle; }
.order-cost-table td:not(.order-cost-editor-cell) { min-width: 135px; }
.order-cost-table td:nth-child(2) { min-width: 220px; }
.order-cost-table td > strong,.order-cost-table td > span,.order-cost-table td > small { display: block; }
.order-cost-table td > small { margin-top: 3px; color: #93a0ae; }
.order-cost-platform { width: fit-content; margin-bottom: 7px; padding: 3px 8px; border-radius: 999px; background: #f0f4fa; color: #6380a3; font-size: 10px; font-weight: 800; }
.order-cost-platform.jingdong { background: #fff0ed; color: #ce5a49; }
.order-cost-platform.douyin { background: #edf3ff; color: #4b76b7; }
.order-cost-order { color: #334e70; font-variant-numeric: tabular-nums; }
.order-cost-source { width: fit-content; padding: 5px 8px; border-radius: 7px; font-size: 10px; white-space: nowrap; }
.order-cost-source.missing { background: #fff5e9; color: #c1783c; }
.order-cost-source.locked { background: #eaf7f3; color: #328774; }
.order-cost-editor-cell { min-width: 495px; padding: 10px 14px !important; }
.order-cost-editor { display: grid; grid-template-columns: 126px minmax(190px,1fr) 92px; align-items: center; gap: 8px; }
.order-cost-money { height: 36px; display: flex; align-items: center; border: 1px solid #d6e0eb; border-radius: 8px; background: #fff; overflow: hidden; }
.order-cost-money:focus-within { border-color: #76a1da; box-shadow: 0 0 0 3px rgba(92,139,201,.11); }
.order-cost-money span { padding-left: 10px; color: #5277a6; font-weight: 750; }
.order-cost-money input { width: 100%; min-width: 0; padding: 7px 8px 7px 4px; border: 0; outline: 0; color: #2f4867; font-weight: 750; }
.order-cost-editor .form-control { height: 36px; font-size: 11px; }
.order-cost-editor button { height: 36px; border: 0; border-radius: 8px; background: #5581bd; color: #fff; font-size: 11px; font-weight: 750; }
.order-cost-editor button:hover { background: #436fae; }
.order-cost-empty { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8998aa; }
.order-cost-empty i { width: 44px; height: 44px; margin-bottom: 12px; display: grid; place-items: center; border-radius: 50%; background: #e8f6f1; color: #2e9a7d; font-size: 20px; font-style: normal; }
.order-cost-empty strong { color: #536b86; font-size: 15px; }
.order-cost-empty span { margin-top: 6px; font-size: 11px; }
@media (max-width: 1000px) {
    .order-cost-rules { grid-template-columns: 1fr; }
    .order-cost-filter { flex-wrap: wrap; }
    .order-cost-filter .order-cost-search { flex-basis: 100%; }
}
@media (max-width: 700px) {
    .order-cost-hero { padding: 20px; align-items: flex-start; flex-direction: column; }
    .order-cost-filter > * { flex: 1 1 135px; max-width: none !important; }
}

/* Project funds, store dividend presets and formal profit close */
.project-account-workspace-v5,
.project-dividend-workspace-v5,
.project-profit-workspace-v5 { display: grid; gap: 14px; }
.project-account-workspace-v5 > *,
.project-dividend-workspace-v5 > *,
.project-profit-workspace-v5 > * { min-width: 0; }
.page-heading-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.project-account-summary-v5 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.project-account-summary-v5 article { min-height: 92px; padding: 14px 16px; display: grid; align-content: center; gap: 4px; border: 1px solid #e0e8f0; border-radius: 13px; background: #fff; box-shadow: 0 8px 24px rgba(72,98,125,.05); }
.project-account-summary-v5 span { color: #75879a; font-size: 10px; font-weight: 700; }
.project-account-summary-v5 strong { color: #334f6d; font-size: 20px; line-height: 1.15; }
.project-account-summary-v5 strong.negative,
.project-account-card-v5 > a > strong.negative,
.project-profit-workspace-v5 .negative { color: #c95f58; }
.project-account-summary-v5 small { color: #9aa7b5; font-size: 9px; }
.project-account-strip-v5,
.project-selector-strip-v5 { display: flex; align-items: stretch; gap: 10px; overflow-x: auto; padding: 2px 2px 9px; scrollbar-width: thin; }
.project-account-card-v5 { width: 268px; min-width: 268px; overflow: hidden; border: 1px solid #dde6ee; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(65,91,118,.05); }
.project-account-card-v5.is-selected { border-color: #78a7d5; box-shadow: 0 0 0 2px rgba(83,139,192,.12),0 9px 24px rgba(65,91,118,.08); }
.project-account-card-v5.is-inactive { opacity: .68; }
.project-account-card-v5 > a { padding: 14px 15px 12px; display: grid; gap: 9px; color: inherit; text-decoration: none; }
.project-account-card-v5 header,
.project-account-card-v5 footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.project-account-card-v5 header > span { color: #7690aa; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.project-account-card-v5 h2 { margin: 0; color: #3d5570; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-account-card-v5 > a > strong { color: #315778; font-size: 22px; }
.project-account-card-v5 footer { color: #929eab; font-size: 9px; }
.project-account-card-v5 > form { margin: 0; border-top: 1px solid #edf1f5; }
.project-account-card-v5 > form button { width: 100%; min-height: 32px; border: 0; background: #fafcfd; color: #8291a1; font-size: 9px; }
.project-account-card-v5 > form button:hover { background: #fff4f1; color: #c3655b; }
.project-account-movements-v5 { overflow: hidden; }
.project-account-movements-v5 .management-table { min-width: 1280px; }
.project-account-current-balance-v5 { color: #365b79; font-size: 16px; }
.project-account-empty-v5,
.project-profit-empty-v5 { min-height: 150px; display: grid; place-content: center; gap: 7px; text-align: center; color: #50677e; }
.project-account-empty-v5 p,
.project-profit-empty-v5 p { margin: 0; color: #8c9aa9; font-size: 10px; }
.project-selector-strip-v5 a { min-width: 190px; padding: 11px 14px; display: grid; gap: 3px; border: 1px solid #dfe7ef; border-radius: 11px; background: #fff; color: #536b84; text-decoration: none; }
.project-selector-strip-v5 a.active { border-color: #78a7d5; background: #f3f8fd; box-shadow: 0 0 0 2px rgba(83,139,192,.1); }
.project-selector-strip-v5 strong { font-size: 11px; }
.project-selector-strip-v5 span { color: #91a0af; font-size: 9px; }
.project-dividend-member-base-v5 { padding: 15px 17px; }
.project-dividend-member-base-v5 > header { display: flex; justify-content: space-between; align-items: center; }
.project-dividend-member-base-v5 h2,
.project-profit-store-panel-v5 h2,
.project-profit-finalize-v5 h2,
.project-profit-history-v5 h2 { margin: 2px 0; color: #3d5570; font-size: 15px; }
.project-dividend-member-base-v5 > div { margin-top: 11px; display: flex; gap: 7px; flex-wrap: wrap; }
.project-dividend-member-base-v5 > div span,
.project-store-dividend-chips-v5 span { padding: 6px 9px; border-radius: 999px; background: #edf4fb; color: #537397; font-size: 9px; font-weight: 700; }
.project-dividend-member-base-v5 em,
.project-store-dividend-chips-v5 em { color: #9aa6b3; font-size: 10px; font-style: normal; }
.project-store-dividend-grid-v5 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.project-store-dividend-card-v5 { padding: 15px; }
.project-store-dividend-card-v5 > header { display: flex; justify-content: space-between; gap: 12px; }
.project-store-dividend-card-v5 > header span { color: #7089a3; font-size: 9px; font-weight: 800; }
.project-store-dividend-card-v5 > header h2 { margin: 3px 0; color: #3d5570; font-size: 13px; }
.project-store-dividend-card-v5 > header small { color: #97a5b3; font-size: 9px; }
.project-store-dividend-card-v5 > header > i { height: fit-content; padding: 4px 8px; border-radius: 999px; background: #edf6f2; color: #4d8a72; font-size: 9px; font-style: normal; }
.project-store-dividend-chips-v5 { min-height: 42px; padding: 12px 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.project-store-dividend-editor-v5 { border-top: 1px solid #e8edf2; }
.project-store-dividend-editor-v5 > summary,
.project-profit-row-actions-v5 summary,
.project-profit-finalize-actions-v5 summary { padding: 9px 0 2px; color: #54779a; cursor: pointer; font-size: 9px; font-weight: 750; }
.project-store-dividend-editor-v5 form { margin-top: 9px; display: grid; gap: 8px; }
.project-store-dividend-editor-v5 [data-store-dividend-rows] { display: grid; gap: 7px; }
.project-store-dividend-row-v5 { display: grid; grid-template-columns: minmax(0,1fr) 130px 34px; gap: 7px; }
.project-store-dividend-row-v5 select,
.project-store-dividend-row-v5 input,
.project-profit-row-actions-v5 input,
.project-profit-finalize-actions-v5 input { min-height: 35px; border: 1px solid #d8e1ea; border-radius: 8px; background: #fff; padding: 0 9px; color: #4c6076; font-size: 9px; }
.project-store-dividend-row-v5 label { display: grid; grid-template-columns: 1fr 27px; }
.project-store-dividend-row-v5 label input { border-radius: 8px 0 0 8px; }
.project-store-dividend-row-v5 label i { display: grid; place-items: center; border: 1px solid #d8e1ea; border-left: 0; border-radius: 0 8px 8px 0; background: #eef3f7; color: #7c8996; font-size: 9px; font-style: normal; }
.project-store-dividend-row-v5 > button { border: 1px solid #ecd9d5; border-radius: 8px; background: #fff7f5; color: #c3695d; }
.project-store-dividend-editor-v5 footer { display: flex; justify-content: flex-end; gap: 7px; }
.project-profit-toolbar-v5 { min-height: 67px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-profit-toolbar-v5 form { display: flex; align-items: end; gap: 7px; margin: 0; }
.project-profit-toolbar-v5 label { display: grid; gap: 4px; color: #75879a; font-size: 9px; }
.project-profit-toolbar-v5 input[type="month"] { width: 150px; min-height: 35px; padding: 0 9px; border: 1px solid #d8e1ea; border-radius: 8px; color: #4c6076; }
.project-profit-toolbar-v5 > div { display: flex; align-items: center; gap: 8px; color: #7a8998; font-size: 9px; }
.project-profit-toolbar-v5 > div strong { color: #3f5b76; font-size: 15px; }
.project-profit-toolbar-v5 > div i { padding: 4px 8px; border-radius: 999px; background: #eef4fa; color: #5d7b9a; font-style: normal; }
.project-profit-toolbar-v5 button:disabled { opacity: .42; cursor: not-allowed; filter: grayscale(.45); }
.project-profit-store-panel-v5 { overflow: hidden; }
.project-profit-store-panel-v5 > header,
.project-profit-history-v5 > header { padding: 13px 16px; border-bottom: 1px solid #e8edf2; }
.project-profit-store-panel-v5 > header span { color: #8b99a7; font-size: 9px; }
.project-profit-table-v5 { min-width: 980px; }
.project-profit-table-v5 td:first-child { display: grid; gap: 2px; }
.project-profit-table-v5 td:first-child small { color: #91a0ae; font-size: 9px; }
.project-profit-status-v5 { padding: 4px 8px; border-radius: 999px; background: #fff5e8; color: #a7783c; font-size: 9px; font-weight: 750; }
.project-profit-status-v5.locked { background: #eaf7f1; color: #438064; }
.project-profit-row-actions-v5 { display: flex; align-items: center; gap: 6px; }
.project-profit-row-actions-v5 form { margin: 0; }
.project-profit-row-actions-v5 details { position: relative; }
.project-profit-row-actions-v5 details > form { width: 360px; padding: 9px; position: absolute; z-index: 4; right: 0; display: grid; grid-template-columns: 100px 1fr auto; gap: 6px; border: 1px solid #dce5ed; border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(55,79,104,.14); }
.project-profit-finalize-v5 { padding: 15px 17px; display: grid; grid-template-columns: minmax(0,1fr) 180px auto; align-items: center; gap: 18px; }
.project-profit-finalize-v5 p { margin: 3px 0 0; color: #8d9aa8; font-size: 9px; }
.project-profit-finalize-amount-v5 { display: grid; gap: 3px; text-align: right; }
.project-profit-finalize-amount-v5 span { color: #8695a4; font-size: 9px; }
.project-profit-finalize-amount-v5 strong { color: #315778; font-size: 21px; }
.project-profit-finalize-actions-v5 { display: flex; align-items: center; gap: 7px; }
.project-profit-finalize-actions-v5 details { position: relative; }
.project-profit-finalize-actions-v5 details > form { width: 410px; padding: 9px; position: absolute; z-index: 4; right: 0; display: grid; grid-template-columns: 110px 1fr auto; gap: 6px; border: 1px solid #dce5ed; border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(55,79,104,.14); }
.project-profit-history-v5 { overflow: hidden; }
.project-profit-history-v5 .management-table { min-width: 900px; }

@media (max-width: 1000px) {
    .project-account-summary-v5 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .project-store-dividend-grid-v5 { grid-template-columns: 1fr; }
    .project-profit-finalize-v5 { grid-template-columns: 1fr; }
    .project-profit-finalize-amount-v5 { text-align: left; }
}
@media (max-width: 650px) {
    .project-account-summary-v5 { grid-template-columns: 1fr; }
    .project-profit-toolbar-v5 { align-items: stretch; flex-direction: column; }
    .project-store-dividend-row-v5 { grid-template-columns: 1fr 110px 34px; }
}

/* Internal settlement daily statements */
.internal-daily-workspace { gap: 11px; }
.internal-daily-filter-card { padding: 10px 12px; }
.internal-daily-filter { display: flex; align-items: center; gap: 7px; margin: 0; }
.internal-daily-filter .form-control { width: 142px; min-height: 36px; font-size: 10px; }
.internal-daily-filter .internal-daily-keyword { min-width: 260px; flex: 1 1 360px; }
.internal-daily-filter > span { color: #9aa7b4; }
.internal-daily-filter .btn-light-custom,
.internal-daily-filter .btn-primary-custom { min-height: 36px; white-space: nowrap; }
.internal-daily-summary { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.internal-daily-summary article { min-height: 82px; padding: 12px 13px; display: grid; align-content: center; gap: 3px; border: 1px solid #e0e8f0; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(72,98,125,.045); }
.internal-daily-summary span { color: #788a9c; font-size: 10px; font-weight: 500; }
.internal-daily-summary strong { color: #465e73; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.internal-daily-summary small { overflow: hidden; color: #99a5b1; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.internal-daily-ledger { overflow: hidden; }
.internal-daily-ledger > .finance-account-directory-head { padding: 12px 15px; border-bottom: 1px solid #e8edf2; }
.internal-daily-table { min-width: 1370px; table-layout: fixed; }
.internal-daily-table .daily-col-date { width: 145px; }
.internal-daily-table .daily-col-store { width: 210px; }
.internal-daily-table .daily-col-amount { width: 92px; }
.internal-daily-table .daily-col-net { width: 112px; }
.internal-daily-table .daily-col-count { width: 92px; }
.internal-daily-table .daily-col-status { width: 116px; }
.internal-daily-table .daily-col-action { width: 92px; }
.internal-daily-table th:nth-child(n+3):nth-child(-n+9) { text-align: right; }
.internal-daily-table tbody .internal-daily-row { cursor: pointer; }
.internal-daily-table tbody .internal-daily-row td { height: 62px; }
.internal-daily-table tbody .internal-daily-row:hover td { border-color: #e6edf3 !important; background: #fafcfd !important; box-shadow: none !important; outline: 0 !important; }
.internal-daily-table td > strong,
.internal-daily-table td > small { display: block; }
.internal-daily-table td > strong { color: #465e73; font-size: 11px; font-weight: 600; }
.internal-daily-table td > small { margin-top: 3px; color: #94a2af; font-size: 8px; }
.internal-daily-table .money-cell { color: #526a80; font-weight: 500; font-variant-numeric: tabular-nums; }
.internal-daily-table .internal-daily-net { color: #465e73; font-size: 11px; font-weight: 600; }
.internal-daily-detail-button { min-height: 30px; padding: 0 10px; border: 1px solid #d4e1ec; border-radius: 8px; background: #fff; color: #526b81; font-size: 9px; font-weight: 500; }
.internal-daily-detail-button:hover { border-color: #bfd0df; background: #f7f9fb; color: #3f596f; }
.internal-daily-detail-button:focus,
.internal-daily-detail-button:focus-visible { outline: 0; border-color: #bfd0df; box-shadow: 0 0 0 2px rgba(79,132,180,.10); }
.internal-daily-detail-row td { max-width: none !important; height: auto !important; padding: 0 !important; white-space: normal !important; overflow: visible !important; }
.internal-daily-detail-panel { padding: 12px 16px 15px; border-top: 1px solid #dfe7ee; border-bottom: 1px solid #dfe7ee; background: #f7f9fb; }
.internal-daily-detail-panel > header { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.internal-daily-detail-panel > header div { display: grid; gap: 3px; }
.internal-daily-detail-panel > header strong { color: #465e73; font-size: 11px; font-weight: 600; }
.internal-daily-detail-panel > header span { color: #8a9baa; font-size: 8px; }
.internal-daily-detail-panel > header b { color: #465e73; font-size: 12px; font-weight: 600; }
.internal-daily-detail-panel table { width: 100%; min-width: 1170px; table-layout: fixed; border-collapse: collapse; background: #fff; }
.internal-daily-detail-panel .detail-col-time { width: 130px; }
.internal-daily-detail-panel .detail-col-fee { width: 95px; }
.internal-daily-detail-panel .detail-col-order { width: 190px; }
.internal-daily-detail-panel .detail-col-direction { width: 120px; }
.internal-daily-detail-panel .detail-col-amount { width: 82px; }
.internal-daily-detail-panel .detail-col-source { width: 170px; }
.internal-daily-detail-panel .detail-col-note { width: auto; }
.internal-daily-detail-panel th,
.internal-daily-detail-panel td { height: 38px !important; padding: 6px 9px !important; border: 1px solid #e6edf3 !important; color: #687c90; font-size: 9px; text-align: left; white-space: nowrap !important; }
.internal-daily-detail-panel tbody tr:hover td { border-color: #e6edf3 !important; background: #fafcfd !important; color: #687c90 !important; box-shadow: none !important; outline: 0 !important; }
.internal-daily-detail-panel td.internal-daily-note { overflow: hidden !important; line-height: 1.45; text-overflow: ellipsis; }
.internal-daily-detail-panel td small { display: block; color: #9aa8b5; }
.internal-daily-month-close { overflow: hidden; }
.internal-daily-month-close > summary { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.internal-daily-month-close > summary::-webkit-details-marker { display: none; }
.internal-daily-month-close > summary > div { display: grid; gap: 3px; }
.internal-daily-month-close > summary strong { color: #405c76; font-size: 11px; }
.internal-daily-month-close > summary span:not(.status-badge) { color: #8d9ba9; font-size: 8px; }
.internal-daily-month-body { padding: 14px 15px; border-top: 1px solid #e6edf3; background: #fafcfd; }
.internal-daily-manual-history { margin-bottom: 13px; padding-bottom: 13px; border-bottom: 1px solid #e5ebf1; }
.internal-daily-manual-history > header { margin-bottom: 7px; display: flex; justify-content: space-between; color: #62798e; font-size: 9px; }
.internal-daily-manual-history table { width: 100%; min-width: 820px; border-collapse: collapse; background: #fff; }
.internal-daily-manual-history th,.internal-daily-manual-history td { padding: 7px 9px; border: 1px solid #e7edf2; color: #65798d; font-size: 9px; text-align: left; }
.internal-daily-month-body > .compact-filter-bar { margin-top: 10px; }
@media (max-width: 1200px) {
    .internal-daily-filter { flex-wrap: wrap; }
    .internal-daily-filter .internal-daily-keyword { flex-basis: 100%; }
    .internal-daily-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 700px) {
    .internal-daily-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .internal-daily-filter > * { flex: 1 1 135px; width: auto !important; }
}

body.taobao-system-theme .internal-daily-table tbody .internal-daily-row:hover > td,
body.taobao-system-theme .internal-daily-table tbody .internal-daily-row:focus-within > td,
body.taobao-system-theme .internal-daily-detail-panel tbody tr:hover > td,
body.taobao-system-theme .internal-daily-detail-panel tbody tr:focus-within > td {
    color: #687c90 !important;
    border-color: #e6edf3 !important;
    background: #fafcfd !important;
    box-shadow: none !important;
}
body.taobao-system-theme .internal-daily-table tbody .internal-daily-row:hover > td:first-child,
body.taobao-system-theme .internal-daily-table tbody .internal-daily-row:focus-within > td:first-child,
body.taobao-system-theme .internal-daily-detail-panel tbody tr:hover > td:first-child,
body.taobao-system-theme .internal-daily-detail-panel tbody tr:focus-within > td:first-child {
    box-shadow: none !important;
}

/* 内购单管理 */
.internal-purchase-search-card,
.internal-purchase-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    margin-bottom: 10px;
}

.internal-purchase-search-form {
    flex: 1;
    display: flex;
    justify-content: center;
}

.internal-purchase-search-box {
    width: min(720px, 100%);
    height: 44px;
    display: flex;
    align-items: center;
    padding: 4px 5px 4px 18px;
    border: 1px solid #eadfd8;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(70, 45, 28, .05);
}

.internal-purchase-search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #332d29;
    background: transparent;
}

.internal-purchase-search-box button {
    height: 34px;
    min-width: 72px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: #ff5b18;
}

.internal-purchase-import-form input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.internal-purchase-toolbar {
    flex-wrap: nowrap;
}

.internal-purchase-status-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.internal-purchase-status-tabs a {
    padding: 7px 10px;
    border-radius: 8px;
    color: #6e625c;
    text-decoration: none;
    font-size: 13px;
}

.internal-purchase-status-tabs a b {
    margin-left: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #a2948c;
}

.internal-purchase-status-tabs a:hover,
.internal-purchase-status-tabs a.active {
    color: #f4511e;
    background: #fff2eb;
}

.internal-purchase-filter-form,
.internal-purchase-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.internal-purchase-filter-form {
    margin-left: auto;
}

.internal-purchase-filter-form .form-select {
    width: 170px;
    height: 34px;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 13px;
}

.internal-purchase-search-card .btn-light-custom,
.internal-purchase-toolbar .btn-light-custom,
.internal-purchase-search-card .btn-primary-custom {
    min-height: 34px;
    padding: 6px 13px;
    font-size: 13px;
    white-space: nowrap;
}

.internal-purchase-danger {
    color: #df3e42 !important;
}

.internal-purchase-table-card {
    overflow: hidden;
}

.internal-purchase-table-scroll {
    max-height: calc(100vh - 285px);
    overflow: auto;
}

.internal-purchase-table {
    min-width: 1780px;
    table-layout: fixed;
}

.internal-purchase-table th,
.internal-purchase-table td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #eee8e4;
    color: #403936;
    font-size: 14px;
}

.internal-purchase-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    height: 46px;
    background: #faf8f6;
    color: #625852;
    font-size: 13px;
    font-weight: 650;
}

.internal-purchase-table th:nth-child(1),
.internal-purchase-table td:nth-child(1) { width: 44px; }
.internal-purchase-table th:nth-child(2),
.internal-purchase-table td:nth-child(2) { width: 58px; }
.internal-purchase-table th:nth-child(3),
.internal-purchase-table td:nth-child(3) { width: 126px; }
.internal-purchase-table th:nth-child(4),
.internal-purchase-table td:nth-child(4) { width: 190px; }
.internal-purchase-table th:nth-child(5),
.internal-purchase-table td:nth-child(5) { width: 250px; }
.internal-purchase-table th:nth-child(6),
.internal-purchase-table td:nth-child(6) { width: 155px; }
.internal-purchase-table th:nth-child(7),
.internal-purchase-table td:nth-child(7) { width: 100px; }
.internal-purchase-table th:nth-child(8),
.internal-purchase-table td:nth-child(8) { width: 145px; }
.internal-purchase-table th:nth-child(9),
.internal-purchase-table td:nth-child(9) { width: 180px; }
.internal-purchase-table th:nth-child(10),
.internal-purchase-table td:nth-child(10) { width: 118px; }
.internal-purchase-table th:nth-child(11),
.internal-purchase-table td:nth-child(11) { width: 235px; }
.internal-purchase-table th:nth-child(12),
.internal-purchase-table td:nth-child(12) { width: 170px; }

.internal-purchase-table tbody tr {
    height: 66px;
    cursor: pointer;
    transition: background-color .18s ease;
}

.internal-purchase-table tbody tr:hover {
    background: #fffaf7;
}

.internal-purchase-table tbody tr.internal-purchase-pending-row {
    box-shadow: inset 3px 0 #f36c51;
}

.internal-purchase-table td strong {
    display: block;
    overflow: hidden;
    color: #302a27;
    font-size: 14px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.internal-purchase-table td small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #9a8f88;
    font-size: 11px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.internal-reconcile-status {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 9px;
    border-radius: 12px;
    color: #b6372f;
    background: #fff0ed;
    font-size: 12px;
    font-weight: 650;
}

.internal-reconcile-status.matched {
    color: #17825d;
    background: #eaf7f1;
}

.internal-reconcile-status.amount_mismatch {
    color: #d55715;
    background: #fff2e8;
}

.internal-purchase-error {
    color: #df3e42 !important;
}

.internal-purchase-table tfoot td {
    position: sticky;
    bottom: 0;
    z-index: 3;
    height: 48px;
    border-top: 1px solid #ded5cf;
    border-bottom: 0;
    background: #fff;
    font-weight: 650;
}

.internal-purchase-pagination {
    justify-content: center;
    gap: 18px;
    margin-top: 10px;
}

.internal-purchase-pagination form select {
    height: 32px;
    border: 1px solid #e2d9d3;
    border-radius: 7px;
    color: #625852;
    background: #fff;
}

@media (max-width: 1280px) {
    .internal-purchase-toolbar { overflow-x: auto; }
    .internal-purchase-search-box { width: 100%; }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: 248px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 0 0, rgba(93, 95, 202, .22), transparent 28%),
        var(--sidebar);
    color: #fff;
    scrollbar-width: thin;
    scrollbar-color: #42445d transparent;
    transition: transform .24s ease;
}

.brand {
    height: 82px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px 14px 14px 4px;
    background: linear-gradient(145deg, #ff8c7d, #ef5f58);
    box-shadow: 0 9px 20px rgba(243, 110, 98, .25);
    font-size: 21px;
    font-weight: 800;
}

.brand strong { display: block; font-size: 17px; letter-spacing: .05em; }
.brand small { display: block; margin-top: 2px; color: #8d90aa; font-size: 8px; letter-spacing: .14em; }
.sidebar-nav { padding: 12px 14px 28px; }
.nav-section { padding: 24px 12px 8px; color: #6f728c; font-size: 11px; font-weight: 700; letter-spacing: .12em; }

.nav-item {
    min-height: 42px;
    margin: 3px 0;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 10px;
    color: #aeb0c2;
    font-size: 14px;
    transition: background .18s, color .18s, transform .18s;
}

.nav-item:hover { background: rgba(255,255,255,.055); color: #fff; transform: translateX(2px); }
.nav-item.active { background: linear-gradient(90deg, rgba(243,110,98,.22), rgba(243,110,98,.08)); color: #fff; box-shadow: inset 3px 0 0 var(--coral); }
.nav-icon { width: 22px; color: #82859d; font-size: 16px; text-align: center; }
.nav-item.active .nav-icon { color: #ff968d; }

.main-panel { min-height: 100vh; margin-left: 248px; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 72px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
}

.sidebar-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-size: 22px; }
.topbar-title { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.breadcrumb-home, .breadcrumb-separator { color: #a3a5b3; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.system-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.system-status i { width: 7px; height: 7px; border-radius: 50%; background: #43b79f; box-shadow: 0 0 0 4px #e6f6f2; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; text-align: left; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--indigo-soft); color: var(--indigo); font-weight: 800; }
.user-meta strong, .user-meta small { display: block; }
.user-meta strong { font-size: 12px; }
.user-meta small { margin-top: 2px; color: #a1a3af; font-size: 10px; }

.content-wrap { width: 100%; max-width: 1900px; margin: 0 auto; padding: 28px; }
.page-heading { margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.eyebrow { margin: 0 0 7px; color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.page-heading h1 { margin: 0 0 7px; font-size: 28px; font-weight: 750; letter-spacing: -.035em; }
.page-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; }
.date-chip { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: 11px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.metric-card { position: relative; overflow: hidden; min-height: 180px; padding: 23px; border: 1px solid rgba(32,34,58,.045); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.metric-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -38px; top: -38px; border-radius: 50%; opacity: .6; }
.metric-coral::after { background: var(--coral-soft); }
.metric-indigo::after { background: var(--indigo-soft); }
.metric-amber::after { background: var(--amber-soft); }
.metric-teal::after { background: var(--teal-soft); }
.metric-icon { width: 38px; height: 38px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 11px; font-size: 14px; font-weight: 800; }
.metric-coral .metric-icon { color: var(--coral); background: var(--coral-soft); }
.metric-indigo .metric-icon { color: var(--indigo); background: var(--indigo-soft); }
.metric-amber .metric-icon { color: var(--amber); background: var(--amber-soft); }
.metric-teal .metric-icon { color: var(--teal); background: var(--teal-soft); }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-value { margin-top: 5px; font-size: 28px; font-weight: 750; letter-spacing: -.04em; }
.metric-value small { font-size: 14px; font-weight: 700; }
.metric-foot { margin-top: 9px; color: #aaacb8; font-size: 10px; }

.dashboard-grid { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr); gap: 20px; }
.panel-card { border: 1px solid rgba(32,34,58,.05); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.progress-panel, .quick-panel { padding: 25px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.panel-heading h2 { margin: 0; font-size: 17px; font-weight: 750; }
.status-badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.status-building { color: var(--indigo); background: var(--indigo-soft); }
.status-planned { color: var(--amber); background: var(--amber-soft); }
.progress-summary { margin: 22px 0; padding: 19px; display: flex; align-items: center; gap: 18px; border-radius: 13px; background: #f8f8fb; }
.progress-ring { --progress: 0; flex: 0 0 auto; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--coral) calc(var(--progress) * 1%), #e8e8ee 0); position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.progress-ring span { position: relative; z-index: 1; color: var(--coral); font-size: 12px; font-weight: 800; }
.progress-summary strong { display: block; margin-bottom: 5px; font-size: 13px; }
.progress-summary p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.module-list { display: grid; gap: 2px; }
.module-row { min-height: 47px; padding: 0 4px; display: grid; grid-template-columns: 13px 100px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid #f0f0f4; font-size: 11px; }
.module-row:last-child { border-bottom: 0; }
.module-row strong { font-size: 12px; }
.module-row span:not(.module-dot) { color: var(--muted); }
.module-row em { color: #9b9da9; font-style: normal; }
.module-dot { width: 7px; height: 7px; border-radius: 50%; background: #d6d7df; }
.module-dot.done { background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.module-dot.active { background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }

.quick-panel { display: flex; flex-direction: column; }
.quick-link { padding: 15px 3px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid #f0f0f4; }
.quick-link:last-child { border-bottom: 0; }
.quick-link:hover strong { color: var(--coral); }
.quick-link b { color: #c3c5cf; font-size: 16px; transition: transform .18s; }
.quick-link:hover b { transform: translateX(4px); color: var(--coral); }
.quick-link strong, .quick-link small { display: block; }
.quick-link strong { font-size: 12px; transition: color .18s; }
.quick-link small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.quick-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; font-size: 14px; font-weight: 800; }
.quick-icon.coral { color: var(--coral); background: var(--coral-soft); }
.quick-icon.indigo { color: var(--indigo); background: var(--indigo-soft); }
.quick-icon.teal { color: var(--teal); background: var(--teal-soft); }
.quick-icon.amber { color: var(--amber); background: var(--amber-soft); }

.empty-state { min-height: 440px; padding: 64px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-mark { width: 80px; height: 80px; margin-bottom: 25px; display: grid; place-items: center; border-radius: 25px 25px 25px 8px; background: var(--coral-soft); transform: rotate(-4deg); }
.empty-mark span { color: var(--coral); font-size: 30px; font-weight: 850; transform: rotate(4deg); }
.empty-state h2 { margin: 0 0 10px; font-size: 21px; }
.empty-state > p:not(.eyebrow) { max-width: 560px; margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.btn-primary-custom { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.btn-primary-custom:hover { color: #fff; background: var(--coral); }

.flash-stack { position: fixed; z-index: 60; top: 84px; right: 28px; width: min(440px, calc(100vw - 32px)); }
.flash-stack .alert { border: 0; border-radius: 12px; box-shadow: 0 14px 34px rgba(27,29,54,.14); font-size: 12px; }
.management-heading { align-items: center; }
.data-panel { overflow: hidden; }
.data-toolbar { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.filter-form, .toolbar-actions { display: flex; align-items: center; gap: 9px; }
.toolbar-actions form { margin: 0; }
.search-control { width: min(330px, 30vw); min-width: 220px; height: 38px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid #dedfe7; border-radius: 9px; background: #fff; }
.search-control span { color: #a0a2b0; font-size: 18px; }
.search-control input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 12px; }
.search-control input::placeholder { color: #b1b3bf; }
.compact-select { width: 150px; height: 38px; border-color: #dedfe7; border-radius: 9px; color: var(--ink); font-size: 12px; }
.btn-light-custom, .btn-danger-soft, .btn-text-custom { min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.btn-light-custom { border: 1px solid #dedfe7; background: #fff; color: #55586b; }
.btn-light-custom:hover { border-color: #bfc1cc; color: var(--ink); }
.btn-danger-soft { border: 1px solid transparent; background: var(--coral-soft); color: var(--coral); }
.btn-danger-soft:disabled { opacity: .45; cursor: not-allowed; }
.btn-text-custom { color: var(--muted); }
.management-table { width: 100%; min-width: 1480px; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.management-table.compact-management-table { min-width: 900px; }
.management-table thead th { height: 44px; padding: 0 13px; border-bottom: 1px solid var(--line); background: #f8f8fb; color: #777a8c; font-size: 10px; font-weight: 750; white-space: nowrap; }
.management-table tbody td { max-width: 240px; height: 52px; padding: 8px 13px; border-bottom: 1px solid #f0f0f4; color: #5f6273; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.management-table tbody tr:last-child td { border-bottom: 0; }
.management-table tbody tr:hover td { background: #fcfcfe; }
.management-table .check-col { width: 42px; text-align: center; }
.management-table .action-col { width: 105px; text-align: right; }
.management-table .wide-cell { max-width: 300px; }
.table-primary-text { color: var(--ink); font-weight: 700; }
.mono-text { font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 10px; }
.code-badge, .category-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 0 8px; border-radius: 7px; }
.code-badge { background: var(--indigo-soft); color: var(--indigo); font-family: ui-monospace, "Cascadia Mono", monospace; font-weight: 700; }
.category-badge { background: #f0f1f5; color: #636678; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.row-actions form { margin: 0; }
.action-link { padding: 0; border: 0; background: transparent; color: var(--indigo); font-size: 11px; font-weight: 700; }
.action-link.danger { color: var(--coral); }
.keyword-cell { white-space: normal !important; }
.keyword-cell span { margin: 2px 4px 2px 0; padding: 4px 7px; display: inline-flex; border-radius: 6px; background: var(--teal-soft); color: #278879; }
.table-empty { padding: 44px; color: #a2a4b1; text-align: center; }
.pagination-bar { min-height: 57px; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.pagination-links { display: flex; align-items: center; gap: 4px; }
.pagination-links a, .pagination-links span { min-width: 30px; height: 30px; padding: 0 7px; display: grid; place-items: center; border-radius: 7px; }
.pagination-links a { border: 1px solid #e2e3e9; background: #fff; }
.pagination-links a.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.management-modal { overflow: hidden; border: 0; border-radius: 17px; box-shadow: 0 25px 70px rgba(20,21,40,.22); }
.management-modal .modal-header { padding: 22px 25px 17px; border-bottom-color: var(--line); }
.management-modal .modal-title { font-size: 19px; font-weight: 760; }
.management-modal .modal-body { padding: 23px 25px; }
.management-modal .modal-footer { padding: 15px 25px; border-top-color: var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.span-2 { grid-column: span 2; }
.form-field label { color: #5d6070; font-size: 11px; font-weight: 700; }
.form-field label em { color: var(--coral); font-style: normal; }
.form-field small { color: #9a9ca9; font-size: 10px; }
.form-field .form-control { min-height: 40px; border-color: #dedfe7; border-radius: 9px; color: var(--ink); font-size: 12px; }
.form-field .form-control:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(93,95,202,.1); }

@supports not selector(:has(*)) {
    [data-bulk-submit] { display: none; }
}

.parse-hero { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.parse-hero h1 { margin: 0 0 8px; font-size: 30px; font-weight: 780; letter-spacing: -.04em; }
.parse-hero-copy > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.supported-sites { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.supported-sites span { min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e1e2e9; border-radius: 8px; background: #fff; color: #686b7c; font-size: 10px; }
.supported-sites i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.parse-launcher { position: relative; overflow: hidden; padding: 27px; background: #191a2e; box-shadow: 0 18px 45px rgba(23,24,42,.16); }
.parse-launcher::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to right, #000, transparent 76%); }
.parse-launcher::after { content: ""; position: absolute; width: 310px; height: 310px; right: -90px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(93,95,202,.35), transparent 68%); }
.parse-url-form { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.parse-url-input { height: 53px; padding: 0 17px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.065); }
.parse-link-icon { color: #8f92ef; font-size: 21px; }
.parse-url-input input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #fff; font-size: 13px; }
.parse-url-input input::placeholder { color: #777a95; }
.parse-action-button { min-width: 174px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #ff887a, var(--coral)); color: #fff; font-size: 12px; font-weight: 750; box-shadow: 0 10px 25px rgba(243,110,98,.25); }
.parse-action-button b { font-size: 17px; }
.parse-action-button:disabled { opacity: .55; cursor: wait; }
.parse-security-note { position: relative; z-index: 2; margin-top: 14px; display: flex; align-items: center; gap: 7px; color: #7f829c; font-size: 10px; }
.parse-security-note span { color: #55c4b0; }
.login-state-row { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.login-state-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid rgba(148,163,184,.2); border-radius: 999px; color: #8589a2; background: rgba(15,23,42,.3); font-size: 10px; }
.login-state-chip i { width: 6px; height: 6px; border-radius: 50%; background: #64748b; }
.login-state-chip.ready { color: #a7f3d0; border-color: rgba(16,185,129,.3); }
.login-state-chip.ready i { background: #34d399; box-shadow: 0 0 9px rgba(52,211,153,.9); }
.parse-progress { margin-top: 18px; padding: 24px 28px; display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 25px; border-color: rgba(93,95,202,.15); }
.parse-progress[hidden] { display: none; }
.scanner-visual { position: relative; width: 78px; height: 78px; display: grid; place-items: center; }
.scanner-visual > span { width: 48px; height: 39px; display: grid; place-items: center; border-radius: 13px 13px 13px 4px; background: linear-gradient(135deg, var(--indigo), #7678e6); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 0 30px rgba(93,95,202,.34); }
.scanner-orbit { position: absolute; inset: 0; border: 1px solid rgba(93,95,202,.3); border-radius: 50%; animation: scannerRotate 2.4s linear infinite; }
.scanner-orbit::after { content: ""; position: absolute; width: 7px; height: 7px; left: 50%; top: -4px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 12px var(--coral); }
.scanner-orbit.orbit-two { inset: 9px; border-style: dashed; animation-direction: reverse; animation-duration: 3.2s; }
.scanner-orbit.orbit-two::after { background: var(--teal); box-shadow: 0 0 12px var(--teal); }
@keyframes scannerRotate { to { transform: rotate(360deg); } }
.progress-topline { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.progress-topline h2 { margin: 0; font-size: 15px; }
.progress-topline > strong { color: var(--indigo); font-size: 22px; letter-spacing: -.04em; }
.progress-brand { color: var(--indigo); letter-spacing: .08em; }
.tech-progress-track { height: 6px; margin: 14px 0 12px; overflow: hidden; border-radius: 999px; background: #ebebf2; }
.tech-progress-track i { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--indigo), #8a8cf2, var(--coral)); box-shadow: 0 0 12px rgba(93,95,202,.5); transition: width .45s ease; }
.parse-live-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.parse-live-field { min-width: 0; min-height: 48px; padding: 8px 10px; display: grid; grid-template-columns: 1fr 22px; grid-template-rows: auto auto; align-items: center; column-gap: 8px; border: 1px solid #e7e7ee; border-radius: 10px; background: #fafafd; transition: border-color .25s ease, background .25s ease; }
.live-field-label { grid-column: 1; color: #9a9dab; font-size: 9px; font-weight: 700; }
.parse-live-field strong { min-width: 0; grid-column: 1; overflow: hidden; color: #525568; font-size: 10px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.parse-live-field i { width: 21px; height: 21px; grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; border-radius: 50%; background: #ececf2; color: #a1a3af; font-size: 13px; font-style: normal; font-weight: 900; }
.parse-live-field.working { border-color: rgba(93,95,202,.25); background: #f7f7ff; }
.parse-live-field.working i { background: var(--indigo-soft); color: var(--indigo); animation: liveStatusPulse 1s ease-in-out infinite; }
.parse-live-field.success { border-color: #c8ebe3; background: #f2fbf8; }
.parse-live-field.success i { background: var(--teal); color: #fff; }
.parse-live-field.success strong { color: #287f70; }
.parse-live-field.error { border-color: #ffd3cf; background: #fff6f5; }
.parse-live-field.error i { background: var(--coral); color: #fff; }
.parse-live-field.error strong { color: #c84e48; }
@keyframes liveStatusPulse { 50% { transform: scale(.86); opacity: .65; } }
.parse-notice { margin-top: 17px; padding: 12px 15px; border-radius: 10px; font-size: 11px; line-height: 1.7; }
.parse-notice.danger { border: 1px solid #ffd3cf; background: var(--coral-soft); color: #c84e48; }
.parse-notice.warning { border: 1px solid #f8dfb7; background: var(--amber-soft); color: #a46d20; }
.parse-notice.success { border: 1px solid #bce9df; background: var(--teal-soft); color: #23806f; }
.result-heading { margin: 30px 0 17px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.result-heading h2 { margin: 0 0 6px; font-size: 20px; }
.result-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; }
.result-actions { display: flex; align-items: center; gap: 10px; }
.duplicate-badge { padding: 7px 10px; border-radius: 8px; background: var(--coral-soft); color: var(--coral); font-size: 10px; font-weight: 700; }
.parse-export-button { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 750; }
.parse-export-button:hover { background: var(--indigo); }
.parse-export-button:disabled { opacity: .48; cursor: not-allowed; }
.parse-export-button.loading { cursor: wait; }
.parse-workspace-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(340px, .9fr) minmax(600px, 1.55fr); gap: 18px; align-items: stretch; }
.source-preview, .spu-editor, .sku-preview { overflow: hidden; }
.source-preview, .spu-editor { height: 100%; display: flex; flex-direction: column; }
.parse-card-heading { min-height: 70px; padding: 18px 21px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.parse-card-heading h3 { margin: 0; font-size: 15px; }
.parse-card-heading a { color: var(--indigo); font-size: 10px; font-weight: 700; }
.parsed-title-heading { min-height: 66px; justify-content: flex-start; }
.parsed-title-heading h3 { color: #303247; font-size: 14px; font-weight: 760; line-height: 1.55; letter-spacing: -.01em; }
.source-product-heading { min-height: 108px; align-items: flex-start; }
.source-product-heading > div { min-width: 0; }
.source-product-heading h3 { margin: 3px 0 5px; display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.source-product-heading small { color: var(--muted); font-size: 10px; }
.source-product-heading a { flex: 0 0 auto; margin-top: 4px; }
.auto-badge { padding: 6px 9px; border-radius: 7px; background: var(--indigo-soft); color: var(--indigo); font-size: 9px; font-weight: 700; }
.source-image-stage { position: relative; min-height: 410px; padding: 14px; flex: 1; display: grid; place-items: center; background: #eff0f5; }
.source-open-link { position: absolute; z-index: 2; top: 14px; right: 14px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.72); border-radius: 8px; background: rgba(255,255,255,.88); color: var(--indigo); box-shadow: 0 5px 18px rgba(27,29,54,.1); font-size: 9px; font-weight: 750; backdrop-filter: blur(6px); }
.source-image-stage img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 10px; box-shadow: 0 8px 26px rgba(27,29,54,.12); }
.source-screenshot-button { width: 100%; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: zoom-in; }
.source-screenshot-button:hover img { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(27,29,54,.18); }
.source-screenshot-button img { display: block; transition: transform .2s ease, box-shadow .2s ease; }
.source-image-placeholder { color: #a4a6b2; text-align: center; }
.source-image-placeholder span { font-size: 40px; }
.source-image-placeholder p { margin: 8px 0 0; font-size: 11px; }
.source-meta { padding: 18px 21px; display: grid; gap: 8px; }
.source-meta > span { width: fit-content; padding: 4px 7px; border-radius: 6px; background: var(--teal-soft); color: var(--teal); font-size: 9px; font-weight: 750; }
.source-meta strong { font-size: 13px; line-height: 1.65; }
.source-meta small { color: var(--muted); font-size: 10px; }
.spu-form-grid { padding: 20px 21px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px 10px; }
.parse-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.parse-field.span-2 { grid-column: span 2; }
.parse-field label { min-height: 15px; display: flex; align-items: center; color: #5e6172; font-size: 10px; font-weight: 750; }
.parse-field input, .parse-field textarea, .parse-field select { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #dedfe7; border-radius: 8px; outline: none; background: #fff; color: var(--ink); font-size: 11px; }
.parse-field textarea { resize: vertical; line-height: 1.55; }
.parse-field input[readonly] { background: #f7f7fa; color: #66697b; }
.parse-field input:focus, .parse-field textarea:focus, .parse-field select:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(93,95,202,.08); }
.parse-field small { color: #9a9ca9; font-size: 9px; line-height: 1.5; }
.field-label-row { min-height: 15px; display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.match-control { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.match-status { min-width: 42px; min-height: 17px; padding: 1px 5px; display: grid; place-items: center; border-radius: 6px; font-size: 8px; font-weight: 750; }
.match-status.danger { background: var(--coral-soft); color: var(--coral); }
.match-status.success { background: var(--teal-soft); color: var(--teal); }
.danger-text { color: var(--coral) !important; font-weight: 700; }
.spec-editor { padding: 18px 21px 21px; flex: 1; display: grid; grid-template-columns: 1fr; align-content: start; gap: 13px; border-top: 1px solid var(--line); background: #fbfbfd; }
.spec-block { min-width: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr) 150px; align-items: start; gap: 10px; }
.spec-header { margin: 7px 0 0; display: grid; gap: 3px; }
.spec-header label { font-size: 10px; font-weight: 750; }
.spec-header small { color: #9b9daa; font-size: 8px; }
.editable-tags { min-height: 34px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.editable-tag { min-height: 27px; padding: 0 5px 0 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 7px; font-size: 9px; }
.editable-tag.color { background: var(--coral-soft); color: #c95c53; }
.editable-tag.size { background: var(--indigo-soft); color: var(--indigo); }
.editable-tag b { font-weight: 700; }
.editable-tag b[contenteditable="true"] { min-width: 12px; padding: 2px 3px; border-radius: 4px; outline: 0; cursor: text; }
.editable-tag b[contenteditable="true"]:focus { background: rgba(255,255,255,.92); box-shadow: 0 0 0 2px rgba(93,95,202,.14); }
.editable-tag button { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 5px; background: rgba(255,255,255,.65); color: inherit; font-size: 10px; }
.empty-tags { color: #b1b3bd; font-size: 9px; }
.tag-add-row { margin-top: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.tag-add-row input { min-width: 0; height: 31px; padding: 0 9px; border: 1px solid #dedfe7; border-radius: 7px; outline: 0; font-size: 9px; }
.tag-add-row button { padding: 0 10px; border: 0; border-radius: 7px; background: var(--ink); color: #fff; font-size: 8px; font-weight: 700; }
.spu-actions-footer { padding: 14px 21px 18px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); background: #fff; }
.sku-preview { margin-top: 18px; }
.sku-preview-heading { padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.sku-preview-heading h3 { margin: 0 0 5px; font-size: 16px; }
.sku-preview-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 10px; }
.sku-count { min-width: 68px; text-align: right; }
.sku-count strong { display: block; color: var(--indigo); font-size: 23px; line-height: 1; }
.sku-count span { color: var(--muted); font-size: 8px; }
.sku-table-wrap { max-height: 560px; }
.sku-preview-table { min-width: 1760px; width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 9px; }
.sku-preview-table thead { position: sticky; top: 0; z-index: 2; }
.sku-preview-table th { height: 38px; padding: 0 7px; border-bottom: 1px solid var(--line); background: #f4f4f8; color: #686b7d; font-size: 8px; font-weight: 750; white-space: nowrap; }
.sku-preview-table td { max-width: 180px; height: 40px; padding: 5px 7px; border-bottom: 1px solid #f0f0f4; color: #626576; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sku-preview-table th:nth-child(1) { width: 110px; }
.sku-preview-table th:nth-child(2) { width: 105px; }
.sku-preview-table th:nth-child(3) { width: 125px; }
.sku-preview-table th:nth-child(4) { width: 185px; }
.sku-preview-table th:nth-child(5), .sku-preview-table th:nth-child(6) { width: 145px; }
.sku-preview-table th:nth-child(7) { width: 95px; }
.sku-preview-table th:nth-child(8), .sku-preview-table th:nth-child(9), .sku-preview-table th:nth-child(10) { width: 76px; }
.sku-preview-table th:nth-child(11) { width: 82px; }
.sku-preview-table th:nth-child(12) { width: 58px; }
.sku-preview-table th:nth-child(13) { width: 185px; }
.sku-preview-table th:nth-child(14) { width: 80px; }
.sku-preview-table th:nth-child(15) { width: 64px; }
.sku-preview-table tbody tr:hover td { background: #fcfcfe; }
.sku-preview-table .code-cell { color: var(--indigo); font-family: ui-monospace, "Cascadia Mono", monospace; }
.sku-preview-table .price-cell { color: #a96d1c; font-family: ui-monospace, "Cascadia Mono", monospace; }
.sku-price-input { width: 76px; height: 29px; padding: 0 7px; border: 1px solid #dedfe7; border-radius: 6px; color: #a96d1c; font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 9px; }
.sku-price-input.missing { border-color: #f2aaa4; background: #fff3f1; color: var(--coral); }
.sku-price-missing, .price-cell.missing { color: var(--coral); font-weight: 750; }
.url-cell { max-width: 260px !important; color: #858899 !important; }
.screenshot-lightbox { position: fixed; inset: 0; z-index: 2000; padding: 46px; display: grid; place-items: center; background: rgba(10,11,24,.88); backdrop-filter: blur(8px); }
.screenshot-lightbox[hidden] { display: none; }
.screenshot-lightbox img { max-width: min(1500px, 94vw); max-height: 90vh; border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.lightbox-close { position: fixed; top: 22px; right: 28px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 24px; line-height: 1; }

/* 商品批量解析工作台：与商品管理页保持相同内容宽度 */
.content-wrap:has(.batch-parse-launcher) { max-width: 1500px; padding: 22px 26px; }
.batch-parse-launcher { display: grid; gap: 16px; }
.batch-import-row { position: relative; z-index: 2; min-height: 58px; padding-top: 15px; display: flex; align-items: center; gap: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.batch-import-row > div { min-width: 0; flex: 1; display: grid; gap: 4px; }
.batch-import-row strong { color: #fff; font-size: 12px; }
.batch-import-row span { color: #85889f; font-size: 10px; line-height: 1.55; }
.batch-import-button { min-height: 38px; padding: 0 15px; border: 1px solid rgba(143,146,239,.42); border-radius: 9px; background: rgba(93,95,202,.16); color: #c5c7ff; font-size: 10px; font-weight: 750; }
.batch-import-button:hover { background: rgba(93,95,202,.28); }
.batch-import-button:disabled { opacity: .5; cursor: wait; }
.batch-result { margin-top: 18px; overflow: hidden; }
.batch-result-heading { padding: 19px 21px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.batch-result-heading h2 { margin: 0 0 5px; font-size: 17px; }
.batch-result-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.batch-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.batch-summary span { min-height: 30px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 7px; background: #f3f3f7; color: #707385; font-size: 9px; }
.batch-summary span.success { background: var(--teal-soft); color: var(--teal); }
.batch-summary span.danger { background: var(--coral-soft); color: var(--coral); }
.batch-summary span.selected { background: var(--indigo-soft); color: var(--indigo); }
.batch-summary button { min-height: 30px; padding: 0 10px; border: 1px solid #dedfe7; border-radius: 7px; background: #fff; color: #676a7c; font-size: 9px; }
.batch-summary .batch-export-button { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 760; }
.batch-summary .batch-export-button:disabled { opacity: .42; cursor: not-allowed; }
.spu-result-wrap { max-height: 680px; }
.spu-result-table { width: 100%; min-width: 1585px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 8.5px; }
.spu-result-table thead { position: sticky; top: 0; z-index: 4; }
.spu-result-table th { height: 38px; padding: 0 5px; border-bottom: 1px solid var(--line); background: #f2f3f7; color: #646779; font-size: 7.8px; font-weight: 780; white-space: nowrap; }
.spu-result-table td { height: 88px; padding: 6px 5px; border-bottom: 1px solid #ededf2; vertical-align: middle; background: #fff; color: #616476; }
.spu-result-table tbody tr:hover td { background: #fcfcff; }
.spu-result-table th:nth-child(1) { width: 32px; }
.spu-result-table th:nth-child(2) { width: 58px; }
.spu-result-table th:nth-child(3) { width: 66px; }
.spu-result-table th:nth-child(4) { width: 82px; }
.spu-result-table th:nth-child(5) { width: 138px; }
.spu-result-table th:nth-child(6) { width: 138px; }
.spu-result-table th:nth-child(7) { width: 52px; }
.spu-result-table th:nth-child(8) { width: 115px; }
.spu-result-table th:nth-child(9) { width: 120px; }
.spu-result-table th:nth-child(10) { width: 112px; }
.spu-result-table th:nth-child(11) { width: 78px; }
.spu-result-table th:nth-child(12) { width: 235px; }
.spu-result-table th:nth-child(13) { width: 190px; }
.spu-result-table th:nth-child(14) { width: 72px; }
.spu-result-table th:nth-child(15) { width: 95px; }
.select-cell { text-align: center; }
.select-cell input, #selectAllRows { width: 14px; height: 14px; accent-color: var(--indigo); }
.spu-cell-input { width: 100%; min-height: 31px; padding: 5px 6px; border: 1px solid #dedfe7; border-radius: 6px; outline: 0; background: #fff; color: #444758; font-size: 8.3px; line-height: 1.35; }
.spu-cell-input:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(93,95,202,.08); }
.spu-cell-input.search-select { padding-right: 2px; }
.spu-cell-input.unmatched { border-color: #f2aaa4; background: #fff7f6; color: var(--coral); }
.spu-cell-input[readonly] { background: #f4f4f7; color: var(--indigo); font-family: ui-monospace, "Cascadia Mono", monospace; }
textarea.spu-cell-input { resize: vertical; }
.title-cell, .spec-cell { height: 48px; }
.code-input { font-family: ui-monospace, "Cascadia Mono", monospace; }
.compact-number { text-align: center; }
.duplicate-inline { display: block; margin-top: 4px; color: var(--coral); font-size: 8px; line-height: 1.3; }
.product-image-cell { text-align: center; }
.product-thumb-button { width: 54px; height: 68px; padding: 0; overflow: hidden; border: 1px solid #e2e3e9; border-radius: 7px; background: #f4f4f7; cursor: zoom-in; }
.product-thumb-button img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-thumb-button.broken img { display: none; }
.product-thumb-button.broken::after { content: "无图"; color: #aaaeba; font-size: 8px; }
.product-image-empty { color: #aaaeba; font-size: 8px; }
.product-image-hover { position: fixed; z-index: 2300; width: 280px; height: 350px; padding: 7px; pointer-events: none; border-radius: 12px; background: #fff; box-shadow: 0 18px 55px rgba(16,17,32,.34); }
.product-image-hover[hidden] { display: none; }
.product-image-hover img { width: 100%; height: 100%; display: block; border-radius: 8px; object-fit: contain; background: #f5f5f8; }
.spu-spec-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; align-content: start; }
.spu-spec-chip { min-width: 0; height: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 13px; overflow: hidden; border: 1px solid #dedfe7; border-radius: 5px; background: #f8f8fb; }
.spu-spec-chip input { min-width: 0; width: 100%; padding: 0 2px 0 4px; border: 0; outline: 0; background: transparent; color: #55586a; font-size: 7.4px; text-align: center; }
.spu-spec-chip input:focus { background: #fff; box-shadow: inset 0 0 0 1px var(--indigo); }
.spu-spec-chip button { width: 13px; padding: 0; border: 0; background: transparent; color: #a3a5b1; font-size: 9px; }
.spu-spec-chip button:hover { background: var(--coral-soft); color: var(--coral); }
.add-spec-chip { height: 24px; padding: 0; border: 1px dashed #cfd0da; border-radius: 5px; background: #fff; color: var(--indigo); font-size: 11px; }
.row-status { min-height: 23px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 6px; font-size: 8px; font-weight: 780; white-space: nowrap; }
.row-status.success { background: var(--teal-soft); color: var(--teal); }
.row-status.warning { background: var(--amber-soft); color: #a46d20; }
.row-status.danger { background: var(--coral-soft); color: var(--coral); }
.row-status.working { background: var(--indigo-soft); color: var(--indigo); animation: liveStatusPulse 1s ease-in-out infinite; }
.sku-detail-button { width: 100%; min-height: 31px; padding: 0 5px; border: 1px solid #dfe0e8; border-radius: 6px; background: #f7f7fa; color: var(--indigo); font-size: 7.5px; font-weight: 750; }
.sku-detail-button.danger { border-color: #f2aaa4; background: #fff3f1; color: var(--coral); }
.row-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.row-actions button { min-height: 27px; padding: 0 6px; border: 1px solid #dedfe7; border-radius: 6px; background: #fff; color: #66697b; font-size: 7.8px; }
.row-actions button.primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.row-actions button.danger { border-color: #ffd3cf; color: var(--coral); }
.row-actions button:disabled { opacity: .42; cursor: not-allowed; }
.failed-row td { background: #fffafa; }
.failed-row td[colspan], .parsing-row td[colspan] { padding-top: 11px; }
.failed-row td[colspan] strong, .parsing-row td[colspan] strong { display: block; color: #55586a; font-size: 9px; }
.failed-row td[colspan] small, .parsing-row td[colspan] small { display: block; margin-top: 5px; color: var(--coral); font-size: 8px; }
.parsing-row td[colspan] small { color: var(--indigo); }
.batch-modal { position: fixed; inset: 0; z-index: 2100; padding: 30px; display: grid; place-items: center; background: rgba(12,13,25,.7); backdrop-filter: blur(7px); }
.batch-modal[hidden] { display: none; }
.batch-modal-card { width: min(1480px, 96vw); max-height: 92vh; overflow: hidden; display: flex; flex-direction: column; border-radius: 15px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.32); }
.batch-modal-heading { min-height: 70px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.batch-modal-heading h3 { margin: 0 0 5px; font-size: 16px; }
.batch-modal-heading p { max-width: 1100px; margin: 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.batch-modal-heading > button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f1f5; color: #696c7d; font-size: 20px; }
.sku-spec-controls { padding: 13px 20px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; border-bottom: 1px solid var(--line); background: #fafafd; }
.sku-spec-controls label { display: grid; gap: 5px; color: #676a7b; font-size: 9px; font-weight: 720; }
.sku-spec-controls input { min-height: 34px; padding: 0 9px; border: 1px solid #dedfe7; border-radius: 7px; outline: 0; font-size: 9px; }
.sku-spec-controls button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 7px; background: var(--indigo); color: #fff; font-size: 9px; font-weight: 750; }
.modal-sku-wrap { min-height: 240px; overflow: auto; }
.modal-sku-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 9px; }
.modal-sku-table thead { position: sticky; top: 0; z-index: 2; }
.modal-sku-table th { height: 38px; padding: 0 10px; background: #f2f3f7; color: #66697b; font-size: 8px; text-align: left; }
.modal-sku-table td { height: 39px; padding: 5px 10px; border-bottom: 1px solid #eeeef3; color: #5f6274; }
.modal-sku-table .code-cell { color: var(--indigo); font-family: ui-monospace, "Cascadia Mono", monospace; }
.modal-price-input { width: 95px; min-height: 29px; padding: 0 7px; border: 1px solid #dedfe7; border-radius: 6px; color: #a46d20; font-size: 9px; }
.modal-price-input.missing { border-color: #f2aaa4; background: #fff3f1; color: var(--coral); }
.batch-modal-footer { min-height: 58px; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); }
.batch-modal-footer span { color: var(--muted); font-size: 9px; }
.batch-modal-footer button { min-height: 34px; padding: 0 18px; border: 0; border-radius: 7px; background: var(--ink); color: #fff; font-size: 9px; font-weight: 750; }

@media (max-width: 1200px) {
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .parse-workspace-grid { grid-template-columns: 1fr; }
    .source-image-stage { min-height: 330px; }
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); box-shadow: 18px 0 40px rgba(18,19,35,.22); }
    .sidebar-open .sidebar { transform: translateX(0); }
    .main-panel { margin-left: 0; }
    .sidebar-toggle { display: block; }
    .content-wrap { padding: 28px 20px; }
    .topbar { padding: 0 20px; }
    .data-toolbar { align-items: stretch; flex-direction: column; }
    .filter-form, .toolbar-actions { flex-wrap: wrap; }
    .search-control { width: 100%; }
    .parse-hero { align-items: flex-start; flex-direction: column; }
    .supported-sites { justify-content: flex-start; }
    .spu-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spec-block { grid-template-columns: 90px minmax(0, 1fr); }
    .tag-add-row { grid-column: 2; }
}

/* Short desktop screens still keep a useful order-list viewport. */
@media (min-width: 901px) and (max-height: 820px) {
    body.taobao-system-theme:has(.order-profit-board) {
        overflow-y: auto !important;
    }
    body.taobao-system-theme .content-wrap:has(.order-profit-board) {
        height: auto !important;
        min-height: calc(100vh - 12px);
        overflow: visible !important;
    }
    body.taobao-system-theme .analysis-detail-card:has(.order-profit-board) {
        min-height: 680px;
    }
    body.taobao-system-theme .analysis-detail-card:has(.order-profit-board) > .analysis-detail-scroll {
        min-height: 340px;
    }
}

/* Management payroll editor: same pale-blue visual language as the formal payslip. */
.payroll-edit-dialog .management-modal {
    border: 1px solid #cfe1f3 !important;
    background: #f7fbff !important;
    box-shadow: 0 24px 70px rgba(39, 82, 126, .22) !important;
}
.payroll-edit-dialog .modal-header,
.payroll-edit-dialog .modal-footer {
    border-color: #d9e7f4 !important;
    background: #fff !important;
}
.payroll-edit-dialog .modal-title { color: #223f5d !important; }
.payroll-edit-dialog .modal-body,
.payroll-edit-dialog .management-payslip-editor {
    background: #f3f8fd !important;
}
.payroll-edit-dialog .formal-payslip-head {
    border: 1px solid #c8dff3 !important;
    background: linear-gradient(135deg, #e8f4ff 0%, #f8fbff 100%) !important;
    color: #234663 !important;
    box-shadow: none !important;
}
.payroll-edit-dialog .formal-payslip-head::after {
    background: linear-gradient(90deg, #4d93d5, #9ecbf1) !important;
}
.payroll-edit-dialog .formal-payslip-head .payslip-kicker,
.payroll-edit-dialog .formal-payslip-head label,
.payroll-edit-dialog .formal-payslip-head small { color: #6e8aa3 !important; }
.payroll-edit-dialog .formal-payslip-head h3 { color: #1f405e !important; }
.payroll-edit-dialog .formal-payslip-head input,
.payroll-edit-dialog .formal-payslip-head select {
    border-color: #bfd6ea !important;
    background: #fff !important;
    color: #263f57 !important;
}
.payroll-edit-dialog .payroll-allocation-strip,
.payroll-edit-dialog .payslip-detail-section,
.payroll-edit-dialog .payroll-remark-section {
    border-color: #d3e3f1 !important;
    background: #fff !important;
    box-shadow: 0 7px 20px rgba(52, 91, 128, .05) !important;
}
.payroll-edit-dialog .payslip-detail-section > header,
.payroll-edit-dialog .payroll-remark-section > header {
    border-color: #d7e6f3 !important;
    background: #edf6ff !important;
    color: #284e70 !important;
}
.payroll-edit-dialog .payslip-detail-section > header span,
.payroll-edit-dialog .payroll-remark-section > header span {
    background: #dceeff !important;
    color: #367dbd !important;
}
.payroll-edit-dialog .payslip-detail-section > header small,
.payroll-edit-dialog .payroll-remark-section > header small { color: #8197aa !important; }
.payroll-edit-dialog .payslip-detail-section .form-control,
.payroll-edit-dialog .payslip-detail-section .form-select,
.payroll-edit-dialog .payroll-remark-section .form-control,
.payroll-edit-dialog .payroll-allocation-strip .form-control,
.payroll-edit-dialog .payroll-allocation-strip .form-select {
    border-color: #cbddeb !important;
    background: #fbfdff !important;
    color: #29445d !important;
}
.payroll-edit-dialog .payslip-detail-section .form-control:focus,
.payroll-edit-dialog .payslip-detail-section .form-select:focus,
.payroll-edit-dialog .payroll-remark-section .form-control:focus,
.payroll-edit-dialog .payroll-allocation-strip .form-control:focus,
.payroll-edit-dialog .payroll-allocation-strip .form-select:focus {
    border-color: #6da7db !important;
    box-shadow: 0 0 0 3px rgba(73, 143, 205, .13) !important;
}
.payroll-edit-dialog .payslip-section-total {
    border-color: #c4ddf2 !important;
    background: #eaf5ff !important;
    color: #2476b9 !important;
}
.payroll-edit-dialog .payroll-live-net {
    border-color: #bcd9f0 !important;
    background: linear-gradient(135deg, #e7f4ff, #f5faff) !important;
    color: #235f91 !important;
}

/* 管理端薪资核算：沿用工资单结构，统一为系统浅蓝白配色 */
.payroll-edit-dialog .management-modal {
    border: 1px solid #cfe0f1 !important;
    background: #fff !important;
    box-shadow: 0 24px 70px rgba(42, 83, 126, .22) !important;
}
.payroll-edit-dialog .management-modal > .modal-header,
.payroll-edit-dialog .management-modal > form > .modal-header {
    border-bottom-color: #d9e7f4 !important;
    background: #f7fbff !important;
}
.payroll-edit-dialog .management-modal > .modal-footer,
.payroll-edit-dialog .management-modal > form > .modal-footer {
    border-top-color: #d9e7f4 !important;
    background: #f8fbff !important;
}
.payroll-edit-dialog .modal-body,
.payroll-edit-dialog .management-payslip-editor {
    background: #f3f8fd !important;
}
.payroll-edit-dialog .management-payslip-editor .formal-payslip-head {
    border: 1px solid #cfe2f4 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #e8f4ff 0%, #f8fbff 68%, #edf7ff 100%) !important;
    color: #173a5b !important;
    box-shadow: 0 10px 28px rgba(51, 112, 166, .08) !important;
}
.payroll-edit-dialog .management-payslip-editor .formal-payslip-head :is(h2,dd) {
    color: #173a5b !important;
}
.payroll-edit-dialog .management-payslip-editor .formal-payslip-head :is(small,p,dt) {
    color: #68839d !important;
}
.payroll-edit-dialog .management-payslip-editor .management-payslip-month .form-field > .form-control {
    color: #54728e !important;
}
.payroll-edit-dialog .management-modal.is-crud-form-modal .management-payslip-editor .formal-payslip-head dd .form-field > :is(.form-control,.form-select),
.payroll-edit-dialog .management-payslip-editor .formal-payslip-head dd :is(.form-control,.form-select) {
    border-color: #bfd7ed !important;
    background: rgba(255, 255, 255, .92) !important;
    color: #173a5b !important;
    color-scheme: light !important;
}
.payroll-edit-dialog .management-payslip-editor .payroll-allocation-strip,
.payroll-edit-dialog .management-payslip-editor .payslip-detail-section,
.payroll-edit-dialog .management-payslip-editor .self-payroll-remark {
    border-color: #d4e4f2 !important;
    background: #fff !important;
}
.payroll-edit-dialog .management-payslip-editor .payroll-allocation-strip > header,
.payroll-edit-dialog .management-payslip-editor .payslip-detail-section > header {
    border-bottom-color: #dce9f5 !important;
    background: #edf6ff !important;
}
.payroll-edit-dialog .management-payslip-editor .payroll-allocation-strip header :is(strong,small),
.payroll-edit-dialog .management-payslip-editor .payslip-detail-section header strong {
    color: #28577f !important;
}
.payroll-edit-dialog .management-payslip-editor .payslip-detail-section header b {
    color: #2f83cf !important;
}
.payroll-edit-dialog .management-payslip-editor .payslip-detail-section .form-field {
    border-bottom-color: #e5eef7 !important;
}
.payroll-edit-dialog .management-modal.is-crud-form-modal .management-payslip-editor .payslip-detail-section .form-field > :is(label,.modal-field-label),
.payroll-edit-dialog .management-payslip-editor .payslip-detail-section .form-field > :is(label,.modal-field-label) {
    color: #607a93 !important;
}
.payroll-edit-dialog .management-modal.is-crud-form-modal .management-payslip-editor .payslip-detail-section .form-field > :is(.form-control,.form-select),
.payroll-edit-dialog .management-payslip-editor .payslip-detail-section .form-field > :is(.form-control,.form-select),
.payroll-edit-dialog .management-payslip-editor .self-payroll-remark textarea {
    border-color: #cbddec !important;
    background: #fff !important;
    color: #203f5d !important;
}
.payroll-edit-dialog .management-payslip-editor .payslip-detail-section .form-field > input[readonly] {
    background: #f3f8fc !important;
    color: #476783 !important;
}
.payroll-edit-dialog .management-payslip-editor .formal-payslip-total,
.payroll-edit-dialog .management-payslip-editor .payroll-calculation-panel {
    border: 1px solid #cfe2f4 !important;
    background: #eaf5ff !important;
}
.payroll-edit-dialog .management-payslip-editor .formal-payslip-total span {
    color: #5a7590 !important;
}
.payroll-edit-dialog .management-payslip-editor .formal-payslip-total strong {
    color: #2477bc !important;
}

/* Store analysis: align the legacy warm palette with the system blue theme. */
body.taobao-system-theme .store-analysis-sheet {
    border-color: var(--xy-blue-200) !important;
    background: var(--xy-blue-50) !important;
    box-shadow: 0 14px 38px rgba(43, 104, 170, .08) !important;
}
body.taobao-system-theme .store-sheet-section,
body.taobao-system-theme .store-profit-board,
body.taobao-system-theme .store-order-overview,
body.taobao-system-theme .store-expense-section,
body.taobao-system-theme .store-daily-board,
body.taobao-system-theme .store-product-section {
    border-color: #dbe8f5 !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(43, 104, 170, .045) !important;
}
body.taobao-system-theme .store-sheet-section > header,
body.taobao-system-theme .store-order-overview > header,
body.taobao-system-theme .store-expense-section > header,
body.taobao-system-theme .store-daily-board > header {
    border-bottom-color: #dfeaf5 !important;
    background: #f8fbff !important;
}
body.taobao-system-theme .store-sheet-section > header strong,
body.taobao-system-theme .store-order-overview > header strong,
body.taobao-system-theme .store-expense-section > header strong,
body.taobao-system-theme .store-daily-board > header strong {
    color: #274866 !important;
}
body.taobao-system-theme .store-sheet-section > header a {
    color: var(--xy-blue-600) !important;
}
body.taobao-system-theme .store-sheet-section > header a:hover {
    color: var(--xy-blue-700) !important;
}
body.taobao-system-theme .store-code-copy,
body.taobao-system-theme .store-profit-identity > span {
    background: var(--xy-blue-700) !important;
}
body.taobao-system-theme .store-code-copy:hover {
    background: var(--xy-blue-600) !important;
}
body.taobao-system-theme .store-name-copy:hover {
    color: var(--xy-blue-700) !important;
}
body.taobao-system-theme .store-info-pair,
body.taobao-system-theme .store-profit-board-kpis > div,
body.taobao-system-theme .store-business-grid article,
body.taobao-system-theme .store-settlement-counts > div {
    border-color: #e1ebf5 !important;
}
body.taobao-system-theme .store-profit-filter-bar {
    border-bottom-color: #dfeaf5 !important;
    background: #fbfdff !important;
}
body.taobao-system-theme .store-profit-filter-bar span {
    border-color: var(--xy-blue-200) !important;
    color: #46627e !important;
    background: var(--xy-blue-50) !important;
}
body.taobao-system-theme .store-settlement-meter strong {
    color: var(--xy-blue-600) !important;
}
body.taobao-system-theme .store-settlement-meter > i {
    background: #e1ebf5 !important;
}
body.taobao-system-theme .store-settlement-meter > i > em {
    background: linear-gradient(90deg, var(--xy-blue-500), var(--xy-blue-700)) !important;
}
body.taobao-system-theme .store-settlement-link {
    border-color: var(--xy-blue-300) !important;
    color: var(--xy-blue-700) !important;
    background: var(--xy-blue-50) !important;
}
body.taobao-system-theme .store-settlement-link:hover {
    border-color: var(--xy-blue-500) !important;
    color: #1f5d9e !important;
    background: var(--xy-blue-100) !important;
}
body.taobao-system-theme .store-source-trigger:hover {
    border-color: var(--xy-blue-300) !important;
    background-color: #f8fbff !important;
}
body.taobao-system-theme .store-source-trigger:focus-visible {
    outline-color: rgba(57, 127, 200, .32) !important;
}
body.taobao-system-theme .store-order-matrix th,
body.taobao-system-theme .store-after-sale-table thead th,
body.taobao-system-theme .store-daily-board th,
body.taobao-system-theme .store-product-section th {
    color: #617b94 !important;
    background: #f2f7fd !important;
}
body.taobao-system-theme .store-order-matrix :is(th, td),
body.taobao-system-theme .store-after-sale-table :is(th, td),
body.taobao-system-theme .store-daily-board :is(th, td),
body.taobao-system-theme .store-product-section :is(th, td) {
    border-bottom-color: #e5eef7 !important;
}
body.taobao-system-theme .store-order-matrix .matrix-primary td,
body.taobao-system-theme .store-after-sale-table tbody th {
    background: #fbfdff !important;
}
body.taobao-system-theme .store-order-matrix .matrix-primary td:first-child::before,
body.taobao-system-theme .store-order-matrix .matrix-child td:first-child::before {
    background: var(--xy-blue-300) !important;
}
body.taobao-system-theme .store-order-matrix .matrix-settlement td {
    border-top-color: var(--xy-blue-200) !important;
    color: var(--xy-blue-700) !important;
    background: var(--xy-blue-50) !important;
}
body.taobao-system-theme .store-order-matrix tbody tr:not(.matrix-settlement):hover td,
body.taobao-system-theme .store-daily-board tbody tr:hover td {
    background: #f3f8fe !important;
}
body.taobao-system-theme .store-expense-section {
    background: var(--xy-blue-50) !important;
}
body.taobao-system-theme .store-expense-card {
    border-color: #d9e7f4 !important;
    box-shadow: 0 5px 16px rgba(43, 104, 170, .045) !important;
}
body.taobao-system-theme .store-expense-card > header {
    border-bottom-color: #e1ebf5 !important;
    background: #f8fbff !important;
}
body.taobao-system-theme .store-expense-card > header > div:first-child span {
    color: var(--xy-blue-700) !important;
    background: var(--xy-blue-100) !important;
}
body.taobao-system-theme .store-expense-card > header > div:first-child strong,
body.taobao-system-theme .store-expense-card > header > div:nth-child(2) b,
body.taobao-system-theme .store-expense-line > div:first-child strong,
body.taobao-system-theme .store-expense-value b {
    color: #36516c !important;
}
body.taobao-system-theme .store-expense-line {
    border-bottom-color: #e5eef7 !important;
}
body.taobao-system-theme .store-expense-line > div:first-child strong::before {
    background: var(--xy-blue-300) !important;
}
body.taobao-system-theme .store-expense-value small,
body.taobao-system-theme .store-expense-share {
    color: var(--xy-blue-700) !important;
}
body.taobao-system-theme .store-expense-share {
    background: var(--xy-blue-75) !important;
}
body.taobao-system-theme .store-expense-card.result,
body.taobao-system-theme .store-expense-card.result > header {
    background: #f4f8fd !important;
}
body.taobao-system-theme .store-daily-board tfoot :is(th, td),
body.taobao-system-theme .store-product-section tfoot :is(th, td) {
    border-top-color: var(--xy-blue-200) !important;
    background: #eef6ff !important;
    box-shadow: 0 -3px 10px rgba(43, 104, 170, .04) !important;
}

/* 四层页面结构：导航 / Logo 搜索 / 条件与操作 / 表格明细 */
.taobao-system-theme .sidebar {
    grid-template-columns: minmax(0, 1fr) 208px;
}

.taobao-system-theme .brand { display: none; }
.taobao-system-theme .sidebar-nav { justify-content: flex-start; }

.taobao-system-theme .unified-page-header {
    position: sticky;
    top: 72px;
    z-index: 48;
    width: 100%;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 80, 0, .075);
    border-radius: 16px;
    background: rgba(255, 252, 249, .98);
    box-shadow: 0 9px 28px rgba(92, 56, 32, .075);
    backdrop-filter: blur(18px) saturate(125%);
}

.taobao-system-theme .unified-search-row {
    min-height: 70px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(100deg, #fff 0%, #fffaf6 60%, #fff5ed 100%);
}

.taobao-system-theme .unified-search-row .search-company-mark {
    width: 46px;
    height: 52px;
    flex-basis: 46px;
    border-radius: 9px;
    background: #fff;
}

.taobao-system-theme .unified-search-row .search-company-mark img { width: 132px; }
.taobao-system-theme .unified-search-row :is(.search-control, .catalog-search, .market-search-input) {
    width: min(680px, calc(100vw - 150px));
    min-width: min(680px, calc(100vw - 150px));
    height: 48px;
    flex: 0 0 min(680px, calc(100vw - 150px));
    border-radius: 25px;
}

.taobao-system-theme .unified-search-row :is(.search-control, .catalog-search, .market-search-input) input {
    height: 42px;
    font-size: 13px;
}

.taobao-system-theme .unified-search-row .market-search-submit,
.taobao-system-theme .unified-search-row :is(.search-control, .catalog-search, .market-search-input) > button {
    height: 38px !important;
    min-height: 38px !important;
    padding-inline: 22px;
    border-radius: 20px !important;
    font-size: 12px;
}

.taobao-system-theme .unified-condition-row {
    min-height: 60px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid #f1e6de;
    background: rgba(255, 248, 242, .72);
    scrollbar-width: thin;
}

.taobao-system-theme .unified-condition-row[hidden] { display: none; }
.taobao-system-theme .unified-condition-row > .quick-filter-row {
    position: static;
    min-height: 40px;
    margin: 0;
    padding: 0 11px 0 0;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    overflow: visible;
    border: 0;
    border-right: 1px solid #eadbd1;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.taobao-system-theme .unified-condition-row > :is(.data-toolbar, .business-toolbar, .catalog-toolbar, .batch-parse-launcher) {
    position: static;
    width: auto;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 0;
    display: flex;
    flex: 1 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.taobao-system-theme .unified-condition-row > :is(.data-toolbar, .business-toolbar)::before { display: none; }
.taobao-system-theme .unified-condition-row .filter-form,
.taobao-system-theme .unified-condition-row .catalog-toolbar form,
.taobao-system-theme .unified-condition-row .market-search-main,
.taobao-system-theme .unified-condition-row .market-search-tools {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    border: 0;
}

.taobao-system-theme .unified-condition-row .toolbar-actions,
.taobao-system-theme .unified-condition-row .catalog-bulk-toolbar,
.taobao-system-theme .unified-condition-row .market-search-tools,
.taobao-system-theme .unified-condition-row > :is(.data-toolbar, .business-toolbar) > form:not(.filter-form) {
    margin-left: auto;
}

.taobao-system-theme .unified-condition-row .toolbar-actions {
    width: auto;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
}

.taobao-system-theme .unified-condition-row .market-search-main { width: 100%; flex: 1 0 auto; justify-content: flex-end; }
.taobao-system-theme .unified-condition-row .market-search-form:empty { display: none; }
.taobao-system-theme .unified-condition-row .catalog-toolbar form { flex: 0 0 auto; }
.taobao-system-theme .unified-condition-row .catalog-bulk-toolbar { padding: 0; border: 0; }

.taobao-system-theme .unified-condition-row .form-control,
.taobao-system-theme .unified-condition-row .form-select,
.taobao-system-theme .unified-condition-row .compact-select,
.taobao-system-theme .unified-condition-row .date-filter,
.taobao-system-theme .unified-condition-row .btn-light-custom,
.taobao-system-theme .unified-condition-row .btn-primary-custom,
.taobao-system-theme .unified-condition-row .btn-danger-soft,
.taobao-system-theme .unified-condition-row .btn-text-custom,
.taobao-system-theme .unified-condition-row button,
.taobao-system-theme .unified-condition-row a.btn-light-custom {
    min-height: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 11px;
    white-space: nowrap;
}

.taobao-system-theme .unified-condition-row .pagination-source-control { display: none !important; }

/* 全站管理表格：长内容不得跨列覆盖，统一在当前列内显示省略号。 */
.taobao-system-theme .data-panel > .table-responsive > .management-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

.taobao-system-theme .management-table thead th,
.taobao-system-theme .management-table tbody td {
    width: auto;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taobao-system-theme .management-table tbody td > :is(strong, small),
.taobao-system-theme .management-table tbody td > a:not([class*="btn"]):not(.action-link) {
    max-width: 100%;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taobao-system-theme .management-table :is(.wide-cell, .keyword-cell) {
    min-width: 180px;
    max-width: 380px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taobao-system-theme :is(.table-responsive, .store-source-table, .store-product-scroll) table :is(th, td):not([colspan]) {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taobao-system-theme :is(.table-responsive, .store-source-table, .store-product-scroll) table td:has(details[open]) {
    overflow: visible;
}

@media (max-width: 1320px) {
    .taobao-system-theme .sidebar { grid-template-columns: minmax(0, 1fr) 172px; }
}

/* 利润分析最终字号：列多时使用表格自身滚动，不再压缩文字。 */
.content-wrap:has(.analysis-filter-card) .analysis-detail-table th { font-size: 14px !important; }
.content-wrap:has(.analysis-filter-card) .analysis-detail-table td { min-height: 58px; font-size: 15px !important; }
.content-wrap:has(.analysis-filter-card) .analysis-detail-table td strong { font-size: 15px !important; }
.content-wrap:has(.analysis-filter-card) .analysis-detail-table td small { font-size: 13px !important; }
.content-wrap:has(.analysis-filter-card) .analysis-status,
.content-wrap:has(.analysis-filter-card) .analysis-order-type { font-size: 13px; }

/* 分析明细工作台：顶部条件固定，仅表格内容滚动。 */
body.taobao-system-theme:has(.analysis-detail-card) { overflow: hidden; }
body.taobao-system-theme .content-wrap:has(.analysis-detail-card) {
    height: calc(100vh - 72px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.taobao-system-theme .content-wrap:has(.analysis-detail-card) > :is(.analysis-filter-card, .analysis-level-tabs) {
    flex: 0 0 auto;
}
body.taobao-system-theme .analysis-detail-card {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
body.taobao-system-theme .analysis-detail-card > :is(.analysis-order-audit, .analysis-card-title, .analysis-pagination) {
    flex: 0 0 auto;
}
body.taobao-system-theme .analysis-detail-card > .analysis-detail-scroll {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    overflow: auto;
    overscroll-behavior: contain;
}
.analysis-detail-table .analysis-sequence {
    width: 58px;
    min-width: 58px;
    max-width: 58px;
    position: sticky;
    left: 0;
    z-index: 3;
    color: #8e8178;
    background: #fffdfb;
    text-align: center;
}
.analysis-detail-table thead .analysis-sequence {
    z-index: 5;
    background: #fff7f2;
}
.analysis-clickable-row { cursor: pointer; }
.analysis-clickable-row:hover td { background-color: #fff8f3; }
.analysis-clickable-row:hover .analysis-sequence { background-color: #fff3ea; }
.analysis-clickable-row:focus-visible { outline: 2px solid rgba(255, 80, 0, .42); outline-offset: -2px; }

@media (max-width: 900px) {
    body.taobao-system-theme:has(.analysis-detail-card) { overflow: auto; }
    body.taobao-system-theme .content-wrap:has(.analysis-detail-card) {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    body.taobao-system-theme .analysis-detail-card > .analysis-detail-scroll { max-height: 68vh; }
}

@media (max-width: 900px) {
    .taobao-system-theme .unified-page-header { top: 0; }
    .taobao-system-theme .unified-search-row { padding-left: 58px; }
    .taobao-system-theme .unified-search-row :is(.search-control, .catalog-search, .market-search-input) {
        width: 520px;
        min-width: 520px;
        flex-basis: 520px;
    }
}

@media (max-width: 620px) {
    .metric-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 160px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .date-chip, .system-status, .user-meta, .breadcrumb-home, .breadcrumb-separator { display: none; }
    .module-row { grid-template-columns: 13px 90px 1fr; }
    .module-row em { display: none; }
    .content-wrap { padding: 24px 15px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field.span-2 { grid-column: span 1; }
    .management-heading .btn-primary-custom { width: 100%; }
    .parse-url-form { grid-template-columns: 1fr; }
    .parse-action-button { min-height: 48px; }
    .parse-progress { grid-template-columns: 1fr; }
    .scanner-visual { display: none; }
    .parse-live-fields { grid-template-columns: 1fr; }
    .result-heading { align-items: stretch; flex-direction: column; }
    .result-actions, .parse-export-button { width: 100%; }
    .parse-export-button { justify-content: center; }
    .spu-form-grid, .spec-editor, .spec-block { grid-template-columns: 1fr; }
    .parse-field.span-2 { grid-column: span 1; }
    .tag-add-row { grid-column: auto; }
    .screenshot-lightbox { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Purchase and finance workflow */
.business-panel { border-radius: 14px; }
.business-toolbar { flex-wrap: wrap; }
.business-filter { flex: 1 1 880px; flex-wrap: wrap; }
.business-filter .search-control { width: 260px; min-width: 210px; }
.date-filter { width: 136px; height: 38px; border-color: #dedfe7; border-radius: 9px; color: #55586b; font-size: 11px; }
.date-separator { color: #afb1bd; font-size: 11px; }
.per-page-select { width: 82px; height: 38px; border-color: #dedfe7; border-radius: 9px; font-size: 11px; }
.quick-filter-row { min-height: 48px; padding: 0 20px; display: flex; align-items: flex-end; gap: 22px; border-bottom: 1px solid var(--line); background: #fbfbfd; }
.quick-filter { height: 48px; display: inline-flex; align-items: center; position: relative; color: #898b99; font-size: 11px; font-weight: 700; }
.quick-filter::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px 2px 0 0; background: transparent; }
.quick-filter:hover, .quick-filter.active { color: var(--ink); }
.quick-filter.active::after { background: var(--coral); }
.heading-stat { min-width: 132px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: right; box-shadow: var(--shadow); }
.heading-stat small, .heading-stat strong { display: block; }
.heading-stat small { color: var(--muted); font-size: 9px; }
.heading-stat strong { margin-top: 4px; font-size: 17px; }
.business-table { min-width: 1370px; }
.business-table tbody td { height: 56px; }
.business-table .action-col { width: 145px; }
.return-table { min-width: 1250px; }
.money-cell { color: #34364b !important; font-variant-numeric: tabular-nums; font-weight: 720; }
.money-cell.accent { color: var(--coral) !important; }
.recon-status { min-height: 25px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 7px; font-size: 9px; font-weight: 760; white-space: nowrap; }
.recon-status.done { background: var(--teal-soft); color: var(--teal); }
.recon-status.pending { background: var(--amber-soft); color: #aa711f; }
.recon-status.partial { background: var(--indigo-soft); color: var(--indigo); }
.detail-summary { margin-bottom: 16px; padding: 14px 16px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; border-radius: 10px; background: #f7f7fa; }
.detail-summary span { color: var(--muted); font-size: 10px; }
.detail-summary strong { display: block; margin-top: 4px; color: var(--ink); font-size: 13px; }
.detail-table { min-width: 1040px !important; }
.edit-lock-note { margin: 16px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--coral-soft); color: var(--coral); font-size: 10px; }
.document-edit-dialog { width: min(94vw, 1680px); max-width: min(94vw, 1680px) !important; }
.document-edit-dialog .modal-body { padding: 16px 18px; }
.document-edit-dialog .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.document-edit-dialog .form-field.span-2 { grid-column: span 2; }
.document-items-editor {
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.document-items-heading {
    min-height: 52px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    background: #fafafa;
}
.document-items-heading small { display: block; color: #10a37f; font-size: 7px; font-weight: 760; letter-spacing: .11em; }
.document-items-heading h3 { margin: 2px 0 0; color: #202123; font-size: 12px; font-weight: 720; }
.document-items-heading .btn-light-custom { min-height: 30px; padding: 0 11px; font-size: 8px; }
.document-items-scroll { max-height: 360px; overflow: auto; }
.document-items-edit-table { width: 100%; min-width: 1510px; border-collapse: collapse; table-layout: fixed; }
.document-items-edit-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 34px;
    padding: 0 5px;
    border-bottom: 1px solid var(--line);
    background: #f4f4f5;
    color: #747580;
    font-size: 7.5px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}
.document-items-edit-table td { height: 39px; padding: 4px 3px; border-bottom: 1px solid #eeeeef; }
.document-items-edit-table tr:last-child td { border-bottom: 0; }
.document-items-edit-table th:nth-child(1) { width: 144px; }
.document-items-edit-table th:nth-child(2) { width: 220px; }
.document-items-edit-table th:nth-child(3) { width: 95px; }
.document-items-edit-table th:nth-child(4) { width: 72px; }
.document-items-edit-table th:nth-child(5),
.document-items-edit-table th:nth-child(6) { width: 68px; }
.document-items-edit-table th:nth-child(7) { width: 92px; }
.document-items-edit-table th:nth-child(8),
.document-items-edit-table th:nth-child(9) { width: 86px; }
.document-items-edit-table th:nth-child(10) { width: 126px; }
.document-items-edit-table th:nth-child(11) { width: 118px; }
.document-items-edit-table th:nth-child(12) { width: 40px; }
.return-items-edit-table { min-width: 910px; }
.return-items-edit-table th:nth-child(1) { width: 150px; }
.return-items-edit-table th:nth-child(2) { width: 250px; }
.return-items-edit-table th:nth-child(3) { width: 110px; }
.return-items-edit-table th:nth-child(4) { width: 80px; }
.return-items-edit-table th:nth-child(5) { width: 80px; }
.return-items-edit-table th:nth-child(6),
.return-items-edit-table th:nth-child(7) { width: 100px; }
.return-items-edit-table th:nth-child(8) { width: 40px; }
.document-item-input { width: 100%; min-height: 29px; height: 29px; padding: 3px 6px; border-radius: 6px; font-size: 8px; }
.document-item-input[type="number"] { text-align: right; }
.document-item-remove {
    width: 27px;
    height: 27px;
    padding: 0;
    border: 1px solid #f1c9c5;
    border-radius: 6px;
    background: #fff7f6;
    color: var(--coral);
    font-size: 15px;
    line-height: 1;
}
.document-item-remove:hover { border-color: #eaa49d; background: var(--coral-soft); }
.document-items-total {
    min-height: 40px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    border-top: 1px solid var(--line);
    background: #fafafa;
    color: #85868f;
    font-size: 8px;
}
.document-items-total strong { margin-left: 4px; color: #0f8065; font-size: 11px; }
.supplier-code-line { margin-top: 3px; display: block; color: #a0a2ae; font-size: 9px; font-weight: 500; }

.recon-direction { min-width: 150px; padding: 12px 15px; border-radius: 12px; text-align: right; }
.recon-direction span, .recon-direction strong { display: block; }
.recon-direction span { font-size: 9px; }
.recon-direction strong { margin-top: 4px; font-size: 14px; }
.recon-direction.purchase { background: var(--coral-soft); color: var(--coral); }
.recon-direction.return { background: var(--teal-soft); color: var(--teal); }
.reconciliation-table { min-width: 1180px; }
.reconciliation-table .action-col { width: 120px; }
.mini-progress { width: 80px; height: 5px; margin-bottom: 4px; overflow: hidden; border-radius: 999px; background: #e9e9ef; }
.mini-progress i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--indigo), var(--teal)); }
.recon-modal .modal-header small { color: var(--muted); font-size: 10px; }
.recon-summary-strip { margin-bottom: 17px; padding: 15px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; border: 1px solid #ececf1; border-radius: 12px; background: #fafafd; }
.recon-summary-strip span { color: var(--muted); font-size: 9px; }
.recon-summary-strip strong { display: block; margin-top: 5px; color: var(--ink); font-size: 14px; }
.recon-detail-table { min-width: 920px !important; }
.recon-amount-input { width: 130px; min-height: 35px; border-color: #d6d7e0; border-radius: 7px; color: var(--coral); font-size: 11px; font-weight: 700; }
.recon-tools { margin-top: 18px; display: grid; grid-template-columns: minmax(280px,.75fr) minmax(430px,1.3fr); gap: 16px; }
.calculator-box, .note-box { padding: 15px; border: 1px solid #e7e7ed; border-radius: 11px; background: #fbfbfd; }
.calculator-box > label, .note-box > label { margin-bottom: 9px; display: block; color: #5f6273; font-size: 10px; font-weight: 750; }
.calculator-box > div { display: grid; grid-template-columns: 1fr 42px 76px; gap: 7px; align-items: center; }
.calculator-box .form-control, .note-box .form-control { border-color: #dedfe7; border-radius: 8px; font-size: 11px; }
.calculator-box strong { color: var(--indigo); text-align: right; }
.calculator-box small { margin-top: 7px; display: block; color: #a3a5b1; font-size: 9px; }
.note-box { position: relative; }
.note-box .btn-text-custom { min-height: 26px; margin-top: 5px; padding: 0; }

.balance-overview { display: flex; align-items: stretch; gap: 10px; }
.balance-overview span { min-width: 130px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); text-align: right; }
.balance-overview small, .balance-overview strong { display: block; }
.balance-overview small { color: var(--muted); font-size: 9px; }
.balance-overview strong { margin-top: 4px; font-size: 15px; }
.negative { color: var(--coral) !important; }
.positive { color: var(--teal) !important; }
.zero { color: #8a8c9a !important; }
.balance-table { min-width: 950px; table-layout: fixed; }
.balance-table th:nth-child(1) { width: 34px; }
.balance-table th:nth-child(2) { width: 105px; }
.balance-table th:nth-child(3) { width: 72px; }
.balance-table th:nth-child(4) { width: 100px; }
.balance-table th:nth-child(5) { width: 80px; }
.balance-table th:nth-child(6),
.balance-table th:nth-child(7),
.balance-table th:nth-child(8),
.balance-table th:nth-child(9) { width: 60px; }
.balance-table th:nth-child(10) { width: 82px; }
.balance-table .action-col { width: 110px; }
.balance-table thead th,
.balance-table tbody td { padding-right: 5px; padding-left: 5px; }
.balance-table .row-actions { gap: 5px; }
.balance-table .action-link { font-size: 9px; }
.balance-number { font-size: 12px; font-variant-numeric: tabular-nums; }
.balance-log-dialog { width: min(92vw, 1280px); max-width: min(92vw, 1280px) !important; }
.balance-log-table { min-width: 880px !important; table-layout: fixed; }
.balance-log-table th:nth-child(1) { width: 150px; }
.balance-log-table th:nth-child(2) { width: 105px; }
.balance-log-table th:nth-child(3),
.balance-log-table th:nth-child(4) { width: 115px; }
.balance-log-table th:nth-child(5) { width: 165px; }
.balance-log-table th:nth-child(6) { width: auto; }
.balance-log-table tbody td { white-space: normal; line-height: 1.45; }

.payment-toolbar { align-items: flex-start; }
.payment-actions { flex-wrap: wrap; }
.payment-table { min-width: 950px; table-layout: fixed; }
.payment-table th:nth-child(1) { width: 34px; }
.payment-table th:nth-child(2) { width: 120px; }
.payment-table th:nth-child(3) { width: 100px; }
.payment-table th:nth-child(4) { width: 72px; }
.payment-table th:nth-child(5) { width: 88px; }
.payment-table th:nth-child(6) { width: 95px; }
.payment-table th:nth-child(7) { width: 105px; }
.payment-table th:nth-child(8) { width: 140px; }
.payment-table th:nth-child(9) { width: 130px; }
.payment-table th:nth-child(10) { width: 66px; }
.payment-table thead th,
.payment-table tbody td { padding-right: 5px; padding-left: 5px; }
.payment-table .supplier-match-select { width: 100%; min-width: 0; }
.supplier-match-select { min-width: 175px; height: 34px; border-color: #dfe0e7; border-radius: 7px; color: #55586a; font-size: 10px; }
.supplier-match-select.unmatched { border-color: #efb1ac; background: #fff7f6; color: var(--coral); }

@media (max-width: 900px) {
    .business-filter { flex-basis: 100%; }
    .business-filter .search-control { width: 100%; }
    .heading-stat, .recon-direction { align-self: stretch; text-align: left; }
    .balance-overview { width: 100%; }
    .balance-overview span { flex: 1; text-align: left; }
    .recon-tools { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .quick-filter-row { overflow-x: auto; }
    .detail-summary, .recon-summary-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .balance-overview { flex-direction: column; }
}

/* Unified neutral design system — restrained, spacious, technology-forward. */
:root {
    --ink: #0d0d0d;
    --muted: #6e6e80;
    --line: #e5e5e5;
    --canvas: #f7f7f8;
    --card: #ffffff;
    --sidebar: #f7f7f8;
    --sidebar-soft: #ececf1;
    --indigo: #10a37f;
    --indigo-soft: #e8f6f2;
    --teal: #10a37f;
    --teal-soft: #e8f6f2;
    --coral: #e5484d;
    --coral-soft: #fff0f0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .035), 0 8px 24px rgba(0, 0, 0, .025);
}

body { background: var(--canvas); color: var(--ink); letter-spacing: -.005em; }
.sidebar {
    border-right: 1px solid var(--line);
    background: var(--sidebar);
    color: var(--ink);
    scrollbar-color: #c9c9cf transparent;
}
.brand { height: 72px; border-bottom-color: var(--line); }
.brand-mark {
    border-radius: 11px;
    background: #0d0d0d;
    color: #fff;
    box-shadow: none;
}
.brand strong { color: #0d0d0d; letter-spacing: -.01em; }
.brand small { color: #8e8ea0; }
.nav-section { padding-top: 22px; color: #8e8ea0; letter-spacing: .08em; }
.nav-item { color: #565869; border: 1px solid transparent; border-radius: 9px; }
.nav-item:hover { transform: none; background: #ececf1; color: #0d0d0d; }
.nav-item.active {
    border-color: #dedee4;
    background: #ececf1;
    color: #0d0d0d;
    box-shadow: inset 3px 0 0 #10a37f;
}
.nav-icon, .nav-item.active .nav-icon { color: #6e6e80; }
.nav-item.active .nav-icon { color: #10a37f; }
.topbar { height: 64px; border-bottom-color: var(--line); background: rgba(255,255,255,.94); }
.system-status i { background: #10a37f; box-shadow: 0 0 0 4px #e8f6f2; }
.avatar { border: 1px solid #dcdce2; border-radius: 10px; background: #f4f4f5; color: #343541; }
.content-wrap { max-width: 1920px; padding: 32px; }
.page-heading { margin-bottom: 26px; }
.page-heading h1, .parse-hero h1 { color: #0d0d0d; font-weight: 680; letter-spacing: -.04em; }
.eyebrow { color: #10a37f; letter-spacing: .13em; }
.panel-card, .metric-card, .heading-stat, .balance-overview span {
    border-color: var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.metric-card { min-height: 170px; }
.data-panel { overflow: hidden; }
.data-toolbar, .quick-filter-row, .management-table thead th, .pagination-bar { border-color: var(--line); }
.quick-filter-row, .management-table thead th { background: #fafafa; }
.quick-filter.active::after { background: #10a37f; }
.search-control, .form-control, .form-select, .spu-cell-input, .supplier-match-select {
    border-color: #d9d9de;
    border-radius: 9px;
    background-color: #fff;
}
.search-control:focus-within, .form-control:focus, .form-select:focus, .spu-cell-input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 3px rgba(16,163,127,.1);
}
.btn-primary-custom {
    min-height: 40px;
    border-radius: 9px;
    background: #0d0d0d;
    box-shadow: none;
}
.btn-primary-custom:hover { background: #262626; }
.btn-light-custom { border-color: #d9d9de; background: #fff; color: #4b4d5c; }
.btn-light-custom:hover { border-color: #b9bac2; background: #f7f7f8; }
.action-link { color: #0f8065; }
.code-badge { background: #e8f6f2; color: #087f62; }
.category-badge { background: #f0f0f2; color: #565869; }
.management-table tbody td { color: #565869; }
.management-table tbody tr:hover td { background: #fafafa; }
.clickable-data-row { cursor: pointer; }
.clickable-data-row td:first-child { transition: box-shadow .16s ease; }
.clickable-data-row:hover td:first-child,
.clickable-data-row:focus-visible td:first-child { box-shadow: inset 3px 0 0 #10a37f; }
.clickable-data-row:focus-visible { outline: 0; }
.clickable-data-row:hover [data-row-primary-action] { color: #087f62; text-decoration: underline; text-underline-offset: 3px; }
.pagination-links a.active { border-color: #0d0d0d; background: #0d0d0d; }
.management-modal { border: 1px solid rgba(0,0,0,.06); border-radius: 16px; box-shadow: 0 28px 80px rgba(0,0,0,.16); }
.parse-launcher {
    border: 1px solid #292929;
    border-radius: 14px;
    background: #111;
    box-shadow: 0 18px 50px rgba(0,0,0,.14);
}
.parse-action-button {
    border: 1px solid rgba(255,255,255,.14);
    background: #10a37f;
    box-shadow: 0 8px 22px rgba(16,163,127,.18);
}
.parse-action-button:hover { background: #0d8f70; }
.tech-progress-track i { background: linear-gradient(90deg, #10a37f, #34d399); box-shadow: 0 0 12px rgba(16,163,127,.36); }
.scanner-orbit::after { background: #34d399; box-shadow: 0 0 14px #34d399; }
.recon-direction.purchase { background: #f1f1f3; color: #343541; }
.recon-amount-input { color: #0f8065; }
.money-cell.accent { color: #0f8065 !important; }
.flash-stack .alert { box-shadow: 0 14px 40px rgba(0,0,0,.12); }

@media (max-width: 900px) {
    .sidebar { box-shadow: 18px 0 40px rgba(0,0,0,.14); }
    .content-wrap { padding: 26px 20px; }
}

/* Compact document lists and split reconciliation workbench */
.content-wrap { max-width: 1500px; padding: 22px 26px; }
.document-page-width { width: 100%; max-width: 1240px; margin-right: auto; margin-left: auto; }
.compact-page-heading { margin-bottom: 18px; }
.compact-page-heading > div:first-child > p:last-child { margin-bottom: 0; }
.compact-business-toolbar { min-height: 62px; padding: 11px 16px; }
.business-table {
    min-width: 960px;
    table-layout: fixed;
}
.business-table th,
.business-table tbody td {
    height: 46px;
    padding: 7px 8px;
    font-size: 10px;
    line-height: 1.25;
}
.business-table th:nth-child(1) { width: 38px; }
.business-table th:nth-child(2) { width: 110px; }
.business-table th:nth-child(3) { width: 125px; }
.business-table th:nth-child(4) { width: 103px; }
.business-table th:nth-child(5) { width: 80px; }
.business-table th:nth-child(6) { width: 78px; }
.business-table th:nth-child(7) { width: 88px; }
.business-table th:nth-child(8),
.business-table th:nth-child(9) { width: 48px; }
.business-table th:nth-child(10) { width: 80px; }
.business-table th:nth-child(11) { width: 70px; }
.business-table th:nth-child(12) { width: 95px; }
.business-table tbody td:not(:last-child) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.return-table { min-width: 960px; }

.reconciliation-table {
    min-width: 960px;
    table-layout: fixed;
}
.reconciliation-table th,
.reconciliation-table tbody td {
    height: 46px;
    padding: 7px 9px;
    font-size: 10px;
}
.reconciliation-table th:nth-child(1) { width: 42px; }
.reconciliation-table th:nth-child(2) { width: 170px; }
.reconciliation-table th:nth-child(3) { width: 108px; }
.reconciliation-table th:nth-child(4),
.reconciliation-table th:nth-child(5) { width: 68px; }
.reconciliation-table th:nth-child(6),
.reconciliation-table th:nth-child(7) { width: 104px; }
.reconciliation-table th:nth-child(8) { width: 102px; }
.reconciliation-table th:nth-child(9) { width: 84px; }
.reconciliation-table th:nth-child(10) { width: 100px; }
.reconciliation-table .mini-progress { width: 64px; }

.recon-workbench-dialog {
    width: min(88vw, 1420px);
    max-width: min(88vw, 1420px) !important;
    margin-right: auto;
    margin-left: auto;
}
.recon-workbench { min-height: min(880px, 94vh); overflow: hidden; }
.recon-workbench form { min-height: inherit; display: flex; flex-direction: column; }
.recon-workbench .recon-workbench-header { min-height: 66px; padding: 10px 16px; }
.recon-workbench-header .eyebrow { margin-bottom: 2px; font-size: 8px; }
.recon-workbench-header .modal-title { font-size: 18px; }
.recon-workbench-header small { color: var(--muted); font-size: 9px; }
.recon-workbench .modal-body { min-height: 0; flex: 1; padding: 12px 14px; display: flex; flex-direction: column; overflow: hidden; }
.recon-supplier-info {
    margin-bottom: 12px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: .85fr 1.15fr 1.3fr 1fr 1fr;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fafafa;
}
.recon-supplier-info > div { min-width: 0; padding: 0 9px; border-right: 1px solid var(--line); }
.recon-supplier-info > div:last-child { border-right: 0; }
.recon-supplier-info small,
.recon-supplier-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recon-supplier-info small { margin-bottom: 3px; color: #8e8e9c; font-size: 8px; }
.recon-supplier-info strong { color: #343541; font-size: 10px; font-weight: 650; }
.recon-workbench-grid {
    min-height: 0;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(460px, .96fr);
    gap: 10px;
}
.recon-preview-pane,
.recon-list-pane {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.recon-pane-heading {
    min-height: 52px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    background: #fafafa;
}
.recon-pane-heading small { display: block; color: #10a37f; font-size: 7px; font-weight: 750; letter-spacing: .11em; }
.recon-pane-heading h3 { margin: 2px 0 0; color: #202123; font-size: 12px; font-weight: 690; }
.recon-pane-heading > span { color: #9a9aa6; font-size: 8px; }
.recon-pane-heading > strong { color: #0f8065; font-size: 15px; }
.recon-preview-scroll { min-height: 0; flex: 1; overflow: auto; }
.recon-order-preview { min-height: 100%; padding: 12px; }
.recon-order-preview[hidden] { display: none !important; }
.recon-order-title { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.recon-order-title > div:last-child { text-align: right; }
.recon-order-title small,
.recon-order-title strong { display: block; }
.recon-order-title small { margin-bottom: 3px; color: #9a9aa6; font-size: 8px; }
.recon-order-title strong { color: #292a31; font-size: 10px; }
.recon-order-meta {
    margin-top: 10px;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    border-radius: 9px;
    background: #f7f7f8;
}
.recon-order-meta span { min-width: 0; color: #8a8b97; font-size: 8px; }
.recon-order-meta strong { margin-top: 3px; display: block; overflow: hidden; color: #343541; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.recon-order-extra { padding: 8px 1px 7px; display: flex; gap: 16px; color: #777986; font-size: 8px; }
.recon-items-wrap { border: 1px solid var(--line); border-radius: 9px; }
.recon-items-table { min-width: 700px !important; table-layout: fixed; }
.recon-items-table th,
.recon-items-table tbody td { height: 34px; padding: 5px 6px; font-size: 8px; }
.recon-items-table th:nth-child(1) { width: 160px; }
.recon-items-table th:nth-child(2) { width: 170px; }
.recon-items-table th:nth-child(3) { width: 78px; }
.recon-items-table th:nth-child(4) { width: 62px; }
.recon-items-table th:nth-child(5) { width: 50px; }
.recon-items-table th:nth-child(6),
.recon-items-table th:nth-child(7) { width: 72px; }
.recon-items-table tbody td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-code-copy {
    max-width: 100%;
    padding: 2px 4px;
    overflow: hidden;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #0f8065;
    font: inherit;
    text-align: left;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-code-copy:hover { background: #eaf7f3; }

.recon-order-list { min-height: 100px; flex: 1 1 auto; overflow: auto; padding: 7px; background: #f7f7f8; }
.recon-order-row {
    width: 100%;
    min-height: 68px;
    margin-bottom: 6px;
    padding: 7px 8px;
    display: grid;
    grid-template-columns: 28px minmax(128px, 1fr) 84px 112px;
    gap: 7px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    background: #fff;
    color: #565869;
    cursor: pointer;
    text-align: left;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.recon-order-row:last-child { margin-bottom: 0; }
.recon-order-row:hover,
.recon-order-row.active { border-color: #b9ded4; box-shadow: 0 0 0 2px rgba(16,163,127,.06); }
.recon-order-row:focus-visible { outline: 2px solid rgba(16,163,127,.35); outline-offset: 1px; }
.recon-order-index {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #f0f0f2;
    color: #777987;
    font-size: 8px;
    font-weight: 760;
}
.recon-order-identity,
.recon-original-amount,
.recon-confirm-amount { min-width: 0; }
.recon-order-identity strong,
.recon-order-identity small,
.recon-original-amount small,
.recon-original-amount strong,
.recon-confirm-amount small,
.recon-confirm-amount > strong { display: block; }
.recon-order-identity strong { overflow: hidden; color: #343541; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.recon-order-identity small,
.recon-original-amount small,
.recon-confirm-amount small { margin-top: 2px; color: #9a9ba7; font-size: 7px; }
.recon-order-tags { margin-top: 4px; display: flex; align-items: center; gap: 5px; overflow: hidden; }
.recon-order-tags i,
.recon-order-tags b { min-width: 0; display: inline-block; overflow: hidden; border-radius: 5px; font-size: 6.5px; font-style: normal; font-weight: 650; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.recon-order-tags i { max-width: 92px; padding: 0 5px; background: #f0f0f2; color: #6e6f7c; }
.recon-order-tags b { color: #0f8065; }
.recon-original-amount { text-align: right; }
.recon-original-amount strong { color: #565869; font-size: 9px; }
.recon-confirm-amount { text-align: right; }
.recon-amount-input { width: 106px; min-height: 30px; height: 30px; margin-left: auto; padding: 4px 7px; border-radius: 7px; font-size: 9px; text-align: right; }
.recon-settlement-panel { flex: 0 0 154px; min-height: 154px; padding: 9px 12px; border-top: 1px solid var(--line); }
.recon-balance-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.recon-balance-cards span { min-width: 0; min-height: 79px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; background: #fafafa; }
.recon-balance-cards small,
.recon-balance-cards strong { display: block; }
.recon-balance-cards small { color: #8a8c99; font-size: 8px; }
.recon-balance-cards strong { margin-top: 2px; color: #343541; font-size: 12px; }
.recon-balance-cards em { margin-top: 5px; display: block; overflow: hidden; color: #9a9ca8; font-size: 6.5px; font-style: normal; font-weight: 450; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.recon-image-copy {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #b9ded4;
    border-radius: 7px;
    background: #edf8f5;
    color: #0f8065;
    font-size: 7px;
    font-weight: 750;
}
.recon-image-copy:hover { border-color: #80c8b6; background: #e2f4ef; }
.recon-image-copy:disabled { opacity: .6; cursor: wait; }
.recon-bottom-info {
    margin-top: 8px;
    min-height: 36px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 9px;
    background: #f7f7f8;
}
.recon-bottom-info small,
.recon-bottom-info strong { display: block; }
.recon-bottom-info small { color: #92939f; font-size: 7px; }
.recon-bottom-info strong { margin-top: 2px; color: #343541; font-size: 10px; }
.recon-bottom-actions { display: flex; align-items: center; gap: 7px; }
.copy-group-button {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #cfd0d7;
    border-radius: 8px;
    background: #fff;
    color: #0f8065;
    font-size: 8px;
    font-weight: 700;
}
.copy-group-button:disabled { opacity: .45; cursor: not-allowed; }
.recon-workbench .recon-workbench-footer { min-height: 56px; padding: 8px 14px; }
.recon-workbench-footer .btn-light-custom,
.recon-workbench-footer .btn-primary-custom { min-width: 92px; min-height: 36px; }
.recon-confirm-button { border-color: #a9d8cc; color: #0f8065; }

@media (max-width: 1180px) {
    .recon-workbench-grid { grid-template-columns: 1fr; overflow: auto; }
    .recon-preview-pane, .recon-list-pane { min-height: 520px; }
    .recon-workbench .modal-body { overflow: auto; }
}

@media (max-width: 760px) {
    .content-wrap { padding: 22px 14px; }
    .recon-supplier-info { grid-template-columns: 1fr 1fr; }
    .recon-supplier-info > div { border-right: 0; }
    .recon-order-row { grid-template-columns: 26px minmax(120px, 1fr) 78px; }
    .recon-confirm-amount { grid-column: 2 / 4; }
    .recon-workbench-footer { flex-wrap: wrap; }
    .recon-workbench-footer .btn-light-custom,
    .recon-workbench-footer .btn-primary-custom { min-width: calc(50% - 5px); }
}

/* 抖音经营分析：订单、商品、店铺三级归集。 */
.analysis-filter-card {
    margin-bottom: 10px;
    padding: 12px 14px;
    border-color: rgba(255, 80, 0, .09);
    border-radius: 14px;
    background: rgba(255, 252, 249, .98);
    box-shadow: 0 6px 18px rgba(92, 56, 32, .05);
}
.analysis-filter-form { display: flex; align-items: center; justify-content: center; gap: 8px; }
.analysis-store-picker { position: relative; width: 280px; flex: 0 0 280px; }
.analysis-store-picker-trigger {
    width: 100%; height: 36px; padding: 0 12px; display: flex; align-items: center;
    justify-content: space-between; border: 1px solid #e5ddd8; border-radius: 8px;
    background: #fff; color: #514943; font-size: 12px; text-align: left;
}
.analysis-store-picker-trigger i { color: #a49992; font-size: 14px; font-style: normal; transition: transform .18s ease; }
.analysis-store-picker-trigger[aria-expanded="true"] { border-color: #ff8d59; box-shadow: 0 0 0 3px rgba(255,80,0,.08); }
.analysis-store-picker-trigger[aria-expanded="true"] i { transform: rotate(180deg); }
.analysis-store-picker-panel {
    position: absolute; z-index: 40; top: calc(100% + 7px); left: 0; width: 360px; padding: 10px;
    border: 1px solid #eadfd8; border-radius: 12px; background: rgba(255,255,255,.985);
    box-shadow: 0 18px 48px rgba(74,48,31,.16); backdrop-filter: blur(14px);
}
.analysis-store-picker-panel > header { height: 34px; padding: 0 4px 8px; display: flex; align-items: center; justify-content: space-between; }
.analysis-store-picker-panel > header strong { color: #3d3632; font-size: 12px; font-weight: 700; }
.analysis-store-picker-panel > header div { display: flex; gap: 5px; }
.analysis-store-picker-panel > header button { padding: 3px 7px; border: 0; background: transparent; color: #e14b0a; font-size: 10px; }
.analysis-store-picker-options { max-height: 280px; overflow: auto; display: grid; gap: 3px; }
.analysis-store-picker-options label { min-height: 38px; padding: 5px 8px; display: flex; align-items: center; gap: 9px; border-radius: 8px; cursor: pointer; }
.analysis-store-picker-options label:hover { background: #fff5ef; }
.analysis-store-picker-options input { width: 15px; height: 15px; accent-color: #ff5000; }
.analysis-store-picker-options span { min-width: 0; display: flex; align-items: baseline; gap: 7px; overflow: hidden; color: #70665f; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.analysis-store-picker-options b { color: #3e3733; font-size: 11px; }
.analysis-selected-stores { margin-top: 10px; padding-top: 9px; display: flex; align-items: flex-start; gap: 10px; border-top: 1px solid #f0e9e4; }
.analysis-selected-stores[hidden] { display: none; }
.analysis-selected-stores > span { padding-top: 5px; flex: 0 0 auto; color: #a0968f; font-size: 10px; }
.analysis-selected-stores > div { display: flex; flex-wrap: wrap; gap: 6px; }
.analysis-selected-stores button { height: 26px; padding: 0 7px 0 9px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #ffd8c4; border-radius: 7px; background: #fff8f4; color: #7a5442; font-size: 10px; }
.analysis-selected-stores button i { color: #e45420; font-size: 13px; font-style: normal; }
.analysis-basis-switch {
    height: 36px;
    padding: 3px;
    display: flex;
    gap: 2px;
    border: 1px solid #e5ddd8;
    border-radius: 9px;
    background: #f7f3f0;
}
.analysis-basis-switch label {
    min-width: 72px;
    height: 28px;
    padding: 0 10px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: #80756e;
    font-size: 10px;
    cursor: pointer;
}
.analysis-basis-switch label.active { background: #fff; color: #e84c0c; box-shadow: 0 2px 7px rgba(77, 52, 38, .09); }
.analysis-basis-switch input { position: absolute; opacity: 0; pointer-events: none; }
.analysis-filter-form > .form-select { width: 280px; }
.analysis-filter-form > input[type="date"] { width: 145px; }
.analysis-filter-form > .analysis-order-search { width: 210px; }
.analysis-filter-form > :is(.form-select, .form-control) {
    height: 36px;
    border-color: #e5ddd8;
    border-radius: 8px;
    background-color: #fff;
    color: #514943;
    font-size: 12px;
    box-shadow: none;
}
.analysis-filter-form > button,
.analysis-quick-dates button {
    height: 36px;
    padding: 0 17px;
    border: 1px solid #eadfd8;
    border-radius: 8px;
    background: #fff;
    color: #5e544e;
    font-size: 11px;
}
.analysis-filter-form > button[type="submit"] { border-color: #ff5000; background: #ff5000; color: #fff; }
.analysis-filter-shortcut {
    height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffd4bf;
    border-radius: 8px;
    background: #fff7f2;
    color: #d94700;
    font-size: 11px;
    text-decoration: none;
    white-space: nowrap;
}
.analysis-filter-shortcut:hover,
.analysis-filter-shortcut.active { border-color: #ff5000; background: #ff5000; color: #fff; }
.analysis-quick-dates { display: flex; gap: 5px; margin-left: 4px; }
.analysis-quick-dates button { padding-inline: 10px; }
.analysis-level-tabs {
    width: max-content;
    margin: 0 auto 10px;
    padding: 4px;
    display: flex;
    gap: 2px;
    border: 1px solid #eee6e1;
    border-radius: 11px;
    background: rgba(255, 255, 255, .92);
}
.analysis-level-tabs a {
    min-width: 82px;
    padding: 7px 14px;
    border-radius: 8px;
    color: #776c65;
    font-size: 11px;
    text-align: center;
    text-decoration: none;
}
.analysis-level-tabs a:hover { color: #ff5000; background: #fff7f2; }
.analysis-level-tabs a.active { color: #fff; background: #ff5000; box-shadow: 0 4px 12px rgba(255, 80, 0, .18); }
.analysis-kpi-grid {
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}
.analysis-kpi-grid article {
    min-height: 94px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #eee7e2;
    border-radius: 13px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 16px rgba(82, 62, 47, .045);
}
.analysis-kpi-grid span { color: #887d76; font-size: 10px; }
.analysis-kpi-grid strong { margin: 5px 0 2px; color: #302b28; font-size: 20px; font-weight: 760; letter-spacing: -.5px; }
.analysis-kpi-grid small { color: #a19791; font-size: 9.5px; }
.analysis-kpi-grid article.positive strong, .analysis-positive { color: #d84635 !important; }
.analysis-kpi-grid article.negative strong, .analysis-negative { color: #16855b !important; }
.analysis-kpi-grid article.warning { border-color: #f3d2bc; background: #fffaf6; }
.analysis-kpi-grid article.warning strong { color: #e85c1a; }
.analysis-settlement-strip,
.analysis-after-sale-strip,
.analysis-internal-strip {
    margin: -2px 0 10px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    border-color: #eee6e1;
    border-radius: 13px;
    background: rgba(255, 255, 255, .96);
}
.analysis-after-sale-strip { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.analysis-internal-strip {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-color: #eadfce;
    background: #fffdf7;
}
.analysis-settlement-strip div,
.analysis-after-sale-strip div,
.analysis-internal-strip div { padding: 3px 10px; border-right: 1px solid #eee5e0; text-align: center; }
.analysis-settlement-strip div:last-child,
.analysis-after-sale-strip div:last-child,
.analysis-internal-strip div:last-child { border: 0; }
.analysis-settlement-strip span,
.analysis-after-sale-strip span,
.analysis-internal-strip span { display: block; color: #9a8d7d; font-size: 9px; }
.analysis-settlement-strip strong,
.analysis-after-sale-strip strong,
.analysis-internal-strip strong { display: block; margin-top: 2px; color: #5d5149; font-size: 12px; }
.analysis-after-sale-strip small { display: block; color: #aaa099; font-size: 8px; }
.analysis-overview-grid { margin-bottom: 10px; display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 10px; }
.analysis-profit-bridge, .analysis-trend-card, .analysis-source-strip, .analysis-table-card, .analysis-detail-card {
    border-color: #eee6e1;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 18px rgba(82, 62, 47, .045);
}
.analysis-profit-bridge, .analysis-trend-card { min-height: 292px; padding: 15px 17px; }
.analysis-card-title { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.analysis-card-title strong { color: #423b37; font-size: 13px; }
.analysis-card-title :is(span, a) { color: #9b918b; font-size: 9.5px; text-decoration: none; }
.analysis-card-title a:hover { color: #ff5000; }
.analysis-bridge-row {
    min-height: 30px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f2ede9;
    color: #776d66;
    font-size: 10.5px;
}
.analysis-bridge-row strong { color: #625952; font-size: 11px; }
.analysis-bridge-row.income strong { color: #16855b; }
.analysis-bridge-total { margin-top: 9px; padding: 11px 12px; display: flex; justify-content: space-between; border-radius: 9px; background: #fff5ed; color: #463b34; font-size: 12px; }
.analysis-bridge-total strong { color: #e44818; font-size: 15px; }
.analysis-trend-card canvas { width: 100%; height: 220px; display: block; }
.analysis-source-strip { margin-bottom: 10px; padding: 10px 14px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; }
.analysis-source-strip div { padding: 4px 10px; border-right: 1px solid #f0eae6; text-align: center; }
.analysis-source-strip div:last-child { border: 0; }
.analysis-source-strip span { display: block; color: #958b84; font-size: 9px; }
.analysis-source-strip strong { color: #4e4641; font-size: 14px; }
.analysis-status-grid { margin-bottom: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.analysis-status-card { max-height: 286px; padding: 12px 14px; overflow: hidden; border-color: #eee6e1; border-radius: 14px; }
.analysis-status-card .table-responsive { max-height: 232px; overflow: auto; }
.analysis-status-card thead th { position: sticky; top: 0; z-index: 1; background: #fffaf6; }
.analysis-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.analysis-table-card { padding: 12px 14px 8px; overflow: hidden; }
.analysis-compact-table { width: 100%; table-layout: auto; }
.analysis-compact-table th { height: 31px; font-size: 9px; }
.analysis-compact-table td { height: 38px; padding: 5px 8px; font-size: 10px; white-space: nowrap; }
.analysis-compact-table td:first-child { max-width: 210px; white-space: normal; }
.analysis-compact-table td strong, .analysis-detail-table td strong { display: block; color: #4a423d; font-size: 10.5px; }
.analysis-compact-table td small, .analysis-detail-table td small { display: block; color: #9e948d; font-size: 8.5px; }
.analysis-detail-card { min-height: 0; padding: 13px 14px 10px; overflow: hidden; }
.analysis-detail-scroll { max-height: calc(100vh - 310px); overflow: auto; }
.analysis-detail-table { width: max-content; min-width: 100%; table-layout: auto; }
.analysis-detail-table th { position: sticky; top: 0; z-index: 2; height: 34px; padding: 6px 9px; background: #fffaf6; font-size: 9px; white-space: nowrap; }
.analysis-detail-table td { height: 39px; padding: 6px 9px; font-size: 9.5px; white-space: nowrap; }
.analysis-order-profit-table td:nth-child(5) { max-width: 240px; white-space: normal; }
.analysis-money-detail { position: relative; min-width: 72px; }
.analysis-money-detail summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    color: #514943;
    cursor: pointer;
    list-style: none;
}
.analysis-money-detail summary::-webkit-details-marker { display: none; }
.analysis-money-detail summary::after { content: "⌄"; color: #b1a59e; font-size: 10px; }
.analysis-money-detail[open] {
    z-index: 8;
    min-width: 220px;
    padding: 7px 9px;
    border: 1px solid #e8dfd9;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(77, 58, 47, .12);
}
.analysis-money-detail[open] summary { margin-bottom: 5px; padding-bottom: 5px; border-bottom: 1px solid #f1ebe7; }
.analysis-money-detail > span {
    min-height: 23px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #857a73;
    font-size: 8.5px;
}
.analysis-money-detail > span b { color: #4d4540; font-size: 8.5px; font-weight: 650; }
.analysis-reason-detail[open] { min-width: 320px; }
.analysis-status { padding: 3px 6px; border-radius: 5px; font-size: 8.5px; }
.analysis-status.ok { color: #16855b; background: #edf9f4; }
.analysis-status.missing { color: #d84a33; background: #fff0ec; }
.analysis-status.pending { color: #887d76; background: #f3f0ee; }
.analysis-status.internal { color: #8a622c; background: #fff2d9; }
.analysis-internal-row { background: #fffdf7; }
.analysis-expense-summary {
    margin: 4px 0 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.analysis-expense-summary article {
    min-height: 82px;
    padding: 13px 14px;
    border: 1px solid #eee7e2;
    border-radius: 11px;
    background: #fff;
}
.analysis-expense-summary span { display: block; color: #8e837c; font-size: 9px; }
.analysis-expense-summary strong { display: block; margin: 5px 0 2px; color: #3f3834; font-size: 16px; }
.analysis-expense-summary small { color: #a59b94; font-size: 8.5px; }
.analysis-expense-store-list { display: grid; gap: 10px; }
.analysis-expense-store-card { padding: 14px; border: 1px solid #eee6e1; border-radius: 13px; background: #fff; }
.analysis-expense-store-card > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 11px; border-bottom: 1px solid #f0ebe7; }
.analysis-expense-store-card > header strong { display: block; color: #403936; font-size: 13px; }
.analysis-expense-store-card > header small { color: #9c928c; font-size: 9px; }
.analysis-expense-store-card > header > div:last-child { display: flex; align-items: center; gap: 14px; color: #847a74; font-size: 9.5px; }
.analysis-expense-store-card > header b { font-size: 11px; }
.analysis-expense-block { margin-top: 11px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: start; }
.analysis-expense-block h3, .analysis-expense-details h3 { margin: 7px 0 0; color: #8b817a; font-size: 9px; font-weight: 600; }
.analysis-expense-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.analysis-expense-chips.expenses { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.analysis-expense-chips > div { min-height: 48px; padding: 7px 9px; border-radius: 8px; background: #faf8f6; }
.analysis-expense-chips span { display: block; color: #938982; font-size: 8.5px; }
.analysis-expense-chips strong { color: #4c433e; font-size: 11px; }
.analysis-expense-chips small { float: right; color: #aaa099; font-size: 8px; }
.analysis-expense-details { margin-top: 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.analysis-expense-details section { max-height: 190px; padding: 10px 11px; overflow: auto; border: 1px solid #f0ebe7; border-radius: 9px; }
.analysis-expense-details h3 { margin: 0 0 6px; }
.analysis-expense-details section > div { min-height: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; border-top: 1px solid #f5f1ee; color: #615852; font-size: 9px; }
.analysis-expense-details section > div small { color: #9b918a; font-size: 8px; white-space: nowrap; }
.analysis-expense-details section > div strong { font-size: 9px; }
.analysis-expense-details p { margin: 8px 0; color: #aaa19b; font-size: 9px; }
.analysis-pagination { margin-top: 8px; }
.analysis-empty { min-height: 76px; display: grid; place-items: center; color: #b0a69f; font-size: 10px; }
.content-wrap:has(.analysis-filter-card) { width: 100%; max-width: 1920px; padding: 18px 18px 22px; }
.analysis-filter-form > :is(.form-select, .form-control) { height: 40px; font-size: 13px; }
.analysis-filter-form > button, .analysis-quick-dates button { height: 40px; font-size: 12px; }
.analysis-level-tabs a { min-width: 92px; padding: 8px 16px; font-size: 12px; }
.analysis-card-title strong { font-size: 15px; }
.analysis-card-title :is(span, a) { font-size: 11px; }
.analysis-detail-table th { height: 42px; padding: 9px 11px; font-size: 12px; }
.analysis-detail-table td { height: 52px; padding: 9px 11px; font-size: 12.5px; }
.analysis-detail-table td strong { font-size: 13px; }
.analysis-detail-table td small { margin-top: 3px; font-size: 11px; }
.analysis-order-type { display: inline-flex; min-width: 56px; min-height: 26px; align-items: center; justify-content: center; border-radius: 7px; font-size: 11px; font-weight: 650; }
.analysis-order-type.real { color: #5d554f; background: #f2efed; }
.analysis-order-type.internal { color: #a86117; background: #fff0d8; }
.analysis-order-audit {
    margin-bottom: 9px;
    padding: 7px 9px;
    display: grid;
    gap: 6px;
    border: 1px solid #eee6e1;
    border-radius: 11px;
    background: #fcfaf8;
}
.analysis-order-audit-row { display: grid; grid-template-columns: 142px 142px 180px 180px minmax(600px,1fr); gap: 6px; align-items: stretch; }
.analysis-order-audit-row.internal-row { grid-template-columns: 72px 142px 180px 180px minmax(600px, 1fr); }
.analysis-order-audit-row.analysis-after-sale-audit-row { grid-template-columns: 142px minmax(760px, 1fr); }
.analysis-order-audit-row + .analysis-order-audit-row { padding-top: 6px; border-top: 1px solid #eee7e2; }
.analysis-internal-audit-details { border-top: 1px solid #eee7e2; }
.analysis-internal-audit-details > summary { min-height: 40px; padding: 7px 10px; display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; color: #746960; border-radius: 8px; background: #fff; }
.analysis-internal-audit-details > summary::-webkit-details-marker { display: none; }
.analysis-internal-audit-details > summary::before { content: "›"; color: #8a817b; font-size: 18px; line-height: 1; transform: rotate(0); transition: transform .18s ease; }
.analysis-internal-audit-details[open] > summary::before { transform: rotate(90deg); }
.analysis-internal-audit-details > summary span { font-size: 11px; font-weight: 650; }
.analysis-internal-audit-details > summary strong { color: #3f3834; font-size: 13px; }
.analysis-internal-audit-details > summary small { color: #9a8f88; font-size: 10px; }
.analysis-internal-audit-details > summary em { margin-left: auto; color: #6f8dab; font-size: 10px; font-style: normal; }
.analysis-internal-audit-details[open] > .analysis-order-audit-row { margin-top: 6px; }
.analysis-order-audit a { color: inherit; text-decoration: none; }
.analysis-audit-kind, .analysis-audit-total { min-height: 49px; padding: 6px 8px; display: flex; flex-direction: column; justify-content: center; border: 1px solid transparent; border-radius: 8px; background: #fff; }
.analysis-audit-kind span, .analysis-audit-total span { color: #847971; font-size: 9px; }
.analysis-audit-kind strong, .analysis-audit-total strong { margin-top: 3px; color: #3e3733; font-size: 12px; font-weight: 720; font-variant-numeric: tabular-nums; }
.analysis-audit-kind.real { border-left: 3px solid #625b56; }
.analysis-audit-kind.internal { border-left: 3px solid #e6a13a; background: #fffaf1; }
.analysis-audit-total small { margin-top: 2px; color: #a29790; font-size: 8px; }
.analysis-order-audit :is(.analysis-audit-kind,.analysis-audit-total,.analysis-audit-progress,.analysis-order-state-list>a):hover { border-color: #ffb28d; background: #fff8f4; }
.analysis-order-audit :is(.analysis-audit-kind,.analysis-audit-total,.analysis-audit-progress,.analysis-order-state-list>a).active { border-color: #ff7b3c; background: #fff1e9; box-shadow: inset 0 0 0 1px rgba(255,80,0,.08); }
.analysis-audit-progress {
    min-height: 49px;
    padding: 6px 8px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    color: #8b8079;
    font-size: 9px;
}
.analysis-audit-progress.disabled { opacity: .66; pointer-events: none; }
.analysis-audit-progress strong { color: #504741; font-size: 11px; }
.analysis-audit-progress b { color: #ff5000; font-size: 10px; }
.analysis-audit-progress i { grid-column: 1 / -1; height: 3px; overflow: hidden; border-radius: 99px; background: #ece6e2; }
.analysis-audit-progress i em { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #ff7b39, #ff5000); }
.analysis-order-state-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.analysis-shipping-state-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.analysis-after-sale-audit-row .analysis-order-state-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.analysis-order-state-list > a { min-height: 49px; padding: 5px 7px; display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid transparent; border-radius: 7px; background: #fff; }
.analysis-order-state-list span { color: #70665f; font-size: 9px; }
.analysis-order-state-list strong { color: #3f3834; font-size: 10px; text-align: right; }
.analysis-order-state-list em { color: #5e554f; font-size: 9px; font-style: normal; font-variant-numeric: tabular-nums; }
.analysis-order-state-list b { color: #9d928b; font-size: 8px; font-weight: 500; text-align: right; }
.analysis-order-profit-table thead th small { display: block; margin-top: 2px; color: #9f958e; font-size: 9px; font-weight: 500; }
.analysis-order-profit-table td:nth-child(4) { max-width: none; white-space: nowrap; }
.analysis-order-link { padding: 0; border: 0; background: transparent; color: #e54a13; font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.analysis-order-link:hover { color: #ff5000; }
.analysis-product-profit-table td { height: 66px; padding-block: 12px; font-size: 12.5px; }

.product-profit-scroll {
  overflow-x: auto;
  border-radius: 14px;
}

.product-profit-board {
  min-width: 1320px;
  overflow: hidden;
  border: 1px solid #d9e8f8;
  border-radius: 14px;
  background: #fff;
}

.product-profit-columns,
.product-profit-entry {
  display: grid;
  grid-template-columns: 44px minmax(320px, 2.2fr) minmax(210px, 1.15fr) minmax(170px, .9fr) minmax(210px, 1.1fr) minmax(170px, .9fr) minmax(180px, 1fr);
  align-items: stretch;
}

.product-profit-columns {
  min-height: 42px;
  background: #eef6ff;
  color: #4b6886;
  font-size: 13px;
  font-weight: 700;
}

.product-profit-columns span {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-right: 1px solid #dce9f6;
}

.product-profit-entry {
  position: relative;
  min-height: 104px;
  border-top: 1px solid #e2edf8;
  background: #fff;
  color: #29445f;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}

.product-profit-entry:hover {
  background: #f5faff;
  box-shadow: inset 3px 0 0 #3d86cf;
}

.product-profit-index {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fbff;
  color: #7890a8;
  font-size: 12px;
}

.product-profit-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 14px 16px;
  border-left: 1px solid #e2edf8;
}

.product-profit-cell > strong {
  font-size: 17px;
  line-height: 1.25;
}

.product-profit-cell span {
  color: #6f8499;
  font-size: 12px;
}

.product-profit-cell small {
  display: block;
  overflow: hidden;
  color: #8295a8;
  font-size: 11.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-profit-main > strong {
  overflow: hidden;
  color: #263f59;
  font-size: 14px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-profit-main > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-profit-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.product-profit-value strong {
  color: #263f59;
  font-size: 16px;
}

.product-profit-ad .product-profit-value strong {
  color: #2f78bf;
}

.product-profit-result > strong {
  font-size: 18px;
}

.product-profit-cell .product-return-rate-current,
.product-profit-cell .product-return-rate-history {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1500px) {
  .product-profit-board { min-width: 1220px; }
  .product-profit-columns,
  .product-profit-entry {
    grid-template-columns: 40px minmax(280px, 2fr) minmax(190px, 1.1fr) minmax(150px, .85fr) minmax(180px, 1fr) minmax(150px, .85fr) minmax(160px, .9fr);
  }
}
.analysis-product-profit-table td:first-child { min-width: 230px; max-width: 310px; white-space: normal; }
.analysis-product-profit-table td:nth-child(4) { max-width: none; white-space: nowrap; }
.analysis-product-link { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.analysis-product-link strong { color: #39322e !important; font-size: 13px !important; line-height: 1.55; }
.analysis-product-link small { margin-top: 4px; color: #e54a13 !important; font-size: 11px !important; }
.analysis-product-link:hover strong { color: #ff5000 !important; }
.analysis-order-modal .modal-dialog { max-width: min(1320px, calc(100vw - 34px)); }
.analysis-order-modal .modal-content { max-height: 82vh; overflow: hidden; border: 0; border-radius: 16px; box-shadow: 0 25px 80px rgba(53, 38, 29, .18); }
.analysis-order-modal .modal-header { min-height: 48px; padding: 11px 16px; border-bottom-color: #eee8e4; }
.analysis-order-modal .modal-title { margin: 0; color: #463e39; font-size: 16px; }
.analysis-order-modal .modal-body { padding: 15px; background: #faf8f6; }
.analysis-order-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.analysis-order-modal-head > div:first-child strong { display: block; color: #322c29; font-size: 17px; }
.analysis-order-modal-head > div:first-child span { color: #978c85; font-size: 11px; }
.analysis-order-modal-head > div:last-child { display: flex; gap: 6px; }
.analysis-order-modal-head b { padding: 5px 9px; border-radius: 6px; background: #f1ece8; color: #746960; font-size: 11px; }
.analysis-order-modal-head b.ok { background: #edf8f3; color: #16855b; }
.analysis-order-modal-head b.pending { background: #fff4e8; color: #c66821; }
.analysis-order-modal-summary { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.analysis-order-modal-summary > div { min-height: 72px; padding: 11px 12px; border: 1px solid #ece5e0; border-radius: 10px; background: #fff; }
.analysis-order-modal-summary span, .analysis-order-modal-summary small { display: block; color: #9a8f88; font-size: 10.5px; }
.analysis-order-modal-summary strong { display: block; margin: 4px 0 2px; color: #443c37; font-size: 18px; }
.analysis-order-formula { margin-top: 8px; padding: 9px 11px; display: flex; align-items: center; gap: 14px; border-radius: 8px; background: #fff2e9; }
.analysis-order-formula strong { color: #d94b17; font-size: 11px; }
.analysis-order-formula span { color: #75675e; font-size: 12px; }
.analysis-order-source-grid { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.analysis-order-source-grid section { min-height: 92px; max-height: 210px; padding: 10px 11px; overflow: auto; border: 1px solid #ece5e0; border-radius: 10px; background: #fff; }
.analysis-order-source-grid h3 { margin: 0 0 6px; color: #655b55; font-size: 11.5px; }
.analysis-order-source-grid section > div { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #f3efec; color: #746b65; font-size: 10.5px; }
.analysis-order-source-grid section > div span small { display: block; color: #aca29c; font-size: 9.5px; }
.analysis-order-source-grid section > div strong { color: #4b433e; font-size: 10.5px; }
.analysis-order-source-grid p { margin: 11px 0; color: #aca39d; font-size: 10.5px; }
.analysis-product-modal-block { margin-top: 9px; padding: 11px; border: 1px solid #ece5e0; border-radius: 10px; background: #fff; }
.analysis-product-modal-block h3 { margin: 0 0 8px; color: #5f554e; font-size: 12px; }
.analysis-product-modal-block .table-responsive { max-height: 245px; overflow: auto; }
.analysis-product-modal-block table { width: max-content; min-width: 100%; border-collapse: collapse; }
.analysis-product-modal-block th { position: sticky; top: 0; z-index: 1; height: 35px; padding: 7px 10px; background: #fff8f3; color: #8d8179; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.analysis-product-modal-block td { height: 40px; padding: 7px 10px; border-top: 1px solid #f2ede9; color: #554d48; font-size: 11px; white-space: nowrap; }

@media (max-width: 1300px) {
    .analysis-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .analysis-source-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .analysis-source-strip div:nth-child(4) { border-right: 0; }
}
@media (max-width: 900px) {
    .analysis-filter-form { flex-wrap: wrap; justify-content: flex-start; }
    .analysis-filter-form > .form-select { width: 100%; }
    .analysis-overview-grid, .analysis-preview-grid { grid-template-columns: 1fr; }
    .analysis-status-grid { grid-template-columns: 1fr; }
    .analysis-expense-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .analysis-expense-chips, .analysis-expense-chips.expenses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .analysis-expense-details { grid-template-columns: 1fr; }
    .analysis-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .analysis-settlement-strip, .analysis-after-sale-strip, .analysis-internal-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .analysis-level-tabs { width: 100%; overflow-x: auto; }
    .analysis-level-tabs a { flex: 1 0 82px; }
    .analysis-order-audit { overflow-x: auto; }
    .analysis-order-audit-row { min-width: 1080px; }
    .analysis-order-modal-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 公司主体档案与证照资料。 */
.company-management-table td { vertical-align: middle; }
.company-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 2px 9px;
    border: 1px solid #dce8e4;
    border-radius: 999px;
    background: #f1f7f5;
    color: #3d6e61;
    font-size: 12px;
    white-space: nowrap;
}
.company-status-badge.inactive {
    border-color: #eadfda;
    background: #f8f2ef;
    color: #8d6658;
}
.company-document-links { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.company-document-links a,
.company-document-control a {
    color: #4e746d;
    text-decoration: none;
}
.company-document-links a {
    padding: 3px 7px;
    border: 1px solid #dde8e5;
    border-radius: 6px;
    background: #f4f8f7;
    font-size: 12px;
}
.company-document-links a:hover,
.company-document-control a:hover { color: #ff5000; border-color: #ffd0ba; }
body[data-page-module="basic-management"] .management-modal .company-document-control {
    display: flex;
    grid-column: 2;
    align-items: center;
    gap: 10px;
    width: 500px;
    min-width: 0;
}
body[data-page-module="basic-management"] .management-modal .company-document-control > .form-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 38px;
    padding: 6px 10px;
    font-size: 13px;
}
body[data-page-module="basic-management"] .management-modal .company-document-control > a {
    flex: 0 0 72px;
    text-align: right;
    font-size: 12px;
    white-space: nowrap;
}
body[data-page-module="basic-management"] .management-modal .company-document-control > a[hidden] { display: none; }

.company-directory { overflow: hidden; border: 1px solid #dbe8f6; background: #f7fbff; }
.company-directory-toolbar { min-height: 68px; padding: 10px 16px; display: grid; grid-template-columns: minmax(360px,680px) auto; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e2edf8; background: #fff; }
.company-directory-search { height: 42px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; overflow: hidden; border: 1px solid #cfe0f2; border-radius: 12px; background: #f8fbff; }
.company-directory-search:focus-within { border-color: #7fb5ed; box-shadow: 0 0 0 3px rgba(62,139,213,.1); }
.company-directory-search > span { color: #7192b2; font-size: 20px; text-align: center; }
.company-directory-search input { min-width: 0; height: 100%; padding: 0 8px 0 0; border: 0; outline: 0; color: #29425d; background: transparent; font-size: 13px; }
.company-directory-search button { height: 32px; margin-right: 5px; padding: 0 18px; border: 0; border-radius: 9px; color: #fff; background: #3586d2; font-size: 12px; font-weight: 700; }
.company-directory-toolbar .toolbar-actions { justify-content: flex-end; }
.company-directory-heading { min-height: 46px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #55718e; background: #f4f9fe; }
.company-directory-heading > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.company-directory-heading strong { color: #243f5c; font-size: 15px; }
.company-directory-heading span { font-size: 11px; }
.company-directory-legend { display: flex; align-items: center; gap: 14px; }
.company-directory-legend > span { display: flex; align-items: center; gap: 5px; color: #7e96ad; }
.company-directory-legend i,
.company-document-row i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #c5d4e2; }
.company-directory-legend i.is-ready,
.company-document-row.is-ready i { background: #42b58b; box-shadow: 0 0 0 3px rgba(66,181,139,.1); }
.company-profile-grid { padding: 10px 12px 14px; display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; background: #f4f8fc; }
.company-profile-card { position: relative; min-width: 0; overflow: hidden; cursor: default; border: 1px solid #dfeaf5; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(35,77,119,.035); transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.company-profile-card:hover { transform: translateY(-1px); border-color: #9fc7ee; box-shadow: 0 8px 22px rgba(35,77,119,.075); }
.company-profile-main { min-height: 118px; padding: 12px 13px; display: grid; grid-template-columns: 42px minmax(230px,1.05fr) minmax(560px,2.7fr) minmax(235px,.95fr) 98px; align-items: center; gap: 14px; }
.company-sequence { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #397cb9; background: #eaf4fe; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.company-identity { min-width: 0; }
.company-identity-title { min-width: 0; display: flex; align-items: center; gap: 8px; }
.company-identity h2 { min-width: 0; margin: 0; overflow: hidden; color: #243d57; font-size: 15px; font-weight: 750; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.company-identity code { display: block; margin-top: 6px; overflow: hidden; color: #8399ae; background: transparent; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.company-status-badge { flex: 0 0 auto; padding: 3px 7px; border: 1px solid #cbe7dc; border-radius: 99px; color: #39876b; background: #eef8f4; font-size: 9px; font-weight: 700; }
.company-status-badge.inactive { border-color: #eadad4; color: #a86c5d; background: #fbf3f0; }
.company-completeness { margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.company-completeness > span { width: 92px; height: 4px; overflow: hidden; border-radius: 99px; background: #e8f0f7; }
.company-completeness i { width: var(--company-completeness); height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#4b9ee8,#64c7bf); }
.company-completeness small { color: #8ba0b3; font-size: 9px; white-space: nowrap; }
.company-core-fields { min-width: 0; display: grid; grid-template-columns: repeat(4,minmax(105px,1fr)); gap: 10px 18px; }
.company-core-fields dl,
.company-profile-details dl { min-width: 0; margin: 0; }
.company-core-fields dt,
.company-profile-details dt { color: #8ca0b3; font-size: 9px; font-weight: 500; }
.company-core-fields dd,
.company-profile-details dd { margin: 3px 0 0; overflow: hidden; color: #385069; font-size: 11px; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.company-core-fields .company-core-address { grid-column: span 2; }
.company-documents-compact { min-width: 0; padding-left: 14px; display: grid; gap: 7px; border-left: 1px solid #e7eef6; }
.company-document-row { min-width: 0; display: grid; grid-template-columns: 8px minmax(76px,1fr) auto auto; align-items: center; gap: 7px; }
.company-document-row span { overflow: hidden; color: #58718a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.company-document-row a,
.company-document-row button,
.company-detail-documents a,
.company-detail-documents button { padding: 0; border: 0; color: #347fc2; background: transparent; font-size: 10px; text-decoration: none; white-space: nowrap; }
.company-document-row button:hover,
.company-detail-documents button:hover,
.company-detail-documents a:hover { color: #1c68aa; text-decoration: underline; }
.company-document-row em { color: #a6b3c0; font-size: 9px; font-style: normal; white-space: nowrap; }
.company-profile-actions { height: 100%; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.company-profile-actions button { min-width: 88px; height: 30px; padding: 0 10px; border: 1px solid #d6e5f3; border-radius: 8px; color: #497696; background: #f7fbff; font-size: 10px; }
.company-profile-actions button:hover { border-color: #8fbbe3; color: #2469a5; background: #eef7ff; }
.company-profile-actions .company-edit-link { min-width: 0; height: auto; padding: 2px 0; border: 0; border-radius: 0; color: #347fc2; background: transparent; font-size: 10px; }
.company-profile-actions .company-edit-link:hover { border: 0; color: #1e67a7; background: transparent; text-decoration: underline; }
.company-profile-details { max-height: 0; padding: 0 69px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px 18px; overflow: hidden; opacity: 0; border-top: 0 solid #e7eef6; background: #f9fcff; transition: max-height .22s ease,padding .22s ease,opacity .18s ease,border-width .18s ease; }
.company-profile-card.is-expanded .company-profile-details { max-height: 300px; padding-top: 12px; padding-bottom: 14px; opacity: 1; border-top-width: 1px; }
.company-profile-details .company-detail-wide { grid-column: span 2; }
.company-detail-documents { grid-column: 1/-1; display: flex; align-items: center; gap: 14px; color: #91a3b4; font-size: 10px; }
.company-profile-empty { grid-column: 1/-1; min-height: 220px; display: grid; place-items: center; }

.company-license-uploader { position: relative; width: 100%; min-height: 120px; padding: 12px 15px; display: grid; grid-template-columns: 116px minmax(0,1fr) auto; align-items: center; gap: 16px; cursor: pointer; border: 1px dashed #d8cec8; border-radius: 12px; background: linear-gradient(120deg,#fbf8f5,#fff); }
.company-license-uploader:hover { border-color: #ff9f73; background: #fff8f3; }
.company-license-uploader > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.company-license-uploader-preview { width: 116px; height: 92px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e3dcd7; border-radius: 9px; background: #f1ece8 center/contain no-repeat; }
.company-license-uploader-preview b { color: #a27b68; font-size: 13px; }
.company-license-uploader-preview.has-image b { display: none; }
.company-license-uploader-copy { min-width: 0; display: flex; flex-direction: column; }
.company-license-uploader-copy strong { color: #3f3834; font-size: 14px; }
.company-license-uploader-copy small { margin-top: 7px; color: #9d948e; font-size: 10px; }
.company-license-uploader > a { padding: 6px 9px; border-radius: 7px; color: #f15a24; background: #fff0e8; font-size: 10px; text-decoration: none; }
.company-license-uploader > a[hidden] { display: none; }

@media (max-width: 1180px) {
    .company-profile-main { grid-template-columns: 38px minmax(220px,1fr) minmax(390px,2fr) minmax(210px,1fr); }
    .company-profile-actions { grid-column: 2/-1; height: auto; flex-direction: row; align-items: center; justify-content: flex-end; gap: 14px; }
    .company-core-fields { grid-template-columns: repeat(3,minmax(100px,1fr)); }
    .company-profile-details { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    body[data-page-module="basic-management"] .management-modal .company-document-control {
        grid-column: 1;
        width: 100%;
    }
    .company-directory-toolbar { grid-template-columns: 1fr; }
    .company-directory-toolbar .toolbar-actions { justify-content: stretch; }
    .company-profile-main { grid-template-columns: 34px minmax(0,1fr); align-items: start; }
    .company-core-fields,
    .company-documents-compact,
    .company-profile-actions { grid-column: 2; }
    .company-core-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .company-documents-compact { padding: 10px 0 0; border-top: 1px solid #e7eef6; border-left: 0; }
    .company-profile-details { padding-left: 56px; padding-right: 14px; grid-template-columns: 1fr 1fr; }
    .company-license-uploader { grid-template-columns: 88px minmax(0,1fr); }
    .company-license-uploader-preview { width: 88px; height: 72px; }
    .company-license-uploader > a { grid-column: 2; justify-self: start; }
}

/* 利润分析表格统一信息层级：主信息一致，辅助信息一致。 */
.content-wrap:has(.analysis-filter-card) .analysis-detail-table th {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #655b55 !important;
}
.content-wrap:has(.analysis-filter-card) .analysis-detail-table td,
.content-wrap:has(.analysis-filter-card) .analysis-detail-table td :is(strong, button, .analysis-order-link, .analysis-product-link) {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: inherit;
}
.content-wrap:has(.analysis-filter-card) .analysis-detail-table td {
    color: #4c4541;
}
.content-wrap:has(.analysis-filter-card) .analysis-detail-table td small {
    margin-top: 3px;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #948a84;
}
.content-wrap:has(.analysis-filter-card) .analysis-detail-table td.analysis-positive,
.content-wrap:has(.analysis-filter-card) .analysis-detail-table td.analysis-positive :is(strong, small) {
    color: #d84635 !important;
}
.content-wrap:has(.analysis-filter-card) .analysis-detail-table td.analysis-negative,
.content-wrap:has(.analysis-filter-card) .analysis-detail-table td.analysis-negative :is(strong, small) {
    color: #16855b !important;
}
.content-wrap:has(.analysis-filter-card) .analysis-detail-table :is(.analysis-status, .analysis-order-type, .movement-writeoff-status) {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: inherit !important;
}

.content-wrap:has(.analysis-filter-card) .analysis-order-profit-table tbody td {
    height: 58px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eeeae7;
    background: #fff;
    vertical-align: middle;
}
.analysis-order-profit-table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: #fff;
}
.analysis-order-cell { min-width: 0; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.content-wrap:has(.analysis-filter-card) .analysis-order-main {
    min-width: 0;
    height: 27px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: inherit;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 27px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.content-wrap:has(.analysis-filter-card) .analysis-order-sub {
    min-width: 0;
    overflow: hidden;
    color: #948a84;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 27px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.analysis-order-sub::before { content: '（'; }
.analysis-order-sub::after { content: '）'; }
.analysis-order-main :is(.analysis-order-type, .analysis-status) { min-height: 25px; height: 25px; }
.analysis-order-main .analysis-order-link { display: inline !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analysis-order-profit-table td.analysis-positive .analysis-order-main { color: #d84635 !important; }
.analysis-order-profit-table td.analysis-negative .analysis-order-main,
.analysis-order-profit-table .analysis-order-sub.analysis-negative { color: #16855b !important; }
.analysis-order-profit-table th:nth-child(2),
.analysis-order-profit-table td:nth-child(2) { min-width: 215px; }
.analysis-order-profit-table th,
.analysis-order-profit-table td { padding-left: 16px !important; padding-right: 16px !important; }
.content-wrap:has(.analysis-filter-card) .analysis-order-profit-table thead th {
    height: 50px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 1px solid #e7e2de;
    color: #5e5651 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    background: #faf9f7;
    vertical-align: middle;
}
.analysis-order-profit-table :is(th,td):nth-child(3) { min-width: 145px; }
.analysis-order-profit-table :is(th,td):nth-child(4) { min-width: 108px; }
.analysis-order-profit-table :is(th,td):nth-child(5) { min-width: 122px; }
.analysis-order-profit-table :is(th,td):nth-child(6) { min-width: 136px; }
.analysis-order-profit-table :is(th,td):nth-child(7) { min-width: 120px; }
.analysis-order-profit-table :is(th,td):nth-child(8) { min-width: 104px; }
.analysis-order-profit-table th:nth-child(9),
.analysis-order-profit-table td:nth-child(9) { min-width: 225px; }
.analysis-order-profit-table :is(th,td):nth-child(10),
.analysis-order-profit-table :is(th,td):nth-child(11) { min-width: 138px; }
.analysis-order-profit-table :is(th,td):nth-child(12),
.analysis-order-profit-table :is(th,td):nth-child(13),
.analysis-order-profit-table :is(th,td):nth-child(14),
.analysis-order-profit-table :is(th,td):nth-child(15) { min-width: 108px; }
.analysis-order-profit-table :is(th,td):nth-child(16) { min-width: 165px; }
.analysis-order-profit-table th:nth-child(17),
.analysis-order-profit-table td:nth-child(17) { min-width: 210px; }
.analysis-order-profit-table tfoot td {
    position: static;
    height: 46px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    border-top: 1px solid #dcd6d1;
    border-bottom: 0;
    color: #514842;
    font-size: 13px !important;
    font-weight: 600 !important;
    background: #fff;
    box-shadow: none;
    white-space: nowrap;
}
.analysis-order-profit-table tfoot td small { display: inline; margin-left: 5px; font-size: 10px !important; }
.analysis-order-profit-table tfoot td small::before { content: '（'; }
.analysis-order-profit-table tfoot td small::after { content: '）'; }
.analysis-order-profit-table tfoot .analysis-sequence { position: sticky; left: 0; z-index: 3; color: #6b615b; background: #fff; }
.analysis-product-profit-table tfoot td { position: sticky; bottom: 0; z-index: 3; height: 42px; border-top: 1px solid #dcd3cd; border-bottom: 0; color: #514943; font-size: 11px; font-weight: 700; background: #faf8f6; box-shadow: 0 -3px 10px rgba(66,47,35,.035); }
.analysis-product-profit-table tfoot .analysis-sequence { left: 0; z-index: 4; }
.analysis-order-profit-table tbody tr:hover td { background: #fff9f5; }
.analysis-order-profit-table tbody .analysis-sequence { background: #fff; }
.analysis-order-profit-table tbody tr:hover .analysis-sequence { background: #fff9f5; }

.movement-writeoff-summary {
    position: relative;
    margin-bottom: 10px;
    padding: 12px 14px 15px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    flex: 0 0 auto;
    overflow: hidden;
}
.analysis-seven-day-strip {
    margin-bottom: 10px;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(7, minmax(138px, 1fr));
    gap: 7px;
    flex: 0 0 auto;
    overflow-x: auto;
}
.analysis-seven-day-strip article {
    min-width: 138px;
    padding: 8px 10px;
    border: 1px solid #eee8e3;
    border-radius: 10px;
    background: #fffdfb;
}
.analysis-seven-day-strip :is(header, div, footer) { min-height: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.analysis-seven-day-strip header { margin-bottom: 2px; border-bottom: 1px solid #f2ede9; }
.analysis-seven-day-strip :is(span, b) { font-size: 11px; font-weight: 400; }
.analysis-seven-day-strip header strong { color: #4c4541; font-size: 12px; font-weight: 600; }
.analysis-seven-day-strip span { color: #9a908a; }
.analysis-seven-day-strip b { color: #514a45; }
.analysis-seven-day-strip footer { margin-top: 2px; padding-top: 2px; border-top: 1px solid #f2ede9; }
.movement-writeoff-summary > :is(div, a) {
    min-height: 54px;
    padding: 4px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #eee7e2;
}
.movement-writeoff-summary > :nth-child(7) { border-right: 0; }
.movement-writeoff-summary span,
.movement-writeoff-summary small { color: #948a84; font-size: 12px; }
.movement-writeoff-summary strong { margin: 2px 0; color: #403a36; font-size: 17px; font-weight: 600; }
.movement-summary-link { color: inherit; text-decoration: none; transition: background .18s ease, box-shadow .18s ease; }
.movement-summary-link:hover,
.movement-summary-link.active { background: #fff7f2; box-shadow: inset 0 0 0 1px #ffd7c5; }
.movement-writeoff-summary > i { position: absolute; left: 14px; right: 14px; bottom: 7px; height: 3px; overflow: hidden; border-radius: 3px; background: #eee9e5; }
.movement-writeoff-summary > i em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff5000, #ff9a5a); }
.movement-status-select { max-width: 138px; }
.movement-writeoff-status { display: inline-flex; min-width: 58px; min-height: 26px; align-items: center; justify-content: center; border-radius: 7px; background: #f3f0ed; }
.movement-writeoff-status.pending { color: #c34a32 !important; background: #fff0eb; }
.movement-pending-row td { background: #fffaf8; }
.movement-writeoff-table td:nth-child(6),
.movement-writeoff-table td:nth-child(11) { max-width: 260px; white-space: normal; }
.movement-writeoff-modal .modal-dialog { width: min(720px, calc(100vw - 32px)); max-width: 720px; }
.movement-writeoff-modal .management-modal-body { padding: 18px 24px; }
.movement-writeoff-modal .management-form-row {
    min-height: 54px;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}
.movement-writeoff-modal .management-form-row label { color: #655b55; font-size: 14px; }
.movement-writeoff-modal .management-form-row :is(.form-control, .form-select) { height: 42px; font-size: 14px; }

/* 固定科目的利润分析表。 */
.analysis-pl-statement { margin: 12px 0; overflow: hidden; border: 1px solid #e9e3df; border-radius: 12px; }
.analysis-pl-statement table { width: 100%; border-collapse: collapse; }
.analysis-pl-statement th,
.analysis-pl-statement td { height: 38px; padding: 7px 14px; border-bottom: 1px solid #f0ebe7; font-size: 13px; }
.analysis-pl-statement th { color: #82766f; font-weight: 500; background: #faf8f6; }
.analysis-pl-statement td { color: #4c4541; font-weight: 400; }
.analysis-pl-statement :is(th, td):not(:first-child) { width: 150px; text-align: right; }
.analysis-pl-statement tr.section td { color: #2f2a27; font-weight: 600; background: #fcfbfa; }
.analysis-pl-statement tr.subitem td:first-child { padding-left: 34px; color: #756b65; }
.analysis-pl-statement tr.total td { font-weight: 600; border-top: 1px solid #dcd3cd; background: #f8f5f2; }
.analysis-pl-statement tr.profit td { font-size: 15px; font-weight: 700; border-bottom: 0; background: #fffaf6; }

/* 店铺利润：真实单 / 内购单矩阵 + 三列经营支出卡片 */
.store-profit-board-list { min-width: 1080px; padding: 2px 4px 16px; display: grid; gap: 16px; }
.store-profit-board { overflow: hidden; border: 1px solid #ebe5df; border-radius: 18px; background: #fbfaf9; box-shadow: 0 16px 48px rgba(67,47,34,.07); }
.store-profit-board-head {
    min-height: 104px; padding: 17px 20px; display: grid; grid-template-columns: minmax(260px,.9fr) minmax(650px,2fr);
    gap: 24px; align-items: center; border-bottom: 1px solid #eee8e3;
    background: #fffdfa;
}
.store-profit-identity { min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.store-profit-identity > span { padding: 5px 9px; border-radius: 7px; background: #2e2a27; color: #fff; font-size: 10px; letter-spacing: .06em; }
.store-profit-identity > strong { overflow: hidden; color: #2e2926; font-size: 18px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.store-profit-identity > small { grid-column: 1 / -1; margin-top: 8px; color: #9b9089; font-size: 11px; }
.store-profit-board-kpis { display: grid; grid-template-columns: repeat(4,minmax(130px,1fr)); }
.store-profit-board-kpis > div { min-width: 0; padding: 4px 16px; border-left: 1px solid #ece5e0; }
.store-profit-board-kpis span { display: block; margin-bottom: 5px; color: #998e87; font-size: 10px; }
.store-profit-board-kpis strong { display: block; color: #3d3733; font-size: 17px; font-weight: 720; font-variant-numeric: tabular-nums; }
.store-profit-board-kpis small { display: block; margin-top: 4px; overflow: hidden; color: #a39891; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.store-profit-board-kpis .store-growth { font-size: 17px; }
.store-profit-filter-bar { min-height: 42px; padding: 8px 20px; display: flex; align-items: center; gap: 8px; overflow: auto; border-bottom: 1px solid #eee8e3; background: #fff; }
.store-profit-filter-bar span { flex: 0 0 auto; padding: 5px 9px; border: 1px solid #eee6e0; border-radius: 7px; color: #675f5a; font-size: 11px; background: #fffdfb; }
.store-profit-filter-bar b { margin-right: 7px; color: #aaa099; font-size: 9px; font-weight: 600; }
.store-order-overview, .store-expense-section { margin: 14px; overflow: hidden; border: 1px solid #ece6e1; border-radius: 14px; background: #fff; }
.store-order-overview > header, .store-expense-section > header { min-height: 50px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eee9e5; background: #fff; }
.store-order-overview > header div, .store-expense-section > header div { display: flex; align-items: baseline; gap: 9px; }
.store-order-overview > header strong, .store-expense-section > header strong { color: #35302d; font-size: 14px; font-weight: 720; }
.store-order-overview > header span, .store-expense-section > header span, .store-order-overview > header small, .store-expense-section > header small { color: #a0958e; font-size: 9px; }
.store-order-matrix { width: 100%; min-width: 860px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.store-order-matrix th, .store-order-matrix td { height: 58px; padding: 9px 18px; border-bottom: 1px solid #f0ece9; color: #524a45; font-size: 12px; vertical-align: middle; }
.store-order-matrix th { height: 40px; color: #8e837c; font-size: 10px; font-weight: 650; letter-spacing: .02em; background: #f8f6f4; }
.store-order-matrix :is(th,td):first-child { width: 24%; text-align: left; }
.store-order-matrix :is(th,td):not(:first-child) { width: 19%; text-align: center; font-variant-numeric: tabular-nums; }
.store-order-matrix .matrix-primary td { color: #332f2c; font-weight: 680; background: #fffdfb; }
.store-order-matrix .matrix-primary td:first-child { position: relative; padding-left: 24px; }
.store-order-matrix .matrix-primary td:first-child::before { position: absolute; left: 13px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: #e9ddd5; content: ''; }
.store-order-matrix .matrix-child td { height: 54px; background: #fff; }
.store-order-matrix .matrix-child td:first-child { position: relative; padding-left: 45px; color: #776c65; }
.store-order-matrix .matrix-child td:first-child::before { position: absolute; left: 29px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #d7cbc3; content: ''; transform: translateY(-50%); }
.store-order-matrix .matrix-settlement td { height: 62px; border-top: 1px solid #eadfd7; border-bottom: 0; color: #e34c12; font-weight: 750; background: #fff7f2; }
.store-order-matrix tbody tr:not(.matrix-settlement):hover td { background: #fff9f5; }
.store-matrix-metric { display: inline-flex; min-width: 126px; flex-direction: column; align-items: center; }
.store-matrix-metric > div { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.store-matrix-metric strong { color: inherit; font-size: 15px; font-weight: 720; line-height: 1.2; font-variant-numeric: tabular-nums; }
.store-matrix-metric > div b { color: #9b918a; font-size: 9px; font-weight: 620; white-space: nowrap; }
.store-matrix-metric > div b.up { color: #d94b1b; }
.store-matrix-metric > div b.down { color: #188662; }
.store-matrix-metric small { margin-top: 6px; display: block; color: #a19790; font-size: 9px; font-weight: 500; line-height: 1; text-align: center; white-space: nowrap; }
.store-expense-section { margin-top: 0; padding-bottom: 14px; background: #f8f6f4; }
.store-expense-grid { padding: 12px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.store-expense-card { min-width: 0; overflow: hidden; border: 1px solid #ebe4df; border-radius: 12px; background: #fff; box-shadow: 0 5px 15px rgba(58,42,32,.035); }
.store-expense-card > header { min-height: 58px; padding: 9px 10px; display: grid; grid-template-columns: minmax(90px,1fr) 78px 64px minmax(122px,.72fr); gap: 8px; align-items: center; border-bottom: 1px solid #efe9e5; background: #fff; }
.store-expense-card > header > div:first-child { min-width: 0; display: flex; align-items: center; gap: 7px; }
.store-expense-card > header > div:first-child span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #f3eeea; color: #978a82; font-size: 9px; font-weight: 750; }
.store-expense-card > header > div:first-child strong { overflow: hidden; color: #3e3733; font-size: 13px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.store-expense-card > header > div:nth-child(2) { text-align: left; }
.store-expense-card > header > div:nth-child(2) b { display: block; color: #4a423d; font-size: 14px; font-weight: 720; font-variant-numeric: tabular-nums; }
.store-expense-card > header > div:nth-child(2) small { display: block; margin-top: 2px; color: #a39790; font-size: 8px; }
.store-growth { justify-self: end; padding: 3px 5px; border-radius: 5px; color: #9d938c; font-size: 9px; font-weight: 650; font-variant-numeric: tabular-nums; background: #f5f2ef; }
.store-growth.up { color: #d84918; background: #fff0e9; }
.store-growth.down { color: #168863; background: #eaf8f2; }
.store-expense-lines { max-height: 230px; padding: 5px 10px 8px; overflow: auto; }
.store-expense-line { min-height: 39px; padding-left: 17px; display: grid; grid-template-columns: minmax(90px,1fr) 78px 64px minmax(122px,.72fr); gap: 8px; align-items: center; border-bottom: 1px dashed #f0ebe7; }
.store-expense-line:last-child { border-bottom: 0; }
.store-expense-line > div:first-child { min-width: 0; }
.store-expense-line > div:first-child strong { display: flex; align-items: center; gap: 7px; overflow: hidden; color: #5f5650; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.store-expense-line > div:first-child strong::before { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #d6c8bf; content: ''; }
.store-expense-line > div:first-child small { display: block; margin-top: 1px; overflow: hidden; color: #aba19b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.store-expense-value { text-align: left; font-variant-numeric: tabular-nums; }
.store-expense-value b { display: block; color: #4d4540; font-size: 11px; font-weight: 680; }
.store-expense-value small { display: block; margin-top: 1px; color: #ae7d67; font-size: 9px; }
.store-expense-share { justify-self: start; padding: 4px 6px; border-radius: 6px; color: #a25f43; font-size: 9px; font-weight: 650; white-space: nowrap; background: #fff1e9; }
.store-expense-insight-label,
.store-expense-insight { min-width: 0; padding-left: 11px; border-left: 1px solid #e2ebf4; color: #7c91a5; font-size: 9px; line-height: 1.5; }
.store-expense-insight-label { font-weight: 650; }
.store-expense-insight { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-expense-empty { min-height: 70px; display: grid; place-items: center; color: #b0a7a1; font-size: 10px; }
.store-expense-card.result { background: #fffaf7; }
.store-expense-card.result > header { background: #fff4ed; }
.store-profit-result { min-height: 117px; padding: 15px 12px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; text-align: center; }
.store-profit-result div span { display: block; margin-bottom: 5px; color: #9d928b; font-size: 9px; }
.store-profit-result div b { color: #3f3834; font-size: 12px; font-weight: 740; font-variant-numeric: tabular-nums; }
.store-profit-result > i { color: #c9bdb6; font-size: 15px; font-style: normal; }
.store-daily-board { min-width: 980px; overflow: hidden; border: 1px solid #ebe4df; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(68, 48, 36, .045); }
.store-daily-board > header { min-height: 58px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ece6e1; background: #fffaf6; }
.store-daily-board > header div { display: flex; align-items: baseline; gap: 10px; }
.store-daily-board > header strong { color: #342f2c; font-size: 16px; font-weight: 650; }
.store-daily-board > header span,
.store-daily-board > header small { color: #958a83; font-size: 11px; }
.store-daily-scroll { max-height: 520px; overflow: auto; }
.store-daily-board table { width: max-content; min-width: 2050px; border-collapse: collapse; }
.store-daily-board th,
.store-daily-board td { height: 58px; padding: 8px 13px; border-bottom: 1px solid #f0ece8; color: #514a45; font-size: 12px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.store-daily-board th { position: sticky; top: 0; z-index: 2; color: #82776f; font-size: 11px; font-weight: 550; background: #f8f6f4; }
.store-daily-board :is(th, td):first-child { position: sticky; left: 0; z-index: 1; min-width: 48px; text-align: center; background: #fff; }
.store-daily-board :is(th, td):nth-child(2) { position: sticky; left: 48px; z-index: 1; min-width: 92px; text-align: left; background: #fff; }
.store-daily-board th:first-child,
.store-daily-board th:nth-child(2) { z-index: 3; background: #f8f6f4; }
.store-daily-board td:nth-child(2) strong { color: #403a36; font-size: 12px; font-weight: 650; }
.store-daily-board td:nth-child(2) small { display: block; margin-top: 2px; color: #a19892; font-size: 10px; }
.store-daily-metric > div { display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; }
.store-daily-metric strong { color: inherit; font-size: 12px; font-weight: 680; }
.store-daily-metric em { color: #9c928c; font-size: 8px; font-style: normal; font-weight: 600; }
.store-daily-metric em.up { color: #d94b1b; }
.store-daily-metric em.down { color: #188662; }
.store-daily-metric small { display: block; margin-top: 4px; color: #a19790; font-size: 8px; text-align: right; }
.store-daily-metric.profit strong { font-weight: 760; }
.store-daily-board tbody tr:hover td { background: #fffaf7; }
.store-daily-board tfoot :is(th,td),
.store-product-section tfoot :is(th,td) { position: sticky; bottom: 0; z-index: 4; height: 42px; border-top: 1px solid #dcd3cd; border-bottom: 0; color: #443d39; font-size: 10px; font-weight: 720; background: #faf7f4; box-shadow: 0 -3px 10px rgba(71,51,38,.035); }
.store-daily-board tfoot th:first-child { left: 0; text-align: left; }
.store-product-section tfoot th { text-align: left; }

/* 店铺分析：信息、经营、售后、利润、商品、分日的可追溯长页 */
.store-analysis-sheet { min-width: 1080px; padding: 14px; display: grid; gap: 12px; border: 1px solid #e8e2dd; border-radius: 18px; background: #f8f6f3; box-shadow: 0 14px 40px rgba(62,44,32,.055); }
.store-sheet-section { overflow: hidden; border: 1px solid #ebe5e0; border-radius: 14px; background: #fff; }
.store-sheet-section > header { min-height: 50px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #eee9e5; background: #fffdfa; }
.store-sheet-section > header strong { color: #332f2c; font-size: 15px; font-weight: 740; }
.store-sheet-section > header span,
.store-sheet-section > header a { color: #9a9089; font-size: 10px; text-decoration: none; }
.store-sheet-section > header a:hover { color: #e34c12; }
.store-source-trigger { cursor: pointer; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.store-source-trigger:hover { border-color: #dbcbbf; background-color: #fffaf7; }
.store-source-trigger:focus-visible { outline: 2px solid rgba(227,76,18,.25); outline-offset: 2px; }
.store-source-trigger::after { pointer-events: none; }

.store-information { min-height: 106px; }
.store-info-compact { min-width: 0; min-height: 104px; padding: 16px 20px; display: grid; grid-template-columns: minmax(280px,1.35fr) repeat(4,minmax(155px,1fr)); align-items: stretch; gap: 0; }
.store-info-identity { min-width: 0; padding-right: 24px; display: flex; justify-content: center; flex-direction: column; }
.store-copy-row { min-width: 0; display: flex; align-items: center; gap: 10px; }
.store-code-copy,
.store-name-copy { min-width: 0; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: copy; }
.store-code-copy { flex: 0 0 auto; padding: 5px 9px; border-radius: 7px; color: #fff; font-size: 10px; font-weight: 720; background: #332f2c; }
.store-name-copy { overflow: hidden; color: #302b28; font-size: 18px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.store-code-copy:hover,
.store-name-copy:hover { color: #e84f20; }
.store-code-copy:hover { color: #fff; background: #e84f20; }
.store-code-copy.is-copied,
.store-name-copy.is-copied { outline: 2px solid rgba(20,148,107,.18); outline-offset: 3px; }
.store-info-identity > small { margin-top: 8px; overflow: hidden; color: #9d938c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.store-info-pair { min-width: 0; margin: 0; padding: 2px 22px; display: grid; align-content: center; gap: 12px; border-left: 1px solid #eee9e5; }
.store-info-pair > div { min-width: 0; }
.store-info-pair dt { margin-bottom: 4px; color: #a29891; font-size: 9px; font-weight: 560; }
.store-info-pair dd { margin: 0; overflow: hidden; color: #4c4541; font-size: 11px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.store-info-pair dd em { margin-left: 6px; color: #958a83; font-size: 8px; font-style: normal; font-weight: 540; }
.store-info-pair dd em.is-urgent { color: #e33f2f; font-size: 11px; font-weight: 720; }

.store-settlement-progress-body { min-height: 92px; padding: 14px 16px; display: grid; grid-template-columns: minmax(360px,1fr) minmax(320px,1.15fr) auto; align-items: center; gap: 26px; }
.store-settlement-counts { min-width: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.store-settlement-counts > div { min-width: 0; padding: 2px 20px; border-right: 1px solid #eee8e3; }
.store-settlement-counts > div:first-child { padding-left: 0; }
.store-settlement-counts > div:last-child { border-right: 0; }
.store-settlement-counts span { display: block; color: #9a9089; font-size: 9px; }
.store-settlement-counts strong { display: block; margin-top: 5px; color: #413a36; font-size: 18px; font-weight: 760; font-variant-numeric: tabular-nums; }
.store-settlement-counts .pending strong { color: #e95621; }
.store-settlement-meter { min-width: 0; }
.store-settlement-meter > div { margin-bottom: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.store-settlement-meter strong { color: #e95621; font-size: 18px; font-weight: 780; font-variant-numeric: tabular-nums; }
.store-settlement-meter span { color: #9c928b; font-size: 9px; font-variant-numeric: tabular-nums; }
.store-settlement-meter > i { height: 7px; display: block; overflow: hidden; border-radius: 99px; background: #eee9e5; }
.store-settlement-meter > i > em { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#ff8b51,#ff5000); transition: width .35s ease; }
.store-settlement-link { min-height: 38px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #f1b69b; border-radius: 9px; color: #e6501b; background: #fff7f2; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.store-settlement-link:hover { border-color: #ff7b3e; color: #d9430e; background: #fff0e8; }
.store-settlement-link.is-disabled { border-color: #e9e4e0; color: #aaa19a; background: #f7f5f3; cursor: default; }

.store-business-grid { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); }
.store-business-grid-operations { grid-template-columns: repeat(6,minmax(0,1fr)); }
.store-business-grid-profit { grid-template-columns: repeat(3,minmax(0,1fr)); }
.store-sheet-section > header.store-business-subheader { min-height: 43px; border-top: 1px solid #eee9e5; }
.store-sheet-section > header.store-business-subheader strong { font-size: 13px; }
.store-business-grid article { min-width: 0; min-height: 105px; padding: 17px 15px; display: flex; justify-content: center; flex-direction: column; border-right: 1px solid #eee9e5; }
.store-business-grid article:last-child { border-right: 0; }
.store-business-grid article > span { color: #928880; font-size: 10px; }
.store-business-grid article > strong,
.store-business-grid .analysis-kpi-value > strong { color: #36312e; font-size: 19px; font-weight: 760; font-variant-numeric: tabular-nums; }
.store-business-grid article > small { min-height: 15px; margin-top: 6px; overflow: hidden; color: #aaa19a; font-size: 10px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.store-business-grid-operations article > small,
.store-business-grid-profit article > small {
    min-height: 30px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.store-after-sale-table { width: 100%; min-width: 820px; table-layout: fixed; border-collapse: collapse; }
.store-after-sale-table :is(th,td) { height: 58px; padding: 9px 18px; border-bottom: 1px solid #f0ebe7; color: #514a45; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.store-after-sale-table thead th { height: 38px; color: #8e847d; font-size: 10px; font-weight: 620; background: #f8f6f4; }
.store-after-sale-table :is(th,td):first-child { width: 21%; text-align: left; }
.store-after-sale-table tbody th { color: #665e59; font-weight: 650; background: #fffdfa; }
.store-after-sale-table td { color: #3e3935; font-size: 14px; font-weight: 680; }
.store-after-sale-table td small { display: block; margin-top: 4px; color: #a19790; font-size: 10px; font-weight: 500; }
.store-after-sale-table tbody tr:last-child :is(th,td) { border-bottom: 0; }

.store-analysis-sheet .store-expense-section { margin: 0; }
.store-product-scroll { max-height: 520px; overflow: auto; }
.store-product-section table { width: 100%; min-width: 2050px; border-collapse: collapse; }
.store-product-section :is(th,td) { height: 54px; padding: 9px 14px; border-bottom: 1px solid #f0ece8; color: #554d48; font-size: 11px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.store-product-section th { position: sticky; top: 0; z-index: 2; height: 38px; color: #8d837c; font-size: 10px; font-weight: 620; background: #f8f6f4; }
.store-product-section :is(th,td):first-child { width: 52px; text-align: center; }
.store-product-section :is(th,td):nth-child(2) { width: 300px; text-align: left; }
.store-product-section td:nth-child(2) strong { max-width: 270px; display: block; overflow: hidden; color: #3c3733; font-size: 12px; text-overflow: ellipsis; }
.store-product-section td:nth-child(2) small { display: block; margin-top: 4px; color: #a09790; font-size: 9px; }
.store-product-section tbody tr:hover td { background: #fff9f5; }
.store-product-section > footer { min-height: 44px; padding: 7px 14px; display: flex; align-items: center; justify-content: space-between; color: #9c928c; font-size: 10px; background: #fffdfa; }
.store-product-section > footer a { color: #b96543; text-decoration: none; }

.store-source-modal-head { margin-bottom: 14px; padding: 3px 2px 13px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #ece6e1; }
.store-source-modal-head > div { min-width: 0; }
.store-source-modal-head > div > span { display: block; margin-bottom: 4px; color: #b06647; font-size: 9px; font-weight: 720; letter-spacing: .08em; }
.store-source-modal-head > div > strong { display: block; overflow: hidden; color: #342f2c; font-size: 19px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.store-source-modal-head > div > small { display: block; margin-top: 5px; color: #9d938c; font-size: 10px; }
.store-source-link { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e8ddd5; border-radius: 8px; color: #6e625b; font-size: 10px; font-weight: 650; text-decoration: none; background: #fffaf6; white-space: nowrap; }
.store-source-link:hover { border-color: #d9b9a7; color: #d9501c; }
.store-source-formula-grid { margin-bottom: 13px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.store-source-formula { min-width: 0; min-height: 88px; padding: 12px; display: flex; justify-content: center; flex-direction: column; border: 1px solid #ece6e1; border-radius: 10px; background: #fbfaf9; }
.store-source-formula > span { color: #9c928b; font-size: 9px; }
.store-source-formula > strong { margin-top: 5px; color: #443d39; font-size: 12px; font-weight: 680; line-height: 1.45; }
.store-source-formula > small { margin-top: 5px; color: #aaa19a; font-size: 8px; line-height: 1.5; }
.store-source-record-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.store-source-record-grid > div { min-height: 72px; padding: 11px; display: flex; justify-content: center; flex-direction: column; border: 1px solid #ece6e1; border-radius: 10px; background: #fbfaf9; }
.store-source-record-grid span { color: #9c928b; font-size: 9px; }
.store-source-record-grid strong { margin-top: 6px; color: #49413d; font-size: 12px; font-weight: 680; }
.store-source-table { max-height: 430px; overflow: auto; border: 1px solid #eae4df; border-radius: 10px; }
.store-source-table table { width: 100%; min-width: 760px; border-collapse: collapse; }
.store-source-table :is(th,td) { height: 39px; padding: 7px 10px; border-bottom: 1px solid #f0ebe7; color: #58504b; font-size: 10px; text-align: left; white-space: nowrap; }
.store-source-table th { position: sticky; top: 0; z-index: 1; color: #8c817a; font-size: 9px; font-weight: 650; background: #f8f6f4; }
.store-source-table tbody tr:last-child td { border-bottom: 0; }
.store-source-table tbody tr:hover td { background: #fff9f5; }
.store-source-profit-equation { min-height: 130px; margin-bottom: 13px; padding: 15px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 15px; align-items: center; border: 1px solid #eae3de; border-radius: 12px; background: #fffaf6; text-align: center; }
.store-source-profit-equation div span { display: block; color: #978c85; font-size: 9px; }
.store-source-profit-equation div strong { display: block; margin-top: 7px; color: #3e3834; font-size: 18px; font-weight: 760; }
.store-source-profit-equation div small { display: block; margin-top: 6px; color: #aaa099; font-size: 8px; }
.store-source-profit-equation > i { color: #cbbdb4; font-size: 20px; font-style: normal; }

@media (max-width: 1250px) {
    .store-info-compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .store-info-pair:nth-child(3),
    .store-info-pair:nth-child(5) { border-left: 0; }
    .store-info-identity,
    .store-info-pair { min-height: 88px; }
    .store-business-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .store-business-grid article:nth-child(3) { border-right: 0; }
    .store-business-grid article:nth-child(-n+3) { border-bottom: 1px solid #eee9e5; }
    .store-business-grid-profit article:nth-child(-n+3) { border-bottom: 0; }
    .store-settlement-progress-body { grid-template-columns: 1fr; gap: 15px; }
    .store-settlement-link { justify-self: start; }
}

@media (max-width: 1180px) {
    .store-profit-board-head { grid-template-columns: 1fr; }
    .store-profit-board-kpis > div:first-child { border-left: 0; }
}

@media (max-width: 1500px) {
    .store-expense-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
    .movement-writeoff-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .movement-writeoff-summary > :is(div, a) { border-bottom: 1px solid #eee7e2; }
}

/* 抖音数据每日导入 */
.douyin-import-panel { padding: 16px; border-color: #ececec; }
.douyin-import-toolbar { min-height: 44px; display: flex; align-items: center; gap: 12px; }
.douyin-import-toolbar .form-select { width: min(420px, 40vw); min-height: 38px; border-color: #dedede; border-radius: 9px; font-size: 12px; }
.douyin-selected-store { min-width: 0; overflow: hidden; color: #888; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.douyin-import-submit { min-height: 36px; margin-left: auto; padding: 0 22px; border: 0; border-radius: 8px; background: #ff5000; color: #fff; font-size: 11px; font-weight: 750; }
.douyin-import-submit:disabled { background: #c9c9c9; cursor: not-allowed; }
.douyin-file-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.douyin-ad-import-note { display:flex; align-items:center; gap:12px; margin-top:14px; padding:11px 14px; border:1px solid #d8e7f7; border-radius:11px; background:#f5f9ff; }
.douyin-ad-import-note strong { color:#3d6492; font-size:12px; }
.douyin-ad-import-note span { color:#73859c; font-size:11px; }
.douyin-file-card-ads_full { border-color:#bcd4f2; background:linear-gradient(145deg,#f7fbff,#edf5ff); }
.douyin-file-card-ads_cube { border-color:#d7ccef; background:linear-gradient(145deg,#fbf9ff,#f3effc); }
.douyin-file-card { position: relative; min-height: 112px; padding: 15px 14px 12px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #e7e7e7; border-radius: 12px; background: #fbfbfb; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.douyin-file-card:hover { transform: translateY(-1px); border-color: #ffc7ab; background: #fffaf7; }
.douyin-file-card.selected { border-color: #ff8b52; background: #fff7f2; box-shadow: 0 7px 20px rgba(255,80,0,.07); }
.douyin-file-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.douyin-file-index { color: #b6b6b6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.douyin-file-card strong { margin-top: 7px; color: #222; font-size: 14px; }
.douyin-file-card small { margin-top: 3px; color: #888; font-size: 10px; }
.douyin-file-card em { margin-top: auto; overflow: hidden; color: #ff5000; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.douyin-import-error { margin: 11px 0 0; color: #d9363e; font-size: 11px; }
.douyin-data-summary { margin: 12px 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.douyin-data-summary article { min-height: 68px; padding: 12px 15px; display: flex; align-items: baseline; gap: 5px; border: 1px solid #ececec; border-radius: 11px; background: #fff; }
.douyin-data-summary span { margin-right: auto; color: #777; font-size: 10px; }
.douyin-data-summary strong { color: #222; font-size: 20px; line-height: 1; }
.douyin-data-summary small { color: #aaa; font-size: 9px; }
.douyin-history-panel { padding: 0; overflow: hidden; }
.douyin-history-toolbar { min-height: 46px; padding: 0 15px; display: flex; align-items: center; border-bottom: 1px solid #ededed; }
.douyin-history-toolbar strong { color: #333; font-size: 12px; }
.douyin-history-toolbar a { margin-left: auto; color: #ff5000; font-size: 10px; text-decoration: none; }
.douyin-history-scroll { max-height: calc(100vh - 385px); overflow: auto; }
.douyin-history-table { min-width: 1050px; table-layout: fixed; }
.douyin-history-table th:nth-child(1) { width: 150px; }
.douyin-history-table th:nth-child(2) { width: 105px; }
.douyin-history-table th:nth-child(3) { width: 105px; }
.douyin-history-table th:nth-child(4) { width: 280px; }
.douyin-history-table th:nth-child(n+5):nth-child(-n+8) { width: 78px; }
.douyin-history-table th:nth-child(9) { width: 105px; }
.douyin-history-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jushuitan-auto-store { color: #555; font-size: 12px; font-weight: 700; }
.jushuitan-file-grid { max-width: 680px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jushuitan-data-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jushuitan-history-table { min-width: 1000px; table-layout: fixed; }
.jushuitan-history-table th:nth-child(1) { width: 150px; }
.jushuitan-history-table th:nth-child(2), .jushuitan-history-table th:nth-child(3) { width: 100px; }
.jushuitan-history-table th:nth-child(4) { width: 280px; }
.jushuitan-history-table th:nth-child(n+5):nth-child(-n+8) { width: 78px; }
.jushuitan-history-table th:nth-child(9) { width: 105px; }
.jushuitan-history-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) {
    .douyin-file-grid, .douyin-data-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .douyin-import-toolbar { align-items: stretch; flex-wrap: wrap; }
    .douyin-import-toolbar .form-select { width: 100%; }
    .douyin-import-submit { margin-left: 0; }
}
@media (max-width: 620px) {
    .douyin-file-grid, .douyin-data-summary { grid-template-columns: 1fr; }
}

body[data-page-module="basic-management"] .management-modal .company-document-control {
    display: flex;
    grid-column: 2;
    align-items: center;
    gap: 10px;
    width: 500px;
    min-width: 0;
}
body[data-page-module="basic-management"] .management-modal .company-document-control > .form-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 38px;
}
@media (max-width: 760px) {
    body[data-page-module="basic-management"] .management-modal .company-document-control {
        grid-column: 2;
        width: 100%;
    }
}

/* 电商商品墙：商品解析与商品管理共用 */
.market-search-shell {
    position: relative;
    min-height: 92px;
    padding: 18px 28px;
    display: grid;
    grid-template-columns: 155px minmax(0, 980px);
    justify-content: center;
    align-items: center;
    gap: 22px;
    border: 1px solid #ececec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(23,23,23,.05);
}
.market-search-brand { display: flex; align-items: baseline; gap: 8px; }
.market-search-brand span { color: var(--tiffany); font-size: 31px; font-weight: 900; letter-spacing: -.08em; }
.market-search-brand strong { color: #191919; font-size: 15px; line-height: 1; white-space: nowrap; }
.market-search-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.market-search-tabs { height: 28px; display: flex; align-items: center; gap: 12px; color: #999; font-size: 10px; }
.market-search-tabs strong { color: var(--tiffany); font-size: 11px; }
.market-search-form { height: 52px; display: grid; grid-template-columns: minmax(0, 1fr) 118px; border: 3px solid var(--tiffany); border-radius: 26px; background: #fff; }
.market-search-input { min-width: 0; padding: 0 9px 0 17px; display: flex; align-items: center; gap: 10px; }
.market-link-search-icon { position: relative; width: 18px; height: 18px; flex: 0 0 18px; }
.market-link-search-icon::before { content: ""; position: absolute; left: 1px; top: 1px; width: 12px; height: 12px; border: 2px solid #b7b7b7; border-radius: 50%; }
.market-link-search-icon::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 7px; height: 2px; border-radius: 2px; background: #b7b7b7; transform: rotate(45deg); transform-origin: right center; }
.market-search-input input { min-width: 0; width: 100%; border: 0; outline: 0; color: #333; font-size: 13px; }
.market-search-input input::placeholder { color: #aaa; }
.market-search-form > button { margin: -1px; border: 0; border-radius: 0 25px 25px 0; background: linear-gradient(90deg, var(--tiffany-bright), var(--tiffany)); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.market-search-form > button:disabled { opacity: .55; cursor: wait; }
.market-search-tools { display: flex; align-items: center; justify-content: flex-end; }
.market-search-tools button { min-height: 30px; padding: 0 12px; border: 1px solid #e6e6e6; border-radius: 15px; background: #fafafa; color: #555; font-size: 9px; font-weight: 700; }
.market-search-tools button:hover { border-color: var(--tiffany-line); color: var(--tiffany); }
.market-search-tools button:disabled { opacity: .5; cursor: wait; }
.market-result-section { margin-top: 18px; }
.market-result-heading { min-height: 68px; padding: 12px 2px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.market-result-heading h2 { margin: 0 0 4px; color: #222; font-size: 19px; font-weight: 800; }
.market-result-heading p { margin: 0; color: #999; font-size: 9px; }
.market-select-all { min-height: 30px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e5e5e5; border-radius: 7px; background: #fff; color: #666; font-size: 9px; }
.market-select-all input { width: 13px; height: 13px; accent-color: var(--tiffany); }
.market-result-section .batch-export-button { border-color: var(--tiffany); background: var(--tiffany); }

.market-product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 14px; align-items: start; }
.market-product-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid #ededed; border-radius: 11px; background: #fff; box-shadow: 0 3px 14px rgba(0,0,0,.035); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.market-product-card:hover { transform: translateY(-2px); border-color: var(--tiffany-line); box-shadow: 0 10px 28px rgba(0,0,0,.09); }
.market-card-overlays { position: absolute; z-index: 4; top: 8px; right: 8px; left: 8px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.market-card-overlays > * { pointer-events: auto; }
.market-overlay-left { display: flex; align-items: center; gap: 5px; }
.market-card-check { width: 19px; height: 19px; padding: 0; display: grid; place-items: center; background: transparent; }
.market-card-check input { width: 19px; height: 19px; margin: 0; accent-color: var(--tiffany); cursor: pointer; filter: drop-shadow(0 2px 4px rgba(0,0,0,.16)); }
.market-card-overlays .row-status { box-shadow: 0 2px 9px rgba(0,0,0,.08); }
.market-card-delete { width: 25px; height: 25px; padding: 0 0 2px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: #777; font-size: 17px; line-height: 1; box-shadow: 0 2px 9px rgba(0,0,0,.13); }
.market-card-delete:hover { background: #ff0036; color: #fff; }
.market-card-delete.pending-delete { position: absolute; z-index: 4; top: 8px; right: 8px; }
.market-product-image { position: relative; width: 100%; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; display: grid; place-items: center; border: 0; background: #f6f6f6; }
.market-product-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .28s ease; }
.market-product-card:hover .market-product-image img { transform: scale(1.025); }
.market-image-hint { position: absolute; left: 8px; bottom: 8px; min-height: 24px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 12px; background: rgba(0,0,0,.68); color: #fff; font-size: 8px; opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; }
.market-product-image:hover .market-image-hint { opacity: 1; transform: none; }
.market-image-price { position: absolute; right: 8px; bottom: 8px; min-height: 28px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 7px; background: rgba(255,255,255,.94); color: var(--tiffany-dark); font-size: 17px; font-weight: 850; font-style: normal; letter-spacing: -.03em; box-shadow: 0 2px 9px rgba(0,0,0,.1); }
.market-image-price.missing { color: #d74455; font-size: 10px; }
.market-product-image .product-image-empty { font-size: 10px; }
.market-product-body { padding: 10px 11px 9px; display: grid; gap: 7px; }
.market-product-title-line { min-height: 42px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; }
.market-product-price { min-height: 22px; display: flex; align-items: center; justify-content: flex-end; color: #e1251b; font-size: 17px; font-weight: 850; letter-spacing: -.035em; white-space: nowrap; }
.market-product-price.missing { color: #d74455; font-size: 11px; }
.market-product-title { height: 42px; display: -webkit-box; overflow: hidden; color: #111; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 14px; font-weight: 900; line-height: 21px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.market-card-identity { display: grid; grid-template-columns: 1fr; gap: 5px; }
.market-card-identity input { min-width: 0; width: 100%; height: 27px; padding: 0 7px; overflow: hidden; border: 1px solid #ededed; border-radius: 6px; outline: 0; text-overflow: ellipsis; }
.market-card-identity input:focus { border-color: var(--tiffany-bright); box-shadow: 0 0 0 2px rgba(105,146,166,.09); }
.market-item-value { background: #f3f3f3; color: #555; font: 10.5px ui-monospace, "Cascadia Mono", monospace; }
.market-category-value { background: #f3f3f3; color: #555; font-size: 10.5px; font-weight: 700; }
.market-category-value.unmatched { background: #fff4f3; color: #d9473c; }
.market-card-item { height: 30px; display: grid; grid-template-columns: 35px minmax(0, 1fr); align-items: center; }
.market-card-item > span { color: #999; font-size: 8px; font-weight: 650; }
.market-card-item input { min-width: 0; height: 29px; padding: 0 6px; border: 0; border-bottom: 1px solid #ededed; outline: 0; color: #222; font-size: 12px; font-weight: 800; }
.market-card-item input:focus { border-bottom-color: var(--tiffany); }
.market-product-name { width: 100%; height: 42px; padding: 0; overflow: hidden; resize: none; border: 0; border-bottom: 1px solid transparent; outline: 0; background: transparent; color: #222; font: 760 13px/20px "Microsoft YaHei", sans-serif; }
.market-product-name:focus { border-bottom-color: var(--tiffany); }
.market-card-price-line { min-height: 23px; display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
.market-card-price-line strong { min-width: 0; overflow: hidden; color: var(--tiffany-dark); font-size: 17px; font-weight: 850; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.market-card-price-line span { flex: 0 0 auto; color: #999; font-size: 8px; }
.market-card-code-grid { display: grid; grid-template-columns: 1fr 1.3fr .65fr; gap: 4px; }
.market-card-code-grid label { min-width: 0; color: #999; font-size: 8px; }
.market-card-code-grid input { width: 100%; height: 25px; margin-top: 3px; padding: 0 5px; overflow: hidden; border: 1px solid #ededed; border-radius: 5px; outline: 0; color: #555; font: 8.5px ui-monospace, "Cascadia Mono", monospace; text-overflow: ellipsis; }
.market-card-code-grid input:focus { border-color: var(--tiffany-bright); }
.market-card-select { height: 31px; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; border: 1px solid #ededed; border-radius: 6px; }
.market-card-select > span { padding-left: 7px; color: #888; font-size: 8.5px; font-weight: 650; }
.market-card-select input { min-width: 0; width: 100%; height: 29px; padding: 0 6px; border: 0; outline: 0; background: transparent; color: #4d4d4d; font-size: 9.5px; font-weight: 600; text-overflow: ellipsis; }
.market-card-select input.unmatched { background: #fff4f3; color: #d9473c; }
.market-card-spec { display: block; min-height: 80px; }
.market-card-spec > span { padding-top: 5px; color: #888; font-size: 8px; font-weight: 650; }
.market-card-spec .spu-spec-grid { min-height: 80px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 24px; gap: 4px; align-content: start; }
.market-card-spec .spu-spec-chip { position: relative; width: 100%; max-width: none; height: 24px; display: block; overflow: visible; border-color: #e1e1e1; border-radius: 6px; background: #f3f3f3; }
.market-card-spec .spu-spec-chip input { width: 100%; height: 22px; padding: 0 3px; color: #555; font-size: 9.5px; font-weight: 680; }
.market-size-spec .spu-spec-chip { border-color: #e1e1e1; background: #f3f3f3; }
.market-size-spec .spu-spec-chip input { color: #555; }
.market-card-spec .spu-spec-chip button { position: absolute; z-index: 2; top: -7px; right: -7px; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: #ff0036; color: #fff; font-size: 10px; line-height: 1; opacity: 0; pointer-events: none; box-shadow: 0 1px 5px rgba(0,0,0,.15); transition: opacity .15s ease; }
.market-card-spec .spu-spec-chip:hover button,
.market-card-spec .spu-spec-chip:focus-within button { opacity: 1; pointer-events: auto; }
.market-card-spec .add-spec-chip { width: 100%; height: 24px; border-color: #d9d9d9; border-radius: 6px; background: #f3f3f3; color: #777; }
.market-card-data-footer { min-height: 31px; margin-top: 2px; padding-top: 6px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; border-top: 1px solid #f0f0f0; }
.market-data-completeness { white-space: nowrap; font-size: 10px; font-weight: 700; }
.market-data-completeness.complete { color: var(--tiffany-dark); }
.market-data-completeness.incomplete { color: #d74455; }
.market-card-shop { position: relative; min-width: 0; min-height: 24px; padding-left: 17px; display: flex; align-items: center; justify-content: flex-end; }
.market-card-shop::before { content: ""; position: absolute; left: 1px; top: 7px; width: 11px; height: 9px; border: 1px solid #aaa; border-top-width: 3px; border-radius: 2px; }
.market-card-shop > span { color: #999; font-size: 8px; }
.market-card-shop input { min-width: 0; width: 100%; height: 26px; padding: 0; border: 0; outline: 0; background: transparent; color: #555; font-size: 10.5px; font-weight: 700; text-align: right; text-overflow: ellipsis; }
.market-card-shop input:focus { color: var(--tiffany-dark); }
.market-card-shop input.unmatched { color: #d9473c; }
.market-grid-empty { grid-column: 1 / -1; min-height: 260px; display: grid; place-items: center; border: 1px dashed #dedede; border-radius: 12px; background: #fafafa; color: #aaa; font-size: 11px; }
.market-product-pending { min-height: 390px; padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 18px; text-align: center; }
.market-pending-visual span { width: 62px; height: 62px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--tiffany-soft); color: var(--tiffany-dark); font-size: 13px; font-weight: 800; }
.market-product-pending.parsing .market-pending-visual span { animation: liveStatusPulse 1s ease-in-out infinite; }
.market-pending-copy { display: grid; gap: 8px; }
.market-pending-copy strong { overflow: hidden; color: #555; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.market-pending-copy small { color: #999; font-size: 8px; line-height: 1.5; }
.market-pending-actions { display: flex; justify-content: center; gap: 7px; }
.market-pending-actions button { min-height: 28px; padding: 0 10px; border: 1px solid #eee; border-radius: 6px; background: #fff; color: #777; font-size: 8px; }

.sku-modal-heading { justify-content: flex-start; }
.sku-modal-heading > img { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 8px; object-fit: cover; background: #f3f3f3; }
.sku-modal-heading > div { min-width: 0; flex: 1; }
.modal-sku-table { min-width: 1180px; }
.modal-sku-table th:first-child { width: 260px; }
.modal-sku-image { display: grid; grid-template-columns: 42px minmax(150px, 1fr); gap: 7px; align-items: center; }
.modal-sku-image img,
.modal-sku-image > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 6px; object-fit: cover; background: #f2f2f2; color: #aaa; font-size: 7px; }
.modal-sku-image input { min-width: 0; width: 100%; height: 29px; padding: 0 7px; border: 1px solid #dedfe7; border-radius: 6px; color: #666; font-size: 8px; }

@media (max-width: 1180px) {
    .market-search-shell { grid-template-columns: 150px minmax(0, 1fr); padding-right: 22px; padding-left: 22px; }
    .market-product-grid { gap: 12px 10px; }
}
@media (max-width: 900px) {
    .market-search-shell { grid-template-columns: 1fr; gap: 8px; }
    .market-search-brand { padding-top: 0; justify-self: center; }
    .market-search-shell .parse-security-note { grid-column: 1; }
    .market-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .market-result-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
    .market-search-form { grid-template-columns: minmax(0, 1fr) 92px; }
    .market-search-tools { align-items: flex-start; flex-direction: column; }
    .market-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.catalog-heading { margin-bottom: 17px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.catalog-heading h1 { margin: 0 0 5px; font-size: 26px; font-weight: 800; }
.catalog-heading > div > p:last-child { margin: 0; color: #888; font-size: 10px; }
.catalog-toolbar { margin-bottom: 18px; padding: 13px; }
.catalog-toolbar form { display: grid; grid-template-columns: minmax(260px, 1fr) 190px 160px 110px 100px; gap: 8px; }
.catalog-search { min-width: 0; height: 38px; padding: 0 11px; display: flex; align-items: center; gap: 8px; border: 2px solid var(--tiffany); border-radius: 19px; }
.catalog-search-icon { position: relative; width: 14px; height: 14px; flex: 0 0 14px; }
.catalog-search-icon::before { content: ""; position: absolute; left: 1px; top: 1px; width: 9px; height: 9px; border: 2px solid var(--tiffany); border-radius: 50%; }
.catalog-search-icon::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 6px; height: 2px; border-radius: 2px; background: var(--tiffany); transform: rotate(45deg); transform-origin: right center; }
.catalog-search input { min-width: 0; flex: 1; border: 0; outline: 0; font-size: 10px; }
.catalog-toolbar .form-select { height: 38px; border-color: #e3e3e3; border-radius: 8px; color: #555; font-size: 9px; }
.catalog-toolbar form > button { border: 0; border-radius: 8px; background: var(--tiffany); color: #fff; font-size: 10px; font-weight: 750; }
.catalog-bulk-toolbar { min-height: 35px; margin-top: 10px; padding-top: 9px; display: flex; align-items: center; gap: 12px; border-top: 1px solid #f0f0f0; color: #777; font-size: 9px; }
.catalog-bulk-toolbar label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.catalog-bulk-toolbar input { width: 15px; height: 15px; accent-color: var(--tiffany); }
.catalog-bulk-toolbar > button { min-height: 29px; margin-left: auto; padding: 0 13px; border: 1px solid #ffb3c3; border-radius: 7px; background: #fff6f8; color: #df173f; font-size: 9px; font-weight: 700; }
.catalog-bulk-toolbar > button:disabled { border-color: #e7e7e7; background: #f6f6f6; color: #aaa; cursor: not-allowed; }
.catalog-bulk-toolbar small { color: #178a54; font-size: 9px; }
.catalog-bulk-toolbar small.error { color: #d83b50; }
.product-catalog-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 14px; align-items: start; }
.catalog-product-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid #ededed; border-radius: 10px; background: #fff; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.catalog-product-card:hover,
.catalog-product-card:focus-visible { transform: translateY(-2px); border-color: var(--tiffany-line); outline: 0; box-shadow: 0 10px 28px rgba(0,0,0,.09); }
.catalog-product-card.selected { border-color: var(--tiffany); box-shadow: 0 0 0 2px rgba(105,146,166,.12); }
.catalog-product-select { position: absolute; z-index: 3; left: 9px; top: 9px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.93); box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; }
.catalog-product-select input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.catalog-product-select span { width: 14px; height: 14px; display: grid; place-items: center; border: 1px solid #bbb; border-radius: 4px; background: #fff; }
.catalog-product-select input:checked + span { border-color: var(--tiffany); background: var(--tiffany); }
.catalog-product-select input:checked + span::after { content: ""; width: 7px; height: 4px; margin-top: -2px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.catalog-product-select input:focus-visible + span { outline: 2px solid rgba(105,146,166,.3); outline-offset: 2px; }
.catalog-product-image { position: relative; width: 100%; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; display: grid; place-items: center; border: 0; background: #f6f6f6; color: #aaa; font-size: 10px; }
.catalog-product-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.catalog-product-card:hover .catalog-product-image img { transform: scale(1.025); }
.catalog-product-image em { position: absolute; right: 8px; bottom: 8px; min-height: 25px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 13px; background: rgba(0,0,0,.68); color: #fff; font-size: 8px; font-style: normal; opacity: 0; transition: opacity .18s ease; }
.catalog-product-card:hover .catalog-product-image em { opacity: 1; }
.catalog-product-body { padding: 11px 10px 10px; display: grid; gap: 7px; }
.catalog-product-body h2 { height: 34px; margin: 0; overflow: hidden; color: #252525; font-size: 11px; font-weight: 720; line-height: 17px; }
.catalog-style-line,
.catalog-price-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.catalog-style-line strong { overflow: hidden; color: #777; font: 8px ui-monospace, "Cascadia Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.catalog-style-line span { flex: 0 0 auto; padding: 3px 6px; border-radius: 5px; background: #f1f1f1; color: #777; font-size: 7px; }
.catalog-price-line { padding: 2px 0; }
.catalog-price-line > strong { color: #e1251b; font-size: 17px; }
.catalog-price-line > strong small { margin-left: 2px; font-size: 7px; }
.catalog-price-line > span { color: #aaa; font-size: 8px; }
.catalog-product-body > p { margin: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 5px; color: #999; font-size: 7.5px; }
.catalog-product-body > p strong { overflow: hidden; color: #5d5d5d; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.catalog-spec-line { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 5px; color: #aaa; font-size: 7px; }
.catalog-spec-line > div { display: flex; flex-wrap: wrap; gap: 3px; }
.catalog-spec-line i { padding: 2px 4px; border-radius: 4px; background: #f5f5f5; color: #777; font-size: 7px; font-style: normal; }
.catalog-manage-button { min-height: 29px; margin-top: 2px; border: 1px solid var(--tiffany-line); border-radius: 6px; background: var(--tiffany-soft); color: var(--tiffany-dark); font-size: 8px; font-weight: 720; }
.catalog-empty { grid-column: 1 / -1; min-height: 330px; display: grid; place-items: center; border: 1px dashed #ddd; border-radius: 12px; background: #fafafa; color: #999; font-size: 11px; }
.catalog-pagination { min-height: 62px; margin-top: 18px; padding: 9px 2px; display: flex; align-items: center; justify-content: space-between; color: #999; font-size: 9px; }
.catalog-pagination > div { display: flex; gap: 5px; }
.catalog-pagination a,
.catalog-pagination > div > span { min-width: 30px; height: 30px; padding: 0 7px; display: grid; place-items: center; border: 1px solid #e5e5e5; border-radius: 6px; background: #fff; color: #666; }
.catalog-pagination a.active { border-color: var(--tiffany); background: var(--tiffany); color: #fff; }

.product-manage-dialog { width: min(96vw, 1680px); max-width: min(96vw, 1680px) !important; }
.product-manage-spu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.product-manage-spu-grid label { min-width: 0; display: grid; gap: 5px; color: #676767; font-size: 8px; font-weight: 700; }
.product-manage-spu-grid label.span-2 { grid-column: span 2; }
.product-manage-spu-grid .form-control,
.product-manage-spu-grid .form-select { min-height: 34px; border-color: #dedede; border-radius: 7px; font-size: 9px; }
.product-manage-sku-section { margin-top: 16px; overflow: hidden; border: 1px solid #e8e8e8; border-radius: 10px; }
.product-manage-sku-section > div:first-child { min-height: 48px; padding: 8px 11px; display: flex; align-items: center; justify-content: space-between; background: #fafafa; }
.product-manage-sku-section small { display: block; color: var(--tiffany-dark); font-size: 6.5px; font-weight: 750; letter-spacing: .1em; }
.product-manage-sku-section h3 { margin: 2px 0 0; font-size: 11px; }
.product-manage-sku-section > div:first-child > button { min-height: 29px; padding: 0 10px; border: 1px solid #ddd; border-radius: 6px; background: #fff; color: #555; font-size: 8px; }
.product-manage-sku-table { width: 100%; min-width: 1350px; table-layout: fixed; border-collapse: collapse; }
.product-manage-sku-table th { height: 34px; padding: 0 5px; background: #f4f4f4; color: #777; font-size: 7.5px; text-align: left; }
.product-manage-sku-table td { height: 42px; padding: 4px 3px; border-top: 1px solid #eee; }
.product-manage-sku-table th:nth-child(1) { width: 275px; }
.product-manage-sku-table th:nth-child(2) { width: 230px; }
.product-manage-sku-table th:nth-child(3) { width: 100px; }
.product-manage-sku-table th:nth-child(4) { width: 80px; }
.product-manage-sku-table th:nth-child(5),
.product-manage-sku-table th:nth-child(6) { width: 90px; }
.product-manage-sku-table th:nth-child(7) { width: 75px; }
.product-manage-sku-table th:nth-child(8) { width: 40px; }
.product-manage-sku-table .form-control { width: 100%; min-height: 30px; height: 30px; padding: 3px 6px; border-radius: 6px; font-size: 8px; }
.managed-sku-image { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 5px; }
.managed-sku-image img { width: 38px; height: 30px; border-radius: 5px; object-fit: cover; background: #f2f2f2; }
.managed-sku-remove { width: 28px; height: 28px; border: 1px solid #ffc9d4; border-radius: 6px; background: #fff6f8; color: #ff0036; font-size: 15px; }
.product-manage-error { margin: 12px 0 0; padding: 9px 11px; border-radius: 7px; background: #fff0f1; color: #d83b50; font-size: 9px; }
.product-manage-dialog .modal-footer > span { margin-right: auto; color: #888; font-size: 9px; }
.product-delete-trigger { min-height: 34px; padding: 0 14px; border: 1px solid #f0b5bd; border-radius: 8px; background: #fff7f8; color: #c92f43; font-size: 10px; font-weight: 700; }
.product-delete-dialog { width: min(92vw, 430px); max-width: min(92vw, 430px); }
.product-delete-confirm-body { display: grid; gap: 9px; }
.product-delete-confirm-body > p:first-child { margin: 0 0 4px; color: #555; font-size: 12px; line-height: 1.65; }
.product-delete-confirm-body > label { color: #555; font-size: 11px; font-weight: 700; }
.product-delete-confirm-body > .form-control { min-height: 40px; border-color: #ddd; border-radius: 8px; font-size: 13px; }
.product-delete-confirm-submit { min-height: 34px; padding: 0 16px; border: 0; border-radius: 8px; background: #d9394f; color: #fff; font-size: 10px; font-weight: 750; }
.product-delete-confirm-submit:disabled { opacity: .62; cursor: wait; }

@media (max-width: 1180px) {
    .catalog-toolbar form { grid-template-columns: minmax(220px, 1fr) 160px 130px 100px 90px; }
    .product-catalog-grid { gap: 12px 10px; }
}
@media (max-width: 900px) {
    .catalog-toolbar form { grid-template-columns: 1fr 1fr; }
    .catalog-search { grid-column: 1 / -1; }
    .product-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-manage-spu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .catalog-heading { align-items: flex-start; flex-direction: column; }
    .product-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-manage-spu-grid { grid-template-columns: 1fr; }
    .product-manage-spu-grid label.span-2 { grid-column: span 1; }
}

/* 全系统统一为商品管理页的宽度与电商管理视觉 */
:root {
    --tiffany: #6992a6;
    --tiffany-dark: #536f83;
    --tiffany-hover: #5e8296;
    --tiffany-bright: #a8c6d3;
    --tiffany-soft: #eff4f7;
    --tiffany-line: #d5e1e7;
    --ink: #252525;
    --muted: #888;
    --line: #ededed;
    --canvas: #f6f6f6;
    --card: #fff;
    --coral: #e5484d;
    --coral-soft: #fff0f0;
    --indigo: #8583ad;
    --indigo-soft: #f0eff7;
    --teal: #6992a6;
    --teal-soft: #eff4f7;
    --shadow: 0 3px 14px rgba(0,0,0,.035);
}

body { background: var(--canvas); color: var(--ink); }
.content-wrap,
.content-wrap:has(.batch-parse-launcher) {
    width: 100%;
    max-width: 1500px;
    margin-right: auto;
    margin-left: auto;
    padding: 22px 26px;
}
.document-page-width { width: 100%; max-width: none; margin-right: 0; margin-left: 0; }

.sidebar { border-right-color: #e7e7e7; background: #fff; }
.brand-mark { background: var(--tiffany); color: #fff; }
.nav-item.active {
    border-color: var(--tiffany-line);
    background: var(--tiffany-soft);
    color: #252525;
    box-shadow: inset 3px 0 0 var(--tiffany);
}
.nav-item:hover { background: #f6f6f6; }
.nav-icon,
.nav-item.active .nav-icon { color: var(--tiffany-dark); }
.topbar { border-bottom-color: #ededed; background: rgba(255,255,255,.96); }
.system-status i { background: var(--tiffany); box-shadow: 0 0 0 4px var(--tiffany-soft); }

.page-heading { min-height: 62px; margin-bottom: 16px; align-items: center; }
.page-heading h1 { margin-bottom: 4px; color: #222; font-size: 26px; font-weight: 800; letter-spacing: -.035em; }
.page-heading p:not(.eyebrow) { color: #888; font-size: 10px; }
.eyebrow { margin-bottom: 4px; color: var(--tiffany-dark); font-size: 8px; letter-spacing: .12em; }
.heading-stat,
.balance-overview span {
    border: 1px solid #ededed;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.panel-card,
.metric-card,
.management-modal {
    border-color: #ededed;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
}
.data-panel { overflow: hidden; }
.quick-filter-row {
    min-height: 46px;
    padding-right: 13px;
    padding-left: 13px;
    border-bottom-color: #ededed;
    background: #fff;
}
.quick-filter { color: #777; font-size: 9px; }
.quick-filter.active { color: var(--tiffany-dark); }
.quick-filter.active::after { background: var(--tiffany); }
.data-toolbar,
.business-toolbar {
    min-height: 68px;
    padding: 11px 13px;
    border-bottom-color: #ededed;
    background: #fff;
}

.search-control {
    width: min(360px, 32vw);
    height: 38px;
    padding: 0 11px;
    gap: 8px;
    border: 2px solid var(--tiffany);
    border-radius: 19px;
    background: #fff;
}
.search-control > span {
    position: relative;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    overflow: hidden;
    color: transparent;
    font-size: 0;
}
.search-control > span::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 1px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--tiffany);
    border-radius: 50%;
}
.search-control > span::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--tiffany);
    transform: rotate(45deg);
    transform-origin: right center;
}
.search-control input { color: #333; font-size: 10px; }
.search-control:focus-within { border-color: var(--tiffany); box-shadow: 0 0 0 3px rgba(105,146,166,.1); }
.form-control,
.form-select,
.spu-cell-input,
.supplier-match-select {
    border-color: #dedede;
    border-radius: 7px;
    background-color: #fff;
}
.form-control:focus,
.form-select:focus,
.spu-cell-input:focus,
.supplier-match-select:focus {
    border-color: var(--tiffany-bright);
    box-shadow: 0 0 0 3px rgba(105,146,166,.1);
}

.btn-primary-custom,
.parse-action-button {
    min-height: 38px;
    border-color: var(--tiffany);
    border-radius: 8px;
    background: var(--tiffany);
    color: #fff;
    box-shadow: none;
    font-size: 10px;
    font-weight: 750;
}
.btn-primary-custom:hover,
.parse-action-button:hover { border-color: var(--tiffany-hover); background: var(--tiffany-hover); }
.btn-light-custom,
.btn-danger-soft {
    min-height: 34px;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 700;
}
.btn-light-custom { border-color: #dedede; background: #fff; color: #555; }
.btn-light-custom:hover { border-color: var(--tiffany-line); background: var(--tiffany-soft); color: var(--tiffany-dark); }
.btn-danger-soft { border-color: #ffc2cf; background: #fff4f6; color: #df173f; }
.btn-text-custom,
.action-link { color: var(--tiffany-dark); }
.action-link:hover { color: var(--tiffany); }
.action-link.danger,
.action-link.danger:hover { color: #d83b50; }
.form-check-input:checked { border-color: var(--tiffany); background-color: var(--tiffany); }

.management-table thead th {
    height: 38px;
    padding: 0 8px;
    border-bottom-color: #ededed;
    background: #fafafa;
    color: #777;
    font-size: 9px;
    font-weight: 700;
}
.management-table tbody td {
    height: 46px;
    padding: 7px 8px;
    border-bottom-color: #f0f0f0;
    color: #555;
    font-size: 9px;
}
.management-table tbody tr:hover td { background: #f2fbfa; }
.clickable-data-row:hover td:first-child,
.clickable-data-row:focus-visible td:first-child { box-shadow: inset 3px 0 0 var(--tiffany); }
.clickable-data-row:hover [data-row-primary-action] { color: var(--tiffany-dark); }
.code-badge { background: var(--tiffany-soft); color: var(--tiffany-dark); }
.category-badge { background: #f5f5f5; color: #666; }
.recon-status.pending { background: #fff2f4; color: #df173f; }

.pagination-bar {
    min-height: 56px;
    padding: 9px 13px;
    border-top-color: #ededed;
    color: #999;
    font-size: 9px;
}
.pagination-links a,
.pagination-links > span {
    min-width: 30px;
    height: 30px;
    border-color: #e5e5e5;
    border-radius: 6px;
    background: #fff;
    color: #666;
}
.pagination-links a.active { border-color: var(--tiffany); background: var(--tiffany); color: #fff; }
.catalog-bulk-toolbar small:not(.error) { color: var(--tiffany-dark); }

.metric-grid { gap: 14px; }
.metric-card { min-height: 155px; padding: 20px; }
.metric-icon { border-radius: 9px; }
.progress-panel,
.quick-panel { padding: 20px; }
.management-modal .modal-header,
.management-modal .modal-footer { border-color: #ededed; }
.login-state-chip.ready i,
.tech-progress-track i,
.scanner-orbit::after { background: var(--tiffany); }
.tech-progress-track i { box-shadow: 0 0 12px rgba(105,146,166,.3); }
.scanner-orbit::after { box-shadow: 0 0 14px var(--tiffany-bright); }
.document-items-heading small,
.document-items-total strong,
.recon-pane-heading small,
.recon-pane-heading > strong,
.recon-amount-input,
.money-cell.accent,
.recon-order-tags b { color: var(--tiffany-dark) !important; }
.product-code-copy { color: var(--tiffany-dark); text-decoration-color: rgba(105,146,166,.3); }
.product-code-copy:hover { background: var(--tiffany-soft); text-decoration-color: var(--tiffany); }
.recon-order-row:hover,
.recon-order-row.active { border-color: var(--tiffany-line); box-shadow: 0 0 0 2px rgba(105,146,166,.08); }
.recon-order-row:focus-visible { outline-color: rgba(105,146,166,.35); }
.recon-image-copy { border-color: var(--tiffany-line); background: var(--tiffany-soft); color: var(--tiffany-dark); }
.recon-image-copy:hover { border-color: var(--tiffany-bright); background: #e8f0f4; }
.copy-group-button { border-color: var(--tiffany-line); color: var(--tiffany-dark); }
.recon-confirm-button { border-color: var(--tiffany-line); color: var(--tiffany-dark); }

@media (max-width: 900px) {
    .content-wrap,
    .content-wrap:has(.batch-parse-launcher) { padding: 20px; }
    .page-heading { align-items: flex-start; }
    .search-control { width: 100%; min-width: 0; }
}

@media (max-width: 620px) {
    .content-wrap,
    .content-wrap:has(.batch-parse-launcher) { padding: 16px 14px; }
}

/* 浅色磨砂科技主题与全系统可读性 */
body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 74% 4%, rgba(168,198,211,.22), transparent 28%),
        radial-gradient(circle at 91% 40%, rgba(176,173,207,.16), transparent 25%),
        radial-gradient(circle at 36% 96%, rgba(151,184,207,.12), transparent 27%),
        #f2f4f5;
    background-attachment: fixed;
    font-size: 14px;
}

.sidebar {
    border-right: 1px solid rgba(255,255,255,.72);
    background: rgba(249,251,251,.82);
    box-shadow: 18px 0 52px rgba(56,73,78,.055);
    backdrop-filter: blur(24px) saturate(118%);
}
.topbar {
    border-bottom-color: rgba(255,255,255,.78);
    background: rgba(250,252,252,.74);
    box-shadow: 0 8px 30px rgba(65,79,84,.045);
    backdrop-filter: blur(24px) saturate(120%);
}
.nav-item { transition: background .38s cubic-bezier(.22,1,.36,1), color .38s ease, box-shadow .38s ease, transform .38s cubic-bezier(.22,1,.36,1); }
.nav-item:hover { transform: translateX(1px); background: rgba(255,255,255,.72); }
.nav-item.active {
    border-color: rgba(168,198,211,.44);
    background: linear-gradient(110deg, rgba(168,198,211,.23), rgba(255,255,255,.68));
    box-shadow: inset 2px 0 0 var(--tiffany), 0 8px 22px rgba(105,146,166,.09);
}
.nav-icon {
    height: 27px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(120,135,140,.10);
    border-radius: 8px;
    background: rgba(255,255,255,.48);
    font-weight: 500;
    transition: border-color .38s ease, background-color .38s ease, color .38s ease, box-shadow .38s ease;
}
.nav-item.active .nav-icon {
    border-color: rgba(168,198,211,.52);
    background: rgba(234,249,248,.82);
    box-shadow: 0 0 18px rgba(168,198,211,.18);
}
.system-status { padding: 7px 10px; border: 1px solid rgba(255,255,255,.78); border-radius: 999px; background: rgba(255,255,255,.52); }
.user-chip { padding: 5px 8px 5px 5px; border: 1px solid rgba(255,255,255,.78); border-radius: 13px; background: rgba(255,255,255,.52); }

.panel-card,
.metric-card,
.management-modal,
.market-search-shell,
.catalog-toolbar,
.market-product-card,
.catalog-product-card {
    border-color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.74);
    box-shadow: 0 12px 38px rgba(56,70,76,.065), inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter: blur(18px) saturate(112%);
}
.panel-card,
.metric-card,
.market-product-card,
.catalog-product-card,
.btn-primary-custom,
.btn-light-custom,
.parse-action-button,
.search-control,
.form-control,
.form-select {
    transition: border-color .38s ease, background-color .38s ease, box-shadow .38s ease, color .38s ease, transform .38s cubic-bezier(.22,1,.36,1);
}
.panel-card:hover,
.metric-card:hover { border-color: rgba(213,225,231,.90); box-shadow: 0 16px 44px rgba(57,75,80,.085), 0 0 28px rgba(168,198,211,.09); }

.market-search-shell { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; }
.market-search-shell::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 240px;
    right: 7%;
    top: -145px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,198,211,.34), rgba(176,173,207,.15) 48%, transparent 72%);
    filter: blur(9px);
    animation: ambientGlow 9s ease-in-out infinite alternate;
}
.market-search-shell::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(255,255,255,.95), rgba(168,198,211,.52), rgba(176,173,207,.28), rgba(255,255,255,.82));
    pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.market-search-form {
    border: 2px solid rgba(168,198,211,.90);
    background: rgba(255,255,255,.84);
    box-shadow: 0 12px 34px rgba(105,146,166,.12), 0 0 0 5px rgba(168,198,211,.08);
    transition: border-color .42s ease, box-shadow .42s ease, background-color .42s ease;
}
.market-search-form:focus-within {
    border-color: var(--tiffany);
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 42px rgba(105,146,166,.17), 0 0 0 7px rgba(168,198,211,.12);
}
.market-search-form > button { background: linear-gradient(115deg, #a5b9cc, #879fb5 54%, #718fa8); transition: filter .4s ease, box-shadow .4s ease; }
.market-search-form > button:hover { filter: saturate(108%) brightness(1.02); box-shadow: -10px 0 28px rgba(105,146,166,.14); }
.search-control:focus-within,
.catalog-search:focus-within { box-shadow: 0 0 0 5px rgba(168,198,211,.11), 0 8px 24px rgba(105,146,166,.09); }

.market-product-card,
.catalog-product-card { border-radius: 15px; transition-duration: .42s; }
.market-product-card:hover,
.catalog-product-card:hover,
.catalog-product-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(168,198,211,.76);
    box-shadow: 0 18px 46px rgba(54,72,78,.105), 0 0 26px rgba(168,198,211,.09);
}
.market-product-card { animation: softCardIn .48s cubic-bezier(.22,1,.36,1) both; }
.market-product-card:nth-child(2n) { animation-delay: .035s; }
.market-product-card:nth-child(3n) { animation-delay: .07s; }
.market-product-image img,
.catalog-product-image img { transition: transform .55s cubic-bezier(.22,1,.36,1), filter .55s ease; }
.market-product-card:hover .market-product-image img,
.catalog-product-card:hover .catalog-product-image img { transform: scale(1.018); filter: saturate(1.02); }

/* 页面通用字号：原来 6–9px 的文本统一提升 */
.brand small { font-size: 9.5px; }
.nav-section { font-size: 11.5px; }
.topbar-title { font-size: 14px; }
.system-status { font-size: 12.5px; }
.user-meta strong { font-size: 13px; }
.user-meta small { font-size: 11px; }
.eyebrow { font-size: 10.5px; }
.page-heading p:not(.eyebrow),
.catalog-heading > div > p:last-child { font-size: 12px; }
.quick-filter,
.date-filter,
.per-page-select,
.compact-select { font-size: 12px; }
.search-control input,
.catalog-search input,
.form-control,
.form-select,
.supplier-match-select { font-size: 12px; }
.btn-primary-custom,
.btn-light-custom,
.btn-danger-soft,
.btn-text-custom,
.action-link { font-size: 11.5px; }
.management-table { font-size: 11.5px; }
.management-table thead th { height: 42px; font-size: 11px; }
.management-table tbody td { height: 50px; font-size: 11.5px; }
.mono-text { font-size: 10.5px; }
.pagination-bar,
.catalog-pagination { font-size: 11px; }
.form-field label,
.product-manage-spu-grid label { font-size: 11px; }
.form-field small,
.heading-stat small,
.detail-summary span,
.supplier-code-line { font-size: 10.5px; }
.status-badge,
.recon-status,
.row-status { font-size: 10px; }

/* 商品解析与商品管理字号 */
.market-search-tools button,
.market-select-all,
.batch-summary span,
.batch-summary button { font-size: 11px; }
.market-image-hint { font-size: 10px; }
.market-card-identity input { height: 30px; font-size: 10.5px; }
.market-card-spec .spu-spec-chip input { font-size: 9.5px; }
.market-card-spec .add-spec-chip { font-size: 12px; }
.market-data-completeness { font-size: 10px; }
.market-card-shop input { font-size: 10.5px; }
.market-pending-copy strong,
.market-pending-copy small,
.market-pending-actions button { font-size: 10.5px; }
.catalog-search input,
.catalog-toolbar .form-select,
.catalog-toolbar form > button,
.catalog-bulk-toolbar,
.catalog-bulk-toolbar > button,
.catalog-bulk-toolbar small { font-size: 11px; }
.catalog-product-body h2 { height: 40px; font-size: 13px; line-height: 20px; }
.catalog-style-line strong { font-size: 10px; }
.catalog-style-line span,
.catalog-price-line > strong small,
.catalog-price-line > span { font-size: 9.5px; }
.catalog-product-body > p,
.catalog-spec-line,
.catalog-spec-line i { font-size: 9.5px; }
.catalog-manage-button { min-height: 32px; font-size: 10.5px; }
.product-manage-spu-grid .form-control,
.product-manage-spu-grid .form-select,
.product-manage-sku-table .form-control { font-size: 10.5px; }
.product-manage-sku-section small { font-size: 9.5px; }
.product-manage-sku-section h3 { font-size: 13px; }
.product-manage-sku-section > div:first-child > button,
.product-manage-sku-table th,
.product-manage-dialog .modal-footer > span { font-size: 10px; }

/* 单据、对账与余额页面字号 */
.document-items-heading small,
.recon-workbench-header .eyebrow,
.recon-pane-heading small { font-size: 9.5px; }
.document-items-heading h3,
.recon-pane-heading h3 { font-size: 13px; }
.document-items-heading .btn-light-custom,
.document-item-input,
.document-items-table th,
.document-items-table td,
.recon-items-table th,
.recon-items-table tbody td { font-size: 10.5px; }
.recon-workbench-header small,
.recon-supplier-info small,
.recon-pane-heading > span,
.recon-order-title small,
.recon-order-meta span,
.recon-order-extra,
.recon-order-identity small,
.recon-original-amount small,
.recon-confirm-amount small { font-size: 9.5px; }
.recon-supplier-info strong,
.recon-order-title strong,
.recon-order-meta strong,
.recon-order-identity strong,
.recon-original-amount strong,
.recon-amount-input { font-size: 10.5px; }
.recon-order-tags i,
.recon-order-tags b { font-size: 9px; line-height: 20px; }
.recon-balance-cards small,
.recon-balance-cards em,
.recon-bottom-info small { font-size: 9.5px; }
.recon-balance-cards strong,
.recon-bottom-info strong { font-size: 12.5px; }
.recon-image-copy,
.copy-group-button { font-size: 10.5px; }
.balance-table .action-link { font-size: 11px; }
.balance-number { font-size: 13px; }
.sku-spec-controls label,
.sku-spec-controls input,
.sku-spec-controls button,
.modal-sku-table,
.modal-sku-table th,
.modal-price-input,
.batch-modal-footer span,
.batch-modal-footer button,
.modal-sku-image input { font-size: 10.5px; }

/* 极简列表页：综合搜索在上，快捷筛选与功能区在下 */
.data-panel { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; }
.data-panel > .data-toolbar { order: 1; }
.data-panel > .quick-filter-row { order: 2; }
.data-panel > .table-responsive { width: 100%; order: 3; }
.data-panel > .pagination-bar { order: 4; }
.data-panel {
    gap: 12px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}
.data-toolbar,
.business-toolbar {
    position: relative;
    min-height: 96px;
    padding: 17px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 11px 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 22px;
    background: rgba(255,255,255,.70);
    box-shadow: 0 13px 38px rgba(63,77,84,.065), inset 0 1px 0 rgba(255,255,255,.94);
    backdrop-filter: blur(20px) saturate(112%);
}
.data-toolbar::before,
.business-toolbar::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 150px;
    right: 9%;
    top: -112px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,198,211,.24), rgba(176,173,207,.10) 48%, transparent 72%);
    filter: blur(8px);
    pointer-events: none;
}
.data-toolbar > .filter-form,
.business-toolbar > .filter-form {
    position: relative;
    z-index: 1;
    width: 100%;
    flex: 1 1 100%;
    flex-wrap: wrap;
}
.data-toolbar > .toolbar-actions,
.business-toolbar > .toolbar-actions {
    position: relative;
    z-index: 1;
    width: 100%;
    flex: 1 1 100%;
    margin-left: 0;
    padding-top: 10px;
    justify-content: flex-end;
    border-top: 1px solid rgba(218,224,228,.66);
}
.data-toolbar > form:not(.filter-form),
.business-toolbar > form:not(.filter-form) {
    position: relative;
    z-index: 1;
    margin-left: auto;
}
.quick-filter-row {
    min-height: 46px;
    padding: 0 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 14px;
    background: rgba(246,248,249,.66);
    box-shadow: 0 8px 26px rgba(64,78,84,.045), inset 0 1px 0 rgba(255,255,255,.92);
    backdrop-filter: blur(15px);
}
.data-panel > .table-responsive {
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,.84);
    border-radius: 17px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 13px 38px rgba(63,77,84,.06), inset 0 1px 0 rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
}
.data-panel > .pagination-bar {
    border: 1px solid rgba(255,255,255,.80);
    border-radius: 14px;
    background: rgba(248,249,250,.64);
    box-shadow: 0 8px 24px rgba(63,77,84,.04);
}
.catalog-toolbar {
    padding: 17px 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 22px;
    background: rgba(255,255,255,.70);
    box-shadow: 0 13px 38px rgba(63,77,84,.065), inset 0 1px 0 rgba(255,255,255,.94);
    backdrop-filter: blur(20px) saturate(112%);
}
.catalog-search {
    height: 50px;
    padding: 0 15px;
    border: 2px solid rgba(168,198,211,.88);
    border-radius: 25px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 9px 28px rgba(105,146,166,.08), 0 0 0 4px rgba(168,198,211,.055);
    transition: border-color .4s ease, background-color .4s ease, box-shadow .4s ease;
}
.catalog-search:focus-within {
    border-color: var(--tiffany);
    background: #fff;
    box-shadow: 0 13px 34px rgba(105,146,166,.13), 0 0 0 6px rgba(168,198,211,.09);
}
.catalog-toolbar .form-select,
.catalog-toolbar form > button { height: 50px; }
.catalog-bulk-toolbar { min-height: 43px; padding-top: 11px; }
.search-control {
    width: auto;
    min-width: min(470px, 100%);
    height: 50px;
    flex: 1 1 470px;
    padding: 0 15px;
    border: 2px solid rgba(168,198,211,.88);
    border-radius: 25px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 9px 28px rgba(105,146,166,.08), 0 0 0 4px rgba(168,198,211,.055);
}
.search-control:focus-within {
    border-color: var(--tiffany);
    background: #fff;
    box-shadow: 0 13px 34px rgba(105,146,166,.13), 0 0 0 6px rgba(168,198,211,.09);
}
.btn-primary-custom,
.parse-action-button {
    background: linear-gradient(115deg, #91a8bb, #718fa8);
    box-shadow: 0 9px 25px rgba(83,111,131,.13);
}
.brand-mark { background: linear-gradient(135deg, #8798b7, #739ca4 58%, #9ba5bd); box-shadow: 0 10px 25px rgba(91,116,135,.16); }

.clickable-data-row { cursor: pointer; }
.clickable-data-row td { transition: background-color .32s ease, color .32s ease, box-shadow .32s ease; }
.clickable-data-row:hover td { background: rgba(239,244,247,.78); }
.clickable-data-row:hover td:first-child,
.clickable-data-row:focus-visible td:first-child { box-shadow: inset 2px 0 0 var(--tiffany), -8px 0 26px rgba(168,198,211,.08); }
.cell-direct-action { cursor: pointer; transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.cell-direct-action:hover { background: rgba(213,225,231,.52) !important; color: var(--tiffany-dark); box-shadow: inset 0 -1px 0 rgba(105,146,166,.24); }

@media (max-width: 1180px) {
    .search-control { min-width: min(380px, 100%); flex-basis: 380px; }
}

@media (max-width: 900px) {
    .data-toolbar,
    .business-toolbar { align-items: stretch; flex-direction: column; }
    .search-control { width: 100%; }
}

@keyframes softCardIn {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ambientGlow {
    from { transform: translate3d(-18px, 0, 0) scale(.96); opacity: .72; }
    to { transform: translate3d(22px, 16px, 0) scale(1.08); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 固定尺寸对账工作台：只展示必要数据 */
.recon-workbench-dialog {
    width: min(1420px, calc(100vw - 40px));
    max-width: min(1420px, calc(100vw - 40px)) !important;
    height: auto;
    max-height: calc(100vh - 32px);
    margin: 16px auto;
}
.recon-workbench {
    --recon-surface: #f6f7f8;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 32px);
    background: var(--recon-surface);
}
.recon-workbench form { width: 100%; height: auto; min-height: 0; }
.recon-workbench .recon-workbench-header { min-height: 52px; padding: 9px 12px; background: transparent; }
.recon-workbench-header .modal-title { margin: 0; font-size: 17px; }
.recon-workbench .modal-body { padding: 12px; flex: 0 1 auto; overflow: auto; background: transparent; }
.recon-supplier-info {
    min-height: 56px;
    margin-bottom: 10px;
    padding: 0;
    grid-template-columns: .85fr 1.15fr 1.25fr .9fr .9fr 1.2fr;
    gap: 8px;
    border: 0;
    background: transparent;
}
.recon-supplier-info > div {
    min-height: 50px;
    padding: 8px 10px;
    border: 1px solid rgba(218,224,228,.88);
    border-radius: 10px;
    background: rgba(255,255,255,.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.90);
}
.recon-supplier-info > div:last-child { border-right: 1px solid rgba(218,224,228,.88); }
.recon-supplier-info small {
    margin-bottom: 4px;
    color: #8c949d;
    font-size: 10px;
    font-weight: 550;
    letter-spacing: .01em;
}
.recon-supplier-info strong {
    color: #303741;
    font-size: 11.5px;
    font-weight: 650;
}
.recon-copy-value {
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: #343541;
    font-size: 11.5px;
    font-weight: 650;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: color .25s ease, text-shadow .25s ease;
}
.recon-copy-value:not(:disabled):hover,
.recon-copy-value:not(:disabled):focus-visible { color: var(--tiffany-dark); outline: 0; text-shadow: 0 0 14px rgba(105,146,166,.22); }
.recon-copy-value:disabled { color: #9a9ca8; cursor: default; }
.recon-copy-value.is-copied,
.product-code-copy.is-copied { color: var(--tiffany-dark); text-shadow: 0 0 12px rgba(105,146,166,.25); }
.recon-workbench-grid {
    min-height: 0;
    height: 497px;
    flex: 0 0 497px;
    grid-template-columns: minmax(0, 1.04fr) minmax(460px, .96fr);
    overflow: hidden;
}
.recon-preview-pane,
.recon-list-pane { min-height: 0; background: transparent; }
.recon-workbench .recon-pane-heading,
.recon-workbench .recon-order-list,
.recon-workbench .recon-settlement-panel { background: transparent; }
.recon-preview-scroll { min-height: 0; flex: 1; overflow: hidden; }
.recon-order-preview { height: 100%; min-height: 0; padding: 0; display: flex; flex-direction: column; }
.recon-items-wrap {
    min-height: 0;
    flex: 1;
    overflow: auto;
    border: 0;
    border-radius: 0;
}
.recon-items-table thead { position: sticky; z-index: 2; top: 0; }
.recon-items-table thead th { background: rgba(244,246,247,.96); backdrop-filter: blur(10px); }
.recon-item-pagination {
    min-height: 40px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid var(--line);
    background: rgba(248,249,250,.86);
}
.recon-item-pagination[hidden] { display: none !important; }
.recon-item-pagination button,
.recon-item-pagination span {
    width: 30px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid #dfe3e6;
    border-radius: 8px;
    background: #fff;
    color: #606973;
    font-size: 12px;
}
.recon-item-pagination span { width: auto; min-width: 48px; padding: 0 8px; }
.recon-item-pagination button:disabled { opacity: .32; }
.recon-total-heading { min-height: 46px; justify-content: flex-end; }
.recon-order-list {
    min-height: 300px;
    height: 300px;
    max-height: 300px;
    flex: 0 0 300px;
}
.recon-order-row {
    min-height: 50px;
    margin-bottom: 6px;
    padding: 3px 28px 3px 7px;
    grid-template-columns: 27px minmax(128px, 1fr) 80px 104px;
}
.recon-order-identity strong { line-height: 12px; }
.recon-order-identity small,
.recon-original-amount small,
.recon-confirm-amount small { line-height: 11px; }
.recon-order-tags { margin-top: 1px; }
.recon-order-tags i,
.recon-order-tags b { line-height: 16px; }
.recon-amount-input { width: 100px; min-height: 26px; height: 26px; }
.recon-settlement-panel { flex: 0 0 auto; min-height: 0; padding: 7px 7px 10px; }
.recon-balance-cards span { min-height: 68px; padding-top: 7px; padding-bottom: 7px; }
.recon-balance-cards em {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.4;
}
.recon-bottom-info { min-height: 38px; margin: 6px 0 8px; padding: 2px 0; align-items: center; }
.recon-balance-cards {
    cursor: pointer;
    border-radius: 10px;
    transition: box-shadow .32s ease, background-color .32s ease;
}
.recon-balance-cards:hover,
.recon-balance-cards:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(168,198,211,.13), 0 10px 25px rgba(80,102,112,.07); }
.recon-balance-cards.is-copying { opacity: .72; }
.recon-balance-cards.is-copied { box-shadow: 0 0 0 3px rgba(105,146,166,.20), 0 0 24px rgba(168,198,211,.20); }
.recon-bottom-info {
    min-height: 42px;
    margin-top: 8px;
    padding: 5px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    background: transparent;
}
.recon-calculation-input {
    min-width: 0;
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #dde2e5;
    border-radius: 9px;
    outline: 0;
    background: rgba(247,248,249,.88);
    color: #313741;
    font: 11px ui-monospace, "Cascadia Mono", monospace;
}
.recon-calculation-input:focus { border-color: var(--tiffany-bright); box-shadow: 0 0 0 3px rgba(168,198,211,.11); }
.recon-calculation-result {
    min-width: 58px;
    height: 34px;
    padding: 0;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #303741 !important;
    font: 750 13px ui-monospace, "Cascadia Mono", monospace;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recon-workbench .recon-workbench-footer {
    min-height: 54px;
    padding: 9px 12px;
    background: transparent;
}

/* 全站保持极简：移除仅用于说明和装饰的英文副标题与悬浮提示。 */
.modal-header .eyebrow,
.panel-heading .eyebrow,
.page-heading .eyebrow,
.empty-state .eyebrow,
.metric-foot,
.document-items-heading small,
.product-manage-sku-section small,
.market-image-hint { display: none !important; }

/* 禧悦品牌印章：使用定稿原图，通过视窗裁切保留小篆印文与 XI / YUE。 */
.brand {
    height: 96px;
    padding: 8px 18px;
    justify-content: center;
    overflow: hidden;
}

.brand-logo-viewport {
    position: relative;
    width: 60px;
    height: 80px;
    flex: 0 0 60px;
    overflow: hidden;
    border-radius: 2px;
}

.brand-logo-viewport img {
    position: absolute;
    top: calc(50% + 3px);
    left: 50%;
    width: 181px;
    max-width: none;
    height: auto;
    transform: translate(-50%, -50%);
    user-select: none;
    pointer-events: none;
}

/* 一级模块导航：悬停后从右侧展开当前模块的页面入口。 */
.sidebar-nav {
    padding: 14px 16px 28px;
}

.nav-dashboard,
.nav-group {
    margin: 5px 0;
}

.nav-group {
    position: relative;
}

.nav-primary {
    width: 100%;
    min-height: 52px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: #505b60;
    font: inherit;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: .01em;
    text-align: left;
    cursor: pointer;
    transition: color .22s ease, background .28s ease, border-color .28s ease, box-shadow .28s ease, transform .28s cubic-bezier(.22,1,.36,1);
}

.nav-primary .nav-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 10px;
    font-size: 17px;
}

.nav-primary:hover,
.nav-primary:focus-visible,
.nav-group.active > .nav-primary,
.nav-dashboard.active {
    border-color: rgba(146,177,188,.35);
    outline: none;
    background: linear-gradient(115deg, rgba(255,255,255,.9), rgba(218,232,236,.48));
    color: #20292d;
    box-shadow: 0 10px 28px rgba(76,102,112,.09), inset 2px 0 0 #79a8b4;
    transform: translateX(2px);
}

.nav-chevron {
    margin-left: auto;
    color: #9aa8ad;
    font-size: 23px;
    font-weight: 300;
    transition: transform .22s ease, color .22s ease;
}

.nav-group:hover .nav-chevron {
    color: #597a83;
    transform: translateX(2px);
}

.nav-flyout {
    position: absolute;
    z-index: 90;
    top: -8px;
    left: calc(100% + 12px);
    width: 258px;
    max-height: calc(100vh - 24px);
    padding: 12px;
    display: grid;
    gap: 4px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 17px;
    background: rgba(249,251,251,.92);
    box-shadow: 0 22px 68px rgba(45,64,71,.18), inset 0 1px 0 rgba(255,255,255,.94);
    backdrop-filter: blur(24px) saturate(125%);
    transform: translate3d(-8px,0,0);
    transition: opacity .18s ease, transform .24s cubic-bezier(.22,1,.36,1), visibility .18s ease;
}

.nav-flyout-wide {
    width: 360px;
    grid-template-columns: repeat(2, minmax(0,1fr));
}

.nav-flyout-title {
    display: none;
}

.nav-flyout-wide .nav-flyout-title {
    grid-column: 1 / -1;
}

.nav-subitem {
    min-height: 43px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #5a6468;
    font-size: 14.5px;
    font-weight: 580;
    transition: color .2s ease, background .24s ease, border-color .24s ease, transform .24s ease;
}

.nav-subitem i {
    margin-left: auto;
    color: #a7b0b4;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
}

.nav-subitem:hover,
.nav-subitem.active {
    border-color: rgba(148,181,191,.28);
    background: rgba(225,237,240,.58);
    color: #243338;
    transform: translateX(2px);
}

.nav-group::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 16px;
    height: 100%;
}

@media (min-width: 901px) {
    .sidebar { overflow: visible; }
    .nav-group:hover > .nav-flyout {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translate3d(0,0,0);
    }
}

@media (max-width: 900px) {
    .brand { height: 88px; }
    .brand-logo-viewport { width: 56px; height: 72px; flex-basis: 56px; }
    .brand-logo-viewport img { width: 169px; }
    .sidebar { overflow-y: auto; }
    .nav-flyout,
    .nav-flyout-wide {
        position: static;
        width: auto;
        max-height: none;
        margin: 5px 0 9px 10px;
        display: none;
        grid-template-columns: 1fr;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        box-shadow: none;
        transform: none;
    }
    .nav-group.open > .nav-flyout { display: grid; }
    .nav-flyout-wide .nav-flyout-title { grid-column: auto; }
    .nav-group.open .nav-chevron { transform: rotate(90deg); }
}

.pagination-links a,
.pagination-links span,
.catalog-pagination a,
.catalog-pagination > div > span { white-space: nowrap; }

.pagination-links .disabled,
.catalog-pagination .disabled {
    opacity: .42;
    cursor: default;
    user-select: none;
}

/* 人事中心 */
.hr-data-panel { width: 100%; }
.hr-management-table { min-width: 1420px; }
.hr-management-table tbody td { max-width: 260px; }
.hr-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.hr-form-grid .form-field.span-2 { grid-column: span 2; }
.hr-form-grid textarea.form-control { min-height: 82px; resize: vertical; }
.hr-toolbar .search-control { min-width: 260px; }

@media (max-width: 1200px) {
    .hr-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .hr-form-grid { grid-template-columns: 1fr; }
    .hr-form-grid .form-field.span-2 { grid-column: span 1; }
}

/* 登录、员工注册 */
.auth-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 16% 12%, rgba(207, 232, 236, .48), transparent 33%),
        radial-gradient(circle at 84% 88%, rgba(225, 214, 235, .38), transparent 36%),
        #f4f5f5;
    color: #30363b;
}
.auth-shell { width: min(1120px, calc(100% - 32px)); margin: 32px auto; }
.auth-shell-compact { width: min(480px, calc(100% - 32px)); margin-top: 8vh; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 14px; }
.auth-brand .brand-logo-viewport { height: 82px; }
.auth-card {
    padding: 30px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 24px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 24px 70px rgba(59,70,75,.10);
    backdrop-filter: blur(24px);
}
.auth-card h1 { margin: 0 0 24px; font-size: 22px; font-weight: 760; }
.auth-card-heading { display: flex; justify-content: space-between; align-items: center; }
.auth-card-heading a, .auth-secondary-link { color: #657981; text-decoration: none; font-size: 13px; }
.auth-form { display: grid; gap: 16px; }
.auth-form label, .auth-register-form label { display: grid; gap: 7px; color: #5d676c; font-size: 13px; font-weight: 650; }
.auth-form button { min-height: 44px; margin-top: 4px; }
.auth-secondary-link { display: block; margin-top: 18px; text-align: center; }
.auth-register-card { padding: 28px 32px 34px; }
.auth-register-form { margin-top: 20px; }
.auth-register-form .span-2 { grid-column: span 2; }
.auth-register-form em { color: #bd3d3d; font-style: normal; }

/* 页面权限 */
.permission-table { min-width: 980px; }
.permission-account-strip {
    display: flex;
    align-items: end;
    gap: 20px;
    padding: 12px;
    border-radius: 14px;
    background: #f5f7f7;
}
.permission-account-strip label { display: grid; gap: 6px; min-width: 220px; font-size: 13px; color: #687176; }
.permission-account-strip .permission-active {
    display: flex;
    min-width: auto;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid #d7e0e5;
    border-radius: 10px;
    background: #fff;
    color: #5f6d75;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.permission-account-strip .permission-active.is-selected {
    border-color: var(--tiffany);
    background: var(--tiffany-soft);
    color: var(--tiffany-dark);
    box-shadow: inset 3px 0 0 var(--tiffany);
}
.permission-selection-guide {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 2px;
    color: #7b878e;
    font-size: 12px;
}
.permission-selection-guide span {
    min-height: 27px;
    padding: 4px 9px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #d7e0e5;
    border-radius: 7px;
    background: #fff;
    color: #6f7c84;
    font-weight: 700;
}
.permission-selection-guide .is-selected {
    border-color: var(--tiffany);
    background: var(--tiffany);
    color: #fff;
}
.permission-selection-guide small { margin-left: 2px; color: #8b969c; }
.permission-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.permission-groups section { padding: 14px; border: 1px solid #e5e8e9; border-radius: 14px; background: rgba(255,255,255,.76); }
.permission-group-title { display: flex; justify-content: space-between; margin-bottom: 10px; }
.permission-group-title button { border: 0; background: transparent; color: #748a92; font-size: 12px; }
.permission-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.permission-check-grid label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid #dbe3e7;
    border-radius: 9px;
    background: #fff;
    color: #52616a;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.permission-check-grid label:hover {
    border-color: var(--tiffany-bright);
    background: #f7fafb;
}
.permission-check-grid label:focus-within {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(105,146,166,.16);
}
.permission-check-grid label.is-selected {
    border-color: var(--tiffany);
    background: linear-gradient(90deg, var(--tiffany-soft), #f8fbfc);
    color: #354f5e;
    box-shadow: inset 4px 0 0 var(--tiffany), 0 3px 10px rgba(83,111,131,.08);
}
.permission-check-grid label > span { min-width: 0; flex: 1; font-weight: 650; }
.permission-check-grid label.is-selected::after {
    content: "已勾选";
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 5px;
    background: var(--tiffany);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}
#permissionModal .form-check-input {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    margin: 0;
    border: 2px solid #93a7b2;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
}
#permissionModal .form-check-input:checked {
    border-color: var(--tiffany-dark);
    background-color: var(--tiffany-dark);
    box-shadow: 0 0 0 3px rgba(105,146,166,.18);
}
#permissionModal .form-check-input:disabled { cursor: not-allowed; opacity: .72; }
#permissionModal label:has(.form-check-input:disabled) { cursor: not-allowed; }
.self-service-card { padding: 18px; }
.application-status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.application-status-strip span {
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid #e3e7e8;
    border-radius: 11px;
    background: #f5f7f7;
    color: #7b8589;
    font-size: 12px;
}
.application-status-strip strong { margin-left: 8px; color: #30373a; }
.self-onboarding-form em { color: #bd3d3d; font-style: normal; }
.self-onboarding-form > button { grid-column: span 2; justify-self: end; min-width: 180px; }
.approved-application-state { min-height: 180px; display: grid; place-content: center; gap: 8px; text-align: center; }
.approved-application-state strong { font-size: 20px; }
.approved-application-state span { color: #7b8589; }
.employee-summary-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.employee-summary-strip span { padding: 12px; border-radius: 12px; background: #f4f6f6; }
.employee-summary-strip small { display: block; margin-bottom: 5px; color: #8a9296; font-size: 11px; }
.employee-summary-strip strong { font-size: 14px; }
.self-application-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.self-application-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 650; }
.self-application-form button { grid-column: 1 / -1; justify-self: end; min-width: 160px; }
.topbar-actions form { margin: 0; }

@media (max-width: 800px) {
    .auth-register-form, .permission-groups, .self-application-form { grid-template-columns: 1fr; }
    .auth-register-form .span-2 { grid-column: span 1; }
    .employee-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .self-onboarding-form > button { grid-column: span 1; width: 100%; }
}

/* 经营记账 */
.form-check-field { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; padding-top: 25px; }
.project-store-select { min-height: 132px; }
.category-board { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; }
.category-board > section { padding: 15px; border: 1px solid #e5e8e9; border-radius: 15px; background: rgba(255,255,255,.7); }
.category-board h3, .analysis-block h3 { margin: 0 0 12px; font-size: 15px; font-weight: 760; }
.category-family { margin-top: 10px; padding: 10px; border-radius: 12px; background: #f5f7f7; }
.category-family button { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 8px; background: #fff; color: #4f595e; padding: 7px 10px; font-size: 13px; }
.category-family > button { width: 100%; text-align: left; }
.category-family > button strong { font-size: 14px; }
.category-family button:hover { color: #2979a7; box-shadow: 0 4px 14px rgba(72,126,153,.09); }
.category-family button i { margin-left: auto; padding: 2px 7px; border-radius: 999px; background: #eaf4f8; color: #648391; font-size: 10px; font-style: normal; }
.category-family button em { padding: 2px 7px; border-radius: 999px; background: #f3eeee; color: #a57474; font-size: 10px; font-style: normal; }
.category-family.is-inactive,
.category-family button.is-inactive { opacity: .62; }
.category-family > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.category-family > div span { color: #9aa1a4; font-size: 12px; }
.category-family > div .category-code-v6,
.category-code-v6 { color: #78909a; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; letter-spacing: .02em; }
.category-master-panel-v6 .business-toolbar > div:first-child { max-width: 760px; }
.category-master-note-v6 { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e2eaec; border-radius: 11px; background: #f7fafb; color: #7a898f; font-size: 12px; }
.category-master-note-v6 strong { color: #56727c; white-space: nowrap; }

/* 员工独立报销申请 */
.reimbursement-apply-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.reimbursement-employee-bar {
    margin-bottom: 15px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 15px;
    background: rgba(255,255,255,.7);
    box-shadow: 0 10px 32px rgba(56,70,76,.055);
    backdrop-filter: blur(18px);
}

.reimbursement-avatar {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    border: 1px solid rgba(125,163,174,.24);
    border-radius: 13px;
    background: linear-gradient(145deg, #edf5f6, #fff);
    color: #53747d;
    font-size: 17px;
    font-weight: 760;
}

.reimbursement-employee-bar strong,
.reimbursement-employee-bar span { display: block; }
.reimbursement-employee-bar strong { color: #263034; font-size: 16px; }
.reimbursement-employee-bar div > span { margin-top: 3px; color: #8a9599; font-size: 12px; }
.reimbursement-employee-bar > a { margin-left: auto; color: #607f88; font-size: 13px; font-weight: 650; }

.reimbursement-apply-form { overflow: hidden; }
.reimbursement-form-section { padding: 24px 28px; border-bottom: 1px solid rgba(219,226,228,.75); }
.reimbursement-form-section h2 { margin: 0 0 17px; color: #263034; font-size: 17px; font-weight: 760; }
.reimbursement-form-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.reimbursement-form-grid .span-all { grid-column: 1 / -1; }
.reimbursement-form-grid .form-field { color: #647075; font-size: 13px; font-weight: 650; }
.reimbursement-form-grid .form-control,
.reimbursement-form-grid .form-select { min-height: 44px; font-size: 14px; }
.reimbursement-form-grid textarea.form-control { min-height: 96px; resize: vertical; }
.money-input { position: relative; }
.money-input > span { position: absolute; z-index: 2; top: 50%; left: 13px; color: #b14d52; transform: translateY(-50%); }
.money-input .form-control { padding-left: 31px; }
.reimbursement-upload > span { color: #98a1a5; font-size: 12px; font-weight: 500; }
.reimbursement-submit-bar { padding: 17px 28px; display: flex; justify-content: flex-end; gap: 10px; background: rgba(248,250,250,.72); }
.reimbursement-record-owner { display: flex; align-items: baseline; gap: 10px; }
.reimbursement-record-owner strong { font-size: 16px; }
.reimbursement-record-owner span { color: #90999d; font-size: 12px; }

/* 员工自助：入职、转正与报销统一分组表单 */
.employee-application-card { padding: 0; overflow: hidden; }
.employee-self-form { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; }
.employee-photo-panel { position: sticky; top: 20px; display: grid; justify-items: center; gap: 10px; margin: 24px 0 24px 24px; padding: 22px 16px; border: 1px solid #eee7e2; border-radius: 16px; background: #fbfaf9; }
.employee-photo-panel.compact { position: static; margin-bottom: 0; }
.employee-photo-frame { width: 116px; height: 146px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e4ddd7; border-radius: 14px; background: #f2efec; color: #a89e97; font-size: 34px; font-weight: 750; }
.employee-photo-frame.small { width: 62px; height: 72px; border-radius: 12px; font-size: 22px; }
.employee-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.employee-photo-upload { min-height: 35px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ddd3cc; border-radius: 9px; background: #fff; color: #5d554f; font-size: 12px; font-weight: 700; cursor: pointer; }
.employee-photo-upload:hover { border-color: #ff5000; color: #ff5000; }
.employee-photo-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.employee-photo-panel > small { color: #a19891; font-size: 10px; text-align: center; }
.card-avatar-option { width: 100%; margin-top: 7px; padding-top: 14px; display: grid; justify-items: center; gap: 8px; border-top: 1px solid #e9e1dc; }
.card-avatar-option > img { width: 62px; height: 62px; object-fit: cover; border: 1px solid #e5dcd6; border-radius: 50%; }
.card-avatar-option > strong { color: #665d57; font-size: 10px; text-align: center; }
.avatar-declaration { display: flex; align-items: center; gap: 5px; color: #928981; font-size: 9px; font-weight: 600; cursor: pointer; }
.employee-self-sections { min-width: 0; padding: 24px; display: grid; gap: 16px; }
.employee-form-section { padding: 19px 21px 21px; border: 1px solid #eee7e2; border-radius: 15px; background: #fff; }
.employee-form-section > header,
.reimbursement-section-head { min-height: 40px; margin-bottom: 17px; display: flex; align-items: center; gap: 11px; }
.employee-form-section > header > span,
.reimbursement-section-head > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #f4f0ed; color: #9b8f87; font-size: 10px; font-weight: 800; }
.employee-form-section > header div,
.reimbursement-section-head > div { display: grid; gap: 2px; }
.employee-form-section > header strong,
.reimbursement-section-head h2 { margin: 0; color: #302b28; font-size: 15px; font-weight: 780; }
.employee-form-section > header small,
.reimbursement-section-head small { color: #9c938d; font-size: 10px; }
.employee-form-section > header > i,
.reimbursement-section-head > i { margin-left: auto; padding: 5px 9px; border-radius: 999px; background: #fff2e9; color: #d55a16; font-size: 10px; font-style: normal; font-weight: 750; }
.employee-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 18px; }
.employee-form-grid .span-all { grid-column: 1 / -1; }
.employee-form-grid .form-field,
.employee-long-answer { display: grid; gap: 7px; color: #5d5651; font-size: 12px; font-weight: 650; }
.employee-form-grid .form-control,
.employee-form-grid .form-select { min-height: 42px; font-size: 13px; }
.employee-form-grid .computed-field {
    display: flex;
    align-items: center;
    border-color: #eee6e0;
    background: #f8f6f4;
    color: #796f68;
    font-weight: 700;
}
.employee-form-grid .document-upload-field { position: relative; }
.employee-form-grid .document-upload-field > a {
    position: absolute;
    right: 8px;
    bottom: 9px;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(255,255,255,.92);
    color: #e64b2d;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}
.employee-form-grid .document-upload-field > input[type="file"] { padding: 7px 90px 7px 9px; }
.required-mark,
.reimbursement-form-grid .form-field > span > em { margin-right: 3px; color: #e54736; font-style: normal; }
.employee-self-submit { grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 2; padding: 14px 24px; display: flex; justify-content: flex-end; border-top: 1px solid #eee7e2; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.employee-self-submit button { min-width: 170px; }
.employee-profile-summary { padding: 19px 24px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #eee7e2; background: #fbfaf9; }
.employee-profile-title { display: grid; gap: 4px; }
.employee-profile-title strong { font-size: 18px; }
.employee-profile-title span { color: #8c837d; font-size: 11px; }
.employee-profile-meta { margin-left: auto; display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 8px; }
.employee-profile-meta span { padding: 9px 12px; border-left: 1px solid #e7dfda; display: grid; gap: 3px; }
.employee-profile-meta small { color: #9a918a; font-size: 9px; }
.employee-profile-meta strong { font-size: 12px; }
.regularization-form { grid-template-columns: 190px minmax(0, 1fr); }
.employee-long-answer textarea { min-height: 150px; resize: vertical; font-size: 13px; line-height: 1.8; }
.regularization-status { margin: 20px 24px 0; }
.employee-history-section { margin: 0 24px 24px; overflow: hidden; border: 1px solid #eee7e2; border-radius: 14px; }
.employee-history-section > header { padding: 13px 16px; border-bottom: 1px solid #eee7e2; background: #fbfaf9; }
.employee-history-section > header strong { font-size: 13px; }
.reimbursement-avatar.image { object-fit: cover; }
.reimbursement-apply-form.refined { border-color: #ece5e0; }
.reimbursement-section-head { margin-bottom: 16px; }
.reimbursement-form-grid.compact-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reimbursement-form-grid .form-field > span { min-height: 18px; display: flex; align-items: center; }
.reimbursement-order-lookup { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.reimbursement-order-lookup .btn-light-custom { min-width: 108px; }
.lookup-result { min-height: 18px; margin-top: 6px; display: block; color: #8d847d; font-size: 12px; }
.lookup-result.success { color: #17835d; }
.lookup-result.error { color: #d84438; }
.auto-selected-badge,
.permission-store-badge { margin-left: 7px; padding: 2px 6px; border-radius: 999px; background: #edf7f3; color: #43806a; font-size: 9px; font-style: normal; font-weight: 700; }
.default-reimbursement-account { background: #fffdfb; }
.refined-upload { min-height: 86px; padding: 18px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px dashed #d9cec7; border-radius: 13px; background: #fbfaf9; cursor: pointer; }
.refined-upload:hover { border-color: #ff8b4b; background: #fff9f5; }
.refined-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.refined-upload strong { color: #4e4742; font-size: 13px; }
.refined-upload span { color: #9b928c; font-size: 10px; }
.reimbursement-file-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.reimbursement-file-list > span { max-width: 260px; padding: 6px 9px; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; background: #f5f2f0; color: #6f6762; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reimbursement-file-list b { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 5px; background: #e8e1dc; font-size: 8px; }
.reimbursement-toolbar { gap: 16px; }
.reimbursement-batch-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.reimbursement-batch-actions form { margin: 0; }
.reimbursement-management-table { min-width: 1680px; }
.reimbursement-management-table th,
.reimbursement-management-table td { padding-left: 16px; padding-right: 16px; }
.reimbursement-reason-cell { min-width: 210px; }
.reimbursement-reason-cell > span { display: block; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-subline { display: block; margin-top: 4px; color: #9a9693; font-size: 10px; font-weight: 500; white-space: nowrap; }
.reimbursement-duplicate-row { background: rgba(255, 247, 242, .72); }
.reimbursement-duplicate-badge { width: fit-content; margin-top: 6px; padding: 4px 8px; display: inline-flex; border: 0; border-radius: 999px; background: #fff0e9; color: #e4512e; font-size: 10px; font-weight: 750; }
.payment-exported-label { display: block; margin-top: 5px; color: #6c8c95; font-size: 10px; white-space: nowrap; }
.reimbursement-duplicate-panel { margin-bottom: 18px; padding: 15px 16px; border: 1px solid #f1c7b8; border-radius: 14px; background: #fff9f6; }
.reimbursement-duplicate-panel header { display: flex; align-items: baseline; gap: 9px; margin-bottom: 10px; }
.reimbursement-duplicate-panel header strong { color: #c94224; font-size: 15px; }
.reimbursement-duplicate-panel header span { color: #9a8076; font-size: 11px; }
.reimbursement-duplicate-panel article { padding: 9px 0; display: grid; grid-template-columns: 140px 1fr; gap: 3px 12px; border-top: 1px solid #f2ddd5; }
.reimbursement-duplicate-panel article strong { color: #433d39; font-size: 12px; }
.reimbursement-duplicate-panel article span { color: #8c827d; font-size: 11px; }
.reimbursement-duplicate-panel article p { grid-column: 1 / -1; margin: 0; color: #625a56; font-size: 12px; }
.reimbursement-duplicate-panel > label,
.reimbursement-batch-duplicate { margin-top: 10px; display: flex; align-items: center; gap: 8px; color: #b73f26; font-size: 12px; font-weight: 700; }
.reimbursement-duplicate-panel > .reimbursement-duplicate-confirmation {
    position: relative;
    z-index: 2;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #f0d4ca;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
}
.reimbursement-duplicate-confirmation > .form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
    border: 1px solid #b8c9da;
    cursor: pointer;
    pointer-events: auto;
}
body.taobao-system-theme .modal-content .reimbursement-duplicate-confirmation > .form-check-input:checked,
.reimbursement-duplicate-confirmation > .form-check-input:checked {
    border-color: var(--xy-blue-600, #3f82c8);
    background-color: var(--xy-blue-600, #3f82c8);
}
.reimbursement-duplicate-confirmation:has(.form-check-input:checked) {
    border-color: #9fc4e9;
    color: #326fae;
    background: #eef6ff;
}
.reimbursement-duplicate-confirmation:focus-within { box-shadow: 0 0 0 3px rgba(63,130,200,.12); }
.reimbursement-batch-summary { margin-bottom: 15px; color: #6f6864; font-size: 13px; }
.reimbursement-batch-summary strong { color: #f4511e; font-size: 18px; }
.approval-photo-preview { margin: 0 0 16px 142px; display: flex; align-items: center; gap: 10px; }
.approval-photo-preview[hidden] { display: none; }
.approval-photo-preview img { width: 58px; height: 72px; object-fit: cover; border: 1px solid #e2dad5; border-radius: 10px; background: #f5f2f0; }
.approval-photo-preview span { color: #8e8580; font-size: 11px; }
.approval-photo-preview > div { display: flex; gap: 7px; }
.approval-photo-preview a { padding: 5px 8px; border-radius: 7px; background: #f5f1ee; color: #6d625b; font-size: 10px; font-weight: 700; }
.employee-self-sections.full-width { grid-column: 1 / -1; }
.profile-self-card .employee-profile-summary > button { margin-left: 10px; white-space: nowrap; }
.profile-readonly-section { margin: 24px; }
.profile-detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid #eee7e2; border-radius: 12px; background: #eee7e2; }
.profile-detail-grid > span { min-height: 70px; padding: 13px 15px; display: grid; align-content: center; gap: 5px; background: #fff; }
.profile-detail-grid small { color: #9b918b; font-size: 10px; }
.profile-detail-grid strong { overflow-wrap: anywhere; color: #413a36; font-size: 13px; font-weight: 680; }
.profile-edit-form[hidden] { display: none; }
.profile-edit-form .employee-self-submit { gap: 9px; }

.employee-card-page { min-height: calc(100vh - 120px); display: grid; place-items: center; padding: 30px; }
.employee-card-stage { display: grid; justify-items: center; gap: 22px; }
.employee-id-card { position: relative; width: 344px; height: 548px; padding: 27px 28px 23px; overflow: hidden; border: 1px solid #e6ddd6; border-radius: 24px; background: linear-gradient(145deg,#fff 0%,#fffaf5 100%); box-shadow: 0 24px 70px rgba(83,52,35,.15); color: #302925; }
.employee-id-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 80% 8%,rgba(190,47,34,.08),transparent 30%), linear-gradient(135deg,transparent 0 48%,rgba(134,99,72,.035) 48% 52%,transparent 52%); }
.employee-card-watermark { position: absolute; right: -18px; bottom: 82px; color: rgba(171,47,35,.045); font-family: "STKaiti","KaiTi",serif; font-size: 190px; line-height: 1; }
.employee-id-card > header { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; }
.employee-id-card > header img { width: 43px; height: 43px; object-fit: cover; border-radius: 9px; }
.employee-id-card > header div { display: grid; gap: 2px; }
.employee-id-card > header strong { font-family: "Songti SC","SimSun",serif; font-size: 13px; letter-spacing: .08em; }
.employee-id-card > header small { color: #9a8f87; font-family: Georgia,serif; font-size: 6px; letter-spacing: .1em; }
.employee-card-photo { position: relative; z-index: 1; width: 146px; height: 184px; margin: 38px auto 20px; display: grid; place-items: center; overflow: hidden; border: 6px solid #fff; border-radius: 18px; outline: 1px solid #e5d9d1; background: #eee9e5; box-shadow: 0 12px 30px rgba(67,46,34,.12); color: #a49489; font-size: 42px; font-weight: 760; }
.employee-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.employee-card-name { position: relative; z-index: 1; display: grid; justify-items: center; gap: 5px; }
.employee-card-name strong { font-family: "Songti SC","SimSun",serif; font-size: 28px; letter-spacing: .16em; }
.employee-card-name span { color: #9a3f34; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.employee-card-divider { width: 38px; height: 2px; margin: 18px auto; border-radius: 2px; background: #b53328; }
.employee-id-card dl { position: relative; z-index: 1; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); }
.employee-id-card dl > div { padding: 4px 8px; display: grid; justify-items: center; gap: 4px; border-right: 1px solid #eadfd8; }
.employee-id-card dl > div:last-child { border-right: 0; }
.employee-id-card dt { color: #a0948c; font-size: 8px; font-weight: 500; }
.employee-id-card dd { margin: 0; font-size: 10px; font-weight: 720; text-align: center; }
.employee-id-card > footer { position: absolute; z-index: 1; right: 28px; bottom: 20px; left: 28px; display: flex; align-items: center; gap: 9px; }
.employee-id-card > footer span { color: #9d332a; font-family: "Songti SC","SimSun",serif; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.employee-id-card > footer i { height: 1px; flex: 1; background: #e2d7cf; }
.employee-id-card > footer small { color: #aaa099; font-size: 6px; letter-spacing: .08em; }
.employee-card-actions { display: flex; gap: 10px; }

@media (max-width: 980px) {
    .employee-self-form,
    .regularization-form { grid-template-columns: 1fr; }
    .employee-photo-panel { position: static; margin: 18px 18px 0; }
    .employee-form-grid,
    .reimbursement-form-grid.compact-three { grid-template-columns: 1fr; }
    .employee-form-grid .span-all { grid-column: auto; }
    .employee-profile-meta { grid-template-columns: 1fr; }
    .profile-detail-grid { grid-template-columns: 1fr; }
}

@media print {
    body:has(.employee-card-page) .sidebar,
    body:has(.employee-card-page) .app-header,
    body:has(.employee-card-page) .employee-card-actions { display: none !important; }
    body:has(.employee-card-page) .main-content,
    body:has(.employee-card-page) .content-wrap { margin: 0 !important; padding: 0 !important; }
    .employee-card-page { min-height: 100vh; padding: 0; }
    .employee-id-card { box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* 全局页头精简：账号与运行状态固定在左侧导航底部。 */
.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    flex: 1 1 auto;
}

.sidebar-account {
    position: relative;
    z-index: 3;
    margin: auto 14px 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(137,156,163,.16);
}

.sidebar-account form { margin: 0; }

.sidebar-system-status {
    margin: 0 8px 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #899398;
    font-size: 11px;
}

.sidebar-system-status i {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #6b9c96;
    box-shadow: 0 0 0 4px rgba(107,156,150,.10);
}

.sidebar-user-card {
    width: 100%;
    min-height: 58px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.84);
    border-radius: 14px;
    background: rgba(255,255,255,.57);
    color: #343b3e;
    text-align: left;
    box-shadow: 0 8px 24px rgba(65,82,88,.045);
    transition: border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

button.sidebar-user-card:hover,
button.sidebar-user-card:focus-visible {
    border-color: rgba(125,163,174,.32);
    outline: 0;
    background: rgba(255,255,255,.86);
    box-shadow: 0 10px 28px rgba(65,82,88,.08);
}

.sidebar-user-summary { cursor: default; }

.sidebar-account-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 3px;
}

.sidebar-account-action {
    min-width: 34px;
    padding: 5px 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #7d8d99;
    font-size: 10.5px;
    line-height: 1;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}

.sidebar-account-action:hover,
.sidebar-account-action:focus-visible {
    outline: 0;
    color: #2f78bd;
    background: #e9f3ff;
}

.password-change-modal .modal-dialog { max-width: 520px; }

.password-change-content {
    overflow: hidden;
    border: 1px solid #d8e7f6;
    border-radius: 18px;
    background: #f8fbff;
    box-shadow: 0 24px 70px rgba(46, 82, 119, .22);
}

.password-change-header {
    padding: 20px 24px 17px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid #dfeaf5;
    background: linear-gradient(135deg, #edf6ff 0%, #f9fcff 100%);
}

.password-change-header small {
    display: block;
    margin-bottom: 4px;
    color: #4f8bc5;
    font-size: 11px;
    letter-spacing: .08em;
}

.password-change-header h2 {
    margin: 0;
    color: #23415f;
    font-size: 20px;
    font-weight: 700;
}

.password-change-body {
    padding: 22px 24px 18px;
    display: grid;
    gap: 14px;
}

.password-account-line,
.password-change-body label {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.password-account-line {
    padding: 12px 14px;
    border: 1px solid #dde9f4;
    border-radius: 11px;
    background: #fff;
    color: #71869a;
    font-size: 13px;
}

.password-account-line strong { color: #24425e; }

.password-change-body label > span {
    color: #465e74;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

.password-change-body label i {
    color: #e34f4f;
    font-style: normal;
}

.password-change-body input {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #cfddeb;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: #263f57;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.password-change-body input:focus {
    border-color: #68a4dd;
    box-shadow: 0 0 0 3px rgba(74, 144, 211, .12);
}

.password-change-body p {
    margin: -2px 0 0 126px;
    color: #8a9baa;
    font-size: 11px;
}

.password-change-footer {
    padding: 15px 24px 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e1ebf4;
    background: rgba(255,255,255,.72);
}

@media (max-width: 575px) {
    .password-change-modal .modal-dialog { margin: 14px; }
    .password-account-line,
    .password-change-body label { grid-template-columns: 1fr; gap: 7px; }
    .password-change-body label > span { text-align: left; }
    .password-change-body p { margin-left: 0; }
}

.sidebar-user-card .avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 11px;
}

.sidebar-user-card .user-meta {
    min-width: 0;
    flex: 1;
}

.sidebar-user-card .user-meta strong,
.sidebar-user-card .user-meta small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-card .user-meta strong { font-size: 13px; }
.sidebar-user-card .user-meta small { color: #929b9f; font-size: 10.5px; }
.sidebar-logout { color: #9aa2a6; font-size: 11px; }

.sidebar-floating-toggle { display: none; }

@media (max-width: 900px) {
    .sidebar { overflow-y: auto; }
    .sidebar-nav { flex: 0 0 auto; }
    .sidebar-account { margin-top: auto; }
    .sidebar-floating-toggle {
        position: fixed;
        z-index: 25;
        top: 12px;
        left: 12px;
        width: 40px;
        height: 40px;
        padding: 0;
        display: grid;
        place-items: center;
        border: 1px solid rgba(255,255,255,.88);
        border-radius: 12px;
        background: rgba(255,255,255,.82);
        box-shadow: 0 8px 28px rgba(55,72,78,.10);
        backdrop-filter: blur(18px);
    }
    .content-wrap,
    .content-wrap:has(.batch-parse-launcher) { padding-top: 64px; }
}

@media (max-width: 1100px) {
    .reimbursement-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
    .reimbursement-form-grid { grid-template-columns: 1fr; }
    .reimbursement-form-grid .span-all { grid-column: auto; }
    .reimbursement-employee-bar { align-items: flex-start; flex-wrap: wrap; }
    .reimbursement-employee-bar > a { width: 100%; margin-left: 56px; }
    .reimbursement-form-section { padding: 21px 18px; }
    .reimbursement-submit-bar { padding: 15px 18px; }
}
.ledger-table { min-width: 1780px; }
.ledger-type { display: inline-flex; min-width: 42px; justify-content: center; padding: 4px 7px; border-radius: 8px; font-size: 12px; }
.ledger-type.income { color: #26745f; background: #e9f5f0; }
.ledger-type.expense { color: #ad4d4d; background: #faeeee; }
.ledger-type.transfer { color: #4b5ca8; background: #eef1ff; }
.ledger-combobox { width: 100%; min-width: 0; }
.ledger-combobox > .form-control { width: 100%; min-width: 0; background: #fff; }
.management-modal.is-crud-form-modal .ledger-combo-field > .ledger-combobox { grid-column: 2; width: 500px; }
.management-modal.is-crud-form-modal .ledger-combo-field > .ledger-combobox > .form-control { min-height: 38px; height: 38px; border-color: #ded8d4; border-radius: 7px; font-size: 12px; box-shadow: none; }
.ledger-table td:nth-child(10) { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger-fund-editor { grid-column: 1 / -1; padding: 12px 14px; border: 1px solid #e2ddd9; border-radius: 10px; background: #fbfaf9; }
.ledger-fund-editor[hidden] { display: none; }
.ledger-fund-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.ledger-fund-editor-head .modal-field-label { width: auto !important; padding: 0 !important; text-align: left !important; }
.ledger-fund-editor-head .btn-light-custom { min-height: 32px; padding: 6px 11px; font-size: 11px; }
.ledger-fund-column-heads { display: none; }
.ledger-fund-rows { display: flex; flex-direction: column; gap: 8px; }
.ledger-fund-row {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(120px, 1.1fr) 92px minmax(170px, 1.45fr);
    align-items: center;
    gap: 8px 9px;
    padding: 10px;
    border: 1px solid #e7e1dc;
    border-radius: 9px;
    background: #fff;
}
.ledger-fund-row .ledger-combobox:nth-of-type(1) { grid-column: 4; }
.ledger-fund-row .ledger-combobox:nth-of-type(2) { grid-column: 1 / 3; }
.ledger-fund-row > .ledger-fund-amount { grid-column: 3; }
.ledger-fund-row .btn-danger-soft { grid-column: 4; justify-self: end; }
.ledger-fund-row > .form-select,
.ledger-fund-row .ledger-combobox > .form-control,
.ledger-fund-row > .ledger-fund-amount { min-height: 38px; height: 38px; border-color: #ded8d4; border-radius: 7px; font-size: 12px; box-shadow: none; }
.ledger-fund-row .btn-danger-soft { min-height: 34px; padding: 6px 10px; font-size: 11px; }
.ledger-fund-summary { margin-top: 9px; color: #8a817b; font-size: 11px; text-align: right; }
.ledger-fund-summary.is-balanced { color: #26745f; font-weight: 700; }
.ledger-fund-summary.is-error { color: #b34e45; font-weight: 700; }
.management-modal.is-crud-form-modal .form-field[title],
.management-modal.is-crud-form-modal .modal-field-label[title],
.ledger-smart-entry-head strong[title] { cursor: help; }
.management-modal.is-crud-form-modal .modal-field-label[title] { text-decoration: underline dotted rgba(103, 98, 94, .45); text-underline-offset: 3px; }
.form-field [data-order-context] { min-height: 15px; color: #9898a5; }
.form-field [data-order-context].is-success { color: #26745f; }
.form-field [data-order-context].is-error { color: #b65348; }

.ledger-smart-entry {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid #cfe1f6;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5faff 0%, #edf6ff 100%);
    box-shadow: 0 7px 22px rgba(60, 126, 189, .08);
}

.ledger-smart-entry-head {
    margin-bottom: 9px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.ledger-smart-entry-head strong {
    color: #24425e;
    font-size: 14px;
}

.ledger-smart-entry-head span {
    color: #7a91a6;
    font-size: 11px;
}

.ledger-smart-entry-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 9px;
}

.ledger-smart-entry-row .form-control {
    height: 42px;
    border-color: #b8d4ef;
    border-radius: 9px;
    background: rgba(255,255,255,.95);
    font-size: 12px;
    box-shadow: none;
}

.ledger-smart-entry-row .form-control:focus {
    border-color: #4d99dc;
    box-shadow: 0 0 0 3px rgba(65, 145, 214, .12);
}

.ledger-smart-entry-row button {
    min-width: 0;
    border-radius: 9px;
}

.ledger-smart-result {
    margin-top: 10px;
    padding: 10px 11px;
    border: 1px solid #cfe3f6;
    border-radius: 9px;
    background: rgba(255,255,255,.84);
}

.ledger-smart-result > strong {
    display: block;
    color: #2b668f;
    font-size: 11px;
}

.ledger-smart-result > div {
    margin-top: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ledger-smart-result > div > span {
    padding: 4px 7px;
    border-radius: 6px;
    color: #3f6684;
    background: #edf6fd;
    font-size: 10px;
}

.ledger-smart-result ul {
    margin: 7px 0 0;
    padding-left: 18px;
    color: #b56a29;
    font-size: 10px;
}

.ledger-smart-result.is-error {
    border-color: #f2c7c1;
    background: #fff7f5;
}

.ledger-smart-result.is-error > strong { color: #c24f3e; }
.ledger-smart-result.is-error > span { color: #94665f; font-size: 11px; }

@media (max-width: 760px) {
    .ledger-smart-entry-row { grid-template-columns: 1fr; }
    .ledger-smart-entry-row button { height: 40px; }
    .management-modal.is-crud-form-modal .ledger-combo-field > .ledger-combobox { width: 100%; }
    .ledger-fund-row { grid-template-columns: 1fr 1fr; }
    .ledger-fund-column-heads { display: none; }
    .ledger-fund-row .ledger-combobox:nth-of-type(1),
    .ledger-fund-row .ledger-combobox:nth-of-type(2) { grid-column: 1 / -1; }
    .ledger-fund-row > .ledger-fund-amount { grid-column: 1; }
    .ledger-fund-row .btn-danger-soft { grid-column: 1 / -1; justify-self: end; }
}
.transfer-arrow { color: #6f79a8; padding: 0 3px; }
.analysis-filter-card { padding: 14px; }
.analysis-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 12px 0; }
.analysis-metrics article { padding: 18px; border: 1px solid rgba(255,255,255,.76); border-radius: 16px; background: rgba(255,255,255,.7); box-shadow: 0 12px 30px rgba(66,78,83,.06); }
.analysis-metrics small { display: block; color: #8a9295; font-size: 12px; }
.analysis-metrics strong { display: block; margin-top: 8px; font-size: 24px; }
.analysis-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.analysis-block { padding: 16px; min-height: 150px; }
.analysis-block.span-2 { grid-column: span 2; }
.analysis-line, .analysis-profit-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 39px; padding: 7px 4px; border-bottom: 1px solid #edf0f0; font-size: 13px; }
.analysis-profit-row { display: grid; grid-template-columns: minmax(180px,1fr) auto auto auto; }
.analysis-profit-row span { color: #7d878b; }
.positive { color: #27745f !important; }
.negative { color: #b04f4f !important; }
.trend-line { display: grid; grid-template-columns: 62px minmax(30px,1fr) auto minmax(30px,1fr) auto; align-items: center; gap: 8px; min-height: 32px; font-size: 11px; }
.trend-line i { display: block; width: min(100%, calc(var(--value) * 1px)); min-width: 2px; height: 6px; border-radius: 5px; }
.trend-line i.income { background: #72b8a3; }
.trend-line i.expense { background: #d99393; }
.trend-line em { min-width: 82px; color: #687276; font-style: normal; text-align: right; }

@media (max-width: 900px) {
    .category-board, .analysis-grid { grid-template-columns: 1fr; }
    .analysis-block.span-2 { grid-column: span 1; }
    .analysis-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* 采购单管理试稿：宋式美学、顶部导航、宣纸与远山。仅作用于 /purchase/orders。 */
body.song-purchase-preview {
    --song-paper: #f4f0e6;
    --song-paper-deep: #ebe4d5;
    --song-ink: #292d2a;
    --song-muted: #77796f;
    --song-line: #d8d0bf;
    --song-celadon: #738d82;
    --song-celadon-soft: #e4e9e3;
    --song-cinnabar: #9f3f35;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 12%, rgba(255,255,255,.70), transparent 31%),
        radial-gradient(circle at 89% 25%, rgba(188,198,183,.22), transparent 26%),
        repeating-linear-gradient(0deg, rgba(80,72,55,.018) 0, rgba(80,72,55,.018) 1px, transparent 1px, transparent 5px),
        var(--song-paper);
    color: var(--song-ink);
    font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
    font-size: 12.5px;
}

.song-purchase-preview .app-shell { position: relative; min-height: 100vh; }

.song-purchase-preview .sidebar {
    position: sticky;
    inset: 0 0 auto;
    z-index: 80;
    width: 100%;
    height: 72px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 222px;
    align-items: center;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid rgba(126,118,96,.23);
    background: rgba(247,244,235,.93);
    color: var(--song-ink);
    box-shadow: 0 8px 28px rgba(63,58,45,.055);
    backdrop-filter: blur(18px) saturate(105%);
}

.song-purchase-preview .brand {
    width: 72px;
    height: 66px;
    padding: 3px 0;
    justify-content: flex-start;
    overflow: hidden;
    border: 0;
}

.song-purchase-preview .brand-logo-viewport {
    width: 48px;
    height: 61px;
    flex-basis: 48px;
}

.song-purchase-preview .brand-logo-viewport img { width: 139px; }

.song-purchase-preview .sidebar-nav {
    min-width: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    overflow: visible;
}

.song-purchase-preview .nav-dashboard,
.song-purchase-preview .nav-group { margin: 0; }

.song-purchase-preview .nav-primary {
    width: auto;
    min-height: 38px;
    padding: 0 10px;
    gap: 5px;
    border: 0;
    border-radius: 2px;
    color: #555950;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .055em;
}

.song-purchase-preview .nav-primary .nav-icon { display: none; }

.song-purchase-preview .nav-chevron {
    margin-left: 2px;
    color: #aaa595;
    font-size: 14px;
    transform: rotate(90deg);
}

.song-purchase-preview .nav-primary:hover,
.song-purchase-preview .nav-primary:focus-visible,
.song-purchase-preview .nav-group.active > .nav-primary,
.song-purchase-preview .nav-dashboard.active {
    border: 0;
    background: transparent;
    color: var(--song-cinnabar);
    box-shadow: inset 0 -1px 0 var(--song-cinnabar);
    transform: none;
}

.song-purchase-preview .nav-group:hover .nav-chevron { color: var(--song-cinnabar); transform: rotate(90deg); }

.song-purchase-preview .nav-group::after {
    top: 100%;
    left: 0;
    width: 100%;
    height: 14px;
}

.song-purchase-preview .nav-flyout,
.song-purchase-preview .nav-flyout-wide {
    top: calc(100% + 13px);
    left: 50%;
    width: 230px;
    max-height: calc(100vh - 92px);
    padding: 9px;
    grid-template-columns: 1fr;
    gap: 2px;
    border: 1px solid rgba(126,118,96,.29);
    border-top: 2px solid rgba(159,63,53,.72);
    border-radius: 3px;
    background: rgba(248,245,236,.98);
    box-shadow: 0 18px 48px rgba(62,56,43,.13);
    backdrop-filter: blur(18px);
    transform: translate3d(-50%,-6px,0);
}

.song-purchase-preview .nav-flyout-wide {
    width: 334px;
    grid-template-columns: repeat(2, minmax(0,1fr));
}

.song-purchase-preview .nav-group:hover > .nav-flyout {
    transform: translate3d(-50%,0,0);
}

.song-purchase-preview .nav-subitem {
    min-height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 2px;
    color: #56584f;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .035em;
}

.song-purchase-preview .nav-subitem i { color: #b0aa99; font-size: 14px; }
.song-purchase-preview .nav-subitem:hover,
.song-purchase-preview .nav-subitem.active {
    border: 0;
    background: var(--song-celadon-soft);
    color: #35443e;
    transform: none;
}

.song-purchase-preview .sidebar-account {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    border: 0;
}

.song-purchase-preview .sidebar-system-status {
    margin: 0;
    color: #85877d;
    font-size: 10px;
    white-space: nowrap;
}

.song-purchase-preview .sidebar-system-status i {
    background: var(--song-celadon);
    box-shadow: 0 0 0 3px rgba(115,141,130,.10);
}

.song-purchase-preview .sidebar-account form { width: 154px; }

.song-purchase-preview .sidebar-user-card {
    min-height: 44px;
    padding: 5px 6px;
    gap: 8px;
    border-color: rgba(126,118,96,.20);
    border-radius: 3px;
    background: rgba(255,253,247,.58);
    box-shadow: none;
}

.song-purchase-preview .sidebar-user-card .avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-color: rgba(159,63,53,.24);
    border-radius: 2px;
    background: #f5ece5;
    color: var(--song-cinnabar);
    font-family: inherit;
}

.song-purchase-preview .sidebar-user-card .user-meta strong { font-size: 11.5px; }
.song-purchase-preview .sidebar-user-card .user-meta small,
.song-purchase-preview .sidebar-logout { font-size: 9.5px; }

.song-purchase-preview .main-panel {
    position: relative;
    min-height: calc(100vh - 72px);
    margin-left: 0;
    isolation: isolate;
}

.song-purchase-preview .main-panel::before {
    content: "";
    position: fixed;
    z-index: -1;
    right: 0;
    bottom: 0;
    width: min(900px, 66vw);
    height: 520px;
    opacity: .24;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 210 520'%3E%3Ccircle cx='126' cy='72' r='37' fill='none' stroke='%23b5a786' stroke-width='1.1' opacity='.72'/%3E%3Cpath d='M202 515 C178 430 192 346 154 278 C132 238 115 205 74 171 C50 151 38 126 29 92' fill='none' stroke='%236f7e74' stroke-width='2.2' opacity='.56'/%3E%3Cpath d='M155 281 C126 267 102 248 83 222 M117 207 C139 181 151 154 155 121 M77 173 C93 148 100 121 99 94 M52 143 C31 132 18 115 9 95' fill='none' stroke='%237c897f' stroke-width='1.25' opacity='.58'/%3E%3Ccircle cx='82' cy='220' r='3' fill='%239f3f35' opacity='.52'/%3E%3Ccircle cx='116' cy='205' r='2.4' fill='%239f3f35' opacity='.45'/%3E%3Ccircle cx='99' cy='95' r='2.7' fill='%239f3f35' opacity='.42'/%3E%3Ccircle cx='153' cy='121' r='2.3' fill='%239f3f35' opacity='.46'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 300'%3E%3Cpath d='M0 246 Q95 222 178 238 T348 218 Q426 164 485 221 Q558 137 628 216 Q700 174 752 229 Q825 211 900 235' fill='none' stroke='%23788b81' stroke-width='2' opacity='.48'/%3E%3Cpath d='M80 268 Q180 232 267 260 Q360 204 440 259 Q540 219 620 263 Q720 234 900 268' fill='none' stroke='%239aa69f' stroke-width='1' opacity='.54'/%3E%3Cpath d='M545 146 Q557 117 568 146 Q555 135 545 146 M566 146 Q581 111 593 146 Q579 134 566 146' fill='none' stroke='%23888f86' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: right 5px top, right bottom;
    background-size: 205px 510px, 100% auto;
    pointer-events: none;
}

.song-purchase-preview .main-panel::after {
    content: "";
    position: fixed;
    z-index: -1;
    left: 0;
    top: 112px;
    width: 170px;
    height: min(620px, calc(100vh - 132px));
    opacity: .20;
    background: no-repeat left center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 620'%3E%3Cpath d='M0 92 C31 72 49 105 67 132 C83 155 116 154 137 184 C154 210 137 243 117 269 C92 302 83 335 75 374 C66 416 43 459 0 481' fill='none' stroke='%2374877d' stroke-width='2' opacity='.58'/%3E%3Cpath d='M0 134 C26 121 40 145 58 167 C76 190 91 189 111 211 C127 229 118 251 101 272 C78 300 60 323 53 357 C44 397 25 419 0 434' fill='none' stroke='%2394a099' stroke-width='1' opacity='.60'/%3E%3Cpath d='M3 520 Q44 502 81 515 T169 510 M0 540 Q38 529 77 539 T164 535 M23 575 Q66 557 111 572 T170 565' fill='none' stroke='%239aa49d' stroke-width='1' opacity='.55'/%3E%3Cpath d='M28 497 Q35 456 42 497 M43 501 Q48 466 54 501 M56 504 Q64 474 69 505' fill='none' stroke='%237b897f' stroke-width='1.2'/%3E%3Cpath d='M85 485 Q101 474 116 485 Q101 480 85 485 M118 473 Q130 462 143 473 Q130 468 118 473' fill='none' stroke='%23747f78' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}

.song-purchase-preview .content-wrap,
.song-purchase-preview .content-wrap:has(.batch-parse-launcher) {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1540px;
    padding: 25px 30px 38px;
}

.song-purchase-preview .data-panel {
    gap: 10px;
    font-family: inherit;
}

.song-purchase-preview .business-toolbar {
    min-height: 84px;
    padding: 14px 16px;
    border: 1px solid rgba(126,118,96,.26);
    border-radius: 4px;
    background: rgba(250,247,239,.82);
    box-shadow: 0 10px 28px rgba(65,59,45,.045), inset 0 1px 0 rgba(255,255,255,.66);
    backdrop-filter: blur(12px);
}

.song-purchase-preview .business-toolbar::before {
    width: 118px;
    height: 118px;
    top: -58px;
    right: 9%;
    border: 1px solid rgba(167,148,111,.18);
    background: transparent;
    filter: none;
}

.song-purchase-preview .business-toolbar::after {
    content: "采";
    position: absolute;
    right: 20px;
    bottom: 13px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(159,63,53,.62);
    color: rgba(159,63,53,.78);
    font-size: 14px;
    line-height: 1;
}

.song-purchase-preview .search-control {
    height: 43px;
    min-width: min(420px, 100%);
    border: 1px solid rgba(115,141,130,.58);
    border-radius: 3px;
    background: rgba(255,253,247,.84);
    box-shadow: 0 0 0 3px rgba(115,141,130,.045);
}

.song-purchase-preview .search-control:focus-within {
    border-color: var(--song-celadon);
    box-shadow: 0 0 0 3px rgba(115,141,130,.09);
}

.song-purchase-preview input,
.song-purchase-preview select,
.song-purchase-preview button { font-family: inherit; }

.song-purchase-preview .form-control,
.song-purchase-preview .form-select,
.song-purchase-preview .btn-light-custom,
.song-purchase-preview .btn-danger-soft {
    min-height: 39px;
    border-color: rgba(126,118,96,.26);
    border-radius: 3px;
    background-color: rgba(255,253,247,.76);
    color: #50534d;
    font-size: 11.5px;
    box-shadow: none;
}

.song-purchase-preview .btn-light-custom:hover {
    border-color: rgba(115,141,130,.52);
    background: var(--song-celadon-soft);
    color: #35443e;
}

.song-purchase-preview .btn-danger-soft {
    border-color: rgba(159,63,53,.22);
    background: rgba(159,63,53,.055);
    color: var(--song-cinnabar);
}

.song-purchase-preview .quick-filter-row {
    min-height: 39px;
    padding: 0 7px;
    border: 1px solid rgba(126,118,96,.22);
    border-radius: 3px;
    background: rgba(245,241,232,.76);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.song-purchase-preview .quick-filter {
    padding: 0 14px;
    color: #77796f;
    font-family: inherit;
    font-size: 11.5px;
    letter-spacing: .08em;
}

.song-purchase-preview .quick-filter.active { color: var(--song-cinnabar); }
.song-purchase-preview .quick-filter.active::after { height: 1px; background: var(--song-cinnabar); }

.song-purchase-preview .data-panel > .table-responsive {
    border: 1px solid rgba(126,118,96,.24);
    border-radius: 4px;
    background: rgba(251,248,240,.84);
    box-shadow: 0 13px 34px rgba(65,59,45,.045);
    backdrop-filter: blur(8px);
}

.song-purchase-preview .management-table { font-family: inherit; font-size: 11.5px; }
.song-purchase-preview .management-table thead th {
    height: 42px;
    border-bottom-color: rgba(126,118,96,.24);
    background: rgba(224,229,220,.68);
    color: #5c625b;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .055em;
}

.song-purchase-preview .management-table tbody td {
    height: 44px;
    border-bottom-color: rgba(126,118,96,.13);
    color: #4e514b;
}

.song-purchase-preview .management-table tbody tr:hover td { background: rgba(228,233,226,.60); }
.song-purchase-preview .clickable-data-row:hover td:first-child,
.song-purchase-preview .clickable-data-row:focus-visible td:first-child { box-shadow: inset 2px 0 0 var(--song-cinnabar); }
.song-purchase-preview .table-primary-text { color: #30352f; font-family: inherit; font-weight: 650; }
.song-purchase-preview .category-badge { border-radius: 2px; background: var(--song-celadon-soft); color: #53665d; }
.song-purchase-preview .money-cell { color: #4e5e57 !important; font-family: inherit; }
.song-purchase-preview .recon-status { border-radius: 2px; }
.song-purchase-preview .recon-status.pending { background: rgba(159,63,53,.065); color: var(--song-cinnabar); }

.song-purchase-preview .data-panel > .pagination-bar {
    min-height: 43px;
    border: 1px solid rgba(126,118,96,.20);
    border-radius: 3px;
    background: rgba(247,243,234,.72);
    box-shadow: none;
    color: var(--song-muted);
    font-size: 11px;
}

.song-purchase-preview .pagination-links a,
.song-purchase-preview .pagination-links span { border-radius: 2px; }
.song-purchase-preview .pagination-links a.active { border-color: var(--song-cinnabar); background: var(--song-cinnabar); }

.song-purchase-preview .management-modal {
    border-color: rgba(126,118,96,.28);
    border-radius: 5px;
    background: #f8f4ea;
    font-family: inherit;
}

@media (max-width: 1220px) {
    .song-purchase-preview .sidebar { grid-template-columns: 72px minmax(0,1fr) 196px; padding: 0 14px; }
    .song-purchase-preview .nav-primary { padding: 0 7px; font-size: 11.5px; }
    .song-purchase-preview .sidebar-account form { width: 135px; }
    .song-purchase-preview .sidebar-system-status { display: none; }
    .song-purchase-preview .main-panel::after { opacity: .11; }
}

@media (max-width: 900px) {
    .song-purchase-preview .main-panel::before,
    .song-purchase-preview .main-panel::after { display: none; }
    .song-purchase-preview .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 260px;
        height: 100vh;
        padding: 0;
        display: flex;
        overflow-y: auto;
        transform: translateX(-100%);
    }
    .song-purchase-preview.sidebar-open .sidebar,
    .sidebar-open.song-purchase-preview .sidebar { transform: translateX(0); }
    .song-purchase-preview .brand { width: 100%; height: 88px; justify-content: center; }
    .song-purchase-preview .sidebar-nav { padding: 10px 14px; display: block; }
    .song-purchase-preview .nav-primary { width: 100%; min-height: 47px; padding: 0 12px; font-size: 14px; }
    .song-purchase-preview .nav-primary .nav-icon { display: grid; }
    .song-purchase-preview .nav-chevron { margin-left: auto; transform: none; }
    .song-purchase-preview .nav-flyout,
    .song-purchase-preview .nav-flyout-wide {
        position: static;
        width: auto;
        max-height: none;
        margin: 4px 0 8px 10px;
        display: none;
        grid-template-columns: 1fr;
        transform: none;
    }
    .song-purchase-preview .nav-group.open > .nav-flyout { display: grid; }
    .song-purchase-preview .sidebar-account { margin: auto 14px 14px; display: block; }
    .song-purchase-preview .sidebar-account form { width: 100%; }
    .song-purchase-preview .sidebar-system-status { margin: 0 8px 8px; display: flex; }
    .song-purchase-preview .content-wrap { padding: 64px 14px 28px; }
}

/* 退货单管理试稿：未来科技风、顶部导航与低饱和霓虹。仅作用于 /purchase/returns。 */
body.tech-return-preview {
    --tech-bg: #080c13;
    --tech-panel: rgba(15,22,32,.78);
    --tech-panel-strong: rgba(17,25,37,.94);
    --tech-line: rgba(112,163,190,.20);
    --tech-ink: #e7f1f5;
    --tech-muted: #7f96a2;
    --tech-cyan: #72d7e8;
    --tech-blue: #6e91ff;
    --tech-violet: #9d85df;
    --tech-danger: #ff6f91;
    min-height: 100vh;
    background:
        radial-gradient(circle at 13% 8%, rgba(76,132,164,.20), transparent 28%),
        radial-gradient(circle at 86% 23%, rgba(106,83,178,.18), transparent 27%),
        radial-gradient(circle at 47% 100%, rgba(34,113,130,.13), transparent 35%),
        var(--tech-bg);
    color: var(--tech-ink);
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 12px;
}

.tech-return-preview .app-shell {
    position: relative;
    min-height: 100vh;
    background-image:
        linear-gradient(rgba(104,160,183,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(104,160,183,.035) 1px, transparent 1px);
    background-size: 38px 38px;
}

.tech-return-preview .sidebar {
    position: sticky;
    inset: 0 0 auto;
    z-index: 80;
    width: 100%;
    height: 72px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 92px minmax(0,1fr) 222px;
    align-items: center;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid rgba(112,163,190,.18);
    background: rgba(7,12,19,.84);
    color: var(--tech-ink);
    box-shadow: 0 12px 38px rgba(0,0,0,.26), inset 0 -1px 0 rgba(114,215,232,.04);
    backdrop-filter: blur(22px) saturate(120%);
}

.tech-return-preview .sidebar::after {
    content: "";
    position: absolute;
    right: 25%;
    bottom: -1px;
    width: 28%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(114,215,232,.72), rgba(157,133,223,.50), transparent);
    box-shadow: 0 0 14px rgba(114,215,232,.32);
}

.tech-return-preview .brand {
    width: 72px;
    height: 66px;
    padding: 3px 0;
    justify-content: flex-start;
    overflow: hidden;
    border: 0;
}

.tech-return-preview .brand-logo-viewport {
    width: 48px;
    height: 61px;
    flex-basis: 48px;
    border-radius: 5px;
    filter: drop-shadow(0 0 10px rgba(255,111,145,.13));
}

.tech-return-preview .brand-logo-viewport img { width: 139px; }

.tech-return-preview .sidebar-nav {
    min-width: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    overflow: visible;
}

.tech-return-preview .nav-dashboard,
.tech-return-preview .nav-group { margin: 0; }

.tech-return-preview .nav-primary {
    width: auto;
    min-height: 38px;
    padding: 0 10px;
    gap: 5px;
    border: 0;
    border-radius: 7px;
    color: #8195a0;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 580;
    letter-spacing: .04em;
}

.tech-return-preview .nav-primary .nav-icon { display: none; }
.tech-return-preview .nav-chevron {
    margin-left: 1px;
    color: #526773;
    font-size: 14px;
    transform: rotate(90deg);
}

.tech-return-preview .nav-primary:hover,
.tech-return-preview .nav-primary:focus-visible,
.tech-return-preview .nav-group.active > .nav-primary,
.tech-return-preview .nav-dashboard.active {
    border: 0;
    outline: none;
    background: linear-gradient(110deg, rgba(73,125,151,.13), rgba(108,81,168,.08));
    color: var(--tech-ink);
    box-shadow: inset 0 -1px 0 var(--tech-cyan), 0 0 20px rgba(114,215,232,.07);
    transform: none;
}

.tech-return-preview .nav-group:hover .nav-chevron { color: var(--tech-cyan); transform: rotate(90deg); }
.tech-return-preview .nav-group::after { top: 100%; left: 0; width: 100%; height: 14px; }

.tech-return-preview .nav-flyout,
.tech-return-preview .nav-flyout-wide {
    top: calc(100% + 13px);
    left: 50%;
    width: 230px;
    max-height: calc(100vh - 92px);
    padding: 9px;
    grid-template-columns: 1fr;
    gap: 2px;
    border: 1px solid rgba(112,163,190,.25);
    border-radius: 10px;
    background: rgba(10,17,26,.96);
    box-shadow: 0 22px 58px rgba(0,0,0,.42), 0 0 30px rgba(83,150,176,.08), inset 0 1px 0 rgba(159,211,228,.06);
    backdrop-filter: blur(22px) saturate(125%);
    transform: translate3d(-50%,-6px,0);
}

.tech-return-preview .nav-flyout::before {
    content: "";
    position: absolute;
    inset: 0 22% auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tech-cyan), transparent);
    box-shadow: 0 0 11px rgba(114,215,232,.42);
}

.tech-return-preview .nav-flyout-wide { width: 334px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.tech-return-preview .nav-group:hover > .nav-flyout { transform: translate3d(-50%,0,0); }

.tech-return-preview .nav-subitem {
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #8298a4;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
}

.tech-return-preview .nav-subitem i { color: #4f6571; font-size: 14px; }
.tech-return-preview .nav-subitem:hover,
.tech-return-preview .nav-subitem.active {
    border-color: rgba(114,215,232,.13);
    background: linear-gradient(100deg, rgba(80,150,174,.14), rgba(112,87,177,.08));
    color: #cfe9f0;
    transform: none;
}

.tech-return-preview .sidebar-account {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    border: 0;
}

.tech-return-preview .sidebar-system-status {
    margin: 0;
    color: #657d88;
    font-size: 9.5px;
    white-space: nowrap;
}

.tech-return-preview .sidebar-system-status i {
    background: var(--tech-cyan);
    box-shadow: 0 0 0 3px rgba(114,215,232,.08), 0 0 10px rgba(114,215,232,.55);
}

.tech-return-preview .sidebar-account form { width: 154px; }
.tech-return-preview .sidebar-user-card {
    min-height: 44px;
    padding: 5px 6px;
    gap: 8px;
    border-color: rgba(112,163,190,.18);
    border-radius: 8px;
    background: rgba(18,28,40,.72);
    color: #dcebf0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.tech-return-preview button.sidebar-user-card:hover,
.tech-return-preview button.sidebar-user-card:focus-visible {
    border-color: rgba(114,215,232,.34);
    background: rgba(23,36,50,.88);
    box-shadow: 0 0 22px rgba(114,215,232,.07);
}

.tech-return-preview .sidebar-user-card .avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-color: rgba(114,215,232,.24);
    border-radius: 7px;
    background: linear-gradient(145deg, rgba(76,139,166,.20), rgba(111,86,171,.18));
    color: var(--tech-cyan);
}

.tech-return-preview .sidebar-user-card .user-meta strong { color: #dcebf0; font-size: 11px; }
.tech-return-preview .sidebar-user-card .user-meta small,
.tech-return-preview .sidebar-logout { color: #647c88; font-size: 9px; }

.tech-return-preview .main-panel {
    position: relative;
    min-height: calc(100vh - 72px);
    margin-left: 0;
    isolation: isolate;
}

.tech-return-preview .main-panel::before {
    content: "";
    position: fixed;
    z-index: -1;
    right: -90px;
    bottom: -130px;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(114,215,232,.10);
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 45%, rgba(114,215,232,.035) 45.3%, transparent 45.8%),
        repeating-conic-gradient(from 0deg, rgba(114,215,232,.09) 0 1deg, transparent 1deg 15deg);
    box-shadow: 0 0 80px rgba(102,85,181,.07), inset 0 0 70px rgba(114,215,232,.025);
    opacity: .70;
    pointer-events: none;
}

.tech-return-preview .content-wrap,
.tech-return-preview .content-wrap:has(.batch-parse-launcher) {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1540px;
    padding: 25px 30px 38px;
}

.tech-return-preview .data-panel { gap: 10px; font-family: inherit; }
.tech-return-preview .business-toolbar {
    min-height: 84px;
    padding: 14px 16px;
    border: 1px solid var(--tech-line);
    border-radius: 12px;
    background: linear-gradient(118deg, rgba(16,24,35,.84), rgba(13,19,29,.72));
    box-shadow: 0 16px 42px rgba(0,0,0,.18), inset 0 1px 0 rgba(174,222,236,.025);
    backdrop-filter: blur(18px) saturate(120%);
}

.tech-return-preview .business-toolbar::before {
    width: 270px;
    height: 130px;
    top: -94px;
    right: 8%;
    background: radial-gradient(circle, rgba(114,215,232,.17), rgba(113,83,181,.08) 46%, transparent 72%);
    filter: blur(8px);
}

.tech-return-preview .business-toolbar::after {
    content: "RET";
    position: absolute;
    right: 20px;
    bottom: 14px;
    padding: 4px 7px;
    border: 1px solid rgba(114,215,232,.23);
    border-radius: 5px;
    background: rgba(114,215,232,.045);
    color: rgba(114,215,232,.48);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .16em;
}

.tech-return-preview .search-control {
    height: 43px;
    min-width: min(420px,100%);
    border: 1px solid rgba(114,215,232,.30);
    border-radius: 8px;
    background: rgba(7,13,21,.66);
    color: var(--tech-ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.018), 0 0 0 3px rgba(114,215,232,.025);
}

.tech-return-preview .search-control span { color: var(--tech-cyan); }
.tech-return-preview .search-control input {
    border: 0;
    outline: 0;
    background: transparent !important;
    color: #d7e7ec;
    box-shadow: none !important;
}
.tech-return-preview .search-control input::placeholder { color: #526873; }
.tech-return-preview .search-control:focus-within {
    border-color: rgba(114,215,232,.62);
    background: rgba(8,16,25,.82);
    box-shadow: 0 0 0 3px rgba(114,215,232,.055), 0 0 20px rgba(114,215,232,.05);
}

.tech-return-preview input,
.tech-return-preview select,
.tech-return-preview button { font-family: inherit; }

.tech-return-preview .form-control,
.tech-return-preview .form-select,
.tech-return-preview .btn-light-custom,
.tech-return-preview .btn-danger-soft {
    min-height: 39px;
    border-color: rgba(112,163,190,.20);
    border-radius: 7px;
    background-color: rgba(8,14,22,.68);
    color: #9fb4bd;
    font-size: 11px;
    box-shadow: none;
}

.tech-return-preview .form-select {
    color-scheme: dark;
    background-image: var(--bs-form-select-bg-img);
}

.tech-return-preview .form-control:focus,
.tech-return-preview .form-select:focus {
    border-color: rgba(114,215,232,.50);
    background-color: rgba(10,18,28,.90);
    color: #d8e8ed;
    box-shadow: 0 0 0 3px rgba(114,215,232,.055);
}

.tech-return-preview .btn-light-custom:hover {
    border-color: rgba(114,215,232,.38);
    background: rgba(66,129,151,.13);
    color: #cbe7ed;
}

.tech-return-preview .btn-danger-soft {
    border-color: rgba(255,111,145,.20);
    background: rgba(255,111,145,.055);
    color: #c8869a;
}

.tech-return-preview .quick-filter-row {
    min-height: 39px;
    padding: 0 7px;
    border: 1px solid rgba(112,163,190,.16);
    border-radius: 9px;
    background: rgba(12,19,29,.72);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.tech-return-preview .quick-filter {
    padding: 0 14px;
    color: #687e89;
    font-size: 11px;
    letter-spacing: .06em;
}

.tech-return-preview .quick-filter.active { color: var(--tech-cyan); text-shadow: 0 0 12px rgba(114,215,232,.20); }
.tech-return-preview .quick-filter.active::after {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tech-cyan), transparent);
    box-shadow: 0 0 9px rgba(114,215,232,.48);
}

.tech-return-preview .data-panel > .table-responsive {
    border: 1px solid rgba(112,163,190,.17);
    border-radius: 10px;
    background: rgba(12,19,28,.78);
    box-shadow: 0 17px 45px rgba(0,0,0,.20), inset 0 1px 0 rgba(191,229,240,.018);
    backdrop-filter: blur(15px);
}

.tech-return-preview .management-table { color: #a8bbc3; font-size: 11px; }
.tech-return-preview .management-table thead th {
    height: 42px;
    border-bottom-color: rgba(112,163,190,.18);
    background: rgba(22,33,46,.84);
    color: #6f8a96;
    font-size: 9.5px;
    font-weight: 650;
    letter-spacing: .075em;
}

.tech-return-preview .management-table tbody td {
    height: 44px;
    border-bottom-color: rgba(112,163,190,.08);
    background: transparent;
    color: #9bafb8;
}

.tech-return-preview .management-table tbody tr:hover td { background: rgba(52,91,109,.12); color: #c9dce2; }
.tech-return-preview .clickable-data-row:hover td:first-child,
.tech-return-preview .clickable-data-row:focus-visible td:first-child {
    box-shadow: inset 2px 0 0 var(--tech-cyan), -7px 0 24px rgba(114,215,232,.08);
}

.tech-return-preview .table-primary-text { color: #cee1e7; font-weight: 650; }
.tech-return-preview .category-badge { border: 1px solid rgba(114,215,232,.10); border-radius: 5px; background: rgba(73,132,151,.12); color: #86b2c0; }
.tech-return-preview .money-cell { color: #94cad4 !important; }
.tech-return-preview .recon-status { border-radius: 5px; }
.tech-return-preview .recon-status.pending { background: rgba(255,111,145,.075); color: #d3829a; }
.tech-return-preview .recon-status.done { background: rgba(114,215,232,.075); color: #77b9c5; }

.tech-return-preview .data-panel > .pagination-bar {
    min-height: 43px;
    border: 1px solid rgba(112,163,190,.14);
    border-radius: 9px;
    background: rgba(11,18,27,.70);
    box-shadow: none;
    color: #6e8490;
    font-size: 10.5px;
}

.tech-return-preview .pagination-links a,
.tech-return-preview .pagination-links span { border-color: rgba(112,163,190,.14); border-radius: 5px; color: #7e959f; background: rgba(16,25,36,.78); }
.tech-return-preview .pagination-links a.active { border-color: rgba(114,215,232,.48); background: rgba(70,133,155,.18); color: var(--tech-cyan); box-shadow: 0 0 14px rgba(114,215,232,.07); }

.tech-return-preview .management-modal {
    border-color: rgba(112,163,190,.22);
    border-radius: 11px;
    background: #0d151f;
    color: #b8cbd2;
    box-shadow: 0 30px 90px rgba(0,0,0,.52), 0 0 40px rgba(114,215,232,.05);
}

.tech-return-preview .modal-header,
.tech-return-preview .modal-footer { border-color: rgba(112,163,190,.13); }
.tech-return-preview .modal-title { color: #dbeaf0; }

@media (max-width: 1220px) {
    .tech-return-preview .sidebar { grid-template-columns: 72px minmax(0,1fr) 196px; padding: 0 14px; }
    .tech-return-preview .nav-primary { padding: 0 7px; font-size: 11.5px; }
    .tech-return-preview .sidebar-account form { width: 135px; }
    .tech-return-preview .sidebar-system-status { display: none; }
}

@media (max-width: 900px) {
    .tech-return-preview .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 260px;
        height: 100vh;
        padding: 0;
        display: flex;
        overflow-y: auto;
        transform: translateX(-100%);
    }
    .sidebar-open.tech-return-preview .sidebar { transform: translateX(0); }
    .tech-return-preview .brand { width: 100%; height: 88px; justify-content: center; }
    .tech-return-preview .sidebar-nav { padding: 10px 14px; display: block; }
    .tech-return-preview .nav-primary { width: 100%; min-height: 47px; padding: 0 12px; font-size: 14px; }
    .tech-return-preview .nav-primary .nav-icon { display: grid; }
    .tech-return-preview .nav-chevron { margin-left: auto; transform: none; }
    .tech-return-preview .nav-flyout,
    .tech-return-preview .nav-flyout-wide {
        position: static;
        width: auto;
        max-height: none;
        margin: 4px 0 8px 10px;
        display: none;
        grid-template-columns: 1fr;
        transform: none;
    }
    .tech-return-preview .nav-group.open > .nav-flyout { display: grid; }
    .tech-return-preview .sidebar-account { margin: auto 14px 14px; display: block; }
    .tech-return-preview .sidebar-account form { width: 100%; }
    .tech-return-preview .sidebar-system-status { margin: 0 8px 8px; display: flex; }
    .tech-return-preview .content-wrap { padding: 64px 14px 28px; }
}

/* 供应商管理试稿：绿豆沙清新科技风。仅作用于 /basic/suppliers。 */
body.fresh-supplier-preview {
    --fresh-bg: #edf3ed;
    --fresh-paper: rgba(249,252,248,.82);
    --fresh-ink: #2f4035;
    --fresh-muted: #7e8d82;
    --fresh-line: rgba(91,126,101,.18);
    --fresh-green: #668c72;
    --fresh-green-deep: #456653;
    --fresh-bean: #b8ccb9;
    --fresh-soft: #dfeadf;
    --fresh-cyan: #78aeb0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 3%, rgba(255,255,255,.88), transparent 31%),
        radial-gradient(circle at 89% 18%, rgba(166,199,177,.25), transparent 29%),
        radial-gradient(circle at 52% 100%, rgba(132,181,177,.12), transparent 34%),
        var(--fresh-bg);
    color: var(--fresh-ink);
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 12px;
}

.fresh-supplier-preview .app-shell {
    position: relative;
    min-height: 100vh;
    background-image: radial-gradient(rgba(83,121,94,.075) .65px, transparent .65px);
    background-size: 18px 18px;
}

.fresh-supplier-preview .sidebar {
    position: sticky;
    inset: 0 0 auto;
    z-index: 80;
    width: 100%;
    height: 72px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 92px minmax(0,1fr) 222px;
    align-items: center;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid rgba(91,126,101,.16);
    background: rgba(245,250,244,.84);
    color: var(--fresh-ink);
    box-shadow: 0 10px 32px rgba(55,85,63,.065), inset 0 -1px 0 rgba(255,255,255,.80);
    backdrop-filter: blur(20px) saturate(110%);
}

.fresh-supplier-preview .sidebar::after {
    content: "";
    position: absolute;
    right: 24%;
    bottom: -1px;
    width: 26%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102,140,114,.55), rgba(120,174,176,.36), transparent);
}

.fresh-supplier-preview .brand {
    width: 72px;
    height: 66px;
    padding: 3px 0;
    justify-content: flex-start;
    overflow: hidden;
    border: 0;
}

.fresh-supplier-preview .brand-logo-viewport {
    width: 48px;
    height: 61px;
    flex-basis: 48px;
    filter: drop-shadow(0 6px 10px rgba(76,103,81,.08));
}

.fresh-supplier-preview .brand-logo-viewport img { width: 139px; }

.fresh-supplier-preview .sidebar-nav {
    min-width: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    overflow: visible;
}

.fresh-supplier-preview .nav-dashboard,
.fresh-supplier-preview .nav-group { margin: 0; }

.fresh-supplier-preview .nav-primary {
    width: auto;
    min-height: 38px;
    padding: 0 10px;
    gap: 5px;
    border: 0;
    border-radius: 7px;
    color: #68786d;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 590;
    letter-spacing: .035em;
}

.fresh-supplier-preview .nav-primary .nav-icon { display: none; }
.fresh-supplier-preview .nav-chevron {
    margin-left: 1px;
    color: #a0aea3;
    font-size: 14px;
    transform: rotate(90deg);
}

.fresh-supplier-preview .nav-primary:hover,
.fresh-supplier-preview .nav-primary:focus-visible,
.fresh-supplier-preview .nav-group.active > .nav-primary,
.fresh-supplier-preview .nav-dashboard.active {
    border: 0;
    outline: none;
    background: linear-gradient(110deg, rgba(184,204,185,.34), rgba(218,235,226,.34));
    color: var(--fresh-green-deep);
    box-shadow: inset 0 -1px 0 var(--fresh-green), 0 6px 18px rgba(74,112,84,.055);
    transform: none;
}

.fresh-supplier-preview .nav-group:hover .nav-chevron { color: var(--fresh-green); transform: rotate(90deg); }
.fresh-supplier-preview .nav-group::after { top: 100%; left: 0; width: 100%; height: 14px; }

.fresh-supplier-preview .nav-flyout,
.fresh-supplier-preview .nav-flyout-wide {
    top: calc(100% + 13px);
    left: 50%;
    width: 230px;
    max-height: calc(100vh - 92px);
    padding: 9px;
    grid-template-columns: 1fr;
    gap: 2px;
    border: 1px solid rgba(91,126,101,.22);
    border-radius: 10px;
    background: rgba(246,250,245,.97);
    box-shadow: 0 20px 52px rgba(53,83,61,.14), inset 0 1px 0 rgba(255,255,255,.88);
    backdrop-filter: blur(20px) saturate(110%);
    transform: translate3d(-50%,-6px,0);
}

.fresh-supplier-preview .nav-flyout::before {
    content: "";
    position: absolute;
    inset: 0 24% auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fresh-green), transparent);
}

.fresh-supplier-preview .nav-flyout-wide { width: 334px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.fresh-supplier-preview .nav-group:hover > .nav-flyout { transform: translate3d(-50%,0,0); }

.fresh-supplier-preview .nav-subitem {
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #6e7d72;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
}

.fresh-supplier-preview .nav-subitem i { color: #a2aea5; font-size: 14px; }
.fresh-supplier-preview .nav-subitem:hover,
.fresh-supplier-preview .nav-subitem.active {
    border-color: rgba(102,140,114,.12);
    background: rgba(215,230,217,.58);
    color: var(--fresh-green-deep);
    transform: none;
}

.fresh-supplier-preview .sidebar-account {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    border: 0;
}

.fresh-supplier-preview .sidebar-system-status {
    margin: 0;
    color: #839187;
    font-size: 9.5px;
    white-space: nowrap;
}

.fresh-supplier-preview .sidebar-system-status i {
    background: #71a181;
    box-shadow: 0 0 0 3px rgba(113,161,129,.10), 0 0 9px rgba(113,161,129,.22);
}

.fresh-supplier-preview .sidebar-account form { width: 154px; }
.fresh-supplier-preview .sidebar-user-card {
    min-height: 44px;
    padding: 5px 6px;
    gap: 8px;
    border-color: rgba(91,126,101,.17);
    border-radius: 8px;
    background: rgba(255,255,255,.54);
    color: var(--fresh-ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

.fresh-supplier-preview button.sidebar-user-card:hover,
.fresh-supplier-preview button.sidebar-user-card:focus-visible {
    border-color: rgba(102,140,114,.32);
    background: rgba(255,255,255,.78);
    box-shadow: 0 8px 22px rgba(66,99,73,.07);
}

.fresh-supplier-preview .sidebar-user-card .avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-color: rgba(102,140,114,.22);
    border-radius: 7px;
    background: linear-gradient(145deg, #e1ece2, #f8fbf7);
    color: var(--fresh-green-deep);
}

.fresh-supplier-preview .sidebar-user-card .user-meta strong { color: #405046; font-size: 11px; }
.fresh-supplier-preview .sidebar-user-card .user-meta small,
.fresh-supplier-preview .sidebar-logout { color: #88968c; font-size: 9px; }

.fresh-supplier-preview .main-panel {
    position: relative;
    min-height: calc(100vh - 72px);
    margin-left: 0;
    isolation: isolate;
}

.fresh-supplier-preview .main-panel::before {
    content: "";
    position: fixed;
    z-index: -1;
    right: -125px;
    bottom: -160px;
    width: 620px;
    height: 620px;
    border: 1px solid rgba(102,140,114,.10);
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 52%, rgba(120,174,176,.045) 52.2%, transparent 52.7%),
        repeating-conic-gradient(from 8deg, rgba(102,140,114,.055) 0 1deg, transparent 1deg 18deg);
    opacity: .65;
    pointer-events: none;
}

.fresh-supplier-preview .content-wrap,
.fresh-supplier-preview .content-wrap:has(.batch-parse-launcher) {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1540px;
    padding: 25px 30px 38px;
}

.fresh-supplier-preview .data-panel { gap: 10px; }
.fresh-supplier-preview .data-toolbar {
    min-height: 84px;
    padding: 14px 16px;
    border: 1px solid rgba(91,126,101,.18);
    border-radius: 12px;
    background: linear-gradient(118deg, rgba(251,253,250,.80), rgba(235,244,237,.68));
    box-shadow: 0 14px 38px rgba(58,91,66,.07), inset 0 1px 0 rgba(255,255,255,.92);
    backdrop-filter: blur(17px) saturate(108%);
}

.fresh-supplier-preview .data-toolbar::before {
    width: 250px;
    height: 125px;
    top: -92px;
    right: 8%;
    background: radial-gradient(circle, rgba(157,195,169,.30), rgba(132,181,177,.10) 48%, transparent 72%);
    filter: blur(7px);
}

.fresh-supplier-preview .data-toolbar::after {
    content: "SUP";
    position: absolute;
    right: 20px;
    bottom: 14px;
    padding: 4px 7px;
    border: 1px solid rgba(102,140,114,.20);
    border-radius: 5px;
    background: rgba(102,140,114,.045);
    color: rgba(69,102,83,.44);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .16em;
}

.fresh-supplier-preview .search-control {
    height: 43px;
    min-width: min(470px,100%);
    border: 1px solid rgba(102,140,114,.40);
    border-radius: 8px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 0 0 3px rgba(102,140,114,.035);
}

.fresh-supplier-preview .search-control span { color: var(--fresh-green); }
.fresh-supplier-preview .search-control input { border: 0; outline: 0; background: transparent !important; color: #405147; box-shadow: none !important; }
.fresh-supplier-preview .search-control input::placeholder { color: #99a59c; }
.fresh-supplier-preview .search-control:focus-within {
    border-color: var(--fresh-green);
    background: rgba(255,255,255,.90);
    box-shadow: 0 0 0 3px rgba(102,140,114,.075), 0 8px 24px rgba(71,111,82,.05);
}

.fresh-supplier-preview input,
.fresh-supplier-preview select,
.fresh-supplier-preview button { font-family: inherit; }

.fresh-supplier-preview .form-control,
.fresh-supplier-preview .form-select,
.fresh-supplier-preview .btn-light-custom,
.fresh-supplier-preview .btn-danger-soft,
.fresh-supplier-preview .btn-primary-custom {
    min-height: 39px;
    border-color: rgba(91,126,101,.19);
    border-radius: 7px;
    background-color: rgba(252,254,251,.68);
    color: #607066;
    font-size: 11px;
    box-shadow: none;
}

.fresh-supplier-preview .form-control:focus,
.fresh-supplier-preview .form-select:focus {
    border-color: rgba(102,140,114,.52);
    background-color: rgba(255,255,255,.90);
    color: #405147;
    box-shadow: 0 0 0 3px rgba(102,140,114,.07);
}

.fresh-supplier-preview .btn-primary-custom {
    border: 1px solid rgba(69,102,83,.08) !important;
    background: linear-gradient(120deg, #668c72, #547866);
    color: #fff;
    box-shadow: 0 8px 20px rgba(69,102,83,.13);
}

.fresh-supplier-preview .btn-primary-custom:hover { background: linear-gradient(120deg, #5b8167, #486c59); }
.fresh-supplier-preview .btn-light-custom:hover {
    border-color: rgba(102,140,114,.34);
    background: var(--fresh-soft);
    color: var(--fresh-green-deep);
}

.fresh-supplier-preview .btn-danger-soft {
    border-color: rgba(170,91,91,.16);
    background: rgba(170,91,91,.045);
    color: #a26363;
}

.fresh-supplier-preview .data-panel > .table-responsive {
    border: 1px solid rgba(91,126,101,.16);
    border-radius: 10px;
    background: rgba(250,253,249,.78);
    box-shadow: 0 16px 42px rgba(58,91,66,.065), inset 0 1px 0 rgba(255,255,255,.90);
    backdrop-filter: blur(14px);
}

.fresh-supplier-preview .management-table {
    min-width: 1160px;
    table-layout: fixed;
    color: #64746a;
    font-size: 10.5px;
}
.fresh-supplier-preview .management-table thead th {
    height: 42px;
    border-bottom-color: rgba(91,126,101,.17);
    background: rgba(220,233,221,.68);
    color: #66776c;
    font-size: 9.5px;
    font-weight: 650;
    letter-spacing: .055em;
}

.fresh-supplier-preview .management-table tbody td {
    height: 45px;
    border-bottom-color: rgba(91,126,101,.09);
    background: transparent;
    color: #69786f;
}

.fresh-supplier-preview .management-table tbody tr:hover td { background: rgba(220,234,223,.50); color: #405147; }
.fresh-supplier-preview .clickable-data-row:hover td:first-child,
.fresh-supplier-preview .clickable-data-row:focus-visible td:first-child { box-shadow: inset 2px 0 0 var(--fresh-green); }
.fresh-supplier-preview .table-primary-text { color: #3f5146; font-weight: 650; }
.fresh-supplier-preview .code-badge { border: 1px solid rgba(120,174,176,.13); border-radius: 5px; background: rgba(120,174,176,.11); color: #4f7d7e; }
.fresh-supplier-preview .category-badge { border: 1px solid rgba(102,140,114,.10); border-radius: 5px; background: rgba(184,204,185,.28); color: #577060; }

.fresh-supplier-preview .data-panel > .pagination-bar {
    min-height: 43px;
    border: 1px solid rgba(91,126,101,.14);
    border-radius: 9px;
    background: rgba(244,249,244,.68);
    box-shadow: none;
    color: #7c8b81;
    font-size: 10.5px;
}

.fresh-supplier-preview .pagination-links a,
.fresh-supplier-preview .pagination-links span { border-radius: 5px; }
.fresh-supplier-preview .pagination-links a.active { border-color: var(--fresh-green); background: var(--fresh-green); }

.fresh-supplier-preview .management-modal {
    border-color: rgba(91,126,101,.20);
    border-radius: 11px;
    background: #f3f8f2;
    color: #536258;
    box-shadow: 0 28px 82px rgba(44,71,51,.20);
}

.fresh-supplier-preview .modal-header,
.fresh-supplier-preview .modal-footer { border-color: rgba(91,126,101,.13); }
.fresh-supplier-preview .modal-title { color: #3c4e42; }

@media (max-width: 1220px) {
    .fresh-supplier-preview .sidebar { grid-template-columns: 72px minmax(0,1fr) 196px; padding: 0 14px; }
    .fresh-supplier-preview .nav-primary { padding: 0 7px; font-size: 11.5px; }
    .fresh-supplier-preview .sidebar-account form { width: 135px; }
    .fresh-supplier-preview .sidebar-system-status { display: none; }
}

@media (max-width: 900px) {
    .fresh-supplier-preview .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 260px;
        height: 100vh;
        padding: 0;
        display: flex;
        overflow-y: auto;
        transform: translateX(-100%);
    }
    .sidebar-open.fresh-supplier-preview .sidebar { transform: translateX(0); }
    .fresh-supplier-preview .brand { width: 100%; height: 88px; justify-content: center; }
    .fresh-supplier-preview .sidebar-nav { padding: 10px 14px; display: block; }
    .fresh-supplier-preview .nav-primary { width: 100%; min-height: 47px; padding: 0 12px; font-size: 14px; }
    .fresh-supplier-preview .nav-primary .nav-icon { display: grid; }
    .fresh-supplier-preview .nav-chevron { margin-left: auto; transform: none; }
    .fresh-supplier-preview .nav-flyout,
    .fresh-supplier-preview .nav-flyout-wide {
        position: static;
        width: auto;
        max-height: none;
        margin: 4px 0 8px 10px;
        display: none;
        grid-template-columns: 1fr;
        transform: none;
    }
    .fresh-supplier-preview .nav-group.open > .nav-flyout { display: grid; }
    .fresh-supplier-preview .sidebar-account { margin: auto 14px 14px; display: block; }
    .fresh-supplier-preview .sidebar-account form { width: 100%; }
    .fresh-supplier-preview .sidebar-system-status { margin: 0 8px 8px; display: flex; }
    .fresh-supplier-preview .content-wrap { padding: 64px 14px 28px; }
}

/* 采购对账布局试稿：保留原版色调，仅把导航与账户区迁到顶部。 */
.original-top-preview .sidebar {
    position: sticky;
    inset: 0 0 auto;
    z-index: 80;
    width: 100%;
    height: 72px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 92px minmax(0,1fr) 222px;
    align-items: center;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid rgba(220,226,228,.72);
    background: rgba(249,251,251,.84);
    color: #30383c;
    box-shadow: 0 10px 32px rgba(56,73,78,.05);
    backdrop-filter: blur(22px) saturate(118%);
}

.original-top-preview .brand {
    width: 72px;
    height: 66px;
    padding: 3px 0;
    justify-content: flex-start;
    overflow: hidden;
    border: 0;
}

.original-top-preview .brand-logo-viewport {
    width: 48px;
    height: 61px;
    flex-basis: 48px;
}

.original-top-preview .brand-logo-viewport img { width: 139px; }

.original-top-preview .sidebar-nav {
    min-width: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    overflow: visible;
}

.original-top-preview .nav-dashboard,
.original-top-preview .nav-group { margin: 0; }

.original-top-preview .nav-primary {
    width: auto;
    min-height: 38px;
    padding: 0 10px;
    gap: 5px;
    border: 0;
    border-radius: 8px;
    color: #68757a;
    font-size: 12.5px;
    font-weight: 600;
}

.original-top-preview .nav-primary .nav-icon { display: none; }
.original-top-preview .nav-chevron {
    margin-left: 1px;
    color: #9aa8ad;
    font-size: 14px;
    transform: rotate(90deg);
}

.original-top-preview .nav-primary:hover,
.original-top-preview .nav-primary:focus-visible,
.original-top-preview .nav-group.active > .nav-primary,
.original-top-preview .nav-dashboard.active {
    border: 0;
    outline: none;
    background: linear-gradient(110deg, rgba(255,255,255,.90), rgba(218,232,236,.52));
    color: #263338;
    box-shadow: inset 0 -1px 0 #79a8b4, 0 8px 22px rgba(76,102,112,.07);
    transform: none;
}

.original-top-preview .nav-group:hover .nav-chevron { color: #597a83; transform: rotate(90deg); }
.original-top-preview .nav-group::after { top: 100%; left: 0; width: 100%; height: 14px; }

.original-top-preview .nav-flyout,
.original-top-preview .nav-flyout-wide {
    top: calc(100% + 13px);
    left: 50%;
    width: 242px;
    max-height: calc(100vh - 92px);
    padding: 9px;
    grid-template-columns: 1fr;
    gap: 2px;
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 13px;
    background: rgba(249,251,251,.95);
    box-shadow: 0 20px 56px rgba(45,64,71,.16), inset 0 1px 0 rgba(255,255,255,.94);
    backdrop-filter: blur(24px) saturate(120%);
    transform: translate3d(-50%,-6px,0);
}

.original-top-preview .nav-flyout-wide { width: 350px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.original-top-preview .nav-group:hover > .nav-flyout { transform: translate3d(-50%,0,0); }

.original-top-preview .nav-subitem {
    min-height: 37px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #68757a;
    font-size: 12px;
    font-weight: 540;
}

.original-top-preview .nav-subitem i { color: #a7b0b4; font-size: 14px; }
.original-top-preview .nav-subitem:hover,
.original-top-preview .nav-subitem.active {
    border-color: rgba(148,181,191,.23);
    background: rgba(225,237,240,.58);
    color: #243338;
    transform: none;
}

.original-top-preview .sidebar-account {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    border: 0;
}

.original-top-preview .sidebar-system-status {
    margin: 0;
    color: #899398;
    font-size: 9.5px;
    white-space: nowrap;
}

.original-top-preview .sidebar-account form { width: 154px; }
.original-top-preview .sidebar-user-card {
    min-height: 44px;
    padding: 5px 6px;
    gap: 8px;
    border-color: rgba(220,226,228,.76);
    border-radius: 9px;
    background: rgba(255,255,255,.56);
    box-shadow: none;
}

.original-top-preview .sidebar-user-card .avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 8px;
}

.original-top-preview .sidebar-user-card .user-meta strong { font-size: 11px; }
.original-top-preview .sidebar-user-card .user-meta small,
.original-top-preview .sidebar-logout { font-size: 9px; }

.original-top-preview .main-panel {
    min-height: calc(100vh - 72px);
    margin-left: 0;
}

.original-top-preview .content-wrap,
.original-top-preview .content-wrap:has(.batch-parse-launcher) {
    width: 100%;
    max-width: 1500px;
    padding: 22px 26px;
}

@media (max-width: 1220px) {
    .original-top-preview .sidebar { grid-template-columns: 72px minmax(0,1fr) 196px; padding: 0 14px; }
    .original-top-preview .nav-primary { padding: 0 7px; font-size: 11.5px; }
    .original-top-preview .sidebar-account form { width: 135px; }
    .original-top-preview .sidebar-system-status { display: none; }
}

@media (max-width: 900px) {
    .original-top-preview .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 260px;
        height: 100vh;
        padding: 0;
        display: flex;
        overflow-y: auto;
        transform: translateX(-100%);
    }
    .sidebar-open.original-top-preview .sidebar { transform: translateX(0); }
    .original-top-preview .brand { width: 100%; height: 88px; justify-content: center; }
    .original-top-preview .sidebar-nav { padding: 10px 14px; display: block; }
    .original-top-preview .nav-primary { width: 100%; min-height: 47px; padding: 0 12px; font-size: 14px; }
    .original-top-preview .nav-primary .nav-icon { display: grid; }
    .original-top-preview .nav-chevron { margin-left: auto; transform: none; }
    .original-top-preview .nav-flyout,
    .original-top-preview .nav-flyout-wide {
        position: static;
        width: auto;
        max-height: none;
        margin: 4px 0 8px 10px;
        display: none;
        grid-template-columns: 1fr;
        transform: none;
    }
    .original-top-preview .nav-group.open > .nav-flyout { display: grid; }
    .original-top-preview .sidebar-account { margin: auto 14px 14px; display: block; }
    .original-top-preview .sidebar-account form { width: 100%; }
    .original-top-preview .sidebar-system-status { margin: 0 8px 8px; display: flex; }
    .original-top-preview .content-wrap { padding: 64px 14px 28px; }
}

/* 退货对账 / 付款管理试稿：京东式红白秩序与淘宝式暖橙搜索体验。 */
body.jd-return-recon-preview {
    --market-accent: #e1251b;
    --market-accent-deep: #c81623;
    --market-soft: #fff1f0;
    --market-page: #f5f5f5;
    --market-ink: #262626;
    --market-muted: #888;
    --market-line: #e8e8e8;
    background: var(--market-page);
    color: var(--market-ink);
}

body.taobao-payment-preview {
    --market-accent: #ff5000;
    --market-accent-deep: #ff2f00;
    --market-soft: #fff2e8;
    --market-page: #f6f6f6;
    --market-ink: #2b2b2b;
    --market-muted: #8a8a8a;
    --market-line: #eee7e2;
    background: var(--market-page);
    color: var(--market-ink);
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .app-shell {
    display: block;
    min-height: 100vh;
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar {
    position: sticky;
    inset: 0 0 auto;
    z-index: 80;
    width: 100%;
    height: 72px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 92px minmax(0,1fr) 222px;
    align-items: center;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,.055);
    background: rgba(255,255,255,.96);
    color: var(--market-ink);
    box-shadow: 0 6px 24px rgba(46,34,25,.045);
    backdrop-filter: blur(18px) saturate(120%);
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .brand {
    width: 72px;
    height: 66px;
    padding: 3px 0;
    justify-content: flex-start;
    overflow: hidden;
    border: 0;
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .brand-logo-viewport {
    width: 48px;
    height: 61px;
    flex-basis: 48px;
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .brand-logo-viewport img { width: 139px; }

:is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar-nav {
    min-width: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    overflow: visible;
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-dashboard,
:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-group { margin: 0; }

:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-primary {
    width: auto;
    min-height: 38px;
    padding: 0 10px;
    gap: 5px;
    border: 0;
    border-radius: 8px;
    color: #666;
    font-size: 12.5px;
    font-weight: 600;
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-primary .nav-icon { display: none; }
:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-chevron {
    margin-left: 1px;
    color: #aaa;
    font-size: 14px;
    transform: rotate(90deg);
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-primary:hover,
:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-primary:focus-visible,
:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-group.active > .nav-primary,
:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-dashboard.active {
    border: 0;
    outline: none;
    background: var(--market-soft);
    color: var(--market-accent);
    box-shadow: inset 0 -2px 0 var(--market-accent);
    transform: none;
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-group:hover .nav-chevron {
    color: var(--market-accent);
    transform: rotate(90deg);
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-group::after { top: 100%; left: 0; width: 100%; height: 14px; }

:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-flyout,
:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-flyout-wide {
    top: calc(100% + 13px);
    left: 50%;
    width: 242px;
    max-height: calc(100vh - 92px);
    padding: 9px;
    grid-template-columns: 1fr;
    gap: 2px;
    border: 1px solid rgba(0,0,0,.055);
    border-radius: 12px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 50px rgba(65,40,24,.16);
    backdrop-filter: blur(20px) saturate(118%);
    transform: translate3d(-50%,-6px,0);
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-flyout-wide { width: 350px; grid-template-columns: repeat(2,minmax(0,1fr)); }
:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-group:hover > .nav-flyout { transform: translate3d(-50%,0,0); }

:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-subitem {
    min-height: 37px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #666;
    font-size: 12px;
    font-weight: 540;
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-subitem i { color: #bbb; font-size: 14px; }
:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-subitem:hover,
:is(.jd-return-recon-preview, .taobao-payment-preview) .nav-subitem.active {
    border-color: color-mix(in srgb, var(--market-accent) 14%, transparent);
    background: var(--market-soft);
    color: var(--market-accent);
    transform: none;
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar-account {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    border: 0;
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar-system-status {
    margin: 0;
    color: #999;
    font-size: 9.5px;
    white-space: nowrap;
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar-system-status i { background: var(--market-accent); }
:is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar-account form { width: 154px; }
:is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar-user-card {
    min-height: 44px;
    padding: 5px 6px;
    gap: 8px;
    border-color: var(--market-line);
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar-user-card .avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 8px;
    background: var(--market-accent);
    color: #fff;
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar-user-card .user-meta strong { color: #333; font-size: 11px; }
:is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar-user-card .user-meta small,
:is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar-logout { color: #999; font-size: 9px; }

:is(.jd-return-recon-preview, .taobao-payment-preview) .main-panel {
    min-height: calc(100vh - 72px);
    margin-left: 0;
    background: transparent;
}

:is(.jd-return-recon-preview, .taobao-payment-preview) .content-wrap,
:is(.jd-return-recon-preview, .taobao-payment-preview) .content-wrap:has(.batch-parse-launcher) {
    width: 100%;
    max-width: 1500px;
    padding: 22px 26px 32px;
}

/* 京东式退货对账：鲜明红白、直线层级、信息密度高。 */
.jd-return-recon-preview .data-panel { gap: 12px; }
.jd-return-recon-preview .business-toolbar {
    min-height: 76px;
    padding: 16px 18px;
    flex-wrap: nowrap;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(36,36,36,.035);
}

.jd-return-recon-preview .business-toolbar > .filter-form {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: nowrap;
}

.jd-return-recon-preview .business-toolbar > form:not(.filter-form) {
    flex: 0 0 auto;
    margin-left: 0;
}

.jd-return-recon-preview .search-control {
    width: auto;
    min-width: 220px;
    flex: 1 1 300px;
    height: 42px;
    border: 2px solid var(--market-accent);
    border-radius: 2px;
    background: #fff;
    box-shadow: none;
}

.jd-return-recon-preview .search-control span { color: var(--market-accent); font-size: 20px; }
.jd-return-recon-preview .search-control input { color: #333; }
.jd-return-recon-preview .search-control:focus-within { border-color: var(--market-accent-deep); box-shadow: 0 0 0 3px rgba(225,37,27,.08); }
.jd-return-recon-preview .form-control,
.jd-return-recon-preview .form-select,
.jd-return-recon-preview .btn-light-custom {
    min-height: 40px;
    border-color: #ddd;
    border-radius: 3px;
    background: #fff;
    color: #555;
    box-shadow: none;
}

.jd-return-recon-preview .btn-light-custom:hover,
.jd-return-recon-preview .btn-light-custom:focus-visible {
    border-color: var(--market-accent);
    background: var(--market-soft);
    color: var(--market-accent);
}

.jd-return-recon-preview .data-panel > .table-responsive {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(36,36,36,.035);
}

.jd-return-recon-preview .management-table { color: #555; font-size: 12px; }
.jd-return-recon-preview .management-table thead th {
    height: 43px;
    border-bottom: 1px solid #ddd;
    background: #f7f7f7;
    color: #555;
    font-weight: 700;
}

.jd-return-recon-preview .management-table tbody td { height: 48px; border-color: #eee; background: #fff; }
.jd-return-recon-preview .management-table tbody tr:hover td { background: #fff7f7; color: #333; }
.jd-return-recon-preview .clickable-data-row:hover td:first-child { box-shadow: inset 3px 0 0 var(--market-accent); }
.jd-return-recon-preview .table-primary-text { color: #333; }
.jd-return-recon-preview .money-cell,
.jd-return-recon-preview .money-cell.accent { color: var(--market-accent) !important; }
.jd-return-recon-preview .category-badge { border: 0; border-radius: 2px; background: #f1f1f1; color: #666; }
.jd-return-recon-preview .recon-status { border-radius: 2px; }
.jd-return-recon-preview .recon-status.pending { background: #fff0f0; color: var(--market-accent); }
.jd-return-recon-preview .recon-status.done { background: #f0f7f1; color: #36824b; }
.jd-return-recon-preview .mini-progress i { background: var(--market-accent); }
.jd-return-recon-preview .management-modal { border: 0; border-radius: 8px; background: #fff; box-shadow: 0 26px 90px rgba(40,20,18,.24); }
.jd-return-recon-preview .recon-workbench-header { border-top: 0; }
.jd-return-recon-preview .modal-title { color: #333; }
.jd-return-recon-preview .recon-order-row.active { border-color: rgba(225,37,27,.22); background: #fff7f7; }
.jd-return-recon-preview .recon-balance-cards { background: #fafafa; }
.jd-return-recon-preview .recon-balance-cards > span:last-child strong { color: var(--market-accent); }
.jd-return-recon-preview .btn-primary-custom { background: var(--market-accent); box-shadow: none; }
.jd-return-recon-preview .btn-primary-custom:hover { background: var(--market-accent-deep); }

/* 淘宝式付款管理：暖橙搜索、柔和圆角、轻量卡片。 */
.taobao-payment-preview .content-wrap { max-width: 1540px; }
.taobao-payment-preview .data-panel {
    gap: 12px;
    padding: 16px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 42px rgba(105,66,34,.055);
}

.taobao-payment-preview .quick-filter-row {
    min-height: 38px;
    padding: 0 6px;
    gap: 26px;
    border-bottom: 1px solid #f1ece8;
}

.taobao-payment-preview .quick-filter { color: #666; font-weight: 650; }
.taobao-payment-preview .quick-filter:hover,
.taobao-payment-preview .quick-filter.active { color: var(--market-accent); }
.taobao-payment-preview .quick-filter.active::after { height: 3px; border-radius: 3px; background: linear-gradient(90deg,#ff8a00,var(--market-accent)); }

.taobao-payment-preview .business-toolbar {
    padding: 13px 14px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(105deg, #fff8f2 0%, #fff 56%, #fff4ea 100%);
    box-shadow: inset 0 0 0 1px rgba(255,80,0,.065);
}

.taobao-payment-preview .search-control {
    min-width: 340px;
    height: 44px;
    padding-right: 2px;
    border: 2px solid var(--market-accent);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(255,80,0,.08);
}

.taobao-payment-preview .market-search-submit {
    height: 34px;
    margin-left: 7px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(90deg,#ff8b00,var(--market-accent));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.taobao-payment-preview .market-search-submit:hover,
.taobao-payment-preview .market-search-submit:focus-visible {
    background: linear-gradient(90deg,#ff7600,var(--market-accent-deep));
    box-shadow: 0 5px 14px rgba(255,80,0,.20);
}

.taobao-payment-preview .search-control span { color: var(--market-accent); font-size: 20px; }
.taobao-payment-preview .search-control input { color: #333; }
.taobao-payment-preview .search-control:focus-within { border-color: var(--market-accent-deep); box-shadow: 0 8px 26px rgba(255,80,0,.14); }
.taobao-payment-preview .form-control,
.taobao-payment-preview .form-select,
.taobao-payment-preview .btn-light-custom,
.taobao-payment-preview .btn-danger-soft {
    min-height: 40px;
    border-color: #eadfd8;
    border-radius: 10px;
    background: #fff;
    color: #665a53;
    box-shadow: none;
}

.taobao-payment-preview .btn-light-custom:hover,
.taobao-payment-preview .btn-light-custom:focus-visible {
    border-color: rgba(255,80,0,.35);
    background: var(--market-soft);
    color: var(--market-accent);
}

.taobao-payment-preview .payment-actions form:nth-child(2) .btn-light-custom {
    border-color: transparent;
    background: linear-gradient(90deg,#ff8a00,var(--market-accent));
    color: #fff;
}

.taobao-payment-preview .btn-danger-soft { background: #fff7f5; color: #d94d36; }
.taobao-payment-preview .data-panel > .table-responsive {
    border: 1px solid #f0ebe7;
    border-radius: 13px;
    background: #fff;
    overflow: auto;
}

.taobao-payment-preview .management-table { color: #625a55; font-size: 11.5px; }
.taobao-payment-preview .management-table thead th {
    height: 43px;
    border-color: #eee8e4;
    background: #faf8f6;
    color: #6c625d;
    font-weight: 700;
}

.taobao-payment-preview .management-table tbody td { height: 50px; border-color: #f2eeeb; background: #fff; }
.taobao-payment-preview .management-table tbody tr:hover td { background: #fff8f3; color: #3c3531; }
.taobao-payment-preview .clickable-data-row:hover td:first-child { box-shadow: inset 3px 0 0 var(--market-accent); }
.taobao-payment-preview .table-primary-text { color: #333; }
.taobao-payment-preview .money-cell { color: var(--market-accent) !important; font-weight: 750; }
.taobao-payment-preview .supplier-match-select { border-radius: 8px; }
.taobao-payment-preview .recon-status { border-radius: 10px; }
.taobao-payment-preview .recon-status.pending { background: #fff0e7; color: var(--market-accent); }
.taobao-payment-preview .recon-status.done { background: #edf7ef; color: #38834c; }
.taobao-payment-preview .pagination-bar { padding: 3px 2px 0; }
.taobao-payment-preview .pagination-links a,
.taobao-payment-preview .pagination-links span { border-radius: 9px; }
.taobao-payment-preview .pagination-links a.active { border-color: var(--market-accent); background: var(--market-accent); color: #fff; }
.taobao-payment-preview .management-modal { border: 0; border-radius: 16px; background: #fff; box-shadow: 0 28px 92px rgba(83,49,28,.24); }
.taobao-payment-preview .modal-header { border-bottom-color: #f1e8e2; background: linear-gradient(90deg,#fff8f3,#fff); }
.taobao-payment-preview .modal-title { color: #3b332f; }
.taobao-payment-preview .btn-primary-custom { background: linear-gradient(90deg,#ff8a00,var(--market-accent)); box-shadow: none; }

@media (max-width: 1220px) {
    :is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar { grid-template-columns: 72px minmax(0,1fr) 196px; padding: 0 14px; }
    :is(.jd-return-recon-preview, .taobao-payment-preview) .nav-primary { padding: 0 7px; font-size: 11.5px; }
    :is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar-account form { width: 135px; }
    :is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar-system-status { display: none; }
    .taobao-payment-preview .search-control { min-width: 280px; }
    .jd-return-recon-preview .business-toolbar { flex-wrap: wrap; }
    .jd-return-recon-preview .business-toolbar > .filter-form { flex-wrap: wrap; }
}

@media (max-width: 900px) {
    :is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 260px;
        height: 100vh;
        padding: 0;
        display: flex;
        overflow-y: auto;
        transform: translateX(-100%);
    }
    .sidebar-open:is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar { transform: translateX(0); }
    :is(.jd-return-recon-preview, .taobao-payment-preview) .brand { width: 100%; height: 88px; justify-content: center; }
    :is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar-nav { padding: 10px 14px; display: block; }
    :is(.jd-return-recon-preview, .taobao-payment-preview) .nav-primary { width: 100%; min-height: 47px; padding: 0 12px; font-size: 14px; }
    :is(.jd-return-recon-preview, .taobao-payment-preview) .nav-primary .nav-icon { display: grid; }
    :is(.jd-return-recon-preview, .taobao-payment-preview) .nav-chevron { margin-left: auto; transform: none; }
    :is(.jd-return-recon-preview, .taobao-payment-preview) .nav-flyout,
    :is(.jd-return-recon-preview, .taobao-payment-preview) .nav-flyout-wide {
        position: static;
        width: auto;
        max-height: none;
        margin: 4px 0 8px 10px;
        display: none;
        grid-template-columns: 1fr;
        transform: none;
    }
    :is(.jd-return-recon-preview, .taobao-payment-preview) .nav-group.open > .nav-flyout { display: grid; }
    :is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar-account { margin: auto 14px 14px; display: block; }
    :is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar-account form { width: 100%; }
    :is(.jd-return-recon-preview, .taobao-payment-preview) .sidebar-system-status { margin: 0 8px 8px; display: flex; }
    :is(.jd-return-recon-preview, .taobao-payment-preview) .content-wrap { padding: 64px 14px 28px; }
    :is(.jd-return-recon-preview, .taobao-payment-preview) .search-control { min-width: 100%; }
}

/* 供应商余额试稿：石墨灰、珍珠银与柔和玻璃渐变。 */
body.gray-balance-preview {
    --gray-950: #26282b;
    --gray-800: #44474b;
    --gray-650: #686c71;
    --gray-300: #d5d8dc;
    --gray-150: #eceef0;
    --gray-50: #f7f8f9;
    background:
        radial-gradient(circle at 9% 20%, rgba(255,255,255,.96) 0 13%, transparent 35%),
        radial-gradient(circle at 92% 78%, rgba(183,188,194,.18), transparent 29%),
        linear-gradient(135deg, #f6f7f8 0%, #e7e9ec 50%, #f3f4f5 100%);
    color: var(--gray-950);
}

.gray-balance-preview .sidebar {
    border-bottom-color: rgba(52,56,60,.12);
    background: linear-gradient(105deg, rgba(251,252,252,.96), rgba(227,230,233,.91) 52%, rgba(250,251,252,.96));
    box-shadow: 0 10px 34px rgba(38,42,46,.08), inset 0 1px 0 rgba(255,255,255,.90);
}

.gray-balance-preview .nav-primary:hover,
.gray-balance-preview .nav-primary:focus-visible,
.gray-balance-preview .nav-group.active > .nav-primary,
.gray-balance-preview .nav-dashboard.active {
    background: linear-gradient(120deg, rgba(255,255,255,.86), rgba(195,199,203,.54));
    color: #292c2f;
    box-shadow: inset 0 -2px 0 #50545a, 0 7px 18px rgba(45,49,53,.08);
}

.gray-balance-preview .nav-group:hover .nav-chevron { color: #464b50; }
.gray-balance-preview .nav-flyout,
.gray-balance-preview .nav-flyout-wide {
    border-color: rgba(59,63,67,.14);
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(230,232,234,.97));
    box-shadow: 0 22px 60px rgba(32,35,38,.20), inset 0 1px 0 #fff;
}

.gray-balance-preview .nav-subitem:hover,
.gray-balance-preview .nav-subitem.active {
    border-color: rgba(67,72,77,.10);
    background: linear-gradient(100deg, rgba(255,255,255,.82), rgba(198,202,206,.50));
    color: #2d3033;
}

.gray-balance-preview .sidebar-system-status i {
    background: #71767b;
    box-shadow: 0 0 0 3px rgba(75,80,85,.08);
}

.gray-balance-preview .sidebar-user-card .avatar {
    border-color: rgba(255,255,255,.50);
    background: linear-gradient(145deg,#676b70,#2f3236);
    color: #fff;
}

.gray-balance-preview .main-panel {
    background:
        linear-gradient(115deg, rgba(255,255,255,.20), transparent 30%),
        radial-gradient(circle at 77% 12%, rgba(255,255,255,.70), transparent 26%);
}

.gray-balance-preview .content-wrap { max-width: 1520px; padding-top: 24px; }
.gray-balance-preview .data-panel {
    gap: 12px;
    padding: 15px;
    border: 1px solid rgba(72,76,80,.10);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(226,229,232,.72));
    box-shadow: 0 20px 55px rgba(51,55,59,.08), inset 0 1px 0 rgba(255,255,255,.95);
    backdrop-filter: blur(22px) saturate(106%);
}

.gray-balance-preview .quick-filter-row {
    min-height: 42px;
    padding: 0 9px;
    gap: 6px;
    border: 1px solid rgba(69,73,77,.09);
    border-radius: 11px;
    background: linear-gradient(105deg, rgba(246,247,248,.90), rgba(216,219,222,.64));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}

.gray-balance-preview .quick-filter {
    padding: 0 17px;
    border-radius: 8px;
    color: #777b80;
    font-weight: 650;
}

.gray-balance-preview .quick-filter:hover { color: #363a3e; }
.gray-balance-preview .quick-filter.active {
    background: linear-gradient(135deg,#5b6065,#2e3135);
    color: #fff;
    box-shadow: 0 7px 17px rgba(40,43,46,.16), inset 0 1px 0 rgba(255,255,255,.16);
}
.gray-balance-preview .quick-filter.active::after { display: none; }

.gray-balance-preview .business-toolbar {
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid rgba(66,70,75,.10);
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(255,255,255,.92), rgba(226,229,232,.82) 58%, rgba(249,250,250,.92));
    box-shadow: 0 10px 28px rgba(43,47,51,.055), inset 0 1px 0 #fff;
}

.gray-balance-preview .business-toolbar::before {
    width: 180px;
    height: 180px;
    top: -105px;
    right: 8%;
    background: radial-gradient(circle, rgba(255,255,255,.85), rgba(158,164,170,.10) 42%, transparent 70%);
    filter: blur(3px);
}

.gray-balance-preview .search-control {
    min-width: min(440px, 100%);
    height: 44px;
    border: 1px solid rgba(76,81,86,.24);
    border-radius: 11px;
    background: linear-gradient(100deg, rgba(255,255,255,.98), rgba(242,243,244,.90));
    box-shadow: inset 0 1px 0 #fff, 0 7px 20px rgba(49,53,57,.05);
}

.gray-balance-preview .search-control > span::before { border-color: #666b70; }
.gray-balance-preview .search-control > span::after { background: #666b70; }
.gray-balance-preview .search-control:focus-within {
    border-color: #777c81;
    box-shadow: 0 0 0 4px rgba(85,90,95,.08), 0 9px 24px rgba(45,49,53,.07);
}

.gray-balance-preview .form-control,
.gray-balance-preview .form-select,
.gray-balance-preview .btn-light-custom {
    min-height: 40px;
    border-color: rgba(81,85,90,.18);
    border-radius: 9px;
    background: linear-gradient(145deg,#fff,#eceef0);
    color: #55595e;
    box-shadow: inset 0 1px 0 #fff;
}

.gray-balance-preview .btn-light-custom:hover {
    border-color: #7d8287;
    background: linear-gradient(145deg,#f8f9fa,#dfe2e4);
    color: #2f3235;
}

.gray-balance-preview .btn-primary-custom {
    min-height: 42px;
    border-radius: 9px;
    background: linear-gradient(125deg,#73787d 0%,#34373b 58%,#585d62 100%);
    color: #fff;
    box-shadow: 0 9px 22px rgba(42,45,48,.18), inset 0 1px 0 rgba(255,255,255,.18);
}

.gray-balance-preview .btn-primary-custom:hover {
    background: linear-gradient(125deg,#656a6f,#282b2e 60%,#4d5156);
    transform: translateY(-1px);
}

.gray-balance-preview .data-panel > .table-responsive {
    border: 1px solid rgba(66,70,74,.11);
    border-radius: 12px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 14px 35px rgba(42,46,50,.065), inset 0 1px 0 #fff;
}

.gray-balance-preview .management-table { color: #55595d; font-size: 11.5px; }
.gray-balance-preview .management-table thead th {
    height: 44px;
    border-bottom-color: rgba(65,69,73,.14);
    background: linear-gradient(180deg,#f5f6f7,#dfe2e4);
    color: #51555a;
    font-weight: 700;
    text-shadow: 0 1px 0 #fff;
}

.gray-balance-preview .management-table tbody td {
    height: 48px;
    border-bottom-color: rgba(73,77,81,.08);
    background: rgba(253,253,253,.76);
}

.gray-balance-preview .management-table tbody tr:nth-child(even) td { background: rgba(242,243,244,.72); }
.gray-balance-preview .management-table tbody tr:hover td { background: linear-gradient(90deg,#f9fafb,#e8eaec); color: #303337; }

/* Freight write-off */
.freight-writeoff-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); overflow:hidden; margin-bottom:12px; }
.freight-writeoff-summary a { min-height:104px; padding:20px 24px; border-right:1px solid var(--line); color:#5d6f85; text-decoration:none; background:#fff; }
.freight-writeoff-summary a:last-child { border-right:0; }
.freight-writeoff-summary a:hover { background:#f6faff; }
.freight-writeoff-summary span,.freight-writeoff-summary small { display:block; font-size:12px; }
.freight-writeoff-summary strong { display:block; margin:5px 0 2px; color:#183653; font-size:27px; line-height:1.15; }
.freight-writeoff-summary .pending strong { color:#ef5a45; }
.freight-writeoff-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 16px; margin-bottom:10px; }
.freight-writeoff-filter { display:flex; align-items:center; gap:10px; min-width:0; flex:1; }
.freight-writeoff-filter .search-control { width:min(620px,50vw); }
.freight-writeoff-filter .form-select { width:150px; height:42px; border-color:#dbe6f2; font-size:12px; }
.freight-writeoff-tabs { display:flex; align-items:center; gap:6px; padding:6px; margin-bottom:10px; width:max-content; }
.freight-writeoff-tabs a { min-width:86px; padding:9px 16px; border-radius:10px; color:#647a91; font-size:12px; text-align:center; text-decoration:none; }
.freight-writeoff-tabs a.active { background:#3f8fd8; color:#fff; box-shadow:0 5px 14px rgba(63,143,216,.18); }
.freight-writeoff-panel { min-height:420px; }
.freight-writeoff-table { min-width:1680px; }
.freight-writeoff-table tbody td { height:68px; }
.freight-writeoff-table td small { display:block; margin-top:5px; color:#93a0ae; font-size:10px; }
.freight-writeoff-status { display:inline-flex; align-items:center; min-width:62px; justify-content:center; padding:5px 9px; border-radius:8px; color:#2f78b9; background:#eaf4ff; font-size:11px; }
.freight-writeoff-status.pending { color:#e54c3e; background:#fff0ed; }
.freight-writeoff-status.manual { color:#7960bc; background:#f1edff; }
.freight-manual-form { display:flex; align-items:center; gap:6px; }
.freight-manual-form input { width:160px; height:34px; border:1px solid #dbe5ef; border-radius:8px; padding:0 9px; color:#334b63; font-size:11px; }
.freight-manual-form button { height:34px; padding:0 12px; border:0; border-radius:8px; color:#fff; background:#3f8fd8; font-size:11px; }
.jushuitan-writeoff-entry { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:15px 18px; margin:12px 0; }
.jushuitan-writeoff-entry div { display:flex; align-items:baseline; gap:14px; }
.jushuitan-writeoff-entry strong { color:#1d3853; font-size:14px; }
.jushuitan-writeoff-entry span { color:#8290a1; font-size:11px; }
@media (max-width:900px) {
    .freight-writeoff-summary { grid-template-columns:repeat(2,1fr); }
    .freight-writeoff-toolbar,.freight-writeoff-filter { align-items:stretch; flex-direction:column; }
    .freight-writeoff-filter .search-control { width:100%; }
}
.gray-balance-preview .clickable-data-row:hover td:first-child { box-shadow: inset 3px 0 0 #5d6267; }
.gray-balance-preview .table-primary-text { color: #2f3235; font-weight: 700; }
.gray-balance-preview .supplier-code-line { color: #92969a; }
.gray-balance-preview .money-cell { color: #555a5f !important; }
.gray-balance-preview .balance-number {
    min-width: 74px;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}
.gray-balance-preview .balance-number.negative { background: linear-gradient(135deg,#f7e8e9,#ead4d6); color: #963f47; }
.gray-balance-preview .balance-number.positive { background: linear-gradient(135deg,#e9f0ec,#dce7e0); color: #47705c; }
.gray-balance-preview .balance-number.zero { background: linear-gradient(135deg,#f1f2f3,#e4e6e8); color: #74787c; }

.gray-balance-preview .pagination-bar {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(100deg,rgba(248,249,250,.86),rgba(217,220,223,.68));
    color: #74787c;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}
.gray-balance-preview .pagination-links a,
.gray-balance-preview .pagination-links span { border-radius: 8px; }
.gray-balance-preview .pagination-links a.active { border-color: #4e5358; background: linear-gradient(135deg,#62676c,#34373a); color: #fff; }

.gray-balance-preview .management-modal {
    border: 1px solid rgba(62,66,70,.13);
    border-radius: 15px;
    background: linear-gradient(145deg,#fafbfb,#e5e7e9);
    box-shadow: 0 30px 95px rgba(32,35,38,.26), inset 0 1px 0 #fff;
}
.gray-balance-preview .modal-header,
.gray-balance-preview .modal-footer { border-color: rgba(71,75,79,.11); }
.gray-balance-preview .modal-title { color: #313438; }

/* 采购对账详情：沿用银行流水页的暖橙、暖白与圆角卡片语言。 */
.recon-payment-detail-preview .recon-workbench-dialog {
    width: min(1220px, calc(100vw - 34px));
    max-width: 1220px;
}

.recon-payment-detail-preview .management-modal.recon-workbench {
    --recon-orange: #ff5000;
    --recon-orange-deep: #ff3100;
    --recon-warm-soft: #fff6ef;
    --recon-warm-line: #eee4dc;
    border: 0;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 30px 96px rgba(78,46,26,.25);
}

.recon-payment-detail-preview .recon-workbench .recon-workbench-header {
    min-height: 60px;
    padding: 11px 18px;
    border-bottom: 1px solid var(--recon-warm-line);
    background: linear-gradient(100deg,#fff8f3 0%,#fff 58%,#fff9f5 100%);
}

.recon-payment-detail-preview .recon-workbench-header .modal-title {
    color: #322c29;
    font-size: 19px;
    font-weight: 760;
}

.recon-payment-detail-preview .recon-workbench .btn-close {
    border-radius: 50%;
    transition: background-color .22s ease, transform .22s ease;
}
.recon-payment-detail-preview .recon-workbench .btn-close:hover { background-color: #fff0e7; transform: rotate(5deg); }

.recon-payment-detail-preview .recon-workbench .modal-body {
    padding: 13px 15px 12px;
    background: linear-gradient(145deg,#fff 0%,#fffdfb 54%,#fff8f2 100%);
}

.recon-payment-detail-preview .recon-supplier-info {
    margin-bottom: 11px;
    gap: 9px;
}

.recon-payment-detail-preview .recon-supplier-info > div {
    min-height: 53px;
    padding: 8px 11px;
    border: 1px solid var(--recon-warm-line);
    border-radius: 10px;
    background: linear-gradient(135deg,#fff,#fff9f4);
    box-shadow: 0 6px 18px rgba(92,58,34,.035), inset 0 1px 0 #fff;
}

.recon-payment-detail-preview .recon-supplier-info > div:last-child { border-right-color: var(--recon-warm-line); }
.recon-payment-detail-preview .recon-supplier-info small { color: #a1948b; }
.recon-payment-detail-preview .recon-supplier-info strong,
.recon-payment-detail-preview .recon-copy-value { color: #3d3531; }
.recon-payment-detail-preview .recon-copy-value:not(:disabled):hover,
.recon-payment-detail-preview .recon-copy-value:not(:disabled):focus-visible,
.recon-payment-detail-preview .recon-copy-value.is-copied,
.recon-payment-detail-preview .product-code-copy.is-copied {
    color: var(--recon-orange);
    text-shadow: 0 0 13px rgba(255,80,0,.17);
}

.recon-payment-detail-preview .recon-workbench-grid {
    height: 488px;
    flex-basis: 488px;
    gap: 11px;
    grid-template-columns: minmax(0, 1.03fr) minmax(440px, .97fr);
}

.recon-payment-detail-preview .recon-preview-pane,
.recon-payment-detail-preview .recon-list-pane {
    overflow: hidden;
    border: 1px solid var(--recon-warm-line);
    border-radius: 13px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 27px rgba(85,52,31,.045), inset 0 1px 0 #fff;
}

.recon-payment-detail-preview .recon-preview-pane { border-right: 1px solid var(--recon-warm-line); }
.recon-payment-detail-preview .recon-items-table thead th {
    border-bottom-color: #eadfd7;
    background: linear-gradient(180deg,#fcfaf8,#f3ede8);
    color: #74675f;
    backdrop-filter: none;
}

.recon-payment-detail-preview .recon-items-table tbody td {
    border-bottom-color: #f2ebe6;
    background: #fff;
    color: #564c46;
}
.recon-payment-detail-preview .recon-items-table tbody tr:hover td { background: #fff8f3; }
.recon-payment-detail-preview .product-code-copy { color: #5b514b; }
.recon-payment-detail-preview .product-code-copy:hover,
.recon-payment-detail-preview .product-code-copy:focus-visible { color: var(--recon-orange); }

.recon-payment-detail-preview .recon-item-pagination {
    border-top-color: var(--recon-warm-line);
    background: #fffaf6;
}
.recon-payment-detail-preview .recon-item-pagination button,
.recon-payment-detail-preview .recon-item-pagination span { border-color: #eadfd7; color: #7d6f66; }

.recon-payment-detail-preview .recon-total-heading {
    min-height: 46px;
    padding: 0 12px;
    border-bottom: 1px solid #f1e7e0;
    background: linear-gradient(90deg,#fff,#fff8f3) !important;
}
.recon-payment-detail-preview .recon-total-heading strong { color: var(--recon-orange); font-size: 17px; }

.recon-payment-detail-preview .recon-order-list {
    padding: 8px;
    background: #fffdfb !important;
}
.recon-payment-detail-preview .recon-order-row {
    margin-bottom: 7px;
    border-color: #eee5df;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 13px rgba(85,51,29,.025);
}
.recon-payment-detail-preview .recon-order-row:hover,
.recon-payment-detail-preview .recon-order-row.active {
    border-color: rgba(255,80,0,.30);
    background: linear-gradient(100deg,#fffaf6,#fff3e9);
    box-shadow: 0 0 0 2px rgba(255,80,0,.055), 0 7px 17px rgba(255,80,0,.045);
}
.recon-payment-detail-preview .recon-order-row:focus-visible { outline-color: rgba(255,80,0,.30); }
.recon-payment-detail-preview .recon-order-index {
    border-radius: 7px;
    background: #fff0e5;
    color: var(--recon-orange);
}
.recon-payment-detail-preview .recon-order-identity strong { color: #3a332f; }
.recon-payment-detail-preview .recon-order-tags i { background: #f6f1ed; color: #776a62; }
.recon-payment-detail-preview .recon-original-amount strong { color: #514943; }
.recon-payment-detail-preview .recon-amount-input {
    border-color: #eadbd1;
    border-radius: 8px;
    background: #fff;
    color: var(--recon-orange);
    font-weight: 750;
}
.recon-payment-detail-preview .recon-amount-input:focus {
    border-color: var(--recon-orange);
    box-shadow: 0 0 0 3px rgba(255,80,0,.09);
}

.recon-payment-detail-preview .recon-settlement-panel {
    padding: 8px 9px 9px;
    border-top: 1px solid var(--recon-warm-line);
    background: linear-gradient(150deg,#fff 0%,#fff8f3 100%) !important;
}
.recon-payment-detail-preview .recon-balance-cards {
    gap: 8px;
    border-radius: 11px;
}
.recon-payment-detail-preview .recon-balance-cards span {
    border-color: #eee3db;
    border-radius: 10px;
    background: linear-gradient(140deg,#fff,#fff7f1);
    box-shadow: inset 0 1px 0 #fff;
}
.recon-payment-detail-preview .recon-balance-cards small { color: #9d8e84; }
.recon-payment-detail-preview .recon-balance-cards strong { color: #403833; }
.recon-payment-detail-preview .recon-balance-cards > span:nth-child(2) strong { color: var(--recon-orange); }
.recon-payment-detail-preview .recon-balance-cards em { color: #a3978f; }
.recon-payment-detail-preview .recon-balance-cards:hover,
.recon-payment-detail-preview .recon-balance-cards:focus-visible {
    box-shadow: 0 0 0 3px rgba(255,80,0,.075), 0 10px 25px rgba(90,54,31,.06);
}
.recon-payment-detail-preview .recon-balance-cards.is-copied {
    box-shadow: 0 0 0 3px rgba(255,80,0,.16), 0 0 25px rgba(255,80,0,.13);
}

.recon-payment-detail-preview .recon-calculation-input {
    border-color: #eadfd7;
    border-radius: 9px;
    background: #fff;
    color: #443b36;
}
.recon-payment-detail-preview .recon-calculation-input:focus {
    border-color: var(--recon-orange);
    box-shadow: 0 0 0 3px rgba(255,80,0,.08);
}
.recon-payment-detail-preview .recon-calculation-result { color: var(--recon-orange) !important; }

.recon-payment-detail-preview .recon-workbench .recon-workbench-footer {
    min-height: 62px;
    padding: 10px 16px;
    border-top: 1px solid var(--recon-warm-line);
    background: #fff;
}
.recon-payment-detail-preview .recon-workbench-footer .btn-light-custom {
    border-color: #eadfd7;
    border-radius: 9px;
    background: #fff;
    color: #6e625a;
}
.recon-payment-detail-preview .recon-workbench-footer .btn-light-custom:hover {
    border-color: rgba(255,80,0,.30);
    background: #fff6ef;
    color: var(--recon-orange);
}
.recon-payment-detail-preview .recon-workbench-footer .recon-confirm-button {
    border-color: rgba(255,80,0,.36);
    color: var(--recon-orange);
}
.recon-payment-detail-preview .recon-workbench-footer .btn-primary-custom {
    border-radius: 9px;
    background: linear-gradient(90deg,#ff8a00,var(--recon-orange));
    color: #fff;
    box-shadow: 0 8px 18px rgba(255,80,0,.18);
}
.recon-payment-detail-preview .recon-workbench-footer .btn-primary-custom:hover {
    background: linear-gradient(90deg,#ff7300,var(--recon-orange-deep));
}

@media (max-width: 900px) {
    .recon-payment-detail-preview .recon-workbench-grid { height: auto; flex-basis: auto; }
}

/* ================================================================
   全站统一淘宝式界面（最终主题层）
   ================================================================ */
body.taobao-system-theme {
    --market-accent: #ff5000;
    --market-accent-deep: #f23500;
    --market-orange: #ff8a00;
    --market-soft: #fff3e8;
    --market-page: #f5f5f5;
    --market-ink: #2f2f2f;
    --market-muted: #8b8b8b;
    --market-line: #eee7e2;
    --market-width: 1540px;
    min-width: 320px;
    background: var(--market-page);
    color: var(--market-ink);
}

.taobao-system-theme .app-shell { display: block; min-height: 100vh; }

/* 重新设计的固定顶部导航 */
.taobao-system-theme .sidebar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    width: 100%;
    height: 72px;
    padding: 0 max(22px, calc((100vw - var(--market-width)) / 2));
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 208px;
    align-items: center;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid rgba(92, 58, 36, .08);
    background: rgba(255, 255, 255, .96);
    color: var(--market-ink);
    box-shadow: 0 5px 22px rgba(80, 48, 27, .055);
    backdrop-filter: blur(18px) saturate(125%);
}

.taobao-system-theme .brand {
    width: 64px;
    height: 68px;
    padding: 3px 0;
    display: flex;
    justify-content: flex-start;
    overflow: hidden;
    border: 0;
}

.taobao-system-theme .brand-logo-viewport {
    width: 48px;
    height: 61px;
    flex: 0 0 48px;
}

.taobao-system-theme .brand-logo-viewport img { width: 139px; max-width: none; }

.taobao-system-theme .sidebar-nav {
    min-width: 0;
    height: 72px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    overflow: visible;
}

.taobao-system-theme .nav-dashboard,
.taobao-system-theme .nav-group { position: relative; margin: 0; }

.taobao-system-theme .nav-primary {
    width: auto;
    min-height: 39px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #5f5f5f;
    font-size: 12.5px;
    font-weight: 650;
    white-space: nowrap;
    transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.taobao-system-theme .nav-primary .nav-icon { display: none; }
.taobao-system-theme .nav-chevron {
    margin-left: 1px;
    color: #b3aaa4;
    font-size: 13px;
    transform: rotate(90deg);
    transition: color .18s ease;
}

.taobao-system-theme .nav-primary:hover,
.taobao-system-theme .nav-primary:focus-visible,
.taobao-system-theme .nav-group.active > .nav-primary,
.taobao-system-theme .nav-dashboard.active {
    border: 0;
    outline: 0;
    background: linear-gradient(100deg, #fff5ec, #fff0e4);
    color: var(--market-accent);
    box-shadow: inset 0 -2px 0 var(--market-accent);
    transform: none;
}

.taobao-system-theme .nav-group::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 16px;
}

.taobao-system-theme .nav-flyout,
.taobao-system-theme .nav-flyout-wide {
    position: absolute;
    top: calc(100% + 13px);
    left: 50%;
    z-index: 110;
    width: 244px;
    max-height: calc(100vh - 92px);
    padding: 9px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    overflow-y: auto;
    border: 1px solid rgba(72, 47, 31, .07);
    border-radius: 14px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 20px 55px rgba(72, 43, 24, .16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(-50%, -7px, 0);
    transition: opacity .16s ease, transform .18s ease, visibility .16s ease;
    backdrop-filter: blur(20px) saturate(120%);
}

.taobao-system-theme .nav-flyout-wide {
    width: 354px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.taobao-system-theme .nav-group:hover > .nav-flyout,
.taobao-system-theme .nav-group:focus-within > .nav-flyout {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(-50%, 0, 0);
}

.taobao-system-theme .nav-flyout-title { display: none; }
.taobao-system-theme .nav-subitem {
    min-height: 38px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #626262;
    font-size: 12px;
    font-weight: 570;
}

.taobao-system-theme .nav-subitem i { color: #bbb1aa; font-size: 13px; }
.taobao-system-theme .nav-subitem:hover,
.taobao-system-theme .nav-subitem.active {
    border-color: rgba(255, 80, 0, .09);
    background: var(--market-soft);
    color: var(--market-accent);
    transform: none !important;
}
body.taobao-system-theme .nav-group:hover > .nav-flyout,
body.taobao-system-theme .nav-group:focus-within > .nav-flyout { transform: none !important; }

.taobao-system-theme .sidebar-account {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    border: 0;
}

.taobao-system-theme .sidebar-system-status {
    margin: 0;
    color: #9b948f;
    font-size: 9px;
    white-space: nowrap;
}

.taobao-system-theme .sidebar-system-status i { background: var(--market-accent); }
.taobao-system-theme .sidebar-account form { width: 142px; }
.taobao-system-theme .sidebar-user-card {
    min-height: 43px;
    padding: 5px 7px;
    gap: 7px;
    border: 1px solid var(--market-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.taobao-system-theme .sidebar-user-card .avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--market-orange), var(--market-accent));
    color: #fff;
}

.taobao-system-theme .sidebar-user-card .user-meta strong { color: #3b3633; font-size: 11px; }
.taobao-system-theme .sidebar-user-card .user-meta small,
.taobao-system-theme .sidebar-logout { color: #9a938f; font-size: 9px; }

/* 每个页面使用同一宽度 */
.taobao-system-theme .main-panel {
    min-height: 100vh;
    margin-left: 0;
    padding-top: 72px;
    background: transparent;
}

.taobao-system-theme .content-wrap,
.taobao-system-theme .content-wrap:has(.batch-parse-launcher) {
    width: 100%;
    max-width: var(--market-width);
    margin: 0 auto;
    padding: 18px 20px 30px;
}

.taobao-system-theme .data-panel {
    gap: 10px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
}

/* 顶部工具、快捷筛选、业务按钮保持一行并固定 */
.taobao-system-theme .unified-sticky-toolbar {
    position: sticky;
    top: 72px;
    z-index: 48;
    min-width: 0;
    min-height: 66px;
    padding: 10px 11px;
    display: flex;
    align-items: center;
    gap: 11px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(255, 80, 0, .075);
    border-radius: 15px;
    background: rgba(255, 250, 246, .97);
    box-shadow: 0 9px 28px rgba(92, 56, 32, .075);
    backdrop-filter: blur(18px) saturate(125%);
    scrollbar-width: thin;
}

.taobao-system-theme .unified-sticky-toolbar-standalone { margin-bottom: 12px; }
.taobao-system-theme .unified-sticky-toolbar > .quick-filter-row,
.taobao-system-theme .unified-sticky-toolbar > .data-toolbar,
.taobao-system-theme .unified-sticky-toolbar > .business-toolbar {
    position: static;
    min-height: 44px;
    margin: 0;
    padding: 0;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 9px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.taobao-system-theme .unified-sticky-toolbar > .data-toolbar,
.taobao-system-theme .unified-sticky-toolbar > .business-toolbar { flex: 1 0 auto; }
.taobao-system-theme .unified-sticky-toolbar > .quick-filter-row {
    padding-right: 11px;
    border-right: 1px solid #f0dfd4;
}

.taobao-system-theme .unified-sticky-toolbar .data-toolbar::before,
.taobao-system-theme .unified-sticky-toolbar .business-toolbar::before { display: none; }

.taobao-system-theme .unified-sticky-toolbar .filter-form,
.taobao-system-theme .unified-sticky-toolbar .toolbar-actions,
.taobao-system-theme .catalog-toolbar form,
.taobao-system-theme .market-search-form,
.taobao-system-theme .market-search-main,
.taobao-system-theme .market-search-tools {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    border: 0;
}

.taobao-system-theme .unified-sticky-toolbar .filter-form { flex: 1 0 auto; }
.taobao-system-theme .unified-sticky-toolbar .toolbar-actions {
    margin-left: auto;
    padding-top: 0;
    justify-content: flex-end;
    border-top: 0;
}

.taobao-system-theme .quick-filter {
    min-height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #eadfd8;
    border-radius: 10px;
    background: #fff;
    color: #6c625c;
    font-size: 11px;
    font-weight: 680;
    white-space: nowrap;
}

.taobao-system-theme .quick-filter::after { display: none; }
.taobao-system-theme .quick-filter:hover,
.taobao-system-theme .quick-filter.active {
    border-color: rgba(255, 80, 0, .25);
    background: var(--market-soft);
    color: var(--market-accent);
}

/* 固定大小的框内搜索和临时公司 Logo */
.taobao-system-theme .search-company-mark {
    position: relative;
    width: 39px;
    height: 44px;
    flex: 0 0 39px;
    overflow: hidden;
    border-radius: 8px;
    background: #fffaf5;
}

.taobao-system-theme .search-company-mark img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 116px;
    max-width: none;
    transform: translate(-50%, -50%);
}

.taobao-system-theme .search-control,
.taobao-system-theme .catalog-search,
.taobao-system-theme .market-search-input {
    width: 380px;
    min-width: 380px;
    height: 44px;
    flex: 0 0 380px;
    padding: 0 3px 0 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--market-accent);
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(255, 80, 0, .08);
}

.taobao-system-theme .search-control:focus-within,
.taobao-system-theme .catalog-search:focus-within,
.taobao-system-theme .market-search-input:focus-within {
    border-color: var(--market-accent-deep);
    background: #fff;
    box-shadow: 0 8px 25px rgba(255, 80, 0, .14);
}

.taobao-system-theme :is(.search-control, .catalog-search, .market-search-input) input {
    min-width: 0;
    height: 38px;
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    background: transparent;
    color: #333;
    font-size: 12px;
    box-shadow: none;
}

.taobao-system-theme :is(.search-control, .catalog-search, .market-search-input) > span { color: var(--market-accent); }
.taobao-system-theme .market-search-submit,
.taobao-system-theme :is(.search-control, .catalog-search, .market-search-input) > button {
    height: 34px !important;
    min-height: 34px !important;
    margin: 0;
    padding: 0 17px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 18px !important;
    background: linear-gradient(90deg, var(--market-orange), var(--market-accent)) !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
    box-shadow: none !important;
}

.taobao-system-theme .market-search-brand { display: none; }
.taobao-system-theme .batch-parse-launcher { justify-content: flex-start; }
.taobao-system-theme .market-search-main { flex: 1 0 auto; }

/* 所有功能按钮统一高度、圆角和字号 */
.taobao-system-theme .unified-sticky-toolbar .form-control,
.taobao-system-theme .unified-sticky-toolbar .form-select,
.taobao-system-theme .unified-sticky-toolbar .compact-select,
.taobao-system-theme .unified-sticky-toolbar .per-page-select,
.taobao-system-theme .btn-light-custom,
.taobao-system-theme .btn-primary-custom,
.taobao-system-theme .btn-danger-soft,
.taobao-system-theme .btn-text-custom,
.taobao-system-theme .catalog-toolbar select,
.taobao-system-theme .catalog-toolbar button,
.taobao-system-theme .market-search-tools button {
    min-height: 38px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid #eadfd8;
    border-radius: 10px;
    background: #fff;
    color: #665d57;
    font-size: 11px;
    font-weight: 680;
    white-space: nowrap;
    box-shadow: none;
}

.taobao-system-theme .unified-sticky-toolbar .compact-select { width: 142px; }
.taobao-system-theme .unified-sticky-toolbar .date-filter { width: 142px; }
.taobao-system-theme .btn-light-custom:hover,
.taobao-system-theme .btn-text-custom:hover {
    border-color: rgba(255, 80, 0, .30);
    background: var(--market-soft);
    color: var(--market-accent);
}

.taobao-system-theme .btn-primary-custom,
.taobao-system-theme .parse-action-button {
    border-color: transparent;
    background: linear-gradient(90deg, var(--market-orange), var(--market-accent));
    color: #fff;
}

.taobao-system-theme .btn-danger-soft { background: #fff7f4; color: #d84b34; }
.taobao-system-theme .pagination-source-control { display: none !important; }

/* 数据卡片和吸附表头 */
.taobao-system-theme .data-panel > .table-responsive {
    width: 100%;
    order: initial;
    overflow-x: auto;
    border: 1px solid #eee8e4;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(78, 50, 31, .045);
}

.taobao-system-theme .management-table { color: #615a56; font-size: 11.5px; }
.taobao-system-theme .management-table thead th {
    position: static;
    height: 43px;
    border-bottom: 1px solid #eee7e2;
    background: #faf8f6;
    color: #6a625d;
    font-size: 10.5px;
    font-weight: 750;
    box-shadow: 0 1px 0 #eee7e2;
}

.taobao-system-theme .floating-table-head {
    position: fixed;
    z-index: 46;
    overflow: hidden;
    border: 1px solid #eee8e4;
    border-radius: 10px 10px 0 0;
    background: #faf8f6;
    box-shadow: 0 7px 18px rgba(72, 46, 29, .08);
    pointer-events: none;
}

.taobao-system-theme .floating-table-head[hidden] { display: none; }
.taobao-system-theme .floating-head-table {
    margin: 0;
    table-layout: fixed;
    transform-origin: left center;
}
.taobao-system-theme .floating-head-table thead th { position: static !important; }

.taobao-system-theme .management-table tbody td {
    height: 49px;
    border-color: #f2eeeb;
    background: #fff;
}

.taobao-system-theme .management-table tbody tr:hover td { background: #fff8f3; color: #37322f; }
.taobao-system-theme .clickable-data-row:hover td:first-child { box-shadow: inset 3px 0 0 var(--market-accent); }
.taobao-system-theme .table-primary-text { color: #333; }
.taobao-system-theme .money-cell,
.taobao-system-theme .money-cell.accent { color: var(--market-accent) !important; font-weight: 750; }

/* 底部中间统一分页：条数、翻页、跳转均在同一区域 */
.taobao-system-theme .unified-pagination {
    min-height: 62px;
    margin: 0;
    padding: 10px 14px;
    display: flex;
    order: initial;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #8d8580;
    font-size: 10px;
    box-shadow: none;
}

.taobao-system-theme .pagination-links { display: flex; align-items: center; gap: 4px; }
.taobao-system-theme .pagination-links a,
.taobao-system-theme .pagination-links span {
    min-width: 31px;
    height: 31px;
    padding: 0 8px;
    display: grid;
    place-items: center;
    border: 1px solid #e8dfd9;
    border-radius: 8px;
    background: #fff;
    color: #645c57;
}

.taobao-system-theme .pagination-links a:hover,
.taobao-system-theme .pagination-links a.active {
    border-color: var(--market-accent);
    background: var(--market-accent);
    color: #fff;
}

.taobao-system-theme .pagination-links .disabled { opacity: .46; }
.taobao-system-theme .pagination-size-form,
.taobao-system-theme .pagination-jump-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.taobao-system-theme .pagination-size-select,
.taobao-system-theme .pagination-jump-form input {
    width: 72px;
    height: 31px;
    padding: 0 7px;
    border: 1px solid #e8dfd9;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: #625a55;
    font-size: 10px;
}

.taobao-system-theme .pagination-jump-form input { width: 54px; text-align: center; }
.taobao-system-theme .pagination-jump-form button {
    height: 31px;
    padding: 0 10px;
    border: 1px solid #e8dfd9;
    border-radius: 8px;
    background: #fff;
    color: #645c57;
    font-size: 10px;
}

.taobao-system-theme .pagination-jump-form button:hover { border-color: var(--market-accent); color: var(--market-accent); }

/* 商品目录也遵守相同宽度和工具栏体系 */
.taobao-system-theme .catalog-toolbar {
    width: 100%;
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
}

.taobao-system-theme .catalog-toolbar form { flex: 1 0 auto; }
.taobao-system-theme .catalog-bulk-toolbar {
    min-height: 38px;
    margin-left: auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    white-space: nowrap;
}

.taobao-system-theme .catalog-pagination { max-width: none; }
.taobao-system-theme .management-modal {
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 28px 92px rgba(83, 49, 28, .22);
}
.taobao-system-theme .modal-header { border-bottom-color: #f1e8e2; background: linear-gradient(90deg, #fff8f3, #fff); }
.taobao-system-theme .modal-title { color: #3b332f; }

@media (max-width: 1320px) {
    .taobao-system-theme .sidebar {
        padding-inline: 14px;
        grid-template-columns: 66px minmax(0, 1fr) 178px;
    }
    .taobao-system-theme .nav-primary { padding-inline: 7px; font-size: 11.5px; }
    .taobao-system-theme .sidebar-account form { width: 132px; }
    .taobao-system-theme .sidebar-system-status { display: none; }
}

@media (max-width: 900px) {
    .taobao-system-theme .sidebar {
        inset: 0 auto 0 0;
        width: 270px;
        height: 100vh;
        padding: 0;
        display: flex;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .2s ease;
    }
    .sidebar-open.taobao-system-theme .sidebar { transform: translateX(0); }
    .taobao-system-theme .brand { width: 100%; height: 82px; justify-content: center; }
    .taobao-system-theme .sidebar-nav { width: 100%; height: auto; padding: 9px 13px; display: block; }
    .taobao-system-theme .nav-primary { width: 100%; min-height: 46px; padding: 0 12px; font-size: 13px; }
    .taobao-system-theme .nav-primary .nav-icon { display: grid; }
    .taobao-system-theme .nav-chevron { margin-left: auto; transform: none; }
    .taobao-system-theme .nav-flyout,
    .taobao-system-theme .nav-flyout-wide {
        position: static;
        width: auto;
        max-height: none;
        margin: 3px 0 8px 8px;
        display: none;
        grid-template-columns: 1fr;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }
    .taobao-system-theme .nav-group.open > .nav-flyout { display: grid; }
    .taobao-system-theme .sidebar-account { margin: auto 13px 13px; display: block; }
    .taobao-system-theme .sidebar-account form { width: 100%; }
    .taobao-system-theme .sidebar-system-status { margin: 0 7px 7px; display: flex; }
    .taobao-system-theme .main-panel { padding-top: 0; }
    .taobao-system-theme .content-wrap,
    .taobao-system-theme .content-wrap:has(.batch-parse-launcher) { padding: 64px 12px 24px; }
    .taobao-system-theme .unified-sticky-toolbar { top: 0; }
    .taobao-system-theme .search-control,
    .taobao-system-theme .catalog-search,
    .taobao-system-theme .market-search-input { width: 300px; min-width: 300px; flex-basis: 300px; }
}

/* 顶部导航最终规则：导航本身不显示企业 Logo。 */
body.taobao-system-theme .sidebar {
    grid-template-columns: minmax(0, 1fr) 208px;
}
body.taobao-system-theme .sidebar > .brand { display: none !important; }
body.taobao-system-theme .sidebar-nav { justify-content: flex-start; }

@media (max-width: 1320px) {
    body.taobao-system-theme .sidebar { grid-template-columns: minmax(0, 1fr) 172px; }
}

@media (max-width: 900px) {
    body.taobao-system-theme .sidebar { display: flex; }
    body.taobao-system-theme .sidebar > .brand { display: none !important; }
    body.taobao-system-theme .unified-page-header { top: 0; }
}

/* 搜索居中、操作层轻量扁平化。 */
body.taobao-system-theme .unified-search-row {
    min-height: 62px;
    padding: 7px 14px;
    justify-content: center;
    gap: 10px;
}

body.taobao-system-theme .unified-search-row .search-company-mark {
    width: 42px;
    height: 47px;
    flex-basis: 42px;
}

body.taobao-system-theme .unified-search-row .search-company-mark img { width: 121px; }
body.taobao-system-theme .unified-search-row :is(.search-control, .catalog-search, .market-search-input) {
    width: min(640px, calc(100vw - 150px));
    min-width: min(640px, calc(100vw - 150px));
    height: 44px;
    flex-basis: min(640px, calc(100vw - 150px));
    border-radius: 23px;
    box-shadow: 0 4px 12px rgba(255, 80, 0, .065);
}

body.taobao-system-theme .unified-search-row :is(.search-control, .catalog-search, .market-search-input) input { height: 38px; }
body.taobao-system-theme .unified-search-row .market-search-submit,
body.taobao-system-theme .unified-search-row :is(.search-control, .catalog-search, .market-search-input) > button {
    height: 34px !important;
    min-height: 34px !important;
    padding-inline: 20px;
}

body.taobao-system-theme .unified-condition-row {
    min-height: 50px;
    padding: 7px 11px;
    gap: 8px;
    background: rgba(255, 250, 246, .76);
}

body.taobao-system-theme .unified-condition-row > .quick-filter-row { min-height: 34px; gap: 5px; }
body.taobao-system-theme .unified-condition-row .quick-filter,
body.taobao-system-theme .unified-condition-row .form-control,
body.taobao-system-theme .unified-condition-row .form-select,
body.taobao-system-theme .unified-condition-row .compact-select,
body.taobao-system-theme .unified-condition-row .date-filter,
body.taobao-system-theme .unified-condition-row .btn-light-custom,
body.taobao-system-theme .unified-condition-row .btn-primary-custom,
body.taobao-system-theme .unified-condition-row .btn-danger-soft,
body.taobao-system-theme .unified-condition-row .btn-text-custom,
body.taobao-system-theme .unified-condition-row button,
body.taobao-system-theme .unified-condition-row a.btn-light-custom {
    min-height: 34px;
    height: 34px;
    padding-inline: 11px;
    border-radius: 6px;
    border-color: #eadfd8;
    background: #fff;
    box-shadow: none;
    font-size: 10.5px;
}

body.taobao-system-theme .unified-condition-row .quick-filter.active {
    border-color: rgba(255, 80, 0, .24);
    background: #fff4eb;
    color: var(--market-accent);
}

body.taobao-system-theme .unified-condition-row :is(.btn-primary-custom, .parse-action-button) {
    border-color: var(--market-accent);
    background: var(--market-accent);
    color: #fff;
}

body.taobao-system-theme .unified-condition-row .btn-danger-soft {
    border-color: #f1d9d3;
    background: #fff;
    color: #cf553f;
}

@media (max-width: 900px) {
    body.taobao-system-theme .unified-search-row {
        padding-left: 58px;
        justify-content: flex-start;
    }
}

/* 搜索与功能区拆成两张独立卡片；表格页面只滚动明细区域。 */
body.taobao-system-theme .unified-page-header {
    display: grid;
    gap: 8px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

body.taobao-system-theme .unified-search-row,
body.taobao-system-theme .unified-condition-row {
    overflow-x: auto;
    border: 1px solid rgba(255, 80, 0, .075);
    border-radius: 14px;
    background: rgba(255, 252, 249, .98);
    box-shadow: 0 6px 18px rgba(92, 56, 32, .055);
    backdrop-filter: blur(16px) saturate(120%);
}

body.taobao-system-theme .unified-condition-row {
    border-top: 1px solid rgba(255, 80, 0, .075);
    background: rgba(255, 250, 246, .96);
}

body.taobao-system-theme:has(.content-wrap > .data-panel > .table-responsive) { overflow: hidden; }
body.taobao-system-theme .content-wrap:has(> .data-panel > .table-responsive) {
    height: calc(100vh - 72px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.taobao-system-theme .data-panel:has(> .table-responsive) {
    min-height: 0;
    height: 100%;
    flex: 1 1 auto;
    overflow: hidden;
}

body.taobao-system-theme .data-panel:has(> .table-responsive) > .unified-page-header,
body.taobao-system-theme .data-panel:has(> .table-responsive) > .unified-pagination {
    flex: 0 0 auto;
}

body.taobao-system-theme .data-panel:has(> .table-responsive) > .unified-page-header {
    position: relative;
    top: auto;
}

body.taobao-system-theme .data-panel:has(> .table-responsive) > .table-responsive {
    min-height: 0;
    flex: 1 1 auto;
    overflow: auto;
    overscroll-behavior: contain;
}

body.taobao-system-theme .data-panel:has(> .table-responsive) > .table-responsive .management-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
}

@media (max-width: 900px) {
    body.taobao-system-theme:has(.content-wrap > .data-panel > .table-responsive) { overflow: auto; }
    body.taobao-system-theme .content-wrap:has(> .data-panel > .table-responsive) {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    body.taobao-system-theme .data-panel:has(> .table-responsive) { height: auto; overflow: visible; }
    body.taobao-system-theme .data-panel:has(> .table-responsive) > .table-responsive { max-height: 68vh; }
}

/* 全系统新增、编辑表单：固定尺寸单列弹框；详情、预览、对账弹框不受影响。 */
.modal-dialog:has(.management-modal.is-crud-form-modal) {
    width: min(820px, calc(100vw - 32px));
    max-width: min(820px, calc(100vw - 32px));
    height: min(680px, calc(100vh - 32px));
    max-height: min(680px, calc(100vh - 32px));
    margin: 16px auto;
}

.modal-dialog:has(.management-modal.is-crud-form-modal) > .management-modal {
    width: 100%;
    height: 100%;
    max-height: none;
    display: block;
    overflow: hidden;
    border-radius: 14px;
}

.management-modal.is-crud-form-modal > form:has(.modal-body) {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.management-modal.is-crud-form-modal .modal-header {
    min-height: 64px;
    padding: 13px 22px;
    flex: 0 0 auto;
    background: #fffaf6;
}

.management-modal.is-crud-form-modal .modal-header .eyebrow { display: none; }
.management-modal.is-crud-form-modal .modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 760;
}

.management-modal.is-crud-form-modal .modal-body {
    min-height: 0;
    padding: 18px 24px;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d9cec7 transparent;
}

.management-modal.is-crud-form-modal .modal-body::-webkit-scrollbar { width: 7px; }
.management-modal.is-crud-form-modal .modal-body::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: #d9cec7;
}

.management-modal.is-crud-form-modal .modal-footer {
    min-height: 60px;
    padding: 10px 22px;
    flex: 0 0 auto;
    background: #fff;
}

.management-modal.is-crud-form-modal :is(.form-grid, .hr-form-grid) {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.management-modal.is-crud-form-modal .form-field {
    width: 100%;
    min-height: 43px;
    margin: 0;
    display: grid;
    grid-template-columns: 160px 500px;
    align-items: center;
    justify-content: center;
    column-gap: 18px;
    row-gap: 5px;
}

.management-modal.is-crud-form-modal .form-field.span-2 { grid-column: auto; }
.management-modal.is-crud-form-modal .modal-field-label {
    grid-column: 1;
    color: #5f5752;
    font-size: 12px;
    font-weight: 680;
    line-height: 1.35;
    text-align: right;
}

.management-modal.is-crud-form-modal .modal-field-label em {
    margin-right: 4px;
    color: #e14f35;
    font-style: normal;
    font-weight: 800;
}

.management-modal.is-crud-form-modal .form-field > :is(.form-control, .form-select),
.management-modal.is-crud-form-modal .permission-account-strip > label > .form-select {
    grid-column: 2;
    width: 500px;
    min-width: 500px;
    max-width: 500px;
    min-height: 38px;
    height: 38px;
    padding-block: 0;
    border-color: #ded8d4;
    border-radius: 7px;
    background-color: #fff;
    color: #48423e;
    font-size: 12px;
    box-shadow: none;
}

.management-modal.is-crud-form-modal .form-field > textarea.form-control {
    height: 86px;
    min-height: 86px;
    padding-top: 9px;
    resize: none;
}

.management-modal.is-crud-form-modal .form-field:has(textarea) {
    min-height: 86px;
    align-items: start;
}

.management-modal.is-crud-form-modal .form-field:has(textarea) .modal-field-label { padding-top: 10px; }
.management-modal.is-crud-form-modal .form-field > small {
    grid-column: 2;
    width: 500px;
    color: #9a918b;
    font-size: 10px;
}

.management-modal.is-crud-form-modal .store-authorization-field {
    min-height: 92px;
    align-items: start;
}

.management-modal.is-crud-form-modal .store-authorization-field .modal-field-label {
    padding-top: 10px;
}

.management-modal.is-crud-form-modal .store-authorization-field > input[type="file"] {
    padding: 5px 8px;
    line-height: 25px;
}

.store-authorization-list {
    grid-column: 2;
    width: 500px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.store-authorization-list > span {
    color: #a49a94;
    font-size: 10px;
}

.store-authorization-list > div {
    min-height: 28px;
    padding: 4px 7px 4px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #eee6e1;
    border-radius: 6px;
    background: #fbfaf9;
}

.store-authorization-list a {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #514944;
    font-size: 11px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-authorization-list button {
    padding: 0;
    border: 0;
    color: #df4937;
    background: transparent;
    font-size: 10px;
}

.management-modal.is-crud-form-modal .modal-check-control {
    grid-column: 2;
    width: 500px;
    min-height: 38px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ded8d4;
    border-radius: 7px;
    background: #fff;
    color: #5f5752;
    font-size: 12px;
}

.management-modal.is-crud-form-modal .account-active-field {
    display: grid !important;
    grid-template-columns: 160px 500px;
    padding-top: 0;
}

.management-modal.is-crud-form-modal .account-active-field .modal-check-control {
    cursor: pointer;
    user-select: none;
}

.management-modal.is-crud-form-modal .account-active-field .form-check-input {
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
}

.management-modal.is-crud-form-modal .permission-account-strip {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.management-modal.is-crud-form-modal .permission-account-strip > label {
    width: 100%;
    min-height: 43px;
    display: grid;
    grid-template-columns: 160px 500px;
    align-items: center;
    justify-content: center;
    column-gap: 18px;
}

.management-modal.is-crud-form-modal .permission-groups {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

@media (max-width: 760px) {
    .management-modal.is-crud-form-modal .form-field,
    .management-modal.is-crud-form-modal .permission-account-strip > label {
        grid-template-columns: 120px minmax(0, 1fr);
        column-gap: 12px;
    }
    .management-modal.is-crud-form-modal .account-active-field {
        grid-template-columns: 120px minmax(0, 1fr);
    }
    .management-modal.is-crud-form-modal .form-field > :is(.form-control, .form-select),
    .management-modal.is-crud-form-modal .form-field > small,
    .management-modal.is-crud-form-modal .modal-check-control,
    .management-modal.is-crud-form-modal .permission-account-strip > label > .form-select {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
}
.custom-field-manager .modal-body { display: grid; gap: 20px; }
.custom-field-create,
.custom-field-row {
    display: grid;
    grid-template-columns: minmax(130px, 1.2fr) 120px minmax(150px, 1.4fr) 72px auto auto auto auto;
    gap: 9px;
    align-items: center;
}
.custom-field-create {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(249, 247, 244, .72);
}
.custom-field-create .btn-primary-custom { grid-column: 7 / 9; }
.custom-field-list { display: grid; gap: 9px; }
.custom-field-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.custom-field-row.is-inactive { opacity: .58; }
.custom-field-row .form-control,
.custom-field-row .form-select,
.custom-field-create .form-control,
.custom-field-create .form-select { min-height: 38px; font-size: 13px; }
.custom-order-input { text-align: center; }
.custom-check { white-space: nowrap; font-size: 12px; color: var(--muted); }
.custom-field-empty { padding: 22px; }

/* 店铺管理：一行完成多维筛选，长主体、运营和品牌方保留足够辨识空间。 */
.store-filter-select {
    width: 116px;
    min-width: 116px;
    padding-right: 28px;
    border-color: #dbe5ed;
    background-color: rgba(255,255,255,.9);
    color: #506478;
    font-size: 11px;
}
.store-filter-select-wide { width: 158px; min-width: 158px; }
.store-filter-result {
    min-width: 66px;
    color: #7d8ea1;
    font-size: 10px;
    text-align: center;
    white-space: nowrap;
}
.store-filter-reset {
    min-width: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.taobao-system-theme .unified-condition-row .store-filter-select {
    height: 32px;
    min-height: 32px;
    border-radius: 8px;
}
.taobao-system-theme .unified-condition-row .store-filter-result { align-self: center; }
.taobao-system-theme .unified-condition-row .store-filter-reset {
    height: 32px;
    min-height: 32px;
}
.store-management-table .store-sequence-column,
.store-management-table .store-sequence-cell {
    width: 46px;
    min-width: 46px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.store-management-table .store-sequence-cell {
    color: #8a9aac;
    font-weight: 650;
}
@media (max-width: 992px) {
    .custom-field-create,
    .custom-field-row { grid-template-columns: 1fr 1fr; }
    .custom-field-create .btn-primary-custom { grid-column: auto; }
}
.profit-overview-board,
.profit-overview-list { overflow: hidden; margin-bottom: 14px; border: 1px solid #ece7e2; border-radius: 17px; background: #fff; }
.profit-overview-board > header,
.profit-overview-list > header { min-height: 58px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eee9e5; }
.profit-overview-board > header strong,
.profit-overview-list > header strong { color: #282421; font-size: 18px; font-weight: 780; }
.profit-overview-board > header span,
.profit-overview-list > header span { color: #9a918a; font-size: 11px; }
.profit-overview-kpis { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); }
.profit-overview-kpis-operations { grid-template-columns: repeat(6,minmax(0,1fr)); }
.profit-overview-kpis-profit { grid-template-columns: repeat(3,minmax(0,1fr)); }
.profit-overview-board > header.profit-overview-subheader { min-height: 48px; border-top: 1px solid #eee9e5; }
.profit-overview-board > header.profit-overview-subheader strong { font-size: 15px; }
.profit-overview-kpis article { min-width: 0; min-height: 126px; padding: 23px 20px 18px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid #eee9e5; }
.profit-overview-kpis article:last-child { border-right: 0; }
.profit-overview-kpis article > span { color: #8d837c; font-size: 12px; }
.profit-overview-kpis article > strong,
.profit-overview-kpis .analysis-kpi-value > strong { color: #302b28; font-size: 25px; font-weight: 780; font-variant-numeric: tabular-nums; }
.analysis-kpi-value { min-width: 0; margin-top: 9px; display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.store-business-grid .analysis-kpi-value { margin-top: 7px; gap: 5px; }
.analysis-kpi-change { flex: 0 0 auto; font-size: 10px; font-weight: 720; font-variant-numeric: tabular-nums; }
.analysis-kpi-change.is-up { color: #ee4d2d; }
.analysis-kpi-change.is-down { color: #14946b; }
.analysis-kpi-change.is-flat { color: #aaa19a; }
.profit-overview-kpis article > small { min-height: 16px; margin-top: 8px; overflow: hidden; color: #a69c95; font-size: 10px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.profit-overview-kpis-operations article > small,
.profit-overview-kpis-profit article > small {
    min-height: 30px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}
.overview-store-table th,
.overview-store-table td { padding-top: 15px; padding-bottom: 15px; }
.overview-store-table td > small { display: block; margin-top: 4px; color: #a49a93; font-size: 10px; }
.overview-sort-link { display: inline-flex; gap: 5px; align-items: center; color: inherit; text-decoration: none; }
.overview-sort-link i { color: #b7aea7; font-size: 10px; font-style: normal; }
.overview-sort-link.active { color: #ff5000; }
.overview-sort-link.active i { color: #ff5000; }
/* Keep operating/profit columns in the first desktop viewport; detailed costs
   continue to the right without squeezing or covering neighbouring amounts. */
body.taobao-system-theme .profit-overview-list .overview-comparison-note {
    margin: 0; padding: 10px 16px; color: #7c8fa2; font-size: 11px; line-height: 1.7;
    border-bottom: 1px solid #e8eff6;
}
body.taobao-system-theme .profit-overview-list > header { gap: 12px; flex-wrap: wrap; padding: 12px 16px; }
body.taobao-system-theme .profit-overview-list .overview-comparison-scroll {
    max-height: 65vh; overflow: auto; scrollbar-gutter: stable; overscroll-behavior-x: contain;
}
body.taobao-system-theme .profit-overview-list .overview-store-table {
    min-width: 100%; table-layout: fixed; font-variant-numeric: tabular-nums;
}
body.taobao-system-theme .profit-overview-list .overview-store-table :is(th, td) {
    padding: 12px 8px; text-align: left; font-size: 11.5px; vertical-align: middle;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body.taobao-system-theme .profit-overview-list .overview-store-table thead th {
    position: sticky; top: 0; z-index: 3; height: 54px; padding: 9px 8px;
    white-space: normal; overflow-wrap: anywhere; line-height: 1.5; background: #f4f8fc;
}
body.taobao-system-theme .profit-overview-list .overview-store-table small {
    display: block; margin-top: 4px; color: #8596a8; font-size: 10px; font-weight: 400;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body.taobao-system-theme .profit-overview-list .overview-store-table thead small { margin: 0 0 3px; }
body.taobao-system-theme .profit-overview-list .overview-store-table .overview-amount {
    display: block; font-weight: 500; white-space: nowrap;
}
body.taobao-system-theme .profit-overview-list .overview-store-table :is(th, td):first-child {
    position: sticky; left: 0; z-index: 2; padding-left: 6px; padding-right: 2px;
}
body.taobao-system-theme .profit-overview-list .overview-store-table :is(th, td):nth-child(2) {
    position: sticky; left: 36px; z-index: 2; border-right: 1px solid #dbe6f1;
}
body.taobao-system-theme .profit-overview-list .overview-store-table thead th:nth-child(-n+2) { z-index: 5; }
body.taobao-system-theme .profit-overview-list .overview-store-table tfoot td {
    position: sticky; bottom: 0; z-index: 3; height: 64px; background: #eef5fd;
    color: #344a60; border-top: 1px solid #c8dbee; font-weight: 600;
}
body.taobao-system-theme .profit-overview-list .overview-store-table tfoot td:nth-child(-n+2) { z-index: 5; }
body.taobao-system-theme .profit-overview-list .overview-store-table [data-cost-field="ad_spend"],
body.taobao-system-theme .profit-overview-list .overview-store-table [data-cost-field="statement_expense_total"] {
    border-left: 1px solid #dbe6f1;
}
body.taobao-system-theme .profit-overview-list .overview-sort-link { gap: 3px; }
@media (max-width: 1100px) {
    .profit-overview-kpis-operations,
    .profit-overview-kpis-profit { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .profit-overview-kpis article:nth-child(3n) { border-right: 0; }
    .profit-overview-kpis-operations article:nth-child(-n+3) { border-bottom: 1px solid #eee9e5; }
}
.analysis-filter-form { flex-wrap: wrap; }

/* 人事：考勤月报、薪资方案与自动核算 */
.split-toolbar-row { min-height: 70px; }
.attendance-batch-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.attendance-batch-strip > span { min-width: 0; padding: 12px 16px; display: flex; align-items: baseline; gap: 7px; background: #fff; color: #6f6862; font-size: 12px; }
.attendance-batch-strip strong { color: #2f2a27; font-size: 14px; }
.attendance-batch-strip em { color: #ff5000; font-style: normal; font-weight: 700; }
.attendance-batch-strip small { margin-left: auto; color: #aaa19b; font-size: 10px; }
.attendance-summary-table th,
.attendance-summary-table td,
.salary-scheme-table th,
.salary-scheme-table td { padding: 14px 16px; white-space: nowrap; }
.attendance-summary-table td > small,
.salary-scheme-table td > small { display: block; margin-top: 5px; color: #9d948d; font-size: 11px; font-weight: 450; }
.status-pill { display: inline-flex; min-height: 27px; padding: 0 10px; align-items: center; border-radius: 999px; background: #f4f1ef; color: #7f7771; font-size: 11px; font-weight: 720; }
.status-pill.success { background: #edf8f3; color: #16865f; }
.status-pill.pending { background: #fff2eb; color: #e95722; }
.mini-tag { display: block; max-width: 200px; overflow: hidden; color: #5f5751; font-size: 11px; text-overflow: ellipsis; }
.muted-text { color: #aaa19a; font-size: 11px; }
.attendance-bind-form { display: flex; align-items: center; gap: 7px; }
.attendance-bind-form .form-select { width: 180px; min-height: 34px; padding-top: 4px; padding-bottom: 4px; font-size: 11px; }
.attendance-bind-form .btn-light-custom { min-height: 34px; padding: 0 11px; }
.attendance-detail-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.attendance-detail-metrics > span { min-height: 76px; padding: 15px 18px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.attendance-detail-metrics small { color: #9c938c; font-size: 11px; }
.attendance-detail-metrics strong { margin-top: 6px; color: #312c29; font-size: 16px; }
.attendance-daily-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.attendance-daily-grid > span { min-height: 62px; padding: 10px 12px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: #fbfaf9; }
.attendance-daily-grid strong { font-size: 11px; }
.attendance-daily-grid small { margin-top: 5px; color: #e65d33; font-size: 10px; line-height: 1.45; }
.salary-scheme-form { display: grid; gap: 14px; }
.salary-scheme-form > section { padding: 17px 18px 19px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.salary-scheme-form > section > header { margin-bottom: 15px; display: flex; align-items: center; gap: 9px; }
.salary-scheme-form > section > header > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #f3efec; color: #a09790; font-size: 11px; font-weight: 750; }
.salary-scheme-form > section > header strong { color: #332e2a; font-size: 15px; }
.salary-scheme-form > section > header small { color: #9d948d; font-size: 10px; }
.scheme-form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px 18px; }
.scheme-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.scheme-field > span { color: #645c57; font-size: 12px; font-weight: 650; }
.scheme-field > span em { color: #ef3c2f; font-style: normal; }
.scheme-field.span-2 { grid-column: span 2; }
.scheme-field.span-3 { grid-column: span 3; }
.scheme-basic-total {
    grid-column: span 3;
    min-height: 52px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    border: 1px solid #eadfd8;
    border-radius: 11px;
    background: #fff9f5;
}
.scheme-basic-total span { color: #776d66; font-size: 13px; font-weight: 700; }
.scheme-basic-total strong { min-width: 120px; color: #ff5000; font-size: 20px; text-align: right; }
.modal-dialog.salary-scheme-dialog { width: min(96vw,1560px); max-width: 1560px; }
.salary-scheme-editor { padding: 18px 20px 20px; background: #f7f5f3; }
.scheme-identity-grid { display: grid; grid-template-columns: 1.35fr 1.25fr .7fr 1fr 1fr; gap: 12px 16px; }
.salary-scheme-card-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch; gap: 12px; }
.scheme-editor-card { min-width: 0; overflow: hidden; border: 1px solid #e7e1dc; border-radius: 15px; background: #fff; }
.scheme-editor-card > header {
    min-height: 56px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #e9e3df;
    background: #f6f3f0;
}
.scheme-editor-card > header > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #eee9e5; color: #9b918a; font-size: 10px; font-weight: 750; }
.scheme-editor-card > header > strong { color: #302b28; font-size: 14px; }
.scheme-editor-card > header > b { margin-left: auto; color: #ff5000; font-size: 14px; white-space: nowrap; }
.scheme-editor-card.attendance > header > b { color: #3578b8; }
.scheme-editor-card.deductions > header > b { color: #b34a42; }
.scheme-card-fields { display: grid; }
.scheme-card-fields .scheme-field {
    min-height: 49px;
    padding: 6px 12px;
    display: grid;
    grid-template-columns: minmax(92px,1fr) minmax(96px,124px);
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #f0ebe7;
}
.scheme-card-fields .scheme-field:last-child { border-bottom: 0; }
.scheme-card-fields .scheme-field > span { color: #766c65; font-size: 11px; font-weight: 600; }
.scheme-card-fields .scheme-field > :is(.form-control,.form-select) { min-width: 0; min-height: 34px; height: 34px; padding: 5px 8px; border-color: #e0dad5; border-radius: 8px; font-size: 12px; text-align: right; }
.scheme-card-fields .scheme-field > textarea.form-control { min-height: 104px; height: 104px; padding: 9px 10px; resize: vertical; text-align: left; line-height: 1.55; }
.scheme-card-fields .scheme-store-select { min-height: 126px; height: 126px; text-align: left; }
.scheme-editor-card.performance .scheme-card-fields .scheme-field { grid-template-columns: 1fr; align-items: stretch; }
.scheme-editor-remark { padding: 14px 16px 16px !important; }
.scheme-editor-remark > header { margin-bottom: 10px !important; }
.scheme-editor-remark > header small { margin-left: auto; }
.scheme-editor-remark .scheme-field { gap: 0; }
.scheme-editor-remark textarea { min-height: 76px; resize: vertical; line-height: 1.6; }
.hr-section-tabs {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 14px;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border: 1px solid #eadfd8;
    border-radius: 15px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 8px 22px rgba(96,62,39,.06);
}
.hr-section-tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.hr-section-tabs a {
    min-width: 102px;
    padding: 9px 16px;
    border-radius: 11px;
    color: #6b625c;
    font-size: 13px;
    font-weight: 650;
    text-align: center;
    white-space: nowrap;
}
.hr-section-tabs a:hover { background: #fff7f2; color: #ff5000; }
.hr-section-tabs a.active { background: #ff5000; color: #fff; box-shadow: 0 5px 14px rgba(255,80,0,.18); }
.contract-workspace { display: grid; grid-template-columns: minmax(0,1fr) 310px; align-items: start; gap: 14px; }
.contract-builder, .contract-archive { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.contract-builder-head { min-height: 62px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: #fffdfa; }
.contract-builder-head strong { color: #2f2a27; font-size: 16px; }
.contract-builder-head > span { color: #9b918a; font-size: 12px; }
.contract-section { padding: 18px 20px 20px; border-bottom: 1px solid var(--line); }
.contract-section:last-child { border-bottom: 0; }
.contract-section > header { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.contract-section > header > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #f3efec; color: #9d938c; font-size: 11px; font-weight: 750; }
.contract-section > header > strong { color: #342f2b; font-size: 15px; }
.contract-form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px 18px; }
.contract-form-grid label { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.contract-form-grid label > span { color: #655d57; font-size: 12px; font-weight: 650; }
.contract-form-grid label > span em { margin-right: 3px; color: #e93429; font-style: normal; }
.contract-form-grid .span-2 { grid-column: span 2; }
.contract-form-grid .span-3 { grid-column: span 3; }
.contract-form-grid textarea { resize: vertical; line-height: 1.65; }
.contract-pay-total { margin-left: auto; display: flex; align-items: baseline; gap: 10px; }
.contract-pay-total small { color: #948a83; font-size: 11px; }
.contract-pay-total b { color: #ff5000; font-size: 19px; }
.contract-archive { position: sticky; top: 132px; }
.contract-archive-list { max-height: calc(100vh - 225px); overflow: auto; }
.contract-archive-list > div { min-height: 64px; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.contract-archive-list > div:last-child { border-bottom: 0; }
.contract-archive-list span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.contract-archive-list strong { color: #3d3733; font-size: 13px; }
.contract-archive-list small { max-width: 190px; overflow: hidden; color: #9b928b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.contract-archive-list a { color: #ff5000; font-size: 12px; font-weight: 700; white-space: nowrap; }
.contract-archive-list em { color: #aaa19b; font-size: 11px; font-style: normal; white-space: nowrap; }
.scheme-store-select { min-height: 108px; padding: 8px; }
.scheme-store-select option { padding: 6px 8px; }
.modal-dialog.payroll-edit-dialog:has(.management-modal.is-crud-form-modal) { width: min(96vw, 1560px); max-width: 1560px; }
.payroll-edit-dialog .management-modal { overflow: hidden; }
.payroll-edit-dialog .modal-body { padding: 18px 20px 20px; background: #f7f5f3; }
.payroll-edit-layout { display: grid; gap: 14px; }
.payroll-edit-section { padding: 16px 18px 18px; border: 1px solid #e7e1dc; border-radius: 15px; background: #fff; }
.payroll-edit-section > header { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.payroll-edit-section > header > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #f2eeeb; color: #9b918a; font-size: 11px; font-weight: 750; }
.payroll-edit-section > header > strong { color: #302b28; font-size: 15px; font-weight: 750; }
.payroll-edit-dialog .management-modal.is-crud-form-modal :is(.payroll-attendance-form,.payroll-section-form,.payroll-closing-form,.payroll-identity-form,.payroll-remark-form) { width: 100%; max-width: none; margin: 0; display: grid; }
.payroll-attendance-form { grid-template-columns: repeat(7,minmax(0,1fr)); gap: 12px 14px; }
.payroll-edit-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 14px; }
.payroll-identity-form { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px 16px; }
.payroll-payslip-editor-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.payroll-edit-columns .payroll-edit-section { height: 100%; }
.payroll-section-form { grid-template-columns: 1fr; gap: 12px; }
.payroll-closing-form { grid-template-columns: 190px 230px minmax(0,1fr); gap: 12px 16px; }
.payroll-closing-form .span-2 { grid-column: auto; }
.payroll-edit-dialog .management-modal.is-crud-form-modal .payroll-edit-section .form-field { width: 100%; min-width: 0; min-height: 0; margin: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; }
.payroll-edit-dialog .management-modal.is-crud-form-modal .payroll-edit-section .modal-field-label { width: auto; padding: 0; color: #5f5751; font-size: 12px; font-weight: 650; line-height: 1.35; text-align: left; }
.payroll-edit-dialog .management-modal.is-crud-form-modal .payroll-edit-section .form-field > :is(.form-control,.form-select) { width: 100%; min-width: 0; max-width: none; min-height: 42px; height: 42px; padding: 8px 11px; border-color: #ded8d3; border-radius: 10px; font-size: 13px; }
.payroll-edit-section textarea.form-control { min-height: 42px; height: 42px; resize: vertical; }
.payroll-edit-section input[readonly] { background: #f5f2ef; color: #8e857f; }
.payroll-payslip-editor-grid .payroll-edit-section { padding: 0; overflow: hidden; }
.payroll-payslip-editor-grid .payroll-edit-section > header {
    min-height: 56px;
    margin: 0;
    padding: 0 14px;
    border-bottom: 1px solid #e9e3df;
    background: #f6f3f0;
}
.payroll-payslip-editor-grid .payroll-edit-section > header > span { width: 27px; height: 27px; border-radius: 8px; }
.payroll-payslip-editor-grid .payroll-edit-section > header > strong { font-size: 14px; }
.payroll-payslip-editor-grid .payroll-edit-section > header > b { margin-left: auto; color: #ff5000; font-size: 15px; white-space: nowrap; }
.payroll-payslip-editor-grid .payroll-edit-section.attendance > header > b { color: #3578b8; }
.payroll-payslip-editor-grid .payroll-edit-section.deductions > header > b { color: #b34a42; }
.payroll-payslip-editor-grid .payroll-section-form { gap: 0; }
.payroll-edit-dialog .management-modal.is-crud-form-modal .payroll-payslip-editor-grid .form-field {
    min-height: 49px;
    padding: 6px 12px;
    display: grid;
    grid-template-columns: minmax(88px,1fr) minmax(92px,118px);
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #f0ebe7;
}
.payroll-edit-dialog .management-modal.is-crud-form-modal .payroll-payslip-editor-grid .form-field:last-child { border-bottom: 0; }
.payroll-edit-dialog .management-modal.is-crud-form-modal .payroll-payslip-editor-grid .form-field > label,
.payroll-edit-dialog .management-modal.is-crud-form-modal .payroll-payslip-editor-grid .form-field .modal-field-label {
    width: auto;
    margin: 0;
    padding: 0;
    color: #766c65;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
}
.payroll-edit-dialog .management-modal.is-crud-form-modal .payroll-payslip-editor-grid .form-field > :is(.form-control,.form-select) {
    min-height: 34px;
    height: 34px;
    padding: 5px 8px;
    border-color: #e0dad5;
    border-radius: 8px;
    background: #fff;
    color: #332e2a;
    font-size: 12px;
    text-align: right;
}
.payroll-editor-identity { padding: 14px 16px 16px; }
.payroll-editor-identity > header { margin-bottom: 12px; }
.payroll-remark-section { padding: 14px 16px 16px; }
.payroll-remark-section > header { margin-bottom: 10px; }
.payroll-remark-section > header small { margin-left: auto; color: #9b928b; font-size: 10px; font-weight: 500; }
.payroll-remark-form { grid-template-columns: 1fr; }
.payroll-remark-form .form-field { width: 100%; }
.payroll-remark-form textarea.form-control { min-height: 78px; height: 78px; resize: vertical; line-height: 1.6; }
.payroll-base-components { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.self-payroll-remark { margin-top: 14px; padding: 15px 18px; border: 1px solid #eee6df; border-radius: 14px; background: #fffdfb; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; }
.self-payroll-remark strong { color: #4b433d; font-size: 14px; }
.self-payroll-remark p { margin: 0; color: #625a54; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.payroll-editor-grand-total {
    min-height: 72px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    border: 1px solid #eadfd8;
    border-radius: 14px;
    background: #fff6f0;
}
.payroll-editor-grand-total > span { display: flex; align-items: baseline; gap: 8px; color: #887e77; font-size: 11px; }
.payroll-editor-grand-total b { color: #403a36; font-size: 17px; }
.payroll-editor-grand-total .net b { color: #e84a15; font-size: 24px; }
.payroll-editor-grand-total .leave { margin-right: auto; }
.payroll-editor-grand-total .leave b { color: #3578b8; }
.payroll-statement-preview-modal { overflow: hidden; }
.payroll-statement-preview-modal .modal-body { padding: 16px; background: #eeeae7; }
.payroll-statement-preview {
    min-height: 260px;
    max-height: calc(100vh - 190px);
    padding: 14px;
    display: grid;
    place-items: center;
    overflow: auto;
    border: 1px solid #ded6d0;
    border-radius: 14px;
    background: #fff;
}
.payroll-statement-preview > span { color: #978d86; font-size: 13px; }
.payroll-statement-preview img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 14px 35px rgba(61,46,36,.12); }
.payroll-admin-workflow { padding: 14px 16px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; border: 1px solid #eadfd8; border-radius: 14px; background: #fffaf6; }
.payroll-admin-workflow > span { display: flex; flex-direction: column; gap: 4px; }
.payroll-admin-workflow small { color: #9a8f88; font-size: 11px; }
.payroll-admin-workflow strong { color: #403a36; font-size: 13px; }
.payroll-admin-workflow > div { grid-column: 1 / -1; padding: 11px 13px; display: flex; flex-direction: column; gap: 5px; border-radius: 10px; background: #fff0ec; }
.payroll-admin-workflow > div strong { color: #c8422f; }
.payroll-calculation-panel { margin: 0; }
.payroll-source-strip { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.payroll-source-strip span { min-height: 66px; padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); color: #9b928b; font-size: 10px; }
.payroll-source-strip span:last-child { border-right: 0; }
.payroll-source-strip strong { margin-top: 5px; color: #302b28; font-size: 17px; }
.payroll-component-grid { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payroll-component-grid section { padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; }
.payroll-component-grid section header { margin-bottom: 8px; }
.payroll-component-grid section > span { min-height: 44px; display: grid; grid-template-columns: 110px 90px 1fr; align-items: center; gap: 8px; border-top: 1px dashed #eee8e3; }
.payroll-component-grid b { color: #4d4641; font-size: 12px; }
.payroll-component-grid em { color: #ff5000; font-size: 12px; font-style: normal; font-weight: 720; }
.payroll-component-grid small { color: #9f9690; font-size: 10px; }
.self-payroll-toolbar { margin-bottom: 14px; padding: 12px 16px; }
.payroll-summary-strip { margin-bottom: 12px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); overflow: hidden; border: 1px solid #e8e1dc; border-radius: 16px; background: #fff; }
.payroll-summary-strip article { min-height: 94px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 5px; border-right: 1px solid #eee8e4; }
.payroll-summary-strip article:last-child { border-right: 0; }
.payroll-summary-strip small { color: #958b84; font-size: 11px; }
.payroll-summary-strip strong { color: #302b28; font-size: 22px; line-height: 1.15; }
.payroll-summary-strip span { color: #aaa19a; font-size: 10px; }
.payroll-summary-strip article:nth-child(4) strong,
.payroll-summary-strip article:nth-child(5) strong { color: #e94d18; }
.self-payroll-toolbar form { display: flex; align-items: center; justify-content: center; gap: 10px; }
.self-payroll-toolbar .form-control { width: 210px; }
.self-payroll-list { display: grid; gap: 14px; }
.self-payroll-card { overflow: hidden; border: 1px solid #e7e1dc; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(70,55,45,.05); }
.self-payroll-card > summary { min-height: 88px; padding: 16px 22px; display: grid; grid-template-columns: 1.2fr repeat(3,1fr) auto 24px; align-items: center; gap: 24px; cursor: pointer; list-style: none; background: #fffdfa; }
.self-payroll-card > summary::-webkit-details-marker { display: none; }
.self-payroll-card > summary > span:not(.payroll-status-badge) { display: flex; flex-direction: column; gap: 5px; }
.self-payroll-card > summary small { color: #9c928b; font-size: 11px; font-weight: 560; }
.self-payroll-card > summary strong { color: #332e2a; font-size: 17px; }
.self-payroll-card > summary .self-payroll-month strong { font-size: 20px; }
.self-payroll-card > summary .self-payroll-net strong { color: #ff5000; font-size: 20px; }
.self-payroll-card > summary > i { color: #9c928b; font-style: normal; font-size: 18px; transition: transform .2s ease; }
.self-payroll-card[open] > summary > i { transform: rotate(180deg); }
.payroll-status-badge { padding: 7px 12px; border-radius: 999px; background: #f3f0ed; color: #6e655f; font-size: 12px; font-weight: 700; white-space: nowrap; }
.payroll-status-badge.status-已核算 { background: #fff1e8; color: #dd4e15; }
.payroll-status-badge.status-待发放 { background: #eef6ff; color: #3578b8; }
.payroll-status-badge.status-已发放 { background: #eaf7f0; color: #18865c; }
.payroll-status-badge.status-已驳回 { background: #fff0f0; color: #c53e3e; }
.self-payroll-body { padding: 22px; border-top: 1px solid #eee8e3; background: #faf9f8; }
.formal-payslip-head { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 16px 16px 0 0; background: #282421; color: #fff; }
.formal-payslip-head small { color: #d8cec6; font-size: 10px; letter-spacing: .18em; }
.formal-payslip-head h2 { margin: 7px 0 3px; font-family: "SimSun","STSong",serif; font-size: 20px; letter-spacing: .05em; }
.formal-payslip-head p { margin: 0; color: #ddd4ce; font-size: 12px; }
.formal-payslip-head dl { margin: 0; display: grid; grid-template-columns: repeat(3,auto); gap: 22px; }
.formal-payslip-head dl div { min-width: 90px; }
.formal-payslip-head dt { color: #bfb4ac; font-size: 10px; font-weight: 500; }
.formal-payslip-head dd { margin: 4px 0 0; color: #fff; font-size: 13px; font-weight: 700; }
.formal-payslip-head .payslip-copy-button { flex: 0 0 auto; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; }
.formal-payslip-head .payslip-copy-button:hover { background: rgba(255,255,255,.18); }
.payslip-detail-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.payslip-detail-section { overflow: hidden; min-width: 0; border: 1px solid #e8e1dc; border-radius: 14px; background: #fff; }
.payslip-detail-section header,
.payslip-detail-section > div { min-height: 44px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #f0ebe7; }
.payslip-detail-section header { min-height: 54px; background: #f6f3f0; }
.payslip-detail-section > div:last-child { border-bottom: 0; }
.payslip-detail-section header strong { color: #302b28; font-size: 15px; }
.payslip-detail-section header b { color: #ff5000; font-size: 15px; }
.payslip-detail-section span { min-width: 0; color: #766c65; font-size: 12px; }
.payslip-detail-section > div b { color: #332e2a; font-size: 13px; white-space: nowrap; }
.payslip-detail-section.attendance header b { color: #3578b8; }
.payslip-detail-section.deductions header b { color: #b34a42; }
.payslip-attendance-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border: 1px solid #e8e1dc; border-top: 0; background: #fff; }
.payslip-attendance-grid span { min-height: 68px; padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border-right: 1px solid #eee8e4; }
.payslip-attendance-grid span:last-child { border-right: 0; }
.payslip-attendance-grid small { color: #9b918a; font-size: 10px; }
.payslip-attendance-grid strong { color: #3e3834; font-size: 14px; }
.formal-payslip-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.formal-payslip-columns section { padding: 0 18px 10px; border: 1px solid #e8e1dc; border-radius: 14px; background: #fff; }
.formal-payslip-columns header,
.formal-payslip-columns section > div { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #f0ebe7; }
.formal-payslip-columns header { min-height: 52px; }
.formal-payslip-columns section > div:last-child { border-bottom: 0; }
.formal-payslip-columns span { color: #6c635d; font-size: 12px; }
.formal-payslip-columns b { color: #332e2a; font-size: 13px; }
.formal-payslip-columns header strong { color: #302b28; font-size: 14px; }
.formal-payslip-columns header b { color: #ff5000; font-size: 15px; }
.formal-payslip-total { margin-top: 14px; padding: 17px 20px; display: flex; align-items: center; justify-content: flex-end; gap: 28px; border-radius: 13px; background: #fff1e8; }
.formal-payslip-total span { color: #7b6a5e; font-size: 13px; }
.formal-payslip-total strong { color: #e84a15; font-size: 25px; }

/* 管理端工资核算与员工端工资单共用同一视觉结构 */
.management-payslip-editor { padding: 18px; border-radius: 16px; background: #faf9f8; }
.management-payslip-editor .formal-payslip-head { margin: 0; }
.management-payslip-brand { min-width: 300px; }
.management-payslip-month .form-field { margin: 0; display: block; }
.management-payslip-month .form-field > :is(label,.modal-field-label) { display: none; }
.management-payslip-month .form-control { width: 150px; height: 30px; margin-top: 3px; padding: 0; border: 0; background: transparent; color: #ddd4ce; box-shadow: none; font-size: 12px; }
.management-payslip-editor .formal-payslip-head dl { flex: 1; justify-content: flex-end; }
.management-payslip-editor .formal-payslip-head dl div { min-width: 130px; }
.management-payslip-editor .formal-payslip-head dd .form-field { margin: 0; display: block; }
.management-payslip-editor .formal-payslip-head dd .form-field > :is(label,.modal-field-label) { display: none; }
.management-payslip-editor .formal-payslip-head dd :is(.form-control,.form-select) { width: 100%; min-width: 0; height: 32px; padding: 4px 8px; border-color: rgba(255,255,255,.16); border-radius: 8px; background-color: rgba(255,255,255,.08); color: #fff; box-shadow: none; font-size: 13px; font-weight: 700; }
.management-payslip-editor .formal-payslip-head dd .form-select { padding-right: 28px; color-scheme: dark; }
.management-payslip-editor .payslip-detail-section .payroll-section-form { display: block; width: 100%; margin: 0; }
.payroll-edit-dialog .management-modal.is-crud-form-modal .management-payslip-editor .payslip-detail-section .form-field,
.management-payslip-editor .payslip-detail-section .form-field { min-height: 44px; margin: 0; padding: 6px 14px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #f0ebe7; }
.management-payslip-editor .payslip-detail-section .form-field:last-child { border-bottom: 0; }
.payroll-edit-dialog .management-modal.is-crud-form-modal .management-payslip-editor .payslip-detail-section .form-field > :is(label,.modal-field-label),
.management-payslip-editor .payslip-detail-section .form-field > :is(label,.modal-field-label) { flex: 1 1 auto; width: auto; margin: 0; padding: 0; color: #766c65; font-size: 12px; font-weight: 500; line-height: 1.3; text-align: left; }
.payroll-edit-dialog .management-modal.is-crud-form-modal .management-payslip-editor .payslip-detail-section .form-field > :is(.form-control,.form-select),
.management-payslip-editor .payslip-detail-section .form-field > :is(.form-control,.form-select) { flex: 0 0 112px; width: 112px; min-width: 0; max-width: 112px; min-height: 32px; height: 32px; padding: 4px 8px; border-color: #e4ddd7; border-radius: 8px; background: #fff; color: #332e2a; box-shadow: none; font-size: 13px; font-weight: 700; text-align: right; }
.management-payslip-editor .payslip-detail-section .form-field > input[readonly] { background: #f7f4f1; color: #5f5751; }
.management-payslip-editor .self-payroll-remark { grid-template-columns: 92px minmax(0,1fr); }
.management-payslip-editor .self-payroll-remark textarea { min-height: 72px; resize: vertical; border-color: #e4ddd7; background: #fff; line-height: 1.65; }
.management-payslip-editor .formal-payslip-total { margin-bottom: 0; }
.management-payslip-editor .payroll-calculation-panel { padding: 17px 20px; border: 0; background: #fff1e8; }
.payroll-task-deduction-ledger { overflow: hidden; margin-top: 14px; border: 1px solid #e2e5ed; border-radius: 14px; background: #fff; box-shadow: 0 7px 22px rgba(32,34,58,.035); }
.payroll-task-deduction-ledger > header { min-height: 54px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #eceef3; background: #fff0f2; }
.payroll-task-deduction-ledger > header div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.payroll-task-deduction-ledger > header strong { color: #34374d; font-size: 14px; }
.payroll-task-deduction-ledger > header small { color: #888da1; font-size: 11px; }
.payroll-task-deduction-ledger > header b { color: #b54254; font-size: 13px; white-space: nowrap; }
.payroll-task-log-head,
.payroll-task-log-row { min-height: 38px; padding: 7px 16px; display: grid; grid-template-columns: 110px 90px minmax(180px,1fr) 110px 80px; align-items: center; gap: 12px; }
.payroll-task-log-head { min-height: 34px; border-bottom: 1px solid #eceef3; background: #f7f9fc; color: #7b8195; font-size: 11px; }
.payroll-task-log-row { border-bottom: 1px solid #f0f1f5; color: #555a70; font-size: 12px; }
.payroll-task-log-row:last-child { border-bottom: 0; }
.payroll-task-log-row span:nth-child(3) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payroll-task-log-row strong { color: #b54254; font-size: 12px; }
.payroll-task-log-row b { width: max-content; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.payroll-task-log-row b.is-applied { background: #e9f7f1; color: #228164; }
.payroll-task-log-row b.is-pending { background: #fff4df; color: #bb7615; }
.payroll-task-log-empty { margin: 0; padding: 18px 16px; color: #969bad; font-size: 12px; text-align: center; }
.payroll-edit-dialog .management-modal.is-crud-form-modal .management-payslip-editor .management-payslip-month .form-field { width: 150px; display: block; }
.payroll-edit-dialog .management-modal.is-crud-form-modal .management-payslip-editor .management-payslip-month .form-field > .form-control { width: 150px; min-width: 0; max-width: 150px; height: 30px; min-height: 30px; padding: 0; border: 0; background: transparent; color: #ddd4ce; box-shadow: none; font-size: 12px; }
.payroll-edit-dialog .management-modal.is-crud-form-modal .management-payslip-editor .formal-payslip-head dd .form-field { width: 130px; display: block; }
.payroll-edit-dialog .management-modal.is-crud-form-modal .management-payslip-editor .formal-payslip-head dd .form-field > :is(.form-control,.form-select) { width: 130px; min-width: 0; max-width: 130px; height: 32px; min-height: 32px; padding: 4px 8px; border-color: rgba(255,255,255,.16); border-radius: 8px; background-color: rgba(255,255,255,.08); color: #fff; box-shadow: none; font-size: 13px; font-weight: 700; }
.payroll-edit-dialog .management-modal.is-crud-form-modal .management-payslip-editor .payslip-detail-section .payroll-section-form { display: flex; flex-direction: column; gap: 0; }
.payroll-review-actions { margin-top: 14px; padding: 14px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; border: 1px solid #e8e1dc; border-radius: 13px; background: #fff; }
.payroll-reject-form { min-width: min(620px,70%); display: flex; gap: 8px; }
.payroll-reject-form .form-control { min-width: 0; flex: 1; }
.payroll-feedback-note { margin-top: 14px; padding: 14px 16px; display: flex; align-items: flex-start; gap: 16px; border-radius: 12px; background: #fff0f0; }
.payroll-feedback-note strong { color: #bc3f3f; white-space: nowrap; }
.payroll-feedback-note span { color: #645b56; }
.payroll-waiting-payment { margin-top: 14px; padding: 14px; border-radius: 12px; background: #edf6ff; color: #3976aa; text-align: center; font-size: 13px; font-weight: 700; }
.payroll-payment-receipt { margin-top: 16px; overflow: hidden; border: 1px solid #dcece4; border-radius: 16px; background: #fff; }
.payroll-payment-receipt > header { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; background: #edf8f2; }
.payroll-payment-receipt > header div { display: flex; flex-direction: column; gap: 3px; }
.payroll-payment-receipt > header small { color: #68a58a; font-size: 9px; letter-spacing: .14em; }
.payroll-payment-receipt > header strong { color: #236d4f; font-size: 16px; }
.payroll-payment-receipt > header b { padding: 6px 11px; border-radius: 999px; background: #19865c; color: #fff; font-size: 11px; }
.payment-receipt-amount { padding: 22px; display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid #edf0ee; }
.payment-receipt-amount small { color: #8c948f; font-size: 11px; }
.payment-receipt-amount strong { color: #1b7652; font-size: 28px; }
.payment-receipt-amount span { margin-left: auto; color: #8c948f; font-size: 11px; }
.payroll-payment-receipt dl { margin: 0; padding: 16px 22px 20px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 24px; }
.payroll-payment-receipt dt { color: #9a928d; font-size: 10px; font-weight: 500; }
.payroll-payment-receipt dd { margin: 5px 0 0; overflow-wrap: anywhere; color: #3d3733; font-size: 12px; font-weight: 650; }
@media (max-width: 1100px) {
    .contract-workspace { grid-template-columns: 1fr; }
    .contract-archive { position: static; }
    .contract-archive-list { max-height: 320px; }
    .attendance-batch-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .attendance-detail-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .attendance-daily-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .payroll-attendance-form { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .payroll-edit-columns { grid-template-columns: 1fr; }
    .payroll-identity-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .payroll-payslip-editor-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .scheme-identity-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .salary-scheme-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .self-payroll-card > summary { grid-template-columns: repeat(2,1fr); }
    .self-payroll-card > summary > i { display: none; }
    .payslip-attendance-grid { grid-template-columns: repeat(3,1fr); }
    .payslip-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .payroll-summary-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .contract-form-grid { grid-template-columns: 1fr; }
    .contract-form-grid .span-2, .contract-form-grid .span-3 { grid-column: auto; }
    .scheme-form-grid, .payroll-component-grid { grid-template-columns: 1fr; }
    .scheme-field.span-2, .scheme-field.span-3, .scheme-basic-total { grid-column: auto; }
    .attendance-daily-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .payroll-attendance-form, .payroll-closing-form, .payroll-source-strip, .payroll-identity-form { grid-template-columns: 1fr; }
    .payroll-payslip-editor-grid { grid-template-columns: 1fr; }
    .scheme-identity-grid, .salary-scheme-card-grid { grid-template-columns: 1fr; }
    .payroll-editor-grand-total { align-items: stretch; flex-direction: column; gap: 8px; }
    .payroll-editor-grand-total .leave { margin-right: 0; }
    .payroll-source-strip span { border-right: 0; border-bottom: 1px solid var(--line); }
    .payroll-source-strip span:last-child { border-bottom: 0; }
    .formal-payslip-head, .payroll-review-actions { align-items: stretch; flex-direction: column; }
    .formal-payslip-head dl, .formal-payslip-columns, .payroll-payment-receipt dl { grid-template-columns: 1fr; }
    .payslip-attendance-grid { grid-template-columns: 1fr 1fr; }
    .payroll-reject-form { min-width: 0; width: 100%; flex-direction: column; }
    .payslip-detail-grid { grid-template-columns: 1fr; }
    .payroll-summary-strip { grid-template-columns: 1fr 1fr; }
}

/* 任务中心 */
.task-summary-strip { margin-bottom: 12px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); overflow: hidden; border: 1px solid #ece5e0; border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgba(69,43,27,.045); }

/* 员工工资单：与系统主色统一的靛蓝 + 青绿色视觉 */
.payroll-page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border: 0;
    background:
        radial-gradient(circle at 82% -20%, rgba(85,207,188,.28), transparent 38%),
        linear-gradient(125deg, #20223a 0%, #30345e 64%, #287f7a 140%);
    color: #fff;
    box-shadow: 0 18px 42px rgba(32,34,58,.16);
}
.payroll-page-hero::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -90px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
}
.payroll-page-heading { position: relative; z-index: 1; }
.payroll-page-eyebrow { color: #71d4c3; font-size: 10px; font-weight: 750; letter-spacing: .2em; }
.payroll-page-heading h2 { margin: 7px 0 5px; color: #fff; font-size: 25px; }
.payroll-page-heading p { margin: 0; color: #c7cbdb; font-size: 12px; }
.payroll-month-filter {
    position: relative;
    z-index: 1;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
}
.payroll-month-filter label { margin: 0 3px 0 4px; color: #d6d9e5; font-size: 11px; white-space: nowrap; }
.payroll-month-filter .form-control { width: 165px; height: 36px; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.95); }
.payroll-month-filter :is(.btn-primary-custom,.btn-light-custom) { min-height: 36px; padding: 7px 13px; white-space: nowrap; }
.payroll-month-filter .btn-primary-custom { background: var(--teal); }
.payroll-month-filter .btn-primary-custom:hover { background: #238c7c; }
.payroll-month-filter .btn-light-custom { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.09); color: #fff; }

.self-payroll-list { gap: 16px; }
.self-payroll-card {
    border-color: #e2e5ee;
    border-radius: 20px;
    box-shadow: 0 14px 38px rgba(32,34,58,.07);
}
.self-payroll-card > summary {
    min-height: 102px;
    padding: 17px 22px;
    grid-template-columns: minmax(205px,1.35fr) repeat(3,minmax(130px,1fr)) auto 24px;
    gap: 22px;
    background: linear-gradient(90deg,#fff 0%,#fafbfe 100%);
}
.self-payroll-card[open] > summary { border-bottom-color: #e6e8ef; background: #fff; }
.self-payroll-card > summary > span:not(.payroll-status-badge) { gap: 6px; }
.self-payroll-card > summary small { color: #8a8ea3; font-weight: 600; }
.self-payroll-card > summary strong { color: var(--ink); font-size: 18px; }
.self-payroll-card > summary .self-payroll-net strong { color: #168874; font-size: 22px; }
.self-payroll-month { flex-direction: row !important; align-items: center; gap: 12px !important; }
.self-payroll-month > i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: var(--indigo-soft);
    color: var(--indigo);
    font-size: 18px;
    font-style: normal;
    font-weight: 800;
}
.self-payroll-month > span { display: flex; flex-direction: column; gap: 4px; }
.self-payroll-card > summary .self-payroll-month strong { font-size: 19px; }
.self-payroll-card > summary > .self-payroll-chevron { color: #8f93a8; }
.payroll-status-badge { background: #f0f1f6; color: #63677d; }
.payroll-status-badge.status-已核算 { background: var(--indigo-soft); color: var(--indigo); }
.payroll-status-badge.status-待发放 { background: #edf6ff; color: #3277af; }
.payroll-status-badge.status-已发放 { background: var(--teal-soft); color: #168874; }
.payroll-status-badge.status-已驳回 { background: #fff0f2; color: #bf4658; }

.self-payroll-body { padding: 22px; border-top-color: #e7e9f0; background: #f5f6fa; }
.formal-payslip-head {
    position: relative;
    overflow: hidden;
    padding: 24px 26px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 80% -60%, rgba(79,199,181,.33), transparent 43%),
        linear-gradient(125deg,#20223a 0%,#30345e 78%,#267d77 140%);
    box-shadow: 0 16px 34px rgba(32,34,58,.15);
}
.formal-payslip-head::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -100px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 50%;
}
.formal-payslip-head > * { position: relative; z-index: 1; }
.formal-payslip-head small { color: #71d4c3; }
.formal-payslip-head h2 { margin-top: 6px; font-family: inherit; font-size: 19px; }
.formal-payslip-head p { color: #bfc3d5; }
.formal-payslip-head dl { gap: 19px; }
.formal-payslip-head dt { color: #aeb2c6; }
.formal-payslip-head .payslip-copy-button { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.1); }
.payslip-head-net { min-width: 150px; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.13); }
.payslip-head-net small { display: block; color: #aeb2c6; letter-spacing: .05em; }
.payslip-head-net strong { display: block; margin-top: 5px; color: #74dccb; font-size: 24px; }

.payslip-key-metrics {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
}
.payslip-key-metrics article {
    min-height: 96px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #e4e7ef;
    border-radius: 14px;
    background: #fff;
}
.payslip-key-metrics span { color: #7e8297; font-size: 11px; }
.payslip-key-metrics strong { margin: 5px 0 3px; color: var(--ink); font-size: 20px; }
.payslip-key-metrics small { color: #a2a5b4; font-size: 10px; }
.payslip-key-metrics article.is-net { border-color: #cfece7; background: linear-gradient(145deg,#f4fcfa,#e9f8f5); }
.payslip-key-metrics article.is-net strong { color: #168874; }

.payslip-detail-grid { gap: 10px; }
.payslip-detail-section { border-color: #e2e5ed; border-radius: 14px; box-shadow: 0 7px 22px rgba(32,34,58,.035); }
.payslip-detail-section header,
.payslip-detail-section > div { border-bottom-color: #eceef3; }
.payslip-detail-section header { background: var(--indigo-soft); }
.payslip-detail-section.attendance header { background: var(--teal-soft); }
.payslip-detail-section.deductions header { background: #fff0f2; }
.payslip-detail-section header strong { color: var(--ink); }
.payslip-detail-section header b { color: var(--indigo); }
.payslip-detail-section.attendance header b { color: #168874; }
.payslip-detail-section.deductions header b { color: #b54254; }
.payslip-detail-section span { color: #6f7388; }
.payslip-detail-section > div b { color: #34374d; }
.self-payroll-remark { margin-top: 14px; border-color: #e2e5ed; border-radius: 13px; background: #fff; }
.self-payroll-remark strong { color: var(--indigo); }
.formal-payslip-total {
    padding: 18px 22px;
    border: 1px solid #cfece7;
    border-radius: 14px;
    background: linear-gradient(90deg,#f2fbf9,#e7f7f4);
}
.formal-payslip-total span { color: #52756f; }
.formal-payslip-total strong { color: #168874; }

.payroll-ai-insight {
    overflow: hidden;
    margin-top: 14px;
    border: 1px solid #d8e9e6;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(32,34,58,.045);
}
.payroll-ai-insight > header {
    padding: 17px 20px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid #dfeeea;
    background: linear-gradient(100deg,#eaf8f5,#f3f2ff);
}
.payroll-ai-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: linear-gradient(145deg,var(--indigo),var(--teal));
    color: #fff;
    font-size: 18px;
    box-shadow: 0 7px 18px rgba(50,167,149,.22);
}
.payroll-ai-insight > header div:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.payroll-ai-insight > header small { color: #7f849a; font-size: 8px; letter-spacing: .16em; }
.payroll-ai-insight > header h3 { margin: 0; color: var(--ink); font-size: 16px; }
.payroll-ai-insight > header > span { margin-left: auto; padding: 5px 10px; border-radius: 999px; background: rgba(93,95,202,.1); color: var(--indigo); font-size: 10px; font-weight: 750; }
.payroll-ai-insight.is-ai > header > span { background: rgba(50,167,149,.13); color: #168874; }
.payroll-ai-content { padding: 18px 20px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
.payroll-ai-content :is(article,blockquote) { min-width: 0; margin: 0; padding: 16px 17px; border-radius: 13px; }
.payroll-ai-content article { border: 1px solid #e5e7ef; background: #fafbfe; }
.payroll-ai-content blockquote { border: 1px solid #d7ede8; background: #f2fbf9; }
.payroll-ai-content small { color: #85899c; font-size: 10px; font-weight: 700; }
.payroll-ai-content p { margin: 7px 0 0; color: #4f5367; font-size: 12px; line-height: 1.8; }
.payroll-ai-content blockquote p { color: #267264; font-weight: 600; }
.payroll-ai-insight > footer {
    padding: 11px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #edf0f3;
    background: #fbfcfd;
}
.payroll-ai-insight > footer p { margin: 0 auto 0 0; color: #989bad; font-size: 10px; }
.payroll-ai-insight > footer time { color: #989bad; font-size: 10px; white-space: nowrap; }
.btn-ai-insight { padding: 7px 12px; border: 0; border-radius: 9px; background: var(--indigo); color: #fff; font-size: 11px; font-weight: 700; }
.btn-ai-insight:hover { background: #4d50b8; }
.payroll-ai-unavailable { color: #8c90a3; font-size: 10px; }

.payroll-review-actions { border-color: #dce8e5; background: #fff; }
.payroll-waiting-payment { background: var(--indigo-soft); color: var(--indigo); }
.payroll-payment-receipt { border-color: #d4ebe6; }
.payroll-payment-receipt > header { background: var(--teal-soft); }

@media (max-width: 1180px) {
    .formal-payslip-head { flex-wrap: wrap; }
    .formal-payslip-head .payslip-brand { flex: 1 1 340px; }
    .formal-payslip-head dl { order: 3; flex: 1 1 100%; }
    .self-payroll-card > summary { grid-template-columns: minmax(190px,1.2fr) repeat(2,minmax(130px,1fr)) auto 20px; }
    .self-payroll-card > summary > span:nth-child(3) { display: none; }
}
@media (max-width: 900px) {
    .payroll-page-hero { align-items: stretch; flex-direction: column; }
    .payroll-month-filter { align-self: flex-start; }
    .payslip-key-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .payroll-ai-content { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .payroll-page-hero { padding: 20px; }
    .payroll-month-filter { width: 100%; align-items: stretch; flex-wrap: wrap; }
    .payroll-month-filter label { flex: 1 1 100%; }
    .payroll-month-filter .form-control { flex: 1 1 150px; width: auto; }
    .self-payroll-card > summary { padding: 15px; grid-template-columns: 1.25fr 1fr auto; gap: 13px; }
    .self-payroll-card > summary > span:nth-child(2),
    .self-payroll-card > summary > span:nth-child(3),
    .self-payroll-card > summary > .self-payroll-chevron { display: none; }
    .self-payroll-month > i { width: 42px; height: 42px; }
    .self-payroll-card > summary .self-payroll-net strong { font-size: 18px; }
    .self-payroll-body { padding: 13px; }
    .formal-payslip-head { padding: 20px; }
    .payslip-head-net { padding: 0; border-left: 0; }
    .formal-payslip-head dl { gap: 12px; }
    .formal-payslip-head dl div { min-width: 0; }
    .formal-payslip-head .payslip-copy-button { width: 100%; }
    .payslip-key-metrics { grid-template-columns: 1fr 1fr; }
    .payslip-key-metrics article { min-height: 85px; padding: 13px; }
    .payslip-key-metrics strong { font-size: 16px; }
    .payroll-ai-insight > footer { align-items: flex-start; flex-direction: column; }
    .payroll-ai-insight > footer form { width: 100%; }
    .btn-ai-insight { width: 100%; }
}
@media (max-width: 480px) {
    .payslip-key-metrics { grid-template-columns: 1fr; }
    .payroll-ai-insight > header { align-items: flex-start; flex-wrap: wrap; }
    .payroll-ai-insight > header > span { margin-left: 0; }
}
.task-summary-strip article { min-height: 104px; padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid #eee8e4; }
.task-summary-strip article:last-child { border-right: 0; }
.task-summary-strip small { color: #9a918b; font-size: 12px; }
.task-summary-strip strong { margin-top: 5px; color: #2d2926; font-size: 27px; line-height: 1.15; }
.task-summary-strip strong.is-danger { color: #dd493c; }
.task-summary-strip span { margin-top: 6px; color: #a29a95; font-size: 11px; }
.task-board-panel,.task-template-panel { padding: 0; overflow: hidden; border-color: #ece5e0; }
.task-template-panel { margin-top: 12px; }
.task-toolbar { min-height: 68px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #eee8e4; background: #fff; }
.task-filter-form,.task-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.task-filter-form { flex: 1; min-width: 0; }
.task-filter-form .search-control { width: min(360px,31vw); flex: 0 1 360px; }
.task-filter-form > .form-control { width: 146px; }
.task-filter-form > .form-select { width: 150px; }
.task-toolbar-actions { flex-shrink: 0; }
.task-toolbar-actions .active { border-color: #ffb28f; color: #f15a24; background: #fff2eb; }
.task-progress-grid { position: relative; padding: 12px 14px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; border-bottom: 1px solid #eee8e4; background: #fcfaf8; }
.task-progress-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid #e9e2dd; border-radius: 13px; background: #fff; transition: border-color .2s ease,box-shadow .2s ease,transform .2s ease; }
.task-progress-card:hover,.task-progress-card.active { transform: translateY(-1px); border-color: #ff9c70; box-shadow: 0 9px 22px rgba(82,49,29,.07); }
.task-progress-card > a:first-child { position: relative; min-height: 104px; padding: 13px 14px 16px; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.task-progress-card > a:first-child > span { color: #a09791; font-size: 10px; }
.task-progress-card > a:first-child > strong { margin-top: 6px; overflow: hidden; color: #37312d; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.task-progress-card > a:first-child > small { margin-top: 6px; color: #918882; font-size: 10px; }
.task-progress-card > a:first-child > b { position: absolute; right: 14px; top: 13px; color: #f15a24; font-size: 13px; }
.task-progress-card > a:first-child > i { position: absolute; left: 0; bottom: 0; width: var(--task-rate); height: 3px; background: #ff6427; }
.task-direct-action { position: absolute; right: 10px; bottom: 9px; z-index: 2; padding: 5px 9px; border-radius: 8px; color: #fff; background: #ff5b1a; font-size: 10px; text-decoration: none; }
.task-direct-action:hover { color: #fff; background: #e84c0c; }
.task-clear-filter { align-self: center; justify-self: start; padding: 8px 11px; border-radius: 9px; color: #706760; background: #f0ece9; font-size: 11px; text-decoration: none; }
.task-team-progress { padding: 12px 14px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; border-bottom: 1px solid #eee8e4; background: #fcfaf8; }
.task-team-progress article { position: relative; min-width: 0; padding: 10px 12px 13px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; overflow: hidden; border: 1px solid #eee6e1; border-radius: 12px; background: #fff; }
.task-team-progress article > i { position: absolute; left: 0; bottom: 0; width: var(--task-rate); height: 3px; background: #ff6a2a; transition: width .35s ease; }
.task-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #b5481f; background: #fff0e8; font-size: 13px; font-weight: 800; }
.task-team-progress article div { min-width: 0; display: flex; flex-direction: column; }
.task-team-progress article strong { overflow: hidden; color: #3b3531; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.task-team-progress article small { color: #99908a; font-size: 10px; }
.task-team-progress article b { color: #ff5b1a; font-size: 13px; }
.task-table-scroll { max-height: 460px; overflow: auto; }
.task-management-table { min-width: 1240px; }
.task-management-table thead { position: sticky; top: 0; z-index: 2; }
.task-management-table th { height: 46px; background: #faf8f6; }
.task-management-table td { height: 68px; vertical-align: middle; }
.task-management-table td:first-child { width: 54px; text-align: center; }
.task-management-table td > strong:not(.task-table-name),.task-table-name { display: block; color: #3c3530; font-size: 13px; font-weight: 700; }
.task-management-table td > small { display: block; max-width: 270px; margin-top: 3px; overflow: hidden; color: #a09892; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.task-type-pill,.task-priority,.task-state { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.task-type-pill { color: #6f655f; background: #f3f0ee; }
.task-priority { color: #786f69; background: #f2efed; }
.task-priority.priority-重要 { color: #bd6f09; background: #fff3d9; }
.task-priority.priority-紧急 { color: #c83f35; background: #ffebe9; }
.task-state.state-待完成 { color: #b4680c; background: #fff4dc; }
.task-state.state-按时完成 { color: #168060; background: #e7f7f1; }
.task-state.state-已逾期 { color: #c93f38; background: #ffebea; }
.task-state.state-逾期完成 { color: #7e5bb4; background: #f1eafa; }
.task-feedback-text { display: block; max-width: 270px; overflow: hidden; color: #5f5752; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.task-template-panel > header { min-height: 56px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eee8e4; }
.task-template-panel > header div { display: flex; align-items: baseline; gap: 10px; }
.task-template-panel > header strong { color: #302b28; font-size: 15px; }
.task-template-panel > header span { color: #9e9690; font-size: 11px; }
.task-template-grid { padding: 14px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; background: #fcfaf8; }
.task-template-card { min-width: 0; padding: 14px; cursor: pointer; border: 1px solid #e9e2dd; border-radius: 14px; background: #fff; transition: border-color .2s ease,transform .2s ease,box-shadow .2s ease; }
.task-template-card:hover { transform: translateY(-2px); border-color: #ffb18d; box-shadow: 0 10px 25px rgba(83,49,28,.07); }
.task-template-card.is-inactive { opacity: .58; }
.task-template-card > div { display: flex; align-items: center; gap: 6px; }
.task-template-card > div > span:not(.task-priority) { padding: 3px 8px; border-radius: 999px; color: #8a817b; background: #f5f2f0; font-size: 10px; }
.task-template-card > strong { display: block; margin-top: 13px; overflow: hidden; color: #37312d; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.task-template-card > p { height: 36px; margin: 6px 0 13px; overflow: hidden; color: #938a84; font-size: 11px; line-height: 18px; }
.task-template-card > footer { padding-top: 10px; display: flex; align-items: center; gap: 9px; border-top: 1px solid #f0ebe7; color: #9b928c; font-size: 10px; }
.task-template-card > footer b { margin-left: auto; color: #258263; font-size: 10px; }
.task-modal .modal-body { padding: 12px 24px 18px; }
.task-form-body { max-height: min(72vh,700px); overflow-y: auto; }
.task-form-row,.task-assignee-field { min-height: 58px; margin: 0; padding: 9px 0; display: grid; grid-template-columns: 132px minmax(0,1fr); align-items: center; gap: 18px; border-bottom: 1px solid #eee9e5; }
.task-form-row > span:first-child,.task-assignee-field > span { color: #514943; font-size: 12px; font-weight: 700; }
.task-form-row em,.task-assignee-field em { margin-right: 3px; color: #e33e35; font-style: normal; }
.task-form-row :is(.form-control,.form-select) { min-height: 42px; border-color: #ddd7d3; border-radius: 10px; box-shadow: none; }
.task-form-row textarea.form-control { min-height: 82px; resize: vertical; }
.task-active-row > span:last-child { font-size: 12px; }
.task-assignee-field { align-items: start; }
.task-assignee-field > span { padding-top: 10px; }
.task-assignee-field > div > button { margin-bottom: 8px; padding: 0; border: 0; color: #f15a24; background: transparent; font-size: 11px; }
.task-assignee-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.task-assignee-grid label { min-width: 0; min-height: 48px; padding: 7px 9px; display: flex; align-items: flex-start; gap: 8px; border: 1px solid #e8e2de; border-radius: 10px; background: #fff; }
.task-assignee-grid label:has(input:checked) { border-color: #ff9d71; background: #fff5ef; }
.task-assignee-grid span { min-width: 0; color: #4d4641; font-size: 11px; font-weight: 650; }
.task-assignee-grid small { display: block; margin-top: 2px; overflow: hidden; color: #9c948e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.task-instance-modal .modal-body { padding: 22px 24px; }
.task-instance-modal .modal-header small { color: #a19892; font-size: 10px; }
.task-instance-modal .modal-title { margin-top: 3px; font-size: 18px; }
.task-instance-modal .modal-body > p { min-height: 54px; padding: 14px; border-radius: 10px; color: #625a55; background: #f8f5f2; font-size: 12px; line-height: 1.7; }
.task-instance-meta { margin: 12px 0; display: flex; align-items: center; justify-content: space-between; color: #918882; font-size: 11px; }
.task-instance-modal label { color: #5e5651; font-size: 12px; font-weight: 700; }
.task-instance-modal textarea { margin-top: 7px; border-color: #ddd7d3; border-radius: 10px; box-shadow: none; }
.my-task-head { min-height: 142px; padding: 24px 28px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 32px; border-color: #dce7f4; background: linear-gradient(120deg,#fff 0%,#f3f8ff 100%); }
.my-task-head > div:first-child small { color: #8292a7; font-size: 11px; }
.my-task-head h1 { margin: 5px 0 2px; color: #334760; font-size: 24px; }
.my-task-head p { margin: 0; color: #8292a7; font-size: 12px; }
.my-task-progress { position: relative; width: 118px; height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(75,44,25,.06); }
.my-task-progress strong { color: #527fbd; font-size: 26px; }
.my-task-progress strong small { color: #9d948e; font-size: 13px; }
.my-task-progress span { color: #9d948e; font-size: 10px; }
.my-task-progress i { position: absolute; left: 10px; right: 10px; bottom: 8px; height: 3px; overflow: hidden; border-radius: 3px; background: #eee8e3; }
.my-task-progress i::after { content:""; display: block; width: var(--task-rate); height: 100%; background: #5b85c3; }
.my-task-head nav { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid #d8e3f0; border-radius: 12px; background: #fff; }
.my-task-head nav a { padding: 8px 12px; border-radius: 9px; color: #677b95; font-size: 11px; text-decoration: none; }
.my-task-head nav a.active { color: #fff; background: #5682c5; }
.my-task-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.my-task-card { min-height: 292px; padding: 18px; display: flex; flex-direction: column; border: 1px solid #e9e2dd; border-radius: 16px; background: #fff; box-shadow: 0 12px 28px rgba(68,43,28,.04); }
.my-task-card > header { display: flex; align-items: center; justify-content: space-between; }
.my-task-card > header > div { display: flex; align-items: center; gap: 6px; }
.my-task-card > header > div > span:not(.task-priority) { color: #938a84; font-size: 10px; }
.my-task-card h2 { margin: 18px 0 7px; color: #342f2b; font-size: 17px; }
.my-task-card > p { min-height: 42px; margin: 0; color: #867d77; font-size: 12px; line-height: 1.7; }
.my-task-deadline { margin-top: 14px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; border-radius: 10px; background: #f8f5f2; }
.my-task-deadline span { color: #99908a; font-size: 10px; }
.my-task-deadline strong { color: #3e3733; font-size: 15px; }
.task-auto-progress { margin-top: 10px; }
.task-auto-progress > div { display: flex; justify-content: space-between; color: #8e857f; font-size: 10px; }
.task-auto-progress i { display: block; height: 4px; margin-top: 6px; overflow: hidden; border-radius: 4px; background: #eee8e3; }
.task-auto-progress i::after { content:""; display: block; width: var(--task-rate); height: 100%; background: #31a17f; }
.my-task-card blockquote { margin: 11px 0 0; padding: 10px 12px; border-left: 3px solid #d6cec8; border-radius: 0 9px 9px 0; color: #625a55; background: #faf8f6; font-size: 11px; }
.my-task-card blockquote > span,.my-task-card blockquote > small { display: block; color: #a19892; font-size: 9px; }
.my-task-card blockquote > small { margin-top: 5px; }
.my-task-card > footer { min-height: 39px; margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.task-auto-waiting,.task-auto-done { padding: 8px 11px; border-radius: 9px; color: #6e7f79; background: #edf6f2; font-size: 11px; }
.my-task-card.state-已逾期 { border-color: #f0c9c5; }
.my-task-empty { grid-column: 1/-1; min-height: 260px; display: grid; place-items: center; }

/* 员工任务看板 V2：所有任务使用同一行式结构。 */
.employee-task-board-v2 { margin-top:12px; overflow:hidden; border:1px solid #dce7f4; border-radius:16px; background:#fff; box-shadow:0 12px 30px rgba(48,78,117,.055); }
.employee-task-board-head-v2 { min-height:66px; padding:11px 16px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:15px; border-bottom:1px solid #e3ebf5; background:linear-gradient(100deg,#f8fbff,#f1f6fd); }
.employee-task-board-head-v2>div { display:grid; gap:2px; }
.employee-task-board-head-v2>div>span { color:#6f91c0; font-size:8px; font-weight:800; letter-spacing:.15em; }
.employee-task-board-head-v2 h2 { margin:0; color:#354a66; font-size:16px; font-weight:800; }
.employee-task-board-head-v2>p { margin:0; color:#8b9aae; font-size:10px; }
.employee-task-board-head-v2>strong { padding:6px 10px; border-radius:999px; background:#e7f0fb; color:#597eaf; font-size:10px; white-space:nowrap; }
.employee-task-list-v2 { display:grid; }
.employee-task-row-v2 { min-width:0; min-height:122px; padding:13px 15px; display:grid; grid-template-columns:38px minmax(260px,1fr) 135px 210px; align-items:center; gap:14px; position:relative; border-bottom:1px solid #e8eef5; background:#fff; transition:background-color .18s ease; }
.employee-task-row-v2:last-child { border-bottom:0; }
.employee-task-row-v2:hover { background:#fbfdff; }
.employee-task-row-v2::before { width:3px; position:absolute; top:14px; bottom:14px; left:0; border-radius:0 999px 999px 0; background:#8daed9; content:""; opacity:.75; }
.employee-task-row-v2.is-completed::before { background:#43a386; }
.employee-task-row-v2.state-已逾期::before { background:#d9635b; }
.employee-task-index-v2 { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:#edf4fd; color:#5c82b6; font-size:9px; font-style:normal; font-weight:850; }
.employee-task-row-v2.is-completed .employee-task-index-v2 { background:#eaf7f2; color:#34896f; }
.employee-task-copy-v2 { min-width:0; align-self:center; }
.employee-task-copy-v2>header { display:flex; align-items:center; gap:7px; color:#8796a9; font-size:9px; }
.employee-task-copy-v2 .task-priority { min-height:21px; padding:2px 7px; font-size:9px; }
.employee-task-type-v2 { padding:4px 7px; border-radius:999px; background:#eaf2fd; color:#5b7fae; font-size:9px; font-weight:750; }
.employee-task-copy-v2 h3 { margin:7px 0 4px; overflow:hidden; color:#3a4e68; font-size:14px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.employee-task-copy-v2>p { margin:0; overflow:hidden; color:#8290a2; font-size:10px; line-height:1.55; text-overflow:ellipsis; white-space:nowrap; }
.employee-task-copy-v2 blockquote { max-width:720px; margin:7px 0 0; padding:6px 8px; overflow:hidden; border-left:2px solid #b7cbe5; border-radius:0 7px 7px 0; background:#f5f8fc; color:#667991; font-size:9px; line-height:1.5; text-overflow:ellipsis; white-space:nowrap; }
.employee-task-copy-v2 blockquote>span { margin-right:6px; color:#8b9cb1; font-weight:750; }
.employee-task-copy-v2 blockquote>small { margin-left:7px; color:#9aa7b7; font-size:8px; }
.employee-task-tags-v2 { margin-top:7px; display:flex; gap:5px; overflow:hidden; }
.employee-task-tags-v2 span { min-width:0; padding:3px 6px; overflow:hidden; border-radius:6px; background:#f2f6fb; color:#75879f; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.employee-task-tags-v2 b { color:#5279ad; }
.employee-task-metric-v2 { min-width:0; min-height:67px; padding:8px 12px; display:grid; align-content:center; gap:3px; border-left:1px solid #e6edf5; border-right:1px solid #e6edf5; }
.employee-task-metric-v2>span { color:#8d9bad; font-size:9px; }
.employee-task-metric-v2>strong { overflow:hidden; color:#3f5877; font-size:18px; line-height:1.15; text-overflow:ellipsis; white-space:nowrap; }
.employee-task-metric-v2>strong>small { color:#94a2b3; font-size:10px; }
.employee-task-metric-v2>small { color:#93a0b0; font-size:8px; }
.employee-task-metric-v2>i { height:3px; margin-top:2px; overflow:hidden; border-radius:999px; background:#e8eef5; }
.employee-task-metric-v2>i::after { width:var(--task-rate); height:100%; display:block; border-radius:inherit; background:#5d88c6; content:""; }
.employee-task-row-v2.is-completed .employee-task-metric-v2>i::after { background:#3d9a7d; }
.employee-task-operation-v2 { min-width:0; display:grid; justify-items:end; gap:9px; }
.employee-task-operation-v2>.task-state { min-height:22px; padding:2px 8px; font-size:9px; }
.employee-task-operation-v2>div { min-width:0; display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.employee-task-operation-v2 form { margin:0; }
.employee-task-operation-v2 :is(.btn-primary-custom,.btn-light-custom) { min-height:32px; padding:0 10px; border-radius:8px; font-size:9px; white-space:nowrap; }
.employee-task-operation-v2 .task-auto-waiting,
.employee-task-operation-v2 .task-auto-done { padding:7px 8px; font-size:9px; white-space:nowrap; }
.employee-task-empty-v2 { min-height:66px; padding:12px 16px 12px 67px; display:flex; align-items:center; gap:9px; border-top:1px dashed #e3eaf3; background:#fbfdff; }
.employee-task-empty-v2>i { width:27px; height:27px; display:grid; place-items:center; border-radius:8px; background:#eaf4f0; color:#3f9278; font-size:9px; font-style:normal; font-weight:800; }
.employee-task-empty-v2>span { display:grid; gap:2px; }
.employee-task-empty-v2 b { color:#667a94; font-size:10px; }
.employee-task-empty-v2 small { color:#9aa7b6; font-size:8px; }

/* 员工每日店铺数据任务：平台是一行任务，默认收起，展开后显示本人店铺矩阵。 */
.store-import-task-board { display:contents; }
.store-import-task-row { min-height:112px; }
.store-import-task-row.is-expanded { background:#f8fbff; }
.store-import-task-row.is-expanded::before { background:#5d88c6; }
.store-import-task-index { color:#fff; background:linear-gradient(145deg,#739bd0,#4f78b1); box-shadow:0 5px 12px rgba(70,111,165,.16); }
.store-import-task-row.is-completed .store-import-task-index { color:#fff; background:linear-gradient(145deg,#56aa90,#34896f); }
.store-import-task-metric>small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.store-import-task-operation { gap:7px; }
.store-import-toggle { min-width:94px; display:inline-flex!important; align-items:center; justify-content:center; gap:6px; border-color:#d6e2f0!important; color:#587aa8!important; background:#f7faff!important; }
.store-import-toggle:hover { border-color:#b8cce5!important; background:#eef5fd!important; }
.store-import-toggle>i { font-size:12px; font-style:normal; line-height:1; transition:transform .18s ease; }
.store-import-toggle[aria-expanded="true"]>i { transform:rotate(180deg); }
.store-import-task-panel { min-width:0; margin:0 14px 12px; overflow:hidden; border:1px solid #d7e4f2; border-radius:13px; background:#fff; box-shadow:0 8px 20px rgba(55,83,118,.045); }
.store-import-task-panel[hidden] { display:none; }
.store-import-panel-head { min-height:52px; padding:8px 10px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid #e4ebf4; background:linear-gradient(95deg,#f5f9fe,#fbfdff); }
.store-import-panel-head>div { min-width:0; display:flex; align-items:center; gap:8px; }
.store-import-panel-head>div>i { width:28px; height:28px; flex:0 0 28px; display:grid; place-items:center; border-radius:8px; color:#557eB5; background:#e4eef9; font-size:9px; font-style:normal; font-weight:850; }
.store-import-panel-head>div>span { min-width:0; display:grid; gap:1px; }
.store-import-panel-head strong { overflow:hidden; color:#405976; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.store-import-panel-head small { overflow:hidden; color:#8d9caf; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.store-import-legend { display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.store-import-legend>span { min-height:20px; padding:2px 7px; display:inline-flex; align-items:center; gap:4px; border:1px solid transparent; border-radius:999px; font-size:8px; font-weight:750; white-space:nowrap; }
.store-import-legend>span::before { width:6px; height:6px; border-radius:50%; background:currentColor; content:""; }
.store-import-legend .is-imported { color:#267d65; border-color:#c8e8dc; background:#ecf8f4; }
.store-import-legend .is-skipped { color:#6f8198; border-color:#d6e0eb; background:#eef3f8; }
.store-import-legend .is-pending { color:#aa681c; border-color:#f1d7b4; background:#fff6e9; }
.store-import-legend .is-failed { color:#b8504b; border-color:#efcbc8; background:#fff0ef; }
.store-import-matrix-scroll { max-width:100%; overflow:auto; scrollbar-color:#b8c8da #edf2f7; scrollbar-width:thin; }
.store-import-matrix { width:max-content; min-width:100%; margin:0; border-collapse:separate; border-spacing:0; table-layout:fixed; }
.store-import-matrix :is(th,td) { border-right:1px solid #e8edf4; border-bottom:1px solid #e8edf4; }
.store-import-matrix tr:last-child :is(th,td) { border-bottom:0; }
.store-import-matrix :is(th,td):last-child { border-right:0; }
.store-import-matrix thead th { width:128px; height:34px; padding:4px 7px; vertical-align:middle; background:#f4f8fd; text-align:left; }
.store-import-matrix thead th:first-child { width:178px; position:sticky; left:0; z-index:3; background:#eef4fb; }
.store-import-matrix thead strong { display:block; overflow:hidden; color:#5b718d; font-size:9px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.store-import-matrix thead small { display:block; margin-top:1px; overflow:hidden; color:#9aa7b5; font-size:7px; font-weight:500; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.store-import-matrix tbody>tr { height:72px; }
.store-import-matrix tbody>tr>th { width:178px; max-width:178px; height:72px; padding:7px 10px; position:sticky; left:0; z-index:2; vertical-align:middle; background:#fbfcfe; box-shadow:5px 0 10px rgba(55,80,110,.025); text-align:left; }
.store-import-matrix tbody>tr>th strong { display:block; overflow:hidden; color:#405a78; font-size:10px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.store-import-matrix tbody>tr>th small { display:block; margin-top:3px; overflow:hidden; color:#96a3b3; font-size:8px; font-weight:500; text-overflow:ellipsis; white-space:nowrap; }
.store-import-matrix td { width:128px; height:72px; padding:4px 5px; vertical-align:middle; background:#fff; }
.store-import-cell { width:118px; height:62px; padding:5px 6px 4px; display:flex; flex-direction:column; justify-content:center; overflow:hidden; border:1px solid #efcfaa; border-radius:9px; background:#fff7ed; transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,opacity .16s ease; }
.store-import-cell:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(52,76,106,.08); }
.store-import-cell.is-imported { border-color:#bfe3d5; background:#eaf7f2; }
.store-import-cell.is-skipped { border-color:#cedbe7; background:#edf3f8; }
.store-import-cell.is-failed { border-color:#edc4c1; background:#fff0ef; }
.store-import-cell.is-uploading { pointer-events:none; opacity:.62; }
.store-import-cell.is-uploading::after { color:#607895; font-size:8px; text-align:center; content:"正在处理…"; }
.store-import-cell.is-uploading>* { display:none!important; }
.store-import-cell>form:first-child { min-height:32px; display:flex; flex:1 1 auto; }
.store-import-cell label { min-width:0; width:100%; margin:0; display:flex; align-items:center; gap:6px; cursor:pointer; }
.store-import-cell-icon { width:21px; height:21px; flex:0 0 21px; display:grid; place-items:center; border-radius:7px; color:#ae6c20; background:#ffe8c9; font-size:9px; font-weight:900; }
.store-import-cell.is-imported .store-import-cell-icon { color:#247a62; background:#cfeadf; }
.store-import-cell.is-skipped .store-import-cell-icon { color:#6b8098; background:#dbe5ef; }
.store-import-cell.is-failed .store-import-cell-icon { color:#b64e49; background:#f5d6d3; }
.store-import-cell-copy { min-width:0; display:grid; gap:1px; }
.store-import-cell-copy b,.store-import-skipped-copy b { overflow:hidden; color:#6a512f; font-size:9px; font-weight:800; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.store-import-cell.is-imported .store-import-cell-copy b { color:#26785f; }
.store-import-cell.is-failed .store-import-cell-copy b { color:#aa4944; }
.store-import-cell-copy small,.store-import-skipped-copy small { overflow:hidden; color:#987a52; font-size:7px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.store-import-cell.is-imported .store-import-cell-copy small { color:#628d80; }
.store-import-cell>form[data-store-import-action] { min-height:16px; margin:0; display:flex; align-items:flex-end; justify-content:flex-end; border-top:1px dashed rgba(125,103,74,.17); }
.store-import-cell>form[data-store-import-action] button { min-height:15px; padding:0; border:0; color:#a46823; background:transparent; font-size:7px; line-height:15px; text-decoration:underline; text-decoration-color:rgba(164,104,35,.3); text-underline-offset:2px; }
.store-import-cell.is-skipped>form[data-store-import-action] button { color:#647b95; text-decoration-color:rgba(100,123,149,.3); }
.store-import-skipped-copy { min-width:0; min-height:33px; display:flex; flex:1 1 auto; align-items:center; gap:6px; }
.store-import-skipped-copy>span:last-child { min-width:0; display:grid; gap:1px; }
.store-import-skipped-copy b { color:#627991; }
.store-import-skipped-copy small { color:#8091a4; }
.store-import-task-panel>footer { min-height:31px; padding:5px 10px; display:flex; align-items:center; gap:7px; border-top:1px solid #e7edf5; color:#8796a8; background:#f8fbff; font-size:8px; }
.store-import-task-panel>footer>i { width:16px; height:16px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#6c94ca; font-size:8px; font-style:normal; font-weight:800; }
.store-import-empty { min-height:64px; display:grid; place-items:center; color:#95a2b2; font-size:9px; }

/* 员工涉税月任务：任务行内展开逐店填报，并提供历史月份补录。 */
.tax-task-board { display:contents; }
.tax-task-row { min-height:112px; }
.tax-task-row.is-expanded { background:#f8fbff; }
.tax-task-row.is-expanded::before { background:#5d88c6; }
.tax-task-index { color:#fff; background:linear-gradient(145deg,#789ed0,#557daf); box-shadow:0 5px 12px rgba(70,111,165,.16); }
.tax-task-row.is-completed .tax-task-index { background:linear-gradient(145deg,#56aa90,#34896f); }
.tax-task-operation { gap:7px; }
.tax-task-toggle { min-width:94px; display:inline-flex!important; align-items:center; justify-content:center; gap:6px; border-color:#d6e2f0!important; color:#587aa8!important; background:#f7faff!important; }
.tax-task-toggle:hover { border-color:#b8cce5!important; background:#eef5fd!important; }
.tax-task-toggle>i { font-size:12px; font-style:normal; line-height:1; transition:transform .18s ease; }
.tax-task-toggle[aria-expanded="true"]>i { transform:rotate(180deg); }
.tax-task-panel { min-width:0; margin:0 14px 12px; overflow:hidden; border:1px solid #d7e4f2; border-radius:13px; background:#fff; box-shadow:0 8px 20px rgba(55,83,118,.045); }
.tax-task-panel[hidden] { display:none; }
.tax-task-panel-head { min-height:58px; padding:8px 10px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid #e4ebf4; background:linear-gradient(95deg,#f5f9fe,#fbfdff); }
.tax-task-panel-head>div { min-width:0; display:flex; align-items:center; gap:8px; }
.tax-task-panel-head>div>i { width:28px; height:28px; flex:0 0 28px; display:grid; place-items:center; border-radius:8px; color:#557eb5; background:#e4eef9; font-size:9px; font-style:normal; font-weight:850; }
.tax-task-panel-head>div>span { min-width:0; display:grid; gap:1px; }
.tax-task-panel-head strong { overflow:hidden; color:#405976; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.tax-task-panel-head small { overflow:hidden; color:#8d9caf; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.tax-history-form { display:flex; align-items:flex-end; gap:6px; }
.tax-history-form label { margin:0; display:grid; gap:2px; color:#7f91a5; font-size:8px; }
.tax-history-form .form-control { width:142px; min-height:32px; padding:4px 8px; border-color:#d6e3f0; border-radius:8px; color:#46627f; font-size:10px; }
.tax-history-form .btn-light-custom { min-height:32px; padding:0 10px; border-radius:8px; font-size:9px; white-space:nowrap; }
.tax-task-table-scroll { max-width:100%; overflow:auto; scrollbar-color:#b8c8da #edf2f7; scrollbar-width:thin; }
.tax-task-table { width:100%; min-width:930px; margin:0; border-collapse:collapse; table-layout:fixed; }
.tax-task-table :is(th,td) { padding:9px 11px; border-right:1px solid #e8eef5; border-bottom:1px solid #e8eef5; color:#60748b; font-size:9px; text-align:left; vertical-align:middle; }
.tax-task-table :is(th,td):last-child { border-right:0; }
.tax-task-table tbody tr:last-child td { border-bottom:0; }
.tax-task-table thead th { height:34px; padding-top:6px; padding-bottom:6px; background:#f3f7fc; color:#657b94; font-size:8px; font-weight:800; white-space:nowrap; }
.tax-task-table th:nth-child(1) { width:210px; }
.tax-task-table th:nth-child(2) { width:72px; }
.tax-task-table th:nth-child(3) { width:190px; }
.tax-task-table th:nth-child(4),.tax-task-table th:nth-child(5),.tax-task-table th:nth-child(6) { width:105px; }
.tax-task-table th:nth-child(7) { width:82px; }
.tax-task-table th:nth-child(8) { width:70px; }
.tax-task-table tbody tr.is-done { background:#fbfefd; }
.tax-task-table tbody tr.is-pending { background:#fffdfb; }
.tax-task-table td:first-child strong { display:block; overflow:hidden; color:#405a78; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.tax-task-table td:first-child small { display:block; margin-top:2px; color:#97a5b4; font-size:8px; }
.tax-task-table td:nth-child(3) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tax-task-table td:nth-child(6)>strong { color:#2f608f; }
.tax-task-table .tax-status { padding:3px 7px; font-size:8px; white-space:nowrap; }
.tax-task-edit { min-height:27px; padding:0 9px; border:1px solid #c9dced; border-radius:7px; background:#f3f8fd; color:#4277aa; font-size:8px; font-weight:750; }
.tax-task-edit:hover { border-color:#9fc2e3; background:#eaf4fd; }
.tax-task-panel>footer { min-height:31px; padding:5px 10px; display:flex; align-items:center; gap:7px; border-top:1px solid #e7edf5; color:#8796a8; background:#f8fbff; font-size:8px; }
.tax-task-panel>footer>i { width:16px; height:16px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#6c94ca; font-size:8px; font-style:normal; font-weight:800; }

@media (max-width:900px) {
    .store-import-task-panel { margin-right:8px; margin-left:8px; }
    .store-import-panel-head { align-items:flex-start; flex-direction:column; gap:7px; }
    .store-import-legend { width:100%; justify-content:flex-start; flex-wrap:wrap; }
    .store-import-matrix thead th:first-child,.store-import-matrix tbody>tr>th { width:142px; max-width:142px; }
    .tax-task-panel { margin-right:8px; margin-left:8px; }
    .tax-task-panel-head { align-items:flex-start; flex-direction:column; gap:7px; }
    .tax-history-form { width:100%; }
}
@media (max-width:1200px) {
    .task-summary-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .task-summary-strip article:nth-child(3) { border-right: 0; }
    .task-progress-grid,.task-team-progress,.task-template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .my-task-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .employee-task-row-v2 { grid-template-columns:36px minmax(220px,1fr) 120px 185px; gap:10px; }
    .task-toolbar { align-items: stretch; flex-direction: column; }
}
@media (max-width:760px) {
    .task-summary-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .task-filter-form,.task-toolbar-actions { flex-wrap: wrap; }
    .task-filter-form .search-control { width: 100%; flex-basis: 100%; }
    .task-progress-grid,.task-team-progress,.task-template-grid,.my-task-grid { grid-template-columns: 1fr; }
    .task-assignee-grid { grid-template-columns: 1fr 1fr; }
    .my-task-head { grid-template-columns: 1fr; gap: 14px; }
    .my-task-progress { width: 100%; }
    .employee-task-board-v2 { margin-right:-4px; margin-left:-4px; border-radius:14px; }
    .employee-task-board-head-v2 { grid-template-columns:1fr auto; }
    .employee-task-board-head-v2>p { display:none; }
    .employee-task-row-v2 { min-height:0; padding:14px; grid-template-columns:34px minmax(0,1fr); align-items:start; gap:10px; }
    .employee-task-copy-v2 h3 { white-space:normal; }
    .employee-task-copy-v2>p { white-space:normal; }
    .employee-task-metric-v2 { min-height:0; padding:9px 0 0; grid-column:2; grid-template-columns:auto auto minmax(50px,1fr) auto; align-items:center; gap:7px; border:0; border-top:1px solid #edf1f6; }
    .employee-task-metric-v2>strong { font-size:14px; }
    .employee-task-metric-v2>i { min-width:50px; }
    .employee-task-operation-v2 { grid-column:2; justify-items:stretch; }
    .employee-task-operation-v2>.task-state { justify-self:start; }
    .employee-task-operation-v2>div { justify-content:flex-start; flex-wrap:wrap; }
    .task-form-row,.task-assignee-field { grid-template-columns: 1fr; gap: 6px; }
}

/* 选款分析 */
.selection-workbench { display:grid; grid-template-columns:minmax(620px,.86fr) minmax(720px,1.14fr); gap:14px; min-height:calc(100vh - 34px); color:#403a36; }
.selection-input-panel,.selection-result-panel { min-width:0; border:1px solid #ebe5e0; border-radius:20px; background:rgba(255,255,255,.94); box-shadow:0 14px 38px rgba(91,69,54,.06); }
.selection-input-panel { padding:16px; }
.selection-primary-row { display:grid; grid-template-columns:1.15fr 1fr .9fr 1.2fr; gap:9px; padding:11px; border:1px solid #eee8e4; border-radius:14px; background:#fbfaf9; }
.selection-primary-row label,.selection-form-card label { min-width:0; }
.selection-primary-row label>span,.selection-form-card label>span { display:block; margin:0 0 6px; color:#897f78; font-size:11px; font-weight:700; }
.selection-primary-row :is(.form-control,.form-select) { height:38px; border-color:#e2dcd7; border-radius:10px; color:#403a36; font-size:12px; }
.selection-form-grid { display:grid; gap:10px; margin-top:10px; }
.selection-form-card { overflow:hidden; border:1px solid #eee8e4; border-radius:15px; background:#fff; }
.selection-form-card header { min-height:49px; padding:0 14px; display:flex; align-items:center; gap:9px; border-bottom:1px solid #f0ebe7; background:#fdfcfb; }
.selection-form-card header>span { width:27px; height:27px; display:grid; place-items:center; border-radius:9px; color:#9d8c81; background:#f2eeeb; font-size:10px; font-weight:800; }
.selection-form-card header strong { font-size:14px; }
.selection-form-card header small { margin-left:auto; color:#aa9d95; font-size:10px; }
.selection-field-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 10px; padding:14px; }
.selection-field-grid label>div { height:38px; padding:0 10px; display:flex; align-items:center; border:1px solid #e4ded9; border-radius:10px; background:#fff; transition:.18s ease; }
.selection-field-grid label>div:focus-within { border-color:#ff7847; box-shadow:0 0 0 3px rgba(255,92,28,.08); }
.selection-field-grid input { min-width:0; width:100%; border:0; outline:0; color:#3e3834; background:transparent; font-size:13px; font-weight:700; }
.selection-field-grid i { color:#a89c94; font-size:11px; font-style:normal; }
.selection-field-grid label>small { display:block; margin-top:4px; color:#e7673d; font-size:9px; }
.selection-result-panel { overflow:hidden; }
.selection-result-head { height:63px; padding:0 20px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #ede7e3; background:linear-gradient(90deg,#fff,#fff9f5); }
.selection-result-head div { min-width:0; display:flex; align-items:baseline; gap:10px; }
.selection-result-head strong { max-width:360px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:18px; }
.selection-result-head span { overflow:hidden; color:#9a8f87; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.selection-result-head>i { padding:5px 9px; border-radius:999px; color:#e85c29; background:#fff0e9; font-size:9px; font-style:normal; font-weight:800; }
.selection-kpi-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-bottom:1px solid #eee8e4; }
.selection-kpi-grid article { min-width:0; min-height:105px; padding:17px 18px; border-right:1px solid #eee8e4; border-bottom:1px solid #eee8e4; }
.selection-kpi-grid article:nth-child(3n) { border-right:0; }
.selection-kpi-grid article:nth-child(n+4) { border-bottom:0; }
.selection-kpi-grid span,.selection-kpi-grid small { display:block; color:#948981; font-size:10px; }
.selection-kpi-grid strong { display:block; margin:7px 0 3px; overflow:hidden; color:#332f2c; font-size:23px; line-height:1.15; text-overflow:ellipsis; white-space:nowrap; }
.selection-kpi-grid .is-primary { background:#fffaf7; }
.selection-kpi-grid .is-primary strong,.selection-result-panel .is-profit { color:#e64b2e; }
.selection-result-panel .is-loss { color:#15906a!important; }
.selection-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:10px; background:#faf9f8; }
.selection-cost-card,.selection-volume-card,.selection-scenario-card { overflow:hidden; border:1px solid #ece6e2; border-radius:14px; background:#fff; }
.selection-cost-card>header,.selection-volume-card>header,.selection-scenario-card>header { height:46px; padding:0 14px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #f0ebe7; }
.selection-cost-card header strong,.selection-volume-card header strong,.selection-scenario-card header strong { font-size:13px; }
.selection-cost-card header span,.selection-volume-card header span,.selection-scenario-card header span { color:#9c9189; font-size:9px; }
.selection-cost-list { padding:8px 13px 11px; }
.selection-cost-list>div { min-height:27px; display:grid; grid-template-columns:70px 1fr 64px; align-items:center; gap:8px; color:#756c66; font-size:10px; }
.selection-cost-list i { height:4px; overflow:hidden; border-radius:999px; background:#f1ece8; }
.selection-cost-list i b { height:100%; display:block; border-radius:inherit; background:linear-gradient(90deg,#ff9b72,#f35d2d); }
.selection-cost-list strong { color:#514943; text-align:right; font-size:10px; }
.selection-volume-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.selection-volume-grid>div { min-height:68px; padding:12px 14px; border-right:1px solid #f0ebe7; border-bottom:1px solid #f0ebe7; }
.selection-volume-grid>div:nth-child(2n) { border-right:0; }
.selection-volume-grid>div:nth-child(n+5) { border-bottom:0; }
.selection-volume-grid span { display:block; color:#9b9088; font-size:9px; }
.selection-volume-grid strong { display:block; margin-top:5px; color:#413a36; font-size:16px; }
.selection-volume-grid .is-primary { background:#fffaf7; }
.selection-scenario-card { margin:0 10px 10px; }
.selection-scenario-card table { width:100%; min-width:900px; border-collapse:collapse; }
.selection-scenario-card th,.selection-scenario-card td { height:42px; padding:0 10px; border-bottom:1px solid #f1ece8; color:#625a55; font-size:10px; text-align:right; white-space:nowrap; }
.selection-scenario-card th:first-child,.selection-scenario-card thead th:first-child { text-align:left; }
.selection-scenario-card thead th { height:38px; color:#8c8179; background:#faf8f7; font-size:9px; }
.selection-scenario-card tr.is-weighted>* { color:#3f3834; background:#fff7f1; font-weight:800; }

/* 吊牌费规则 */
.tag-rule-range { display:flex; align-items:center; gap:5px; }
.tag-rule-range i { color:#b4aaa3; font-style:normal; }
.tag-rule-status { padding:5px 9px; border-radius:999px; color:#188062; background:#edf8f4; font-size:10px; font-weight:800; }
.tag-rule-status.is-inactive { color:#8e8782; background:#f1efed; }
.tag-rule-store-scope { padding:5px 9px; border-radius:8px; color:#665c55; background:#f3f0ee; font-size:10px; font-weight:800; }
.tag-rule-coverage { margin-bottom:10px; padding:12px; display:grid; grid-template-columns:130px 130px 130px minmax(0,1fr); gap:9px; border:1px solid #ebe5e0; border-radius:16px; background:#fff; }
.tag-rule-coverage>div { min-height:55px; padding:9px 12px; display:flex; align-items:center; justify-content:space-between; border:1px solid #eee8e4; border-radius:11px; background:#fcfbfa; }
.tag-rule-coverage span { color:#91867f; font-size:10px; }
.tag-rule-coverage strong { color:#423b37; font-size:22px; }
.tag-rule-coverage .is-complete strong,.tag-rule-coverage b.is-complete { color:#158066; }
.tag-rule-coverage .is-missing strong { color:#e74a31; }
.tag-rule-coverage .tag-rule-missing-list { padding-right:15px; justify-content:flex-start; gap:7px; overflow:auto; }
.tag-rule-missing-list>b { flex:0 0 auto; padding:5px 8px; border-radius:7px; color:#d84b35; background:#fff0ed; font-size:9px; }
.modal-dialog.tag-rule-batch-dialog:has(.management-modal.is-crud-form-modal) {
    width:min(1080px,calc(100vw - 32px));
    max-width:min(1080px,calc(100vw - 32px));
    height:min(860px,calc(100vh - 24px));
    max-height:min(860px,calc(100vh - 24px));
    margin:12px auto;
}
.tag-rule-batch-body { display:grid; align-content:start; gap:12px; max-height:none; overflow:auto; }
.tag-rule-choice-block { overflow:hidden; border:1px solid #e6dfda; border-radius:12px; }
.tag-rule-choice-block header { height:42px; padding:0 12px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #eee8e4; background:#faf9f8; }
.tag-rule-choice-block header strong { color:#5b524c; font-size:12px; }
.tag-rule-choice-block header strong small { margin-left:6px; color:#9b918a; font-size:10px; font-weight:600; }
.tag-rule-choice-block header em { margin-right:3px; color:#e4472e; font-style:normal; }
.tag-rule-choice-block header button { padding:3px 7px; border:0; color:#ef5b2a; background:transparent; font-size:10px; font-weight:800; }
.tag-rule-check-grid { padding:10px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.tag-rule-store-choice { min-height:0; max-height:min(460px,52vh); display:flex; flex-direction:column; }
.tag-rule-store-choice header { flex:0 0 42px; }
.tag-rule-store-choice .tag-rule-check-grid {
    min-height:0;
    padding:10px 8px 14px 10px;
    grid-template-columns:repeat(4,minmax(0,1fr));
    align-content:start;
    flex:1 1 auto;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    scrollbar-width:thin;
    scrollbar-color:#d8c7bd #f7f3f0;
}
.tag-rule-store-choice .tag-rule-check-grid::-webkit-scrollbar { width:8px; }
.tag-rule-store-choice .tag-rule-check-grid::-webkit-scrollbar-track { border-radius:8px; background:#f7f3f0; }
.tag-rule-store-choice .tag-rule-check-grid::-webkit-scrollbar-thumb { border:2px solid #f7f3f0; border-radius:8px; background:#d8c7bd; }
.tag-rule-choice-actions { display:flex; align-items:center; gap:8px; }
.tag-rule-choice-actions>span { color:#8b817a; font-size:10px; white-space:nowrap; }
.tag-rule-check-grid label { min-width:0; min-height:36px; padding:7px 8px; display:flex; align-items:center; gap:7px; border:1px solid #eee9e5; border-radius:9px; background:#fff; }
.tag-rule-check-grid label.is-unset { border-color:#ffd3c5; background:#fff9f7; }
.tag-rule-check-grid label span { min-width:0; overflow:hidden; color:#625a55; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.tag-rule-check-grid label i { margin-left:auto; color:#e45532; font-size:8px; font-style:normal; }
.tag-rule-common-fields { padding-top:4px; border-top:1px solid #eee8e4; }
.management-form-stack { display:grid; gap:9px; }
.management-form-stack .management-form-row { min-height:48px; display:grid; grid-template-columns:118px minmax(0,1fr); align-items:center; gap:12px; }
.management-form-stack .management-form-row>span:first-child { color:#625952; font-size:12px; font-weight:700; }
.management-form-stack .management-form-row em { margin-right:3px; color:#e4472e; font-style:normal; }
.management-form-stack .management-form-row :is(.form-control,.form-select) { min-height:42px; border-color:#e0dad5; border-radius:10px; font-size:12px; }
.management-form-stack .management-form-row textarea.form-control { min-height:72px; resize:vertical; }

@media (max-width:1450px) {
    .selection-workbench { grid-template-columns:1fr; }
    .selection-form-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .selection-field-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:980px) {
    .selection-primary-row,.selection-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .selection-detail-grid { grid-template-columns:1fr; }
}
@media (max-width:640px) {
    .selection-primary-row,.selection-form-grid,.selection-field-grid,.selection-kpi-grid { grid-template-columns:1fr; }
    .selection-kpi-grid article { border-right:0; border-bottom:1px solid #eee8e4!important; }
    .selection-result-head div { display:grid; gap:2px; }
}
@media (max-width:760px) {
    .tag-rule-coverage { grid-template-columns:repeat(3,1fr); }
    .tag-rule-coverage .tag-rule-missing-list { grid-column:1/-1; }
    .tag-rule-check-grid { grid-template-columns:1fr 1fr; }
    .tag-rule-store-choice .tag-rule-check-grid { grid-template-columns:1fr; }
}

@media (min-width:761px) and (max-width:1080px) {
    .tag-rule-store-choice .tag-rule-check-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* 档案资产总览 */
.asset-overview { flex: 0 0 auto; margin-bottom: 12px; overflow: hidden; border: 1px solid #ece5e0; border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgba(69,43,27,.04); }
body.taobao-system-theme .content-wrap:has(> .asset-overview) > .data-panel:has(> .table-responsive) { height: auto; flex: 1 1 0; }
.asset-overview > header { min-height: 58px; padding: 0 20px; display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid #eee8e4; }
.asset-overview > header strong { color: #302b28; font-size: 16px; }
.asset-overview > header span { color: #a19892; font-size: 11px; }
.asset-summary-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.asset-summary-card { position: relative; min-width: 0; padding: 18px 20px; border: 0; border-right: 1px solid #eee8e4; color: inherit; background: #fff; font: inherit; text-align: left; cursor: pointer; transition: background-color .2s ease,box-shadow .2s ease; }
.asset-summary-card:last-child { border-right: 0; }
.asset-summary-card::after { position: absolute; right: 20px; bottom: 0; left: 20px; height: 2px; border-radius: 999px; background: transparent; content: ""; }
.asset-summary-card:hover { background: #fffaf7; }
.asset-summary-card.active { background: #fff9f5; box-shadow: inset 0 0 0 1px rgba(255,86,20,.04); }
.asset-summary-card.active::after { background: #ff5a1f; }
.asset-summary-grid small,.asset-summary-grid span { display: block; color: #9b928c; font-size: 11px; }
.asset-summary-grid strong { display: block; margin: 7px 0 5px; color: #2f2a27; font-size: 23px; }
.asset-summary-grid .liability strong { color: #de493b; }
.asset-summary-grid .net { background: #fff8f3; }
.asset-summary-grid .net strong { color: #f15a24; }
.asset-inline-details { border-top: 1px solid #eee8e4; background: #fffdfb; }
.asset-inline-panel[hidden] { display: none !important; }
.asset-inline-panel { padding: 0 18px 18px; }
.asset-inline-panel > header { min-height: 66px; padding: 0 3px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.asset-inline-panel > header > div { min-width: 0; }
.asset-inline-panel > header strong,.asset-inline-panel > header span { display: block; }
.asset-inline-panel > header strong { color: #302b28; font-size: 14px; }
.asset-inline-panel > header span { margin-top: 3px; color: #a19892; font-size: 10px; }
.asset-inline-panel > header b { flex-shrink: 0; color: #302b28; font-size: 18px; }
.asset-inline-panel > header .asset-payable { color: #de493b; }
.asset-inline-panel > header .asset-net-value { color: #f15a24; }
.asset-inline-list { max-height: 282px; overflow-y: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.asset-inline-row { min-width: 0; min-height: 56px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #eee7e2; border-radius: 11px; background: #fff; }
.asset-inline-row > span { min-width: 0; overflow: hidden; color: #4b433e; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.asset-inline-row small { display: block; margin-top: 3px; overflow: hidden; color: #a19892; font-size: 9px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.asset-inline-row b { flex-shrink: 0; color: #302b28; font-size: 13px; }
.asset-inline-row .asset-payable,.asset-net-deduction b { color: #de493b; }
.asset-inline-list > p { grid-column: 1/-1; margin: 0; padding: 32px 12px; border: 1px dashed #e8dfda; border-radius: 11px; color: #aaa19b; background: #fff; font-size: 11px; text-align: center; }
.asset-net-breakdown { max-height: none; }
.asset-detail-groups { border-top: 1px solid #eee8e4; }
.asset-detail-groups > summary { padding: 12px 20px; cursor: pointer; color: #736963; font-size: 12px; font-weight: 700; }
.asset-detail-grid { padding: 0 16px 16px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.asset-detail-grid > section { min-width: 0; overflow: hidden; border: 1px solid #eee6e1; border-radius: 12px; }
.asset-detail-grid section > header,.asset-detail-grid section > div { min-height: 52px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #f0ebe7; }
.asset-detail-grid section > header { background: #faf8f6; }
.asset-detail-grid section > div:last-child { border-bottom: 0; }
.asset-detail-grid section span { min-width: 0; color: #4b433e; font-size: 12px; }
.asset-detail-grid section small { display: block; overflow: hidden; color: #a19892; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.asset-detail-grid section b { flex-shrink: 0; color: #2f2a27; font-size: 13px; }
.asset-detail-grid .asset-payable { color: #de493b; }
.asset-detail-grid p { padding: 24px 13px; color: #aaa19b; font-size: 11px; text-align: center; }

/* 上新链接收集 */
.task-launch-stats { padding: 10px 14px; display: flex; align-items: center; gap: 8px; overflow-x: auto; border-bottom: 1px solid #eee8e4; background: #fffaf7; }
.task-launch-stats > strong { color: #9a8e87; font-size: 11px; }
.task-launch-stats a { padding: 7px 10px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #f0dfd5; border-radius: 9px; color: #574d47; background: #fff; font-size: 11px; text-decoration: none; white-space: nowrap; }
.task-launch-stats b { color: #f15a24; font-size: 14px; }
.my-launch-entry { margin-bottom: 12px; padding: 15px 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; color: inherit; text-decoration: none; }
.my-launch-entry > div:first-child { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 6px; }
.my-launch-entry > div:first-child span { font-size: 12px; font-weight: 700; }
.my-launch-entry > div:first-child strong { color: #f15a24; font-size: 25px; }
.my-launch-entry > div:first-child small { grid-column: 1/-1; color: #9b928c; font-size: 9px; }
.my-launch-entry > div:nth-child(2) { display: flex; justify-content: flex-end; gap: 8px; overflow-x: auto; }
.my-launch-entry > div:nth-child(2) span { padding: 6px 9px; border-radius: 8px; color: #675c55; background: #f8f4f1; font-size: 10px; white-space: nowrap; }
.my-launch-entry > i { color: #b7aca5; font-size: 25px; font-style: normal; }
.launch-page { display: grid; gap: 12px; }
.launch-page-head { min-height: 78px; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #ece5e0; border-radius: 16px; background: #fff; }
.launch-page-head > div { display: flex; align-items: baseline; gap: 8px; }
.launch-page-head small,.launch-page-head span { color: #948b85; font-size: 11px; }
.launch-page-head strong { color: #f15a24; font-size: 28px; }
.launch-page-head form,.launch-admin-toolbar form { display: flex; align-items: center; gap: 8px; }
.launch-page-head .form-control { width: 150px; }
.launch-admin-toolbar { padding: 11px 13px; }
.launch-admin-toolbar .search-control { width: min(420px,32vw); }
.launch-admin-toolbar .form-control { width: 150px; }
.launch-admin-toolbar .form-select { width: 190px; }
.launch-store-stats { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.launch-store-stats article { min-width: 0; padding: 12px 13px; display: grid; grid-template-columns: 1fr auto; border: 1px solid #ece5e0; border-radius: 12px; background: #fff; }
.launch-store-stats span,.launch-store-stats small { overflow: hidden; color: #9b928c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.launch-store-stats strong { overflow: hidden; color: #3c3530; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.launch-store-stats b { grid-row: 1/3; grid-column: 2; align-self: center; color: #f15a24; font-size: 23px; }
.launch-link-panel { overflow: hidden; }
.launch-link-panel table { min-width: 1120px; }
.launch-link-panel td { height: 68px; vertical-align: middle; }
.launch-link-panel td small { display: block; max-width: 330px; margin-top: 3px; overflow: hidden; color: #a19892; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.launch-url { color: #f15a24; font-size: 12px; font-weight: 700; text-decoration: none; }
.launch-inline-delete { margin-top: 4px; padding: 0; border: 0; color: #ba9e8f; background: none; font-size: 9px; }
.launch-submit-card { padding: 18px; border: 1px solid #ece5e0; border-radius: 16px; background: #fff; }
.launch-submit-card form,.launch-submit-card label { display: grid; gap: 7px; }
.launch-submit-card form { gap: 14px; }
.launch-submit-card label > span { color: #625852; font-size: 12px; font-weight: 700; }
.launch-form-line { display: grid; grid-template-columns: 1fr 160px; gap: 10px; }
.launch-submit-button { min-height: 46px; width: 100%; }
.launch-mobile-list { display: grid; gap: 10px; }
.launch-mobile-list article { position: relative; padding: 14px; border: 1px solid #ece5e0; border-radius: 14px; background: #fff; }
.launch-mobile-list header { padding-right: 24px; display: flex; justify-content: space-between; gap: 10px; color: #8f857f; font-size: 9px; }
.launch-mobile-list article > a { margin-top: 9px; display: block; color: inherit; text-decoration: none; }
.launch-mobile-list article > a strong,.launch-mobile-list article > a small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.launch-mobile-list article > a strong { color: #342f2c; font-size: 13px; }
.launch-mobile-list article > a small { margin-top: 3px; color: #f15a24; font-size: 9px; }
.launch-mobile-list article p { margin: 8px 0 0; color: #786e67; font-size: 10px; }
.launch-mobile-list article > form { position: absolute; top: 8px; right: 8px; }
.launch-mobile-list article > form button { width: 24px; height: 24px; border: 0; color: #ad9f97; background: transparent; font-size: 18px; }
@media (max-width:1200px) {
    .asset-summary-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .asset-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .launch-store-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:760px) {
    .asset-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .asset-summary-card { padding: 14px; border-bottom: 1px solid #eee8e4; }
    .asset-summary-grid strong { font-size: 18px; }
    .asset-inline-panel { padding: 0 12px 12px; }
    .asset-inline-list { grid-template-columns: 1fr; }
    .asset-detail-grid,.launch-store-stats { grid-template-columns: 1fr; }
    .launch-page { margin: -4px; }
    .launch-page-head { min-height: 66px; padding: 10px 12px; }
    .launch-page-head form { gap: 5px; }
    .launch-page-head .form-control { width: 132px; }
    .launch-page-head strong { font-size: 23px; }
    .launch-submit-card { padding: 14px; }
    .launch-form-line { grid-template-columns: 1fr; }
    .my-launch-entry { grid-template-columns: auto 1fr auto; gap: 10px; }
    .my-launch-entry > div:nth-child(2) { justify-content: flex-start; }
}

/* 财务账户管理与单账户流水 */
.finance-accounts-page,.account-ledger-page { display:grid; gap:12px; }
.finance-accounts-simple { gap:10px; }
.asset-account-nav { overflow-x:auto; display:grid; grid-template-columns:repeat(6,minmax(145px,1fr)); border:1px solid #e8e1dc; border-radius:15px; background:#fff; box-shadow:0 10px 28px rgba(69,43,27,.04); }
.asset-account-nav a { position:relative; min-width:145px; padding:14px 16px; border-right:1px solid #eee8e4; color:inherit; text-decoration:none; transition:background-color .18s ease; }
.asset-account-nav a:last-child { border-right:0; }
.asset-account-nav a::after { position:absolute; right:15px; bottom:0; left:15px; height:2px; border-radius:999px; background:transparent; content:""; }
.asset-account-nav a:hover { background:#fffaf7; }
.asset-account-nav a.active { background:#fff7f2; }
.asset-account-nav a.active::after { background:#f15a24; }
.asset-account-nav span,.asset-account-nav strong,.asset-account-nav small { display:block; }
.asset-account-nav span { color:#7f746d; font-size:10px; font-weight:750; }
.asset-account-nav strong { margin:5px 0 3px; overflow:hidden; color:#312c29; font-size:17px; text-overflow:ellipsis; white-space:nowrap; }
.asset-account-nav small { color:#a39992; font-size:8px; }
.finance-account-hero { position:relative; min-height:170px; padding:28px 30px; overflow:hidden; display:flex; align-items:center; justify-content:space-between; gap:28px; border:1px solid #eadfd8; border-radius:18px; background:linear-gradient(125deg,#fff 0%,#fffaf6 62%,#fff1e8 100%); box-shadow:0 16px 38px rgba(69,43,27,.055); }
.finance-account-hero::after { position:absolute; top:-86px; right:-42px; width:250px; height:250px; border:42px solid rgba(255,90,31,.055); border-radius:50%; content:""; }
.finance-account-hero-copy { position:relative; z-index:1; min-width:0; }
.finance-account-hero-copy .eyebrow,.finance-account-directory-head .eyebrow,.account-ledger-identity .eyebrow { margin:0 0 5px; color:#d95728; font-size:9px; font-weight:800; letter-spacing:.16em; }
.finance-account-hero-copy h1 { margin:0; color:#2f2a27; font-size:27px; font-weight:780; letter-spacing:-.03em; }
.finance-account-hero-copy>p:not(.eyebrow) { margin:8px 0 0; color:#81766f; font-size:12px; }
.finance-account-hero-meta { margin-top:19px; display:flex; flex-wrap:wrap; gap:8px; }
.finance-account-hero-meta span { padding:7px 10px; border:1px solid #eee2db; border-radius:999px; color:#8a7e77; background:rgba(255,255,255,.75); font-size:10px; }
.finance-account-hero-meta b { color:#e95b29; font-size:12px; }
.finance-account-hero-balance { position:relative; z-index:1; min-width:300px; padding:22px 25px; border:1px solid rgba(255,255,255,.88); border-radius:16px; background:rgba(255,255,255,.78); box-shadow:0 12px 28px rgba(113,72,48,.08); backdrop-filter:blur(8px); }
.finance-account-hero-balance span,.finance-account-hero-balance small { display:block; color:#9a8d85; font-size:10px; }
.finance-account-hero-balance strong { display:block; margin:8px 0 5px; color:#e95722; font-size:31px; line-height:1.05; letter-spacing:-.03em; }
.finance-asset-overview { margin-bottom:0; }
.finance-asset-overview .asset-summary-card { padding:15px 17px; }
.finance-asset-overview .asset-summary-grid strong { font-size:19px; }
.asset-inline-link { color:inherit; text-decoration:none; transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.asset-inline-link:hover { border-color:#f2c3ae; color:inherit; box-shadow:0 8px 18px rgba(79,50,32,.06); transform:translateY(-1px); }
.asset-inline-link i { flex:0 0 auto; color:#e85c2b; font-size:18px; font-style:normal; }
.finance-account-directory { overflow:hidden; }
.finance-account-directory-head { min-height:76px; padding:15px 18px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid #eee8e4; }
.finance-account-directory-head h2 { margin:0; color:#302b28; font-size:18px; }
.finance-account-directory-head h1 { margin:0; color:#302b28; font-size:19px; }
.finance-account-directory-head span { display:block; margin-top:3px; color:#99908a; font-size:10px; }
.finance-account-directory .finance-account-toolbar { min-height:64px; padding:11px 15px; flex-wrap:nowrap; overflow:visible; border:0; border-bottom:1px solid #eee8e4; border-radius:0; background:#fff; box-shadow:none; backdrop-filter:none; }
.finance-account-directory .finance-account-toolbar::before { display:none; }
.finance-account-directory .finance-account-toolbar>.filter-form { width:auto; flex:1 1 auto; }
.finance-account-directory .finance-account-toolbar>.toolbar-actions { width:auto; flex:0 0 auto; margin-left:auto; padding-top:0; border-top:0; }
.finance-account-toolbar .search-control { width:min(520px,38vw); }
.finance-account-card-grid { padding:16px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; background:#fbfaf9; }
.finance-account-card { min-width:0; overflow:hidden; border:1px solid #e9e3df; border-radius:15px; background:#fff; box-shadow:0 7px 20px rgba(64,43,30,.035); cursor:pointer; transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.finance-account-card:hover,.finance-account-card:focus-visible { outline:0; border-color:#efbda7; box-shadow:0 12px 27px rgba(80,48,29,.075); transform:translateY(-2px); }
.finance-account-card.is-disabled { opacity:.72; }
.finance-account-card>header { min-height:68px; padding:14px 15px; display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:10px; border-bottom:1px solid #f0ebe8; background:linear-gradient(135deg,#fff,#fffaf7); }
.finance-account-type-icon { width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center; border:1px solid #f5d4c5; border-radius:11px; color:#e55927; background:#fff4ee; font-size:15px; font-weight:800; }
.finance-account-card>header div { min-width:0; }
.finance-account-card>header strong,.finance-account-card>header small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.finance-account-card>header strong { color:#3a332f; font-size:13px; }
.finance-account-card>header small { margin-top:3px; color:#998e87; font-size:9px; }
.finance-account-status { padding:5px 8px; border-radius:999px; color:#8b817a; background:#f0ece9; font-size:9px; font-style:normal; font-weight:750; }
.finance-account-status.active { color:#15845c; background:#eaf7f1; }
.finance-account-card-balance { padding:17px 16px 15px; }
.finance-account-card-balance span,.finance-account-card-balance small { display:block; color:#9b918a; font-size:9px; }
.finance-account-card-balance strong { display:block; margin:6px 0 5px; color:#302b28; font-size:25px; letter-spacing:-.02em; }
.finance-account-card-balance strong.negative { color:#d84d3e; }
.finance-account-card dl { margin:0; padding:0 16px 15px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.finance-account-card dl div { min-width:0; padding:9px 10px; border-radius:9px; background:#f8f6f4; }
.finance-account-card dt,.finance-account-card dd { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.finance-account-card dt { color:#a09790; font-size:8px; }
.finance-account-card dd { margin:3px 0 0; color:#5e554f; font-size:10px; font-weight:650; }
.finance-account-card footer { min-height:48px; padding:10px 14px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid #f0ebe8; }
.finance-account-card footer a,.finance-account-card footer button { border:0; color:#e85b29; background:none; font-size:10px; font-weight:750; text-decoration:none; }
.finance-account-card footer>span { color:#9b918a; font-size:9px; }
.finance-account-card footer a span { font-size:16px; vertical-align:-1px; }
.finance-account-card footer button { color:#8d827b; cursor:pointer; }
.finance-account-empty { grid-column:1/-1; min-height:180px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; border:1px dashed #ded7d3; border-radius:13px; color:#a09690; background:#fff; }
.finance-account-empty strong { color:#625953; font-size:13px; }
.finance-account-empty span { font-size:10px; }

.account-ledger-breadcrumb { padding:2px 4px; display:flex; align-items:center; gap:8px; color:#a0958e; font-size:10px; }
.account-ledger-breadcrumb a { color:#e85b29; text-decoration:none; }
.account-ledger-breadcrumb strong { color:#5d544f; }
.account-ledger-hero { min-height:150px; padding:22px 24px; display:grid; grid-template-columns:minmax(260px,1.25fr) minmax(260px,.8fr) minmax(310px,1fr); align-items:center; gap:24px; border:1px solid #eadfd8; border-radius:18px; background:linear-gradient(130deg,#fff 0%,#fffbf8 60%,#fff2e9 100%); box-shadow:0 14px 34px rgba(69,43,27,.05); }
.account-ledger-identity { min-width:0; display:flex; align-items:center; gap:13px; }
.account-ledger-identity .finance-account-type-icon { width:48px; height:48px; flex:0 0 auto; border-radius:14px; font-size:18px; }
.account-ledger-identity h1 { margin:0; overflow:hidden; color:#302b28; font-size:22px; text-overflow:ellipsis; white-space:nowrap; }
.account-ledger-identity div>p:last-child { margin:5px 0 0; overflow:hidden; color:#91867f; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.account-ledger-balance { padding:4px 24px; border-right:1px solid #eadfd8; border-left:1px solid #eadfd8; }
.account-ledger-balance span,.account-ledger-balance small { display:block; color:#998d85; font-size:9px; }
.account-ledger-balance strong { display:block; margin:7px 0 5px; color:#e95824; font-size:29px; }
.account-ledger-balance strong.negative { color:#d84d3e; }
.account-ledger-meta { margin:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.account-ledger-meta div { min-width:0; }
.account-ledger-meta dt { color:#a0958e; font-size:8px; }
.account-ledger-meta dd { margin:4px 0 0; overflow:hidden; color:#574e48; font-size:10px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.asset-ledger-source-note { min-width:0; }
.asset-ledger-source-note span,.asset-ledger-source-note small { display:block; color:#9b9088; font-size:9px; }
.asset-ledger-source-note strong { display:block; margin:6px 0 4px; overflow:hidden; color:#4a423d; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.account-ledger-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.account-ledger-kpis article { min-width:0; padding:15px 17px; border:1px solid #eae3de; border-radius:13px; background:#fff; box-shadow:0 7px 19px rgba(64,43,30,.03); }
.account-ledger-kpis span,.account-ledger-kpis small { display:block; color:#9d928b; font-size:9px; }
.account-ledger-kpis strong { display:block; margin:7px 0 4px; overflow:hidden; color:#3b3430; font-size:19px; text-overflow:ellipsis; white-space:nowrap; }
.account-ledger-kpis strong.positive,.account-flow-change.positive { color:#16845e; }
.account-ledger-kpis strong.negative,.account-flow-change.negative { color:#d84c3f; }
.account-ledger-panel { overflow:hidden; }
.account-ledger-panel-head { min-height:69px; padding:13px 17px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid #ece6e2; }
.account-ledger-panel-head h2 { margin:0; color:#342e2a; font-size:16px; }
.account-ledger-panel-head span { display:block; margin-top:3px; color:#9c928b; font-size:9px; }
.account-ledger-filter { padding:11px 13px; display:flex; align-items:center; gap:7px; border-bottom:1px solid #eee8e4; background:#fcfbfa; }
.account-ledger-filter .search-control { width:min(460px,30vw); }
.account-ledger-filter>.form-select { width:120px; }
.account-ledger-filter>.form-control { width:145px; }
.account-ledger-filter .per-page-select { width:82px; }
.account-ledger-date-separator { color:#a69b94; }
.account-ledger-opening { min-height:48px; padding:9px 16px; display:flex; align-items:center; gap:12px; border-bottom:1px solid #eee8e4; color:#8e837c; background:#fff9f5; font-size:9px; }
.account-ledger-opening strong { color:#4a423d; font-size:13px; }
.account-ledger-opening small { color:#aaa09a; }
.account-ledger-table { min-width:1360px; }
.account-ledger-table th,.account-ledger-table td { padding:12px 14px; }
.account-ledger-table td { height:66px; vertical-align:middle; }
.account-ledger-table td strong,.account-ledger-table td small { display:block; }
.account-ledger-table td strong { max-width:250px; overflow:hidden; color:#4a423d; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.account-ledger-table td small { max-width:270px; margin-top:3px; overflow:hidden; color:#9d938c; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.account-flow-badge { min-width:42px; padding:6px 8px; display:inline-flex; justify-content:center; border-radius:999px; font-size:9px; font-weight:800; }
.account-flow-badge.flow-in { color:#16845e; background:#eaf7f1; }
.account-flow-badge.flow-out { color:#d84c3f; background:#fceeed; }
.account-flow-badge.flow-flat { color:#82766f; background:#f1eeeb; }
.account-ledger-source { color:#e85b29; font-size:10px; font-weight:700; text-decoration:none; }
.account-flow-change,.account-flow-balance { font-size:12px!important; font-weight:800; white-space:nowrap; }
.account-flow-balance { color:#39332f; }

@media (max-width:1500px) {
    .finance-account-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .account-ledger-hero { grid-template-columns:1fr 1fr; }
    .account-ledger-meta { grid-column:1/-1; padding-top:14px; border-top:1px solid #eadfd8; }
}
@media (max-width:980px) {
    .asset-account-nav { grid-template-columns:repeat(6,minmax(138px,1fr)); }
    .finance-account-hero { align-items:stretch; flex-direction:column; }
    .finance-account-hero-balance { min-width:0; }
    .finance-account-directory .finance-account-toolbar,.account-ledger-filter { align-items:stretch; flex-wrap:wrap; }
    .finance-account-directory .finance-account-toolbar>.filter-form,.finance-account-directory .finance-account-toolbar>.toolbar-actions { width:100%; flex:1 1 100%; }
    .finance-account-directory .finance-account-toolbar>.toolbar-actions { padding-top:8px; justify-content:flex-start; border-top:1px solid #eee8e4; }
    .finance-account-toolbar .search-control,.account-ledger-filter .search-control { width:100%; }
    .account-ledger-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:700px) {
    .asset-account-nav { display:flex; }
    .asset-account-nav a { flex:0 0 138px; }
    .finance-account-hero { padding:20px; }
    .finance-account-hero-copy h1 { font-size:22px; }
    .finance-account-card-grid { grid-template-columns:1fr; padding:10px; }
    .finance-account-directory-head { align-items:flex-start; flex-direction:column; }
    .account-ledger-hero { padding:18px; grid-template-columns:1fr; }
    .account-ledger-balance { padding:14px 0; border:0; border-top:1px solid #eadfd8; border-bottom:1px solid #eadfd8; }
    .account-ledger-meta { grid-column:auto; padding:0; border:0; }
    .account-ledger-kpis { grid-template-columns:1fr 1fr; }
    .account-ledger-filter>.form-select,.account-ledger-filter>.form-control { width:calc(50% - 12px); }
    .account-ledger-date-separator { display:none; }
}
.jd-file-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.jd-data-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.jd-warning-card strong { color: #ef3f24; }
.jd-analysis-filter { padding: 16px 20px; display: grid; gap: 12px; }
.jd-analysis-search { width: min(760px, 70vw); margin: 0 auto; display: flex; border: 2px solid #ff5a1f; border-radius: 999px; padding: 4px; background: #fff; }
.jd-analysis-search input { flex: 1; border: 0; outline: 0; padding: 9px 18px; background: transparent; }
.jd-analysis-search button { border: 0; border-radius: 999px; padding: 9px 26px; background: #ff5a1f; color: #fff; font-weight: 700; }
.jd-filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.jd-filter-row input,.jd-filter-row select,.jd-filter-row button,.jd-filter-row a { min-height: 36px; border: 1px solid #eadfd9; border-radius: 8px; background: #fff; color: #433b37; padding: 6px 12px; text-decoration: none; }
.jd-filter-row select[multiple] { width: 320px; min-height: 38px; height: 38px; }
.jd-filter-row .active { color: #ef3f24; border-color: #ffb69b; background: #fff6f1; }
.jd-kpi-grid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); background:#fff; border:1px solid #eadfd9; border-radius:15px; overflow:hidden; }
.jd-kpi-grid article { min-width:0; padding:17px 16px; border-right:1px solid #eee7e3; }
.jd-kpi-grid article:last-child { border-right:0; }
.jd-kpi-grid span,.jd-kpi-grid small { display:block; color:#958b84; font-size:12px; }
.jd-kpi-grid strong { display:block; margin:6px 0 3px; font-size:20px; white-space:nowrap; }
.jd-analysis-tabs { margin:12px 0; }
.jd-analysis-table-panel { overflow:hidden; }
.jd-analysis-title { display:flex; justify-content:space-between; padding:14px 18px; border-bottom:1px solid #eee7e3; }
.jd-analysis-scroll { max-height:calc(100vh - 355px); overflow:auto; }
.jd-analysis-table { min-width:1900px; }
.jd-analysis-table th,.jd-analysis-table td { padding:14px 16px; white-space:nowrap; vertical-align:middle; }
.jd-analysis-table td small { display:block; margin-top:4px; color:#99908a; font-size:12px; }
.jd-analysis-table tbody tr { cursor:pointer; }
.jd-cost-warning-row { background:#fff9f5; }
.jd-status { display:inline-flex; padding:4px 8px; border-radius:7px; background:#f3f1ef; }
.jd-source-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.jd-source-grid section { border:1px solid #eee5df; border-radius:12px; overflow:hidden; }
.jd-source-grid h6 { padding:13px 15px; margin:0; background:#faf8f6; }
.jd-source-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 16px; padding:12px 15px; border-top:1px solid #f1ebe7; }
.jd-source-row small { color:#99908a; }
.jd-source-row form { grid-column:1/-1; display:flex; gap:8px; }
.jd-source-row input { flex:1; border:1px solid #ded5cf; border-radius:7px; padding:7px 10px; }
.jd-source-row button { border:0; border-radius:7px; background:#ff5a1f; color:#fff; padding:7px 14px; }
@media (max-width: 1280px) { .jd-file-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .jd-kpi-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }

/* Jingdong profit workspace */
.jd-analysis-filter { border: 1px solid #eee5df; background: rgba(255,255,255,.96); box-shadow: 0 12px 32px rgba(64,45,35,.05); }
.jd-analysis-search { max-width: 760px; margin-inline: auto; }
.jd-analysis-search input { background: #fbfaf9; }
.jd-analysis-tabs { padding: 5px; border: 1px solid #eee5df; background: #fff; border-radius: 13px; width: max-content; box-shadow: 0 8px 24px rgba(64,45,35,.04); }
.jd-analysis-tabs a { min-width: 112px; padding: 9px 20px; border-radius: 9px; text-align: center; }
.jd-analysis-tabs a.active { background: #ff5000; color: #fff; box-shadow: 0 8px 18px rgba(255,80,0,.17); }

.jd-overview-board { margin: 14px 0; overflow: hidden; border: 1px solid #eadfd9; border-radius: 16px; background: #fff; box-shadow: 0 12px 36px rgba(64,45,35,.055); }
.jd-overview-heading { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 20px; border-bottom: 1px solid #f0e9e4; }
.jd-overview-heading strong { font-size: 18px; color: #27211e; }
.jd-overview-heading span { font-size: 12px; color: #9a908a; }
.jd-overview-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.jd-overview-card { position: relative; min-width: 0; padding: 22px 22px 20px; border-right: 1px solid #f0e9e4; }
.jd-overview-card:last-child { border-right: 0; }
.jd-overview-card > span { display: block; color: #7b716c; font-size: 13px; }
.jd-overview-card > strong { display: block; margin: 7px 0 4px; color: #2c2623; font-size: 27px; line-height: 1.2; letter-spacing: -.3px; }
.jd-overview-card > small { display: block; color: #aaa09a; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-overview-payment { background: linear-gradient(135deg,#fff8f3 0%,#fff 72%); }
.jd-overview-payment::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 4px 4px 0; background: #ff5000; }
.jd-overview-profit { background: #fffcfa; }
.jd-expense-strip { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border-top: 1px solid #f0e9e4; background: #fcfbfa; }
.jd-expense-strip article { min-width: 0; padding: 15px 18px; border-right: 1px solid #f0e9e4; }
.jd-expense-strip article:last-child { border-right: 0; }
.jd-expense-strip span,.jd-expense-strip small { display: block; color: #9a908a; font-size: 11px; }
.jd-expense-strip strong { display: block; margin: 4px 0 2px; color: #3d3531; font-size: 16px; }

.jd-analysis-table-panel { overflow: hidden; border: 1px solid #eadfd9; border-radius: 15px; box-shadow: 0 10px 28px rgba(64,45,35,.045); }
.jd-analysis-title { min-height: 54px; padding: 0 18px; border-bottom: 1px solid #eee6e1; }
.jd-analysis-title strong { font-size: 17px; }
.jd-analysis-table thead th { height: 48px; color: #625953; font-size: 13px; font-weight: 650; background: #faf8f6; }
.jd-analysis-table tbody td { height: 66px; padding-top: 11px; padding-bottom: 11px; color: #403936; font-size: 14px; border-color: #f0e9e5; }
.jd-analysis-table tbody tr { cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease; }
.jd-analysis-table tbody tr:hover { background: #fff8f3; box-shadow: inset 3px 0 #ff5000; }
.jd-analysis-table tbody td small { margin-top: 4px; color: #a59b95; font-size: 11px; }
.jd-analysis-table tfoot th { padding: 12px 10px; border-top: 1px solid #dfd5cf; background: #fff; color: #4a423e; font-size: 13px; }
.jd-status { padding: 5px 9px; border-radius: 7px; background: #f1efed; color: #5a514c; font-size: 12px; white-space: nowrap; }
.jd-order-kind { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.jd-order-kind.real { color: #276b58; background: #edf8f4; }
.jd-order-kind.internal { color: #b54b1b; background: #fff1e8; }
.jd-internal-order-row { background: #fffdfb; }
.jd-internal-order-row:hover { background: #fff4eb !important; }

.jd-profit-modal-dialog { width: min(1380px,96vw); max-width: none; }
.jd-order-modal { overflow: hidden; border: 0; border-radius: 18px; box-shadow: 0 32px 90px rgba(40,28,22,.2); }
.jd-profit-modal-header { position: relative; align-items: flex-start; min-height: 92px; padding: 20px 26px; border-bottom: 1px solid #ebe3de; background: #fff; }
.jd-profit-modal-header > div:first-child > small { display: block; margin-bottom: 3px; color: #ff5000; font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.jd-profit-modal-header h5 { margin: 0; color: #27211e; font-size: 22px; font-weight: 750; }
.jd-profit-modal-header p { margin: 5px 0 0; color: #9b918b; font-size: 12px; }
.jd-modal-statuses { display: flex; gap: 7px; margin: 17px 42px 0 auto; }
.jd-modal-statuses span { padding: 6px 10px; border: 1px solid #e9e1dc; border-radius: 999px; color: #665d58; background: #faf8f7; font-size: 12px; }
.jd-profit-modal-header .btn-close { position: absolute; top: 23px; right: 23px; }
.jd-profit-modal-body { padding: 20px 22px 26px; background: #f7f5f3; }
.jd-ratio-base { display: flex; align-items: center; gap: 9px; min-height: 44px; margin-bottom: 13px; padding: 0 15px; border: 1px solid #f2d8ca; border-radius: 11px; background: #fff8f4; }
.jd-ratio-base span { color: #9a7462; font-size: 12px; }
.jd-ratio-base strong { color: #ff5000; font-size: 15px; }
.jd-ratio-base small { color: #b29e93; font-size: 11px; }
.jd-order-context-bar { display: flex; align-items: center; gap: 20px; min-height: 52px; margin-bottom: 13px; padding: 8px 16px; border: 1px solid #f0ded4; border-radius: 12px; background: #fffaf7; }
.jd-order-context-bar > div:first-child { display: flex; align-items: baseline; gap: 9px; flex: 0 0 auto; }
.jd-order-context-bar > div:first-child span { color: #9a7462; font-size: 12px; }
.jd-order-context-bar > div:first-child strong { color: #ff5000; font-size: 17px; }
.jd-order-context-bar > small { color: #a2958e; font-size: 11px; }
.jd-exchange-recovery { display: flex; align-items: center; gap: 10px; min-width: 0; padding-left: 19px; border-left: 1px solid #ead7cc; }
.jd-exchange-recovery b { padding: 4px 8px; border-radius: 6px; color: #19735c; background: #eaf7f2; font-size: 11px; }
.jd-exchange-recovery span { color: #655b55; font-size: 12px; }
.jd-exchange-recovery a { color: #d85823; font-size: 12px; text-decoration: none; }

.jd-order-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); overflow: hidden; margin-bottom: 14px; border: 1px solid #e8e0db; border-radius: 14px; background: #fff; }
.jd-order-summary-grid article { min-width: 0; padding: 19px 20px; border-right: 1px solid #eee7e2; }
.jd-order-summary-grid article:last-child { border-right: 0; }
.jd-order-summary-grid span,.jd-order-summary-grid small { display: block; color: #958b85; font-size: 12px; }
.jd-order-summary-grid strong { display: block; margin: 6px 0 4px; color: #2c2623; font-size: 23px; }
.jd-order-summary-grid .jd-summary-profit { background: #fffbf8; }

.jd-modal-section { margin-top: 14px; overflow: hidden; border: 1px solid #e8e0db; border-radius: 14px; background: #fff; }
.jd-modal-section > header { display: flex; align-items: center; justify-content: space-between; min-height: 49px; padding: 0 17px; border-bottom: 1px solid #eee7e2; }
.jd-modal-section > header strong { color: #302925; font-size: 15px; }
.jd-modal-section > header span { color: #a29993; font-size: 11px; }
.jd-expense-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; }
.jd-expense-card-grid article { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto; align-items: center; min-height: 83px; padding: 14px 17px; border-right: 1px solid #f0e9e5; border-bottom: 1px solid #f0e9e5; }
.jd-expense-card-grid article:nth-child(3n) { border-right: 0; }
.jd-expense-card-grid article:nth-last-child(-n+3) { border-bottom: 0; }
.jd-expense-card-grid article > div { min-width: 0; }
.jd-expense-card-grid article > div span { display: block; color: #afa49e; font-size: 10px; }
.jd-expense-card-grid article > div strong { display: block; margin-top: 3px; color: #49403b; font-size: 14px; }
.jd-expense-card-grid article > b { color: #2f2825; font-size: 18px; }
.jd-expense-card-grid article > small { grid-column: 2; color: #d45a28; font-size: 11px; text-align: right; }
.jd-expense-card-grid article.is-zero { opacity: .56; }
.jd-expense-overview-section > header { min-height: 54px; }
.jd-expense-overview-section > header strong { font-size: 17px; }
.jd-expense-primary-grid article { min-height: 94px; padding: 16px 19px; }
.jd-expense-primary-grid article > div:first-child span { color: #b2a59d; font-size: 10px; letter-spacing: .2px; }
.jd-expense-primary-grid article > div:first-child strong { margin-top: 6px; font-size: 15px; }
.jd-expense-amount { text-align: right; }
.jd-expense-amount b,.jd-expense-amount del { display: block; }
.jd-expense-amount b { color: #302925; font-size: 20px; }
.jd-expense-amount del { margin-top: 3px; color: #aaa09a; font-size: 10px; }
.jd-expense-primary-grid article.is-recovered { opacity: 1; background: #f4fbf8; }
.jd-expense-primary-grid article.is-recovered > small { color: #168069; }
.jd-expense-primary-grid article.is-recovered .jd-expense-amount b { color: #168069; }

.jd-fee-detail-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid #eee7e2; background: #fcfbfa; }
.jd-fee-detail-strip > div { min-width: 0; padding: 14px 18px 15px; border-right: 1px solid #eee7e2; }
.jd-fee-detail-strip > div:last-child { border-right: 0; }
.jd-fee-detail-strip h6 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 7px; }
.jd-fee-detail-strip h6 span { color: #837872; font-size: 12px; }
.jd-fee-detail-strip h6 b { color: #3b332f; font-size: 14px; }
.jd-fee-detail-strip article { display: grid; grid-template-columns: minmax(0,1fr) auto 52px; align-items: center; min-height: 35px; border-top: 1px dashed #e9e1dc; }
.jd-fee-detail-strip article span { overflow: hidden; color: #5f5550; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.jd-fee-detail-strip article strong { color: #302925; font-size: 13px; text-align: right; }
.jd-fee-detail-strip article small { color: #d45a28; font-size: 10px; text-align: right; }

.jd-breakdown-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.jd-breakdown-columns > div { min-width: 0; padding: 14px 17px 16px; border-right: 1px solid #eee7e2; }
.jd-breakdown-columns > div:last-child { border-right: 0; }
.jd-breakdown-columns h6 { margin: 0 0 9px; color: #716761; font-size: 12px; }
.jd-breakdown-columns article { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; min-height: 42px; border-top: 1px dashed #eee6e1; }
.jd-breakdown-columns article span { overflow: hidden; color: #544b46; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.jd-breakdown-columns article strong { color: #2f2925; font-size: 13px; }
.jd-breakdown-columns article small { grid-column: 2; color: #d45a28; font-size: 10px; text-align: right; }

.jd-product-cost-list article { display: grid; grid-template-columns: minmax(0,1fr) 145px minmax(0,210px); align-items: center; gap: 14px; min-height: 68px; padding: 10px 17px; border-bottom: 1px solid #eee8e4; }
.jd-product-cost-list article:last-child { border-bottom: 0; }
.jd-product-name { min-width: 0; }
.jd-product-name strong,.jd-product-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jd-product-name strong { color: #3b332f; font-size: 13px; }
.jd-product-name small { margin-top: 4px; color: #9f958f; font-size: 11px; }
.jd-product-money { text-align: right; }
.jd-product-money strong,.jd-product-money small { display: block; }
.jd-product-money strong { color: #332c28; font-size: 16px; }
.jd-product-money small { color: #d45a28; font-size: 10px; }
.jd-product-money del { display: block; color: #a79d97; font-size: 10px; }
.jd-product-cost-list form { display: flex; gap: 6px; }
.jd-product-cost-list input { min-width: 0; width: 150px; height: 36px; padding: 0 10px; border: 1px solid #e4dad4; border-radius: 8px; font-size: 12px; }
.jd-product-cost-list button { height: 36px; padding: 0 13px; border: 0; border-radius: 8px; background: #ff5000; color: #fff; font-size: 12px; }

.jd-source-details { margin-top: 14px; overflow: hidden; border: 1px solid #e8e0db; border-radius: 12px; background: #fff; }
.jd-source-details summary { padding: 14px 17px; color: #655b55; font-size: 13px; font-weight: 650; cursor: pointer; }
.jd-source-details[open] summary { border-bottom: 1px solid #eee7e2; }
.jd-source-details .jd-source-grid { padding: 15px; }

@media (max-width: 1180px) {
  .jd-overview-grid,.jd-order-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .jd-expense-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .jd-expense-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .jd-expense-card-grid article:nth-child(3n) { border-right: 1px solid #f0e9e5; }
  .jd-expense-card-grid article:nth-child(2n) { border-right: 0; }
}

/* ================================================================
   2026-08 最终统一版：全宽工作区、悬浮二级导航、订单利润横向卡片
   ================================================================ */
@media (min-width: 901px) {
    body.taobao-system-theme .sidebar {
        width: 82px;
        background: var(--xy-blue-75);
        box-shadow: 7px 0 24px rgba(53, 93, 135, .06);
    }
    body.taobao-system-theme .main-panel {
        width: calc(100% - 82px);
        margin-left: 82px;
    }
    body.taobao-system-theme .content-wrap,
    body.taobao-system-theme .content-wrap:has(.batch-parse-launcher) {
        max-width: none;
        padding: 14px 16px 22px;
    }
    body.taobao-system-theme .content-wrap > * {
        width: 100%;
        max-width: none !important;
    }
    body.taobao-system-theme .nav-flyout,
    body.taobao-system-theme .nav-flyout-wide {
        position: fixed;
        top: var(--xy-nav-flyout-top, 72px);
        bottom: auto;
        left: 74px;
        z-index: 1180;
        width: 214px;
        min-width: 214px;
        max-width: 214px;
        height: auto;
        max-height: calc(100vh - var(--xy-nav-flyout-top, 72px) - 12px);
        padding: 10px;
        grid-template-columns: 1fr;
        gap: 3px;
        overflow-y: auto;
        border: 1px solid var(--xy-line);
        border-radius: 13px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 18px 48px rgba(42, 76, 112, .18);
        backdrop-filter: blur(16px);
    }
    body.taobao-system-theme .nav-flyout-wide {
        width: 410px;
        min-width: 410px;
        max-width: 410px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.taobao-system-theme .nav-flyout-title { display: none !important; }
    body.taobao-system-theme .nav-group.active:not(.nav-preview-active):not(.open) > .nav-flyout { display: none !important; }
body.taobao-system-theme .nav-group:hover > .nav-flyout,
body.taobao-system-theme .nav-group.nav-preview-active > .nav-flyout,
body.taobao-system-theme .nav-group.open > .nav-flyout { display: grid !important; }

/* 员工管理：按地点/项目分组的商品卡式目录与简历式档案 */
.employee-group-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid #dfe8f1;
    border-radius: 10px;
    background: #f5f8fb;
}
.employee-group-switch a {
    min-height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #71869a;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}
.employee-group-switch a.active { background: #fff; color: #2878c7; box-shadow: 0 2px 8px rgba(43,92,136,.1); }
.employee-directory { padding: 18px; display: grid; gap: 18px; background: #f6f9fc; }
.employee-directory-group {
    overflow: hidden;
    border: 1px solid #e2eaf2;
    border-radius: 14px;
    background: #fff;
}
.employee-directory-group > header {
    min-height: 64px;
    padding: 12px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e9eff5;
    background: #fbfdff;
}
.employee-directory-group > header div { min-width: 0; }
.employee-directory-group > header small { display: block; color: #8fa2b4; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.employee-directory-group > header h2 { margin: 3px 0 0; color: #2b435a; font-size: 15px; font-weight: 750; }
.employee-directory-group > header > strong { color: #6f8498; font-size: 12px; }
.employee-directory-grid { padding: 14px; display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 12px; }
.employee-directory-card {
    position: relative;
    min-width: 0;
    min-height: 176px;
    padding: 16px;
    display: grid;
    grid-template-columns: 72px minmax(0,1fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 14px;
    border: 1px solid #e3eaf0;
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.employee-directory-card:hover,
.employee-directory-card:focus-visible { border-color: #9fc7ee; box-shadow: 0 8px 22px rgba(46,91,132,.1); transform: translateY(-1px); outline: 0; }
.employee-directory-select { position: absolute; top: 13px; right: 13px; z-index: 2; }
.employee-directory-photo {
    grid-row: 1 / span 2;
    width: 72px;
    height: 90px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dfe7ee;
    border-radius: 10px;
    background: #eef4f9;
}
.employee-directory-photo img { width: 100%; height: 100%; object-fit: cover; }
.employee-directory-photo span { color: #7191ad; font-size: 24px; font-weight: 750; }
.employee-directory-identity { min-width: 0; padding-right: 26px; }
.employee-directory-identity small { display: block; color: #8498aa; font-size: 10px; }
.employee-directory-identity h3 { margin: 4px 0 0; overflow: hidden; color: #243d55; font-size: 17px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.employee-directory-card dl { margin: 12px 0 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.employee-directory-card dl div { min-width: 0; }
.employee-directory-card dt { color: #97a6b4; font-size: 9px; font-weight: 500; }
.employee-directory-card dd { margin: 3px 0 0; overflow: hidden; color: #4c6479; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.employee-directory-open {
    grid-column: 1 / -1;
    align-self: end;
    margin-top: 13px;
    padding-top: 10px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #edf2f6;
    color: #3e83c6;
    font-size: 11px;
    font-weight: 650;
}
.employee-directory-open i { margin-left: 6px; font-size: 15px; font-style: normal; line-height: 12px; }
.employee-profile-modal { overflow: hidden; }
.employee-profile-modal .modal-body { padding: 0; background: #f4f7fa; }
.employee-resume-hero {
    padding: 25px 28px;
    display: grid;
    grid-template-columns: 94px minmax(220px,1fr) minmax(420px,1.35fr);
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid #e3eaf0;
    background: #fff;
}
.employee-resume-photo { width: 94px; height: 118px; display: grid; place-items: center; overflow: hidden; border: 1px solid #dbe4ec; border-radius: 12px; background: #edf3f8; }
.employee-resume-photo img { width: 100%; height: 100%; object-fit: cover; }
.employee-resume-photo span { color: #6888a5; font-size: 30px; font-weight: 750; }
.employee-resume-hero > div:nth-child(2) small { color: #7890a5; font-size: 11px; font-weight: 650; letter-spacing: .04em; }
.employee-resume-hero > div:nth-child(2) h2 { margin: 6px 0; color: #213b53; font-size: 26px; font-weight: 760; }
.employee-resume-hero > div:nth-child(2) p { margin: 0; color: #698096; font-size: 13px; }
.employee-resume-hero-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.employee-resume-hero-meta span { min-width: 0; padding: 8px 15px; border-left: 1px solid #e3eaf0; }
.employee-resume-hero-meta small { display: block; color: #94a4b3; font-size: 9px; }
.employee-resume-hero-meta strong { display: block; margin-top: 4px; overflow: hidden; color: #405b72; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.employee-resume-sections,
.employee-resume-form { padding: 18px; display: grid; gap: 14px; }
.employee-resume-section,
.employee-resume-form-section,
.employee-resume-documents { overflow: hidden; border: 1px solid #e1e8ef; border-radius: 13px; background: #fff; }
.employee-resume-section > header,
.employee-resume-form-section > header,
.employee-resume-documents > header { min-height: 58px; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e7edf3; background: #fbfdff; }
.employee-resume-section > header div,
.employee-resume-form-section > header div,
.employee-resume-documents > header { min-width: 0; }
.employee-resume-section > header strong,
.employee-resume-form-section > header strong,
.employee-resume-documents > header strong { display: block; color: #314d65; font-size: 14px; }
.employee-resume-section > header small,
.employee-resume-form-section > header small,
.employee-resume-documents > header small { display: block; margin-top: 3px; color: #91a0ad; font-size: 9px; font-weight: 500; }
.employee-resume-section > header > span,
.employee-resume-form-section > header > span { color: #b5c2cd; font-size: 16px; font-weight: 750; }
.employee-resume-section dl { margin: 0; padding: 8px 16px 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.employee-resume-section dl div { min-width: 0; min-height: 61px; padding: 11px 13px; border-bottom: 1px solid #edf1f5; }
.employee-resume-section dt { color: #96a5b2; font-size: 9px; font-weight: 500; }
.employee-resume-section dd { margin: 5px 0 0; overflow: hidden; color: #3a5369; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.employee-resume-section-remark dl { grid-template-columns: 1fr; }
.employee-resume-section-remark dd { white-space: pre-wrap; }
.employee-resume-documents { margin: 0 18px 18px; }
.employee-resume-documents > header { justify-content: flex-start; gap: 12px; }
.employee-resume-documents > div { padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 9px; }
.employee-resume-documents a { padding: 8px 12px; border: 1px solid #d8e4ee; border-radius: 8px; color: #377ab7; font-size: 11px; font-weight: 650; text-decoration: none; }
.employee-resume-field-grid { padding: 16px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px 16px; }
.employee-resume-field-grid .form-field { min-width: 0; display: grid; align-content: start; gap: 6px; grid-column: auto; }
.employee-resume-field-grid .form-field > label { color: #5f7283; font-size: 11px; font-weight: 650; }
.employee-resume-field-grid .form-field > label em { color: #e45d45; font-style: normal; }
.employee-resume-field-grid .form-control,
.employee-resume-field-grid .form-select { min-width: 0; min-height: 41px; font-size: 12px; }
.employee-resume-field-grid textarea.form-control { min-height: 86px; resize: vertical; }
.employee-resume-form-section-remark .employee-resume-field-grid .form-field { grid-column: 1 / -1; }
.employee-resume-upload-note { min-height: 41px; padding: 10px 13px; display: flex; align-items: center; border: 1px dashed #dbe4ec; border-radius: 8px; color: #8a9ba9; font-size: 10px; }
@media (max-width: 1080px) {
    .employee-resume-hero { grid-template-columns: 82px 1fr; }
    .employee-resume-hero-meta { grid-column: 1 / -1; }
    .employee-resume-field-grid,
    .employee-resume-section dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
    .employee-directory-grid { grid-template-columns: 1fr; }
    .employee-resume-hero { grid-template-columns: 68px 1fr; padding: 18px; }
    .employee-resume-photo { width: 68px; height: 86px; }
    .employee-resume-hero-meta,
    .employee-resume-field-grid,
    .employee-resume-section dl { grid-template-columns: 1fr; }
}
    body.taobao-system-theme .nav-subitem { min-height: 38px; font-size: 13px; }
}

body.taobao-system-theme .modal-xl {
    --bs-modal-width: min(1540px, calc(100vw - 72px));
}
body.taobao-system-theme .modal-content {
    border-color: var(--xy-line);
    background: #f8fbff;
    box-shadow: 0 24px 70px rgba(42, 76, 112, .2);
}

.analysis-detail-scroll:has(.order-profit-board) {
    max-height: none;
    overflow: auto;
    padding: 0;
}
.order-profit-board {
    min-width: 1460px;
    padding: 0 10px 10px;
    color: #27394c;
    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}
.order-profit-columns,
.order-profit-entry-body,
.order-profit-total,
.order-main-common {
    display: grid;
    grid-template-columns: minmax(380px, 2.15fr) minmax(180px, 1fr) minmax(190px, 1.02fr) minmax(205px, 1.1fr) minmax(160px, .86fr) minmax(210px, 1.12fr);
}
.order-profit-columns {
    position: sticky;
    top: 0;
    z-index: 8;
    min-height: 42px;
    align-items: center;
    border: 1px solid #dce8f4;
    border-radius: 9px 9px 0 0;
    background: #f4f8fd;
    color: #526a82;
    font-size: 13px;
    font-weight: 700;
}
.order-profit-columns > span,
.order-profit-total > * { padding: 0 16px; }
.order-profit-columns > span:not(:last-child),
.order-profit-entry-body > section:not(:last-child),
.order-main-common > section:not(:last-child) { border-right: 1px solid #e3ecf5; }
.order-profit-list { display: grid; gap: 10px; padding-top: 10px; }
.order-main-group {
    overflow: hidden;
    border: 1px solid #cddfee;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(60, 100, 142, .055);
}
.order-main-group-head {
    min-height: 54px;
    padding: 7px 14px;
    display: grid;
    grid-template-columns: 28px minmax(280px, 1.25fr) minmax(190px, .82fr) minmax(270px, 1.12fr) minmax(280px, 1.15fr);
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #d9e6f2;
    background: linear-gradient(90deg, #edf6ff 0, #f6faff 58%, #fbfdff 100%);
}
.order-main-group-head > div { min-width: 0; display: grid; gap: 3px; }
.order-main-group-head > div > span,
.order-main-common span {
    color: #7a8da1;
    font-size: 10px;
    line-height: 1.2;
}
.order-main-group-head > div > strong {
    overflow: hidden;
    color: #344b62;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.order-main-identity { grid-template-columns: auto minmax(0, 1fr) auto !important; align-items: center; column-gap: 8px !important; }
.order-main-identity > span {
    padding: 3px 7px;
    border-radius: 999px;
    color: #2d74b9 !important;
    background: #dfeeff;
    font-weight: 700;
}
.order-main-identity > strong { color: #256caf !important; font-size: 14px !important; }
.order-main-identity > b {
    padding: 3px 7px;
    border: 1px solid #cfdfef;
    border-radius: 999px;
    color: #60778e;
    background: rgba(255,255,255,.78);
    font-size: 10px;
    white-space: nowrap;
}
.order-main-recipient small {
    overflow: hidden;
    color: #8293a5;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.order-main-common {
    min-height: 62px;
    border-bottom: 1px solid #e1ebf4;
    background: #fbfdff;
}
.order-main-common > section {
    min-width: 0;
    padding: 10px 16px;
    display: grid;
    align-content: center;
    gap: 4px;
}
.order-main-common strong { color: #2e4459; font-size: 14px; font-weight: 700; }
.order-main-common small { color: #788b9e; font-size: 10px; line-height: 1.3; }
.order-suborder-list { display: grid; gap: 7px; padding: 9px; background: #f7faff; }
.order-profit-entry {
    overflow: hidden;
    border: 1px solid #dce8f4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(60, 100, 142, .025);
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.order-profit-entry:hover {
    border-color: #9dc7ef;
    box-shadow: 0 8px 22px rgba(57, 127, 200, .1);
    transform: translateY(-1px);
}
.order-profit-entry-head {
    min-height: 40px;
    padding: 0 12px;
    display: grid;
    grid-template-columns: 26px 24px minmax(240px, 1.15fr) 220px 220px 220px minmax(270px, 1.1fr);
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e2ebf4;
    background: #f7faff;
    color: #6a7d91;
    font-size: 12px;
    white-space: nowrap;
}
.order-suborder-head {
    min-height: 35px;
    padding: 4px 12px;
    display: grid;
    grid-template-columns: 26px 24px minmax(270px, 1fr) minmax(220px, .8fr) minmax(310px, 1.1fr);
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e5edf5;
    color: #71859a;
    background: #fff;
    font-size: 11px;
    white-space: nowrap;
}
.order-profit-index {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: #66809a;
    background: #eaf3fc;
    font-size: 11px;
    font-weight: 700;
}
.order-profit-check { display: grid; place-items: center; margin: 0; }
.order-profit-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--xy-blue-600); }
.order-profit-order-no b { color: #2873bd; font-size: 13px; font-weight: 600; }
.order-profit-statuses {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    justify-self: stretch;
}
.order-profit-statuses b {
    min-height: 25px;
    padding: 4px 8px;
    overflow: hidden;
    border: 1px solid #dce8f1;
    border-radius: 999px;
    color: #66788a;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.order-profit-statuses b.real,
.order-profit-statuses b.ok { color: #1f7b61; border-color: #cce8de; background: #eff9f5; }
.order-profit-statuses b.internal,
.order-profit-statuses b.pending { color: #d46a37; border-color: #f1d7c8; background: #fff7f1; }
.order-profit-entry-body { min-height: 118px; }
.order-profit-entry-body > section {
    min-width: 0;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}
.order-profit-product { flex-direction: row !important; align-items: flex-start; justify-content: flex-start !important; }
.order-profit-product > div:last-child { min-width: 0; display: grid; gap: 4px; }
.order-profit-product strong {
    overflow: hidden;
    color: #26384b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.order-profit-product small,
.order-profit-receiver small,
.order-profit-metric small {
    color: #75879a;
    font-size: 11px;
    line-height: 1.35;
}
.order-profit-image {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dbe7f2;
    border-radius: 7px;
    color: #8ba0b5;
    background: #f6f9fc;
    font-size: 11px;
}
.order-profit-image img { width: 100%; height: 100%; object-fit: cover; }
.order-profit-receiver strong { color: #344a60; font-size: 12px; font-weight: 650; line-height: 1.45; }
.order-profit-receiver small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.order-profit-metric { align-items: flex-start; }
.order-profit-metric > strong { color: #2b3d50; font-size: 16px; font-weight: 700; }
.order-profit-result > strong { font-size: 18px; }
.order-profit-result > small { color: #657a8f; font-size: 13px; }
.order-suborder-status {
    align-items: flex-start;
    color: #60758a;
}
.order-suborder-status strong {
    padding: 4px 9px;
    border: 1px solid #cfe2f4;
    border-radius: 999px;
    color: #3576b6;
    background: #edf6ff;
    font-size: 11px;
    font-weight: 700;
}
.order-suborder-status small { color: #778b9e; font-size: 11px; line-height: 1.35; }
.order-profit-total {
    min-height: 42px;
    margin-top: 10px;
    align-items: center;
    border-top: 1px solid #dce8f4;
    color: #536b82;
    background: #fbfdff;
    font-size: 12px;
}
.order-profit-total strong { font-size: 13px; font-weight: 700; }

@media (max-width: 900px) {
    .order-profit-board { min-width: 1220px; }
    .order-profit-entry-head { grid-template-columns: 25px 22px minmax(220px,1fr) 190px 190px 190px 250px; }
    .order-main-group-head { grid-template-columns: 28px minmax(250px,1.2fr) 180px 240px 250px; }
    .order-suborder-head { grid-template-columns: 25px 22px minmax(240px,1fr) 200px minmax(280px,1fr); }
}

/* ================================================================
   禧悦后台 2026：浅蓝千牛式统一框架
   该区位于文件末尾，统一覆盖历史页面与所有 Bootstrap 弹框。
   ================================================================ */
:root {
    --xy-blue-25: #fbfdff;
    --xy-blue-50: #f4f8fd;
    --xy-blue-75: #eef6ff;
    --xy-blue-100: #e3f0ff;
    --xy-blue-200: #cfe3f8;
    --xy-blue-300: #accff2;
    --xy-blue-500: #5799df;
    --xy-blue-600: #397fc8;
    --xy-blue-700: #2b68aa;
    --xy-ink: #26384b;
    --xy-muted: #718399;
    --xy-line: #dfe9f3;
    --xy-card: #ffffff;
    --xy-page-max: 1600px;
    --market-accent: var(--xy-blue-600);
    --market-accent-soft: var(--xy-blue-75);
    --market-line: var(--xy-line);
}

html,
body.taobao-system-theme { min-height: 100%; background: var(--xy-blue-50); }
body.taobao-system-theme {
    --canvas: var(--xy-blue-50);
    --card: var(--xy-card);
    --line: var(--xy-line);
    --ink: var(--xy-ink);
    --muted: var(--xy-muted);
    color: var(--xy-ink);
}

body.taobao-system-theme .app-shell { min-height: 100vh; display: block; }
body.taobao-system-theme .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1050;
    width: 266px;
    height: 100vh;
    padding: 0;
    display: block;
    overflow: visible;
    color: var(--xy-ink);
    border: 0;
    border-right: 1px solid var(--xy-line);
    background: linear-gradient(90deg, var(--xy-blue-75) 0 82px, var(--xy-blue-25) 82px 100%);
    box-shadow: 8px 0 28px rgba(62, 101, 144, .055);
    transform: none;
}

body.taobao-system-theme .sidebar > .brand {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 82px;
    height: 72px;
    padding: 0;
    display: grid !important;
    place-items: center;
    border: 0;
    background: transparent;
}
body.taobao-system-theme .xy-nav-symbols {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
body.taobao-system-theme .brand-logo-viewport {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(87,153,223,.2);
    border-radius: 13px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 7px 19px rgba(57,127,200,.11);
}
body.taobao-system-theme .brand-logo-viewport img { width: 58px; height: 58px; object-fit: cover; }

body.taobao-system-theme .sidebar-nav {
    position: absolute;
    top: 72px;
    bottom: 76px;
    left: 0;
    width: 82px;
    height: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    overflow-x: visible;
    overflow-y: auto;
    scrollbar-width: none;
}
body.taobao-system-theme .sidebar-nav { bottom: 145px; }
body.taobao-system-theme .sidebar-nav::-webkit-scrollbar { display: none; }
body.taobao-system-theme .nav-group { position: static; flex: 0 0 auto; margin: 0; }
body.taobao-system-theme .sidebar-settings-dock {
    position: absolute;
    left: 0;
    bottom: 76px;
    z-index: 4;
    width: 82px;
    height: 69px;
    display: block;
}
body.taobao-system-theme .sidebar-settings-dock .nav-group { position: static; width: 82px; margin: 0; }

.reconciliation-center-head {
    min-height: 64px;
    margin-bottom: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.reconciliation-center-title { min-width: 210px; display: grid; gap: 1px; }
.reconciliation-center-title > span { color: #6c87a1; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.reconciliation-center-title > strong { color: #233e58; font-size: 19px; line-height: 1.25; }
.reconciliation-center-title > small { color: #7b8fa3; font-size: 11px; }
.reconciliation-center-branches { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.reconciliation-center-branches a {
    min-height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #d9e5f0;
    border-radius: 9px;
    color: #557087;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.reconciliation-center-branches a:hover { color: #176bc0; border-color: #a9c9e8; }
.reconciliation-center-branches a.active { color: #fff; border-color: #287fcf; background: #287fcf; box-shadow: 0 5px 12px rgba(40,127,207,.18); }
.reconciliation-placeholder { padding: 28px; }
.reconciliation-placeholder h1 { margin: 5px 0 8px; color: #233e58; font-size: 26px; }
.reconciliation-placeholder p { max-width: 820px; color: #6d8295; line-height: 1.8; }
.reconciliation-placeholder .table-empty { margin-top: 22px; }

@media (max-width: 900px) {
    .reconciliation-center-head { align-items: flex-start; flex-direction: column; }
    .reconciliation-center-branches { width: 100%; }
    .reconciliation-center-branches a { flex: 1 1 140px; justify-content: center; }
}

.accounting-subject-head { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.accounting-subject-head h1 { margin: 4px 0; color: #233e58; font-size: 26px; }
.accounting-subject-head p { margin: 0; color: #6d8295; }
.accounting-subject-notice { padding: 28px; border-left: 4px solid #e2a233; }
.accounting-subject-notice strong { color: #73531c; font-size: 17px; }
.accounting-subject-notice p { margin: 6px 0 0; color: #7a6b51; }
.accounting-subject-toolbar { margin-top: 14px; padding: 12px 16px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.accounting-subject-toolbar form { min-width: 340px; display: grid; gap: 5px; }
.accounting-subject-toolbar label { color: #6b8094; font-size: 11px; font-weight: 700; }
.accounting-subject-actions { display: flex; align-items: center; gap: 12px; }
.accounting-subject-actions > span { color: #8b6d35; font-size: 12px; }
.accounting-subject-panel { margin-top: 14px; }
.accounting-subject-summary { padding: 12px 16px; display: flex; gap: 24px; border-bottom: 1px solid #e5edf4; color: #70869a; font-size: 12px; }
.accounting-subject-summary strong { margin-left: 4px; color: #27435e; }
.accounting-subject-table code { max-width: 260px; display: block; overflow: hidden; color: #526b80; text-overflow: ellipsis; white-space: nowrap; }
.table-action-button { padding: 5px 10px; border: 1px solid #cdddeb; border-radius: 7px; color: #2774b9; background: #fff; font-size: 12px; }
.management-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.management-check { display: flex; align-items: center; gap: 7px; color: #516a81; font-size: 13px; }

@media (max-width: 760px) {
    .accounting-subject-head, .accounting-subject-toolbar { align-items: stretch; flex-direction: column; }
    .accounting-subject-toolbar form { min-width: 0; }
    .management-form-grid { grid-template-columns: 1fr; }
}
body.taobao-system-theme .nav-primary {
    position: relative;
    width: 82px;
    min-width: 82px;
    min-height: 62px;
    margin: 0;
    padding: 7px 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 0;
    color: #5e748b;
    background: transparent;
    box-shadow: none;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    transition: color .18s ease, background-color .18s ease;
}
body.taobao-system-theme .nav-primary::before {
    content: "";
    position: absolute;
    inset: 4px 8px;
    z-index: -1;
    border-radius: 11px;
    background: transparent;
}
body.taobao-system-theme .nav-primary .nav-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    color: #7890a8;
}
body.taobao-system-theme .nav-primary .nav-icon svg {
    width: 25px;
    height: 25px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
body.taobao-system-theme .nav-primary > span:last-child { font-size: 12px; font-weight: 720; line-height: 1.25; }
body.taobao-system-theme .nav-primary:hover { color: var(--xy-blue-700); transform: none; }
body.taobao-system-theme .nav-primary:hover::before { background: rgba(255,255,255,.72); }
body.taobao-system-theme .nav-group.active > .nav-primary,
body.taobao-system-theme .nav-group.nav-preview-active > .nav-primary,
body.taobao-system-theme .nav-group.open > .nav-primary {
    color: var(--xy-blue-700);
    background: transparent !important;
    box-shadow: none !important;
}
body.taobao-system-theme .nav-group.active > .nav-primary::after,
body.taobao-system-theme .nav-group.nav-preview-active > .nav-primary::after,
body.taobao-system-theme .nav-group.open > .nav-primary::after {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    bottom: 11px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--xy-blue-500);
}
body.taobao-system-theme .nav-group.active > .nav-primary::before,
body.taobao-system-theme .nav-group.nav-preview-active > .nav-primary::before,
body.taobao-system-theme .nav-group.open > .nav-primary::before { background: #dbeaff; }
body.taobao-system-theme .nav-group.active > .nav-primary .nav-icon,
body.taobao-system-theme .nav-group.nav-preview-active > .nav-primary .nav-icon,
body.taobao-system-theme .nav-group.open > .nav-primary .nav-icon { color: var(--xy-blue-600); }

body.taobao-system-theme .nav-flyout,
body.taobao-system-theme .nav-flyout-wide {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 82px;
    z-index: 2;
    width: 184px;
    min-width: 184px;
    max-width: 184px;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 78px 12px 18px;
    display: none;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border: 0;
    border-right: 1px solid var(--xy-line);
    border-radius: 0;
    color: var(--xy-ink);
    background: rgba(251,253,255,.98);
    box-shadow: none;
    transform: none;
}
body.taobao-system-theme .nav-group:hover > .nav-flyout { display: none; }
body.taobao-system-theme .nav-group.active > .nav-flyout,
body.taobao-system-theme .nav-group.nav-preview-active > .nav-flyout,
body.taobao-system-theme .nav-group.open > .nav-flyout { display: grid !important; }
body.taobao-system-theme .sidebar:has(.nav-preview-active) .nav-group.active:not(.nav-preview-active) > .nav-flyout { display: none !important; }
body.taobao-system-theme .sidebar:has(.nav-preview-active) .nav-group.active:not(.nav-preview-active) > .nav-primary {
    color: #5e748b;
}
body.taobao-system-theme .sidebar:has(.nav-preview-active) .nav-group.active:not(.nav-preview-active) > .nav-primary::before { background: transparent; }
body.taobao-system-theme .sidebar:has(.nav-preview-active) .nav-group.active:not(.nav-preview-active) > .nav-primary::after { display: none; }
body.taobao-system-theme .sidebar:has(.nav-preview-active) .nav-group.active:not(.nav-preview-active) > .nav-primary .nav-icon { color: #7890a8; }
body.taobao-system-theme .nav-flyout-title {
    position: absolute;
    top: 27px;
    left: 18px;
    display: block;
    color: #2a4057;
    font-size: 17px;
    font-weight: 760;
    letter-spacing: .02em;
}
body.taobao-system-theme .nav-subitem {
    min-height: 39px;
    margin: 0;
    padding: 0 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 0;
    border-radius: 9px;
    color: #60758b;
    background: transparent;
    font-size: 13px;
    font-weight: 520;
    white-space: nowrap;
    transition: background-color .16s ease, color .16s ease;
}
body.taobao-system-theme .nav-subitem i { color: #a9b8c7; font-size: 16px; font-style: normal; }
body.taobao-system-theme .nav-subitem:hover { color: var(--xy-blue-700); background: var(--xy-blue-75); transform: none; }
body.taobao-system-theme .nav-subitem.active {
    color: #246bb7;
    background: #e5f1ff;
    box-shadow: inset 2px 0 0 var(--xy-blue-500);
    font-weight: 700;
}

body.taobao-system-theme .jushuitan-detail-panel { overflow: hidden; }
body.taobao-system-theme .jushuitan-detail-toolbar {
    min-height: 56px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--xy-line);
    background: #fbfdff;
}
body.taobao-system-theme .jushuitan-detail-title { min-width: 190px; display: grid; gap: 1px; }
body.taobao-system-theme .jushuitan-detail-toolbar strong { color: #2a4660; font-size: 14px; }
body.taobao-system-theme .jushuitan-detail-toolbar span { color: #8a9baa; font-size: 10px; }
body.taobao-system-theme .jushuitan-detail-actions { min-width: 0; margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
body.taobao-system-theme .jushuitan-detail-toolbar form { display: flex; align-items: center; gap: 7px; }
body.taobao-system-theme .jushuitan-detail-toolbar .form-control { width: 240px; min-height: 34px; }
body.taobao-system-theme .platform-detail-query .form-select,
body.taobao-system-theme .internal-purchase-import-only .jushuitan-detail-actions .form-select { width: 150px; min-height: 34px; }
body.taobao-system-theme .platform-detail-query .form-select:nth-child(2) { width: 190px; }
body.taobao-system-theme .platform-detail-scroll,
body.taobao-system-theme .internal-purchase-raw-scroll { height: calc(100vh - 165px); max-height: calc(100vh - 165px); min-height: 360px; }
body.taobao-system-theme .platform-detail-table { min-width: 1520px; }
body.taobao-system-theme .internal-purchase-raw-table { min-width: 1450px; }
body.taobao-system-theme .platform-import-file-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.taobao-system-theme .platform-import-pending { margin: 0 14px 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #f2d7a3; border-radius: 8px; background: #fffaf0; color: #7c6740; }
body.taobao-system-theme .platform-import-pending strong { color: #b87516; font-size: 10px; letter-spacing: .06em; }
body.taobao-system-theme .platform-import-pending span { font-size: 10px; }
body.taobao-system-theme .internal-purchase-template-link { display: inline-flex; margin-top: 12px; }
body.taobao-system-theme .jushuitan-detail-toolbar :is(.btn-primary-custom,.btn-light-custom) { min-height: 34px; padding: 6px 12px; white-space: nowrap; }
body.taobao-system-theme .jushuitan-detail-scroll { height: calc(100vh - 165px); max-height: calc(100vh - 165px); min-height: 360px; overflow: auto; }
body.taobao-system-theme .jushuitan-detail-table { min-width: 1900px; table-layout: auto; }
body.taobao-system-theme .jushuitan-detail-table th { position: sticky; top: 0; z-index: 2; white-space: nowrap; }
body.taobao-system-theme .jushuitan-detail-table td { max-width: 260px; vertical-align: top; white-space: nowrap; }
body.taobao-system-theme .jushuitan-detail-table td > small { display: block; margin-top: 2px; color: #8a9baa; font-size: 9px; }
body.taobao-system-theme .jushuitan-freight-detail-table { min-width: 1560px; }
body.taobao-system-theme .jushuitan-record-link { padding: 0; border: 0; color: #2f7dc2; background: transparent; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
body.taobao-system-theme .jushuitan-writeoff-status { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 10px; white-space: nowrap; }
body.taobao-system-theme .jushuitan-writeoff-status.matched { color: #16805b; background: #e7f7f0; }
body.taobao-system-theme .jushuitan-writeoff-status.missing { color: #d84f3f; background: #fff0ed; }
body.taobao-system-theme .jushuitan-writeoff-status.ignored { color: #65788a; background: #eef2f6; }
body.taobao-system-theme .jushuitan-freight-actions { display: flex; align-items: center; gap: 6px; }
body.taobao-system-theme .jushuitan-freight-actions form { margin: 0; }
body.taobao-system-theme .jushuitan-freight-actions .btn-light-custom { min-height: 30px; padding: 4px 9px; font-size: 10px; }
body.taobao-system-theme .freight-resolve-body { display: grid; gap: 14px; }
body.taobao-system-theme .freight-resolve-body > p:first-child { display: grid; gap: 3px; margin: 0; padding: 12px; border-radius: 10px; background: #f5f8fb; }
body.taobao-system-theme .freight-resolve-body label { display: grid; gap: 6px; color: #445d74; font-size: 12px; }
body.taobao-system-theme .freight-resolve-body .form-hint { margin: 0; color: #8496a7; font-size: 11px; line-height: 1.6; }
body.taobao-system-theme .freight-ignore-button { color: #d45243; border-color: #efc7c1; }
body.taobao-system-theme .data-center-raw-row { cursor: pointer; }
body.taobao-system-theme .data-center-raw-row:hover td { background: #f0f7ff; }
body.taobao-system-theme .data-center-raw-row:focus-visible { outline: 2px solid var(--xy-blue-500); outline-offset: -2px; }
body.taobao-system-theme .data-center-raw-modal { overflow: hidden; }
body.taobao-system-theme .data-center-raw-fields { padding: 0; }
body.taobao-system-theme .data-center-raw-field {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    border-bottom: 1px solid var(--xy-line);
}
body.taobao-system-theme .data-center-raw-field:last-child { border-bottom: 0; }
body.taobao-system-theme .data-center-raw-field-name {
    padding: 12px 16px;
    color: #49647e;
    background: #f6f9fc;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
body.taobao-system-theme .data-center-raw-field-value {
    min-width: 0;
    margin: 0;
    padding: 12px 16px;
    color: #263f57;
    background: #fff;
    font: 12px/1.65 inherit;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}
body.taobao-system-theme .jushuitan-log-limit { margin: 12px 0 0; color: #8798a8; font-size: 10px; text-align: right; }
body.taobao-system-theme .jushuitan-import-modal-body { display: grid; gap: 10px; }
body.taobao-system-theme .jushuitan-modal-file { display: grid; gap: 8px; }
body.taobao-system-theme .jushuitan-modal-file > span { color: #405c76; font-size: 12px; font-weight: 750; }
body.taobao-system-theme .jushuitan-modal-file > small { color: #8295a7; font-size: 10px; line-height: 1.6; }
body.taobao-system-theme .jushuitan-modal-file > em { color: var(--xy-blue-700); font-size: 10px; font-style: normal; }

@media (max-width: 900px) {
    body.taobao-system-theme .jushuitan-detail-toolbar { align-items: stretch; flex-direction: column; }
    body.taobao-system-theme .jushuitan-detail-actions { width: 100%; margin-left: 0; flex-wrap: wrap; justify-content: flex-start; }
    body.taobao-system-theme .jushuitan-detail-toolbar form { width: 100%; flex-wrap: wrap; }
    body.taobao-system-theme .jushuitan-detail-toolbar .form-control { width: auto; flex: 1 1 220px; }
    body.taobao-system-theme .jushuitan-detail-scroll { height: auto; max-height: none; }
    body.taobao-system-theme .data-center-raw-field { grid-template-columns: 1fr; }
    body.taobao-system-theme .data-center-raw-field-name { padding-bottom: 6px; }
    body.taobao-system-theme .data-center-raw-field-value { padding-top: 6px; }
}

body.taobao-system-theme .sidebar-account {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 4;
    width: 82px;
    height: 76px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: var(--xy-blue-75);
}
body.taobao-system-theme .sidebar-account form { width: auto; }
body.taobao-system-theme .sidebar-system-status,
body.taobao-system-theme .sidebar-account .user-meta,
body.taobao-system-theme .sidebar-logout { display: none; }
body.taobao-system-theme .sidebar-user-card {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--xy-blue-200);
    border-radius: 13px;
    background: rgba(255,255,255,.8);
    box-shadow: none;
}
body.taobao-system-theme .sidebar-user-card .avatar {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, #77b6ee, #4b8ed4);
    font-size: 12px;
}

body.taobao-system-theme .main-panel {
    width: auto;
    min-height: 100vh;
    margin-left: 266px;
    padding: 0;
    background: var(--xy-blue-50);
}
body.taobao-system-theme .content-wrap,
body.taobao-system-theme .content-wrap:has(.batch-parse-launcher) {
    width: 100%;
    max-width: var(--xy-page-max);
    margin: 0 auto;
    padding: 18px 18px 24px;
}
body.taobao-system-theme .content-wrap > * {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}
body.taobao-system-theme .sidebar-floating-toggle { display: none; }
body.taobao-system-theme .floating-table-head { display: none !important; }

/* 页面卡片、搜索、操作栏与数据表统一 */
body.taobao-system-theme :is(.data-panel,.toolbar-card,.search-card,.filter-card,.catalog-toolbar,.asset-overview,.jd-overview-board,.jd-analysis-filter,.jd-analysis-table-panel,.task-panel,.task-toolbar,.launch-page-head,.launch-submit-card) {
    border-color: var(--xy-line);
    background: rgba(255,255,255,.97);
    box-shadow: 0 8px 25px rgba(53,93,135,.045);
}
body.taobao-system-theme .unified-page-header { gap: 10px; }
body.taobao-system-theme .unified-search-row,
body.taobao-system-theme .unified-condition-row {
    border-color: var(--xy-line);
    background: rgba(255,255,255,.98);
    box-shadow: 0 7px 22px rgba(53,93,135,.045);
    backdrop-filter: blur(12px);
}
body.taobao-system-theme .unified-condition-row { background: #f9fbfe; }
body.taobao-system-theme .analysis-filter-card {
    position: relative;
    z-index: 120;
    overflow: visible !important;
}
body.taobao-system-theme .analysis-store-picker-panel {
    z-index: 130;
    width: min(420px, calc(100vw - 320px));
    max-height: 360px;
    border-color: var(--xy-blue-200);
    box-shadow: 0 20px 52px rgba(49,85,124,.18);
}
body.taobao-system-theme .analysis-store-picker-options { max-height: 285px; }
body.taobao-system-theme .analysis-store-picker-trigger[aria-expanded="true"] {
    border-color: var(--xy-blue-500);
    box-shadow: 0 0 0 3px rgba(87,153,223,.12);
}
body.taobao-system-theme .analysis-store-picker-panel > header button { color: var(--xy-blue-700); }
body.taobao-system-theme .analysis-store-picker-options input { accent-color: var(--xy-blue-600); }
body.taobao-system-theme .analysis-store-picker-options label:hover { background: var(--xy-blue-75); }
body.taobao-system-theme .analysis-level-tabs { position: relative; z-index: 2; }
body.taobao-system-theme .analysis-filter-form > button[type="submit"] {
    border-color: var(--xy-blue-600);
    color: #fff;
    background: var(--xy-blue-600);
    box-shadow: none;
}
body.taobao-system-theme .analysis-filter-form > button[type="submit"]:hover { background: var(--xy-blue-700); }
body.taobao-system-theme .jd-filter-row .jd-condition-search {
    min-width: 72px;
    min-height: 36px;
    margin-left: 2px;
    border: 1px solid var(--xy-blue-600);
    border-radius: 8px;
    color: #fff;
    background: var(--xy-blue-600);
    font-size: 12px;
    font-weight: 700;
}
body.taobao-system-theme .jd-filter-row .jd-condition-search:hover { background: var(--xy-blue-700); }
body.taobao-system-theme .unified-condition-row > .market-search-submit {
    flex: 0 0 auto;
    min-width: 76px;
    min-height: 36px;
    position: static;
    transform: none;
    border-radius: 8px;
}

/* 抖音订单分析：统一浅蓝后台视觉 */
body.taobao-system-theme .analysis-detail-card {
    border-color: var(--xy-line);
    background: rgba(255,255,255,.98);
    box-shadow: 0 8px 25px rgba(53,93,135,.045);
}
body.taobao-system-theme .analysis-order-audit {
    border-color: var(--xy-line);
    background: #f5f9fd;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
body.taobao-system-theme .analysis-order-audit-row + .analysis-order-audit-row { border-top-color: #dce8f4; }
body.taobao-system-theme :is(.analysis-audit-kind,.analysis-audit-total,.analysis-audit-progress,.analysis-order-state-list > a) {
    border-color: #e2ebf4;
    background: #fff;
}
body.taobao-system-theme .analysis-audit-kind.real { border-left-color: var(--xy-blue-600); }
body.taobao-system-theme .analysis-audit-kind.internal {
    border-left-color: #74aee8;
    background: #f6faff;
}
body.taobao-system-theme .analysis-order-audit :is(.analysis-audit-kind,.analysis-audit-total,.analysis-audit-progress,.analysis-order-state-list > a):hover {
    border-color: var(--xy-blue-300);
    background: var(--xy-blue-75);
}
body.taobao-system-theme .analysis-order-audit :is(.analysis-audit-kind,.analysis-audit-total,.analysis-audit-progress,.analysis-order-state-list > a).active {
    border-color: var(--xy-blue-500);
    background: #eaf4ff;
    box-shadow: inset 0 0 0 1px rgba(57,127,200,.08);
}
body.taobao-system-theme .analysis-audit-progress b { color: var(--xy-blue-700); }
body.taobao-system-theme .analysis-audit-progress i { background: #e1ebf5; }
body.taobao-system-theme .analysis-audit-progress i em {
    background: linear-gradient(90deg, #7db7ee, var(--xy-blue-600));
}
body.taobao-system-theme .analysis-order-link,
body.taobao-system-theme .analysis-product-link small { color: var(--xy-blue-700) !important; }
body.taobao-system-theme .analysis-order-link:hover,
body.taobao-system-theme .analysis-product-link:hover strong { color: var(--xy-blue-600) !important; }

/* 订单分析疏朗版：状态汇总增大、17 个原始字段归并为 10 个业务信息组。 */
body.taobao-system-theme .analysis-order-audit {
    margin-bottom: 14px;
    padding: 12px;
    gap: 10px;
    border-radius: 14px;
}
body.taobao-system-theme .analysis-order-audit-row {
    grid-template-columns: 155px 155px 190px 190px minmax(610px, 1fr);
    gap: 10px;
}
body.taobao-system-theme .analysis-order-audit-row.internal-row {
    grid-template-columns: 100px 155px 190px 190px minmax(610px, 1fr);
}
body.taobao-system-theme .analysis-order-audit-row.analysis-after-sale-audit-row {
    grid-template-columns: 155px minmax(900px, 1fr);
}
body.taobao-system-theme .analysis-order-audit-row + .analysis-order-audit-row { padding-top: 10px; }
body.taobao-system-theme .analysis-internal-audit-details { border-top-color: #dce8f4; }
body.taobao-system-theme .analysis-internal-audit-details > summary { border: 1px solid #e2ebf4; background: #fff; }
body.taobao-system-theme .analysis-internal-audit-details > summary:hover { border-color: var(--xy-blue-300); background: var(--xy-blue-75); }
body.taobao-system-theme :is(.analysis-audit-kind,.analysis-audit-total,.analysis-audit-progress) {
    min-height: 72px;
    padding: 10px 12px;
    border-radius: 10px;
}
body.taobao-system-theme :is(.analysis-audit-kind,.analysis-audit-total) span,
body.taobao-system-theme .analysis-audit-progress { font-size: 11px; }
body.taobao-system-theme :is(.analysis-audit-kind,.analysis-audit-total) strong {
    margin-top: 5px;
    font-size: 16px;
}
body.taobao-system-theme .analysis-audit-total small { margin-top: 4px; font-size: 10px; }
body.taobao-system-theme .analysis-audit-progress strong { font-size: 14px; }
body.taobao-system-theme .analysis-audit-progress b { font-size: 12px; }
body.taobao-system-theme .analysis-audit-progress i { height: 5px; }
body.taobao-system-theme .analysis-order-state-list { gap: 8px; }
body.taobao-system-theme .analysis-order-state-list > a {
    min-height: 72px;
    padding: 9px 11px;
    border-radius: 10px;
}
body.taobao-system-theme .analysis-order-state-list span { font-size: 11px; }
body.taobao-system-theme .analysis-order-state-list strong { font-size: 13px; }
body.taobao-system-theme .analysis-order-state-list em { font-size: 11px; }
body.taobao-system-theme .analysis-order-state-list b { font-size: 10px; }

.analysis-order-grouped-table {
    width: 100%;
    min-width: 1660px;
    table-layout: fixed !important;
}
.analysis-order-grouped-table :is(th,td) { min-width: 0 !important; }
.analysis-order-grouped-table :is(th,td):nth-child(1) { width: 62px; }
.analysis-order-grouped-table :is(th,td):nth-child(2) { width: 225px; }
.analysis-order-grouped-table :is(th,td):nth-child(3) { width: 210px; }
.analysis-order-grouped-table :is(th,td):nth-child(4) { width: 145px; }
.analysis-order-grouped-table :is(th,td):nth-child(5) { width: 155px; }
.analysis-order-grouped-table :is(th,td):nth-child(6) { width: 205px; }
.analysis-order-grouped-table :is(th,td):nth-child(7) { width: 220px; }
.analysis-order-grouped-table :is(th,td):nth-child(8) { width: 285px; }
.analysis-order-grouped-table :is(th,td):nth-child(9) { width: 170px; }
.analysis-order-grouped-table :is(th,td):nth-child(10) { width: 220px; }
.content-wrap:has(.analysis-filter-card) .analysis-order-grouped-table tbody td {
    height: 78px;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}
.analysis-order-grouped-table .analysis-order-cell-stacked {
    display: grid;
    align-content: center;
    align-items: initial;
    gap: 5px;
    white-space: normal;
}
.content-wrap:has(.analysis-filter-card) .analysis-order-grouped-table .analysis-order-main {
    height: auto;
    min-height: 24px;
    line-height: 24px;
}
.content-wrap:has(.analysis-filter-card) .analysis-order-grouped-table .analysis-order-main small {
    display: inline;
    margin: 0 0 0 7px;
    color: #899caf;
    font-size: 11px !important;
}
.content-wrap:has(.analysis-filter-card) .analysis-order-grouped-table .analysis-order-sub {
    line-height: 18px;
}
.analysis-order-grouped-table .analysis-order-sub::before,
.analysis-order-grouped-table .analysis-order-sub::after { content: none; }
.analysis-order-grouped-table .analysis-order-money {
    color: #263d55;
    font-size: 16px !important;
    font-weight: 650 !important;
    font-variant-numeric: tabular-nums;
}
.analysis-order-grouped-table .analysis-order-badges {
    min-height: 26px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.analysis-order-grouped-table .analysis-order-badges :is(.analysis-order-type,.analysis-status) {
    min-width: 0;
    min-height: 24px;
    height: 24px;
    padding-inline: 8px;
    font-size: 11px !important;
}
.analysis-order-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    color: #7f93a7;
    font-size: 11px;
    line-height: 18px;
}
.analysis-order-breakdown span { white-space: nowrap; }
.analysis-order-grouped-table tfoot td { height: 54px; }
.analysis-order-grouped-table tfoot td small {
    display: block;
    margin: 3px 0 0;
    overflow: hidden;
    color: #8798a9;
    text-overflow: ellipsis;
}
.analysis-order-grouped-table tfoot td small::before,
.analysis-order-grouped-table tfoot td small::after { content: none; }

@media (max-width: 1500px) {
    body.taobao-system-theme .analysis-order-audit { overflow-x: auto; }
    body.taobao-system-theme .analysis-order-audit-row { min-width: 1350px; }
    body.taobao-system-theme .analysis-order-audit-row.internal-row { min-width: 1285px; }
}

/* 订单利润：三列费用依据与原始数据弹层 */
.analysis-cost-basis-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; align-items: stretch; }
.analysis-cost-basis-column { overflow: hidden; border: 1px solid var(--xy-line); border-radius: 13px; background: #fff; }
.analysis-cost-basis-column > header { min-height: 64px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--xy-line); background: #f5f9fd; }
.analysis-cost-basis-column > header span { display: block; color: #627990; font-size: 11px; }
.analysis-cost-basis-column > header strong { display: block; margin-top: 3px; color: #263d55; font-size: 16px; }
.analysis-cost-basis-column > header > strong { margin: 0; color: var(--xy-blue-700); font-size: 20px; }
.analysis-cost-basis-list { padding: 0 12px; }
.analysis-cost-basis-row { min-height: 58px; padding: 9px 3px 9px 14px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 12px; border-bottom: 1px solid #e9f0f7; cursor: pointer; position: relative; }
.analysis-cost-basis-row:last-child { border-bottom: 0; }
.analysis-cost-basis-row::before { content: ""; position: absolute; left: 0; width: 4px; height: 4px; border-radius: 50%; background: #a8bed4; }
.analysis-cost-basis-row:hover { margin-inline: -12px; padding-inline: 29px 15px; background: #f2f8ff; }
.analysis-cost-basis-row:hover::before { left: 15px; background: var(--xy-blue-600); }
.analysis-cost-basis-row span { color: #405a72; font-size: 12px; font-weight: 650; }
.analysis-cost-basis-row span small { display: block; margin-top: 3px; color: #91a1b1; font-size: 9.5px; font-weight: 400; }
.analysis-cost-basis-row strong { color: #263d55; font-size: 14px; font-variant-numeric: tabular-nums; }
.analysis-cost-basis-row > small { min-width: 58px; color: #6f89a2; font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.analysis-cost-basis-row.is-zero { opacity: .62; }
.analysis-cost-basis-row.is-warning strong { color: #d9493d; }
.analysis-basis-modal[hidden] { display: none !important; }
.analysis-basis-modal { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 24px; }
.analysis-basis-backdrop { position: absolute; inset: 0; background: rgba(24,42,61,.38); backdrop-filter: blur(3px); }
.analysis-basis-dialog { position: relative; width: min(760px,calc(100vw - 40px)); max-height: min(720px,calc(100vh - 48px)); overflow: hidden; border: 1px solid #cfdeed; border-radius: 16px; background: #fff; box-shadow: 0 28px 90px rgba(25,57,90,.24); }
.analysis-basis-dialog > header { min-height: 72px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--xy-line); background: #f5f9fd; }
.analysis-basis-dialog > header small { color: #7d91a5; font-size: 10px; }
.analysis-basis-dialog > header h3 { margin: 3px 0 0; color: #253d55; font-size: 18px; }
.analysis-basis-dialog > header button { width: 34px; height: 34px; border: 0; border-radius: 9px; color: #698198; background: #e8f1fa; font-size: 22px; line-height: 1; }
.analysis-basis-dialog-body { max-height: calc(min(720px,100vh - 48px) - 72px); padding: 16px; overflow: auto; background: #f8fbfe; }
.analysis-basis-calculation { padding: 13px 14px; border: 1px solid #d8e6f4; border-radius: 11px; background: #fff; }
.analysis-basis-calculation span { display: block; color: #8195a8; font-size: 10px; }
.analysis-basis-calculation strong { display: block; margin-top: 5px; color: #2a455f; font-size: 14px; line-height: 1.6; }
.analysis-basis-source { margin-top: 10px; overflow: hidden; border: 1px solid #dce8f3; border-radius: 11px; background: #fff; }
.analysis-basis-source > header { padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e4edf6; color: #38546f; font-size: 12px; font-weight: 700; }
.analysis-basis-source-row { min-height: 49px; padding: 8px 13px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; border-bottom: 1px solid #edf2f7; }
.analysis-basis-source-row:last-child { border-bottom: 0; }
.analysis-basis-source-row span { color: #415a72; font-size: 11px; line-height: 1.5; }
.analysis-basis-source-row span small { display: block; color: #91a1b0; font-size: 9.5px; }
.analysis-basis-source-row strong { color: #263f58; font-size: 12px; white-space: nowrap; }
.analysis-basis-empty { padding: 22px 14px; color: #96a6b5; font-size: 11px; text-align: center; }
.analysis-order-basic-card { margin-top: 10px; overflow: hidden; border: 1px solid var(--xy-line); border-radius: 13px; background: #fff; }
.analysis-order-basic-card > header { min-height: 48px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--xy-line); background: #f5f9fd; }
.analysis-order-basic-card > header strong { color: #263d55; font-size: 14px; }
.analysis-order-basic-card > header span { color: #7f93a7; font-size: 10px; }
.analysis-order-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid #e8f0f7; }
.analysis-order-facts > div { min-height: 58px; padding: 10px 14px; border-right: 1px solid #e8f0f7; border-bottom: 1px solid #e8f0f7; }
.analysis-order-facts > div:nth-child(4n) { border-right: 0; }
.analysis-order-facts > div.is-wide { grid-column: span 2; }
.analysis-order-facts span { display: block; color: #8a9aaa; font-size: 9.5px; }
.analysis-order-facts strong { display: block; margin-top: 5px; overflow: hidden; color: #334d66; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.analysis-order-products { padding: 11px 14px 13px; }
.analysis-order-products h4 { margin: 0 0 7px; color: #566e85; font-size: 11px; }
.analysis-order-products article { min-height: 44px; padding: 7px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; border-top: 1px solid #edf2f7; }
.analysis-order-products article > span { color: #425c74; font-size: 11px; }
.analysis-order-products article b { color: var(--xy-blue-700); font-weight: 700; }
.analysis-order-products article small { display: block; margin-top: 3px; color: #8a9aaa; font-size: 9.5px; }
.analysis-order-products article > strong { color: #29445e; font-size: 12px; white-space: nowrap; }
@media (max-width: 1250px) { .analysis-cost-basis-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 900px) { .analysis-cost-basis-grid { grid-template-columns: 1fr; } .analysis-order-facts { grid-template-columns: repeat(2,minmax(0,1fr)); } .analysis-order-facts > div:nth-child(odd) { border-right: 1px solid #e8f0f7; } .analysis-order-facts > div:nth-child(even) { border-right: 0; } }
body.taobao-system-theme :is(.search-control,.catalog-search,.market-search-input,.jd-analysis-search,.internal-purchase-search-box) {
    border-color: var(--xy-blue-300) !important;
    background: #fff !important;
    box-shadow: 0 5px 16px rgba(57,127,200,.065) !important;
}
body.taobao-system-theme :is(.market-search-submit,.jd-analysis-search button,.internal-purchase-search-box button,.btn-primary-custom,.parse-action-button,.launch-submit-button) {
    border-color: var(--xy-blue-600) !important;
    color: #fff !important;
    background: var(--xy-blue-600) !important;
    box-shadow: none !important;
}
body.taobao-system-theme :is(.market-search-submit,.jd-analysis-search button,.internal-purchase-search-box button,.btn-primary-custom,.parse-action-button,.launch-submit-button):hover { background: var(--xy-blue-700) !important; }
body.taobao-system-theme :is(.quick-filter,.btn-light-custom,.btn-text-custom,.form-control,.form-select,.compact-select,.date-filter) {
    border-color: #dbe6f1;
}
body.taobao-system-theme :is(.quick-filter,.btn-light-custom,.btn-text-custom):hover,
body.taobao-system-theme :is(.quick-filter,.jd-filter-row a,.analysis-level-tabs a).active {
    border-color: var(--xy-blue-300) !important;
    color: var(--xy-blue-700) !important;
    background: var(--xy-blue-75) !important;
}
body.taobao-system-theme :is(.hr-section-tabs,.analysis-level-tabs,.jd-analysis-tabs,.management-tabs,.record-tabs) a.active {
    border-color: var(--xy-blue-300) !important;
    color: #fff !important;
    background: var(--xy-blue-600) !important;
    box-shadow: none !important;
}
body.taobao-system-theme :is(.management-table,.internal-purchase-table,.jd-analysis-table) thead th {
    color: #536a82;
    border-color: var(--xy-line);
    background: #f4f8fc;
}
body.taobao-system-theme :is(.management-table,.internal-purchase-table,.jd-analysis-table) tbody td {
    color: #344a60;
    border-color: #e8eff6;
    background: #fff;
}
body.taobao-system-theme :is(.management-table,.internal-purchase-table,.jd-analysis-table) tbody tr:hover td,
body.taobao-system-theme .jd-analysis-table tbody tr:hover { background: #f3f8ff; box-shadow: inset 3px 0 var(--xy-blue-500); }
body.taobao-system-theme .pagination-links a,
body.taobao-system-theme .pagination-links span,
body.taobao-system-theme .pagination-jump-form button,
body.taobao-system-theme .pagination-size-select,
body.taobao-system-theme .pagination-jump-form input { border-color: var(--xy-line); color: #5f748a; }
body.taobao-system-theme .pagination-links a:hover,
body.taobao-system-theme .pagination-links a.active { border-color: var(--xy-blue-600); background: var(--xy-blue-600); color: #fff; }

/* 全系统弹框：同一浅蓝视觉、固定标题与底栏、内容区独立滚动 */
body.taobao-system-theme .modal-backdrop.show { opacity: .28; }
body.taobao-system-theme .modal-dialog { --bs-modal-margin: 1.25rem; }
body.taobao-system-theme .modal-content,
body.taobao-system-theme .management-modal,
body.taobao-system-theme .jd-order-modal {
    overflow: hidden;
    border: 1px solid var(--xy-line);
    border-radius: 17px;
    color: var(--xy-ink);
    background: #fff;
    box-shadow: 0 28px 80px rgba(34,67,103,.2);
}
body.taobao-system-theme .modal-header,
body.taobao-system-theme .management-modal.is-crud-form-modal .modal-header,
body.taobao-system-theme .jd-profit-modal-header {
    min-height: 64px;
    border-bottom: 1px solid var(--xy-line);
    color: var(--xy-ink);
    background: linear-gradient(90deg, #f4f9ff 0%, #fff 72%);
}
body.taobao-system-theme .modal-title,
body.taobao-system-theme .jd-profit-modal-header h5 { color: #263d54; }
body.taobao-system-theme .modal-body,
body.taobao-system-theme .management-modal.is-crud-form-modal .modal-body,
body.taobao-system-theme .jd-profit-modal-body {
    scrollbar-color: #bcd3ea transparent;
    background: #f7faff;
}
body.taobao-system-theme .modal-body::-webkit-scrollbar-thumb,
body.taobao-system-theme .management-modal.is-crud-form-modal .modal-body::-webkit-scrollbar-thumb { background: #bcd3ea; }
body.taobao-system-theme .modal-footer,
body.taobao-system-theme .management-modal.is-crud-form-modal .modal-footer {
    border-top: 1px solid var(--xy-line);
    background: #fff;
}
body.taobao-system-theme .modal-content :is(input,select,textarea,.form-control,.form-select) {
    border-color: #d7e3ef;
    color: #31485f;
    background-color: #fff;
    box-shadow: none;
}
body.taobao-system-theme .modal-content :is(input,select,textarea,.form-control,.form-select):focus {
    border-color: var(--xy-blue-500);
    box-shadow: 0 0 0 3px rgba(87,153,223,.12);
}
body.taobao-system-theme .modal-field-label { color: #526a82; }
body.taobao-system-theme .modal-field-label em,
body.taobao-system-theme .modal-content label > em,
body.taobao-system-theme .modal-content label > .required { color: #e04b4b; }
body.taobao-system-theme :is(.jd-modal-section,.jd-order-summary-grid,.jd-source-details,.jd-source-grid section) { border-color: var(--xy-line); background: #fff; }
body.taobao-system-theme .jd-modal-section > header,
body.taobao-system-theme .jd-source-grid h6 { border-color: var(--xy-line); background: #f4f8fc; }

@media (max-width: 900px) {
    body.taobao-system-theme .sidebar {
        width: 266px;
        transform: translateX(-100%);
        transition: transform .2s ease;
    }
    body.sidebar-open.taobao-system-theme .sidebar { transform: translateX(0); }
    body.taobao-system-theme .main-panel { margin-left: 0; }
    body.taobao-system-theme .sidebar-floating-toggle {
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 1060;
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 1px solid var(--xy-blue-200);
        border-radius: 10px;
        color: var(--xy-blue-700);
        background: #fff;
        box-shadow: 0 8px 22px rgba(53,93,135,.14);
    }
    body.taobao-system-theme .content-wrap,
    body.taobao-system-theme .content-wrap:has(.batch-parse-launcher) { padding: 62px 10px 18px; }
    body.taobao-system-theme .nav-flyout,
    body.taobao-system-theme .nav-flyout-wide { position: fixed; left: 82px; top: 0; bottom: 0; margin: 0; }
}

/* Supply chain: use the same light-blue language across lists, details and reconciliation. */
body[data-supply-chain-theme="true"] {
    --supply-blue: #3f8fd8;
    --supply-blue-dark: #286eaf;
    --supply-soft: #f3f8fe;
    --supply-line: #d9e6f3;
}
body[data-supply-chain-theme="true"] :is(.data-panel,.business-panel,.recon-workbench,.management-modal) {
    border-color: var(--supply-line) !important;
    background: #fff !important;
}
body[data-supply-chain-theme="true"] :is(.data-toolbar,.business-toolbar,.quick-filter-row) {
    border-color: var(--supply-line) !important;
    background: #fff !important;
}
body[data-supply-chain-theme="true"] .quick-filter.active::after { background: var(--supply-blue) !important; }
body[data-supply-chain-theme="true"] .quick-filter.active { color: var(--supply-blue-dark) !important; }
body[data-supply-chain-theme="true"] :is(.recon-status.done,.category-badge) {
    color: #2d6c9f;
    background: #eaf4fd;
}
body[data-supply-chain-theme="true"] .recon-status.pending {
    color: #936b22;
    background: #fff7e8;
}
body[data-supply-chain-theme="true"] .detail-summary {
    border: 1px solid var(--supply-line);
    background: var(--supply-soft);
}
body[data-supply-chain-theme="true"] .document-items-editor {
    border-color: var(--supply-line);
    background: #fff;
}
body[data-supply-chain-theme="true"] .document-items-heading,
body[data-supply-chain-theme="true"] .document-items-edit-table thead th {
    border-color: var(--supply-line);
    color: #536b82;
    background: #f3f8fd;
}
body[data-supply-chain-theme="true"] .document-items-edit-table td { border-color: #e7eff7; }
body[data-supply-chain-theme="true"] .document-items-total {
    border-top: 1px solid var(--supply-line);
    color: #5f758b;
    box-shadow: none;
}
body[data-supply-chain-theme="true"] .document-items-total strong { color: var(--supply-blue-dark); }

/* Reconciliation: give the document preview priority and keep all amount columns visible. */
body[data-supply-chain-theme="true"] .recon-workbench-dialog {
    width: min(1580px,calc(100vw - 28px));
    max-width: min(1580px,calc(100vw - 28px)) !important;
    margin: 14px auto;
}
body[data-supply-chain-theme="true"] .recon-workbench {
    --recon-surface: #f5f9fd;
    border: 1px solid var(--supply-line) !important;
    box-shadow: 0 26px 78px rgba(39,79,119,.21) !important;
}
body[data-supply-chain-theme="true"] .recon-workbench .recon-workbench-header {
    min-height: 58px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--supply-line);
    background: linear-gradient(90deg,#eef6ff 0%,#fff 70%) !important;
}
body[data-supply-chain-theme="true"] .recon-workbench-header .modal-title { color: #28455f; }
body[data-supply-chain-theme="true"] .recon-workbench .modal-body { padding: 12px 14px; background: #f7faff !important; }
body[data-supply-chain-theme="true"] .recon-supplier-info > div {
    border-color: var(--supply-line);
    background: #fff;
    box-shadow: none;
}
body[data-supply-chain-theme="true"] .recon-copy-value:not(:disabled):hover,
body[data-supply-chain-theme="true"] .recon-copy-value:not(:disabled):focus-visible,
body[data-supply-chain-theme="true"] .product-code-copy:hover { color: var(--supply-blue-dark); background: #edf6ff; }
body[data-supply-chain-theme="true"] .recon-workbench-grid {
    height: 500px;
    flex-basis: 500px;
    grid-template-columns: minmax(0,1.48fr) minmax(390px,.72fr);
    gap: 12px;
}
body[data-supply-chain-theme="true"] :is(.recon-preview-pane,.recon-list-pane) {
    border-color: var(--supply-line);
    background: #fff;
}
body[data-supply-chain-theme="true"] .recon-items-wrap { overflow: auto; }
body[data-supply-chain-theme="true"] .recon-items-table {
    width: 100%;
    min-width: 820px !important;
    table-layout: fixed;
}
body[data-supply-chain-theme="true"] .recon-items-table th,
body[data-supply-chain-theme="true"] .recon-items-table tbody td {
    height: 38px;
    padding: 6px 8px;
    font-size: 11px;
}
body[data-supply-chain-theme="true"] .recon-items-table th:nth-child(1) { width: 23%; }
body[data-supply-chain-theme="true"] .recon-items-table th:nth-child(2) { width: 27%; }
body[data-supply-chain-theme="true"] .recon-items-table th:nth-child(3) { width: 11%; }
body[data-supply-chain-theme="true"] .recon-items-table th:nth-child(4) { width: 8%; }
body[data-supply-chain-theme="true"] .recon-items-table th:nth-child(5) { width: 7%; }
body[data-supply-chain-theme="true"] .recon-items-table th:nth-child(6) { width: 11%; }
body[data-supply-chain-theme="true"] .recon-items-table th:nth-child(7) { width: 13%; }
body[data-supply-chain-theme="true"] .recon-items-table tbody td:nth-child(1),
body[data-supply-chain-theme="true"] .recon-items-table tbody td:nth-child(2) {
    overflow: visible;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
    word-break: break-all;
}
body[data-supply-chain-theme="true"] .recon-items-table tbody td:nth-child(5) { text-align: center; }
body[data-supply-chain-theme="true"] .recon-items-table :is(th,td):nth-child(6),
body[data-supply-chain-theme="true"] .recon-items-table :is(th,td):nth-child(7) {
    text-align: right;
    white-space: nowrap;
}
body[data-supply-chain-theme="true"] .product-code-copy {
    overflow: visible;
    color: #2b6fa8;
    text-overflow: clip;
    white-space: normal;
    word-break: break-all;
}
body[data-supply-chain-theme="true"] .recon-total-heading { border-color: var(--supply-line); background: #f3f8fd; }
body[data-supply-chain-theme="true"] .recon-total-heading strong { color: var(--supply-blue-dark); }
body[data-supply-chain-theme="true"] .recon-order-list { background: #f4f8fc; }
body[data-supply-chain-theme="true"] .recon-order-row {
    padding: 5px 7px;
    grid-template-columns: 25px minmax(108px,1fr) 66px 92px;
    gap: 6px;
    border-color: #e3edf6;
    border-radius: 9px;
    box-shadow: none;
}
body[data-supply-chain-theme="true"] .recon-order-row:hover,
body[data-supply-chain-theme="true"] .recon-order-row.active {
    border-color: #9fc8ed;
    background: #f1f7fe;
    box-shadow: inset 3px 0 var(--supply-blue);
}
body[data-supply-chain-theme="true"] .recon-amount-input { width: 88px; }
body[data-supply-chain-theme="true"] .recon-balance-cards { border-color: var(--supply-line); background: #fff; }
body[data-supply-chain-theme="true"] .recon-balance-cards > span:nth-child(2) strong,
body[data-supply-chain-theme="true"] .recon-calculation-result { color: var(--supply-blue-dark) !important; }
body[data-supply-chain-theme="true"] .recon-workbench .recon-workbench-footer {
    border-top: 1px solid var(--supply-line);
    background: #fff !important;
}

/* System-wide data-row hover: one calm highlight and one left accent, without shifting cells. */
body.taobao-system-theme table tbody tr > td {
    transition: background-color .16s ease,color .16s ease,box-shadow .16s ease;
}
body.taobao-system-theme table tbody tr:not(:has(.table-empty)):hover > td,
body.taobao-system-theme table tbody tr:not(:has(.table-empty)):focus-within > td,
body.taobao-system-theme :is(.management-table,.internal-purchase-table,.jd-analysis-table) tbody tr:hover > td {
    color: #29465f;
    background: #eef6ff !important;
    box-shadow: none !important;
}
body.taobao-system-theme table tbody tr:not(:has(.table-empty)):hover > td:first-child,
body.taobao-system-theme table tbody tr:not(:has(.table-empty)):focus-within > td:first-child,
body.taobao-system-theme :is(.management-table,.internal-purchase-table,.jd-analysis-table) tbody tr:hover > td:first-child {
    box-shadow: inset 3px 0 0 var(--xy-blue-500) !important;
}
body.taobao-system-theme table tbody tr[data-row-action],
body.taobao-system-theme table tbody tr.clickable-data-row { cursor: pointer; }

@media (max-width: 1180px) {
    body[data-supply-chain-theme="true"] .recon-workbench-grid {
        height: auto;
        flex-basis: auto;
        grid-template-columns: 1fr;
        overflow: auto;
    }
    body[data-supply-chain-theme="true"] .recon-preview-pane { min-height: 420px; }
    body[data-supply-chain-theme="true"] .recon-list-pane { min-height: 470px; }
}

/* Payroll ownership and salary analysis. */
.payroll-allocation-strip {
    margin: 12px 0;
    overflow: hidden;
    border: 1px solid var(--xy-line);
    border-radius: 12px;
    background: #fff;
}
.payroll-allocation-strip > header {
    min-height: 42px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--xy-line);
    background: #f4f8fc;
}
.payroll-allocation-strip > header strong { color: #2f4b65; font-size: 13px; }
.payroll-allocation-strip > header small { color: #8799aa; font-size: 10px; }
.payroll-allocation-form { padding: 11px 12px; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 10px !important; }
.payroll-allocation-form .form-field { min-height: 0 !important; }
.salary-analysis-filter { padding: 12px; }
.salary-analysis-filter form { display: grid; grid-template-columns: 135px repeat(4,minmax(170px,1fr)) minmax(220px,1.25fr) auto; gap: 9px; align-items: center; }
.salary-analysis-filter :is(.form-control,.form-select,.btn-primary-custom) { height: 40px; min-height: 40px; font-size: 12px; }
.salary-analysis-summary { margin-top: 12px; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); overflow: hidden; }
.salary-analysis-summary article { min-height: 108px; padding: 18px; border-right: 1px solid var(--xy-line); background: #fff; }
.salary-analysis-summary article:last-child { border-right: 0; }
.salary-analysis-summary span,.salary-analysis-summary small { display: block; color: #8193a5; font-size: 10px; }
.salary-analysis-summary strong { display: block; margin: 8px 0 6px; color: #2a435b; font-size: 22px; font-variant-numeric: tabular-nums; }
.salary-analysis-summary .accent { background: #f3f8fe; }
.salary-analysis-summary .accent strong { color: var(--xy-blue-700); }
.salary-analysis-groups { margin-top: 12px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.salary-analysis-groups > article { min-height: 108px; padding: 16px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: center; }
.salary-analysis-groups article > div small,.salary-analysis-groups article > div span { display: block; color: #8a9aaa; font-size: 10px; }
.salary-analysis-groups article > div strong { display: block; margin: 5px 0; color: #29445e; font-size: 15px; }
.salary-analysis-groups dl { margin: 0; display: grid; grid-template-columns: repeat(3,auto); gap: 9px 18px; }
.salary-analysis-groups dl div { text-align: right; }
.salary-analysis-groups dt { color: #8c9baa; font-size: 9px; font-weight: 500; }
.salary-analysis-groups dd { margin: 2px 0 0; color: #344e67; font-size: 13px; font-weight: 700; }
.salary-analysis-detail { margin-top: 12px; overflow: hidden; }
.salary-analysis-detail > header { min-height: 50px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--xy-line); }
.salary-analysis-detail > header strong { color: #29445e; font-size: 15px; }
.salary-analysis-detail > header span { color: #8999aa; font-size: 10px; }
.salary-composition-table { min-width: 1550px; }
.salary-composition-table tbody td { height: 68px; padding: 10px 14px !important; }
.salary-composition-table td strong,.salary-composition-table td small { display: block; }
.salary-composition-table td strong { color: #344c63; font-size: 12px; }
.salary-composition-table td small { margin-top: 4px; color: #8b9baa; font-size: 9.5px; }
.salary-composition-table .salary-net strong { color: var(--xy-blue-700); font-size: 14px; }
.salary-owner-level { min-height: 24px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 7px; color: #2c6da6; background: #eaf4fd; font-size: 10px; font-weight: 700; }
.salary-composition-table tfoot td { height: 48px; border-top: 1px solid var(--xy-line); color: #304b64; background: #f6f9fc; font-weight: 700; }
.salary-composition-main-row { cursor: pointer; }
.salary-composition-main-row[aria-expanded="true"] > td { background: #eef6ff !important; }
.salary-composition-detail-row > td {
    height: auto !important;
    padding: 0 !important;
    border-top: 0 !important;
    background: #f4f8fc !important;
}
.salary-composition-detail-row:hover > td { box-shadow: none !important; }
.salary-composition-breakdown {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    border-bottom: 1px solid var(--xy-line);
}
.salary-composition-breakdown section {
    overflow: hidden;
    border: 1px solid #dce8f3;
    border-radius: 11px;
    background: #fff;
}
.salary-composition-breakdown section > header {
    min-height: 42px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e3edf6;
    background: #f7faff;
}
.salary-composition-breakdown section > header strong { color: #294962; font-size: 12px; }
.salary-composition-breakdown section > header b { color: var(--xy-blue-700); font-size: 13px; }
.salary-composition-breakdown dl { margin: 0; padding: 7px 12px 10px; }
.salary-composition-breakdown dl div {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px dashed #e5edf5;
}
.salary-composition-breakdown dl div:last-child { border-bottom: 0; }
.salary-composition-breakdown dt { color: #72879a; font-size: 10px; font-weight: 500; }
.salary-composition-breakdown dd { margin: 0; color: #304c65; font-size: 11px; font-weight: 700; text-align: right; }
@media (max-width: 1450px) {
    .salary-analysis-filter form { grid-template-columns: repeat(4,minmax(160px,1fr)); }
    .salary-analysis-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .salary-analysis-summary article:nth-child(3) { border-right: 0; }
    .salary-analysis-summary article:nth-child(-n+3) { border-bottom: 1px solid var(--xy-line); }
    .salary-analysis-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .salary-composition-breakdown { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* 对账工作台紧凑布局：左侧明细优先，右侧单据与结算保持完整可读。 */
body[data-supply-chain-theme="true"] .recon-workbench-dialog {
    width: min(1460px, calc(100vw - 44px));
    max-width: min(1460px, calc(100vw - 44px)) !important;
    max-height: calc(100vh - 36px);
    margin: 18px auto;
}
body[data-supply-chain-theme="true"] .recon-workbench {
    max-height: calc(100vh - 36px);
    border-radius: 14px;
}
body[data-supply-chain-theme="true"] .recon-workbench .recon-workbench-header {
    min-height: 48px;
    padding: 8px 13px;
}
body[data-supply-chain-theme="true"] .recon-workbench-header .modal-title { font-size: 17px; }
body[data-supply-chain-theme="true"] .recon-workbench .modal-body { padding: 9px 10px; }
body[data-supply-chain-theme="true"] .recon-supplier-info {
    min-height: 0;
    margin-bottom: 8px;
    gap: 6px;
}
body[data-supply-chain-theme="true"] .recon-supplier-info > div {
    min-height: 45px;
    padding: 6px 8px;
    border-radius: 8px;
}
body[data-supply-chain-theme="true"] .recon-supplier-info small { margin-bottom: 2px; font-size: 9px; }
body[data-supply-chain-theme="true"] .recon-supplier-info strong,
body[data-supply-chain-theme="true"] .recon-copy-value { font-size: 11px; }
body[data-supply-chain-theme="true"] :is(.recon-preview-pane, .recon-list-pane) { border-radius: 10px; }
body[data-supply-chain-theme="true"] .recon-items-table th,
body[data-supply-chain-theme="true"] .recon-items-table tbody td {
    height: 34px;
    padding: 4px 7px;
    font-size: 10.5px;
}
body[data-supply-chain-theme="true"] .recon-total-heading {
    min-height: 38px;
    padding: 0 9px;
}
body[data-supply-chain-theme="true"] .recon-total-heading strong { font-size: 16px; }
body[data-supply-chain-theme="true"] .recon-order-list {
    min-height: 0;
    height: auto;
    max-height: none;
    padding: 6px;
    flex: 1 1 auto;
    overflow-y: auto;
}
body[data-supply-chain-theme="true"] .recon-order-row {
    min-height: 47px;
    margin-bottom: 4px;
    padding: 4px 5px;
    grid-template-columns: 24px minmax(112px, 1fr) 62px 88px;
    gap: 5px;
    border-radius: 8px;
}
body[data-supply-chain-theme="true"] .recon-order-index { width: 23px; height: 23px; }
body[data-supply-chain-theme="true"] .recon-order-identity strong { line-height: 13px; }
body[data-supply-chain-theme="true"] .recon-order-tags i,
body[data-supply-chain-theme="true"] .recon-order-tags b { line-height: 14px; }
body[data-supply-chain-theme="true"] .recon-amount-input {
    width: 84px;
    min-height: 25px;
    height: 25px;
}
body[data-supply-chain-theme="true"] .recon-settlement-panel { padding: 6px; }
body[data-supply-chain-theme="true"] .recon-balance-cards { gap: 5px; }
body[data-supply-chain-theme="true"] .recon-balance-cards span {
    min-height: 58px;
    padding: 6px 7px;
    border-radius: 8px;
}
body[data-supply-chain-theme="true"] .recon-balance-cards strong { font-size: 12px; }
body[data-supply-chain-theme="true"] .recon-balance-cards em {
    margin-top: 3px;
    font-size: 9.5px;
    line-height: 1.25;
}
body[data-supply-chain-theme="true"] .recon-bottom-info {
    min-height: 32px;
    margin: 5px 0 0;
    padding: 0;
    gap: 7px;
}
body[data-supply-chain-theme="true"] .recon-calculation-input,
body[data-supply-chain-theme="true"] .recon-calculation-result { height: 30px; }
body[data-supply-chain-theme="true"] .recon-workbench .recon-workbench-footer {
    min-height: 50px;
    padding: 7px 11px;
}
body[data-supply-chain-theme="true"] .recon-workbench-footer .btn-light-custom,
body[data-supply-chain-theme="true"] .recon-workbench-footer .btn-primary-custom {
    min-width: 82px;
    min-height: 34px;
    height: 34px;
}

@media (min-width: 1181px) {
    body[data-supply-chain-theme="true"] .recon-supplier-info {
        grid-template-columns: .85fr 1.08fr .9fr .92fr .92fr 1.18fr;
    }
    body[data-supply-chain-theme="true"] .recon-workbench-grid {
        height: 430px;
        flex-basis: 430px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }
}

body[data-supply-chain-theme="true"] .recon-items-table { min-width: 680px !important; }
body[data-supply-chain-theme="true"] .recon-items-table th:nth-child(1) { width: 24%; }
body[data-supply-chain-theme="true"] .recon-items-table th:nth-child(2) { width: 26%; }
body[data-supply-chain-theme="true"] .recon-items-table th:nth-child(3) { width: 20%; }
body[data-supply-chain-theme="true"] .recon-items-table th:nth-child(4) { width: 8%; }
body[data-supply-chain-theme="true"] .recon-items-table th:nth-child(5) { width: 10%; }
body[data-supply-chain-theme="true"] .recon-items-table th:nth-child(6) { width: 12%; }
body[data-supply-chain-theme="true"] .recon-items-table :is(th, td):nth-child(3),
body[data-supply-chain-theme="true"] .recon-items-table :is(th, td):nth-child(4) { text-align: center !important; }
body[data-supply-chain-theme="true"] .recon-items-table :is(th, td):nth-child(5),
body[data-supply-chain-theme="true"] .recon-items-table :is(th, td):nth-child(6) { text-align: right !important; }
body[data-supply-chain-theme="true"] .recon-items-table :is(th, td):nth-child(n+3) { white-space: nowrap; }
.recon-spec-pair {
    width: 100%;
    min-width: 0;
    display: block;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 供应商余额：统一数据颜色，将三项收款字段合并并突出当前余额方向。 */
body.taobao-system-theme .balance-table {
    width: 100%;
    min-width: 1180px;
    table-layout: fixed;
}
body.taobao-system-theme .balance-table :is(th, td):nth-child(1) { width: 42px; }
body.taobao-system-theme .balance-table :is(th, td):nth-child(2) { width: 172px; }
body.taobao-system-theme .balance-table :is(th, td):nth-child(3) { width: 270px; }
body.taobao-system-theme .balance-table :is(th, td):nth-child(n+4):nth-child(-n+7) { width: 128px; }
body.taobao-system-theme .balance-table :is(th, td):nth-child(8) { width: 142px; }
body.taobao-system-theme .balance-table tbody td,
body.taobao-system-theme .balance-table tbody td :is(strong, small, .mono-text, .money-cell, .table-primary-text, .supplier-code-line) {
    color: #52687e !important;
}
body.taobao-system-theme .balance-table tbody td { height: 58px; font-size: 12px; }
body.taobao-system-theme .balance-table .money-cell { font-weight: 650; }
.balance-payment-info {
    min-width: 0;
    display: flex;
    align-items: center;
}
.balance-payment-summary {
    min-width: 0;
    max-width: 100%;
    display: block;
    overflow: hidden;
    color: #52687e;
    font-size: 11.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.taobao-system-theme .balance-table .balance-current {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    font-size: 13px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}
body.taobao-system-theme .balance-table .balance-current-positive { color: #df453d !important; }
body.taobao-system-theme .balance-table .balance-current-negative { color: #16855b !important; }
body.taobao-system-theme .balance-table .balance-current-zero { color: #52687e !important; }

/* 全系统导入结果弹框：中央展示、状态清晰，长结果完整换行并可滚动查看。 */
.global-import-result-modal { z-index: 2650; }
.global-import-result-modal .modal-dialog {
    width: min(680px, calc(100vw - 32px));
    max-width: min(680px, calc(100vw - 32px));
    margin: 16px auto;
}
.global-import-result-content {
    max-height: calc(100vh - 40px);
    overflow: hidden;
    border: 1px solid #d8e7f5;
    border-radius: 18px;
    background: #fbfdff;
    box-shadow: 0 26px 80px rgba(50, 91, 132, .24);
}
.global-import-result-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 13px;
    min-height: 88px;
    padding: 18px 20px;
    border-bottom: 1px solid #e5eef7;
    background: linear-gradient(135deg, #f5faff 0%, #edf6ff 100%);
}
.global-import-result-state {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #e3f6ed;
    color: #16845d;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
}
.global-import-result-header h2 {
    margin: 0 0 4px;
    color: #203851;
    font-size: 19px;
    font-weight: 760;
    letter-spacing: .01em;
}
.global-import-result-header p {
    margin: 0;
    color: #72879b;
    font-size: 12px;
}
.global-import-result-header .btn-close { align-self: start; margin-top: 2px; }
.global-import-result-modal[data-result-status="danger"] .global-import-result-state {
    background: #ffeded;
    color: #d94545;
}
.global-import-result-modal[data-result-status="warning"] .global-import-result-state {
    background: #fff3dd;
    color: #c67a13;
}
.global-import-result-modal[data-result-status="info"] .global-import-result-state {
    background: #e7f2ff;
    color: #397fbe;
}
.global-import-result-files {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 20px;
    border-bottom: 1px solid #e8f0f7;
    background: #fff;
}
.global-import-result-files[hidden] { display: none !important; }
.global-import-result-files > strong {
    padding-top: 5px;
    color: #6f8397;
    font-size: 11px;
    font-weight: 650;
}
.global-import-result-files > div { display: flex; flex-wrap: wrap; gap: 6px; }
.global-import-result-files span {
    max-width: 100%;
    padding: 4px 9px;
    overflow: hidden;
    border: 1px solid #dce9f4;
    border-radius: 999px;
    background: #f4f8fc;
    color: #47627b;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.global-import-result-list {
    min-height: 96px;
    max-height: min(58vh, 560px);
    padding: 16px 20px;
    overflow: auto;
    background: #fbfdff;
    scrollbar-color: #b9cbdb transparent;
    scrollbar-width: thin;
}
.global-import-result-item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid #dfeaf3;
    border-radius: 12px;
    background: #fff;
}
.global-import-result-item + .global-import-result-item { margin-top: 9px; }
.global-import-result-item-marker {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e4f5ed;
    color: #17815d;
    font-size: 14px;
    font-weight: 800;
}
.global-import-result-item.is-danger { border-color: #f3d2d2; background: #fffafa; }
.global-import-result-item.is-danger .global-import-result-item-marker { background: #ffe6e6; color: #d83f3f; }
.global-import-result-item.is-warning { border-color: #f0dfbd; background: #fffdf8; }
.global-import-result-item.is-warning .global-import-result-item-marker { background: #fff0d1; color: #bf7512; }
.global-import-result-item.is-info .global-import-result-item-marker { background: #e5f1ff; color: #347dbd; }
.global-import-result-message {
    min-width: 0;
    color: #344e67;
    font-size: 13px;
    font-weight: 520;
    line-height: 1.75;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    word-break: break-word;
}
.global-import-result-footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 20px 16px;
    border-top: 1px solid #e5eef7;
    background: #fff;
}
.global-import-result-footer button {
    min-width: 92px;
    min-height: 36px;
    border-radius: 9px;
    background: #3f8fd6;
}
@media (max-width: 560px) {
    .global-import-result-header { grid-template-columns: 42px minmax(0, 1fr) 28px; padding: 15px; }
    .global-import-result-state { width: 40px; height: 40px; border-radius: 12px; }
    .global-import-result-files { grid-template-columns: 1fr; padding: 12px 15px; }
    .global-import-result-list { padding: 12px 15px; }
    .global-import-result-footer { padding: 10px 15px 14px; }
}

/* 涉税数据填报与分析 */
.tax-page-shell { width: min(100%, 1680px); margin: 0 auto; display: grid; gap: 12px; }
.tax-toolbar { min-height: 64px; padding: 12px 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tax-toolbar :is(.form-control,.form-select) { width: 180px; min-height: 38px; border-color: #d9e7f5; border-radius: 9px; color: #304a64; font-size: 13px; }
.tax-month-control { display: flex; align-items: center; gap: 8px; color: #71879d; font-size: 12px; white-space: nowrap; }
.tax-month-control .form-control { width: 170px; }
.tax-data-month-badge { min-height: 38px; padding: 0 13px; border: 1px solid #d9e7f5; border-radius: 9px; background: #f2f8fe; display: inline-flex; align-items: center; gap: 7px; color: #71879d; font-size: 12px; white-space: nowrap; }
.tax-data-month-badge strong { color: #2d6fa9; font-size: 13px; }
.tax-toolbar .tax-search-input { width: min(34vw, 430px); }
.tax-toolbar :is(button,a) { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; }
.tax-dashboard-toolbar .form-select { width: 220px; }
.tax-dashboard-toolbar { justify-content: flex-start; flex-wrap: wrap; }
.tax-dashboard-toolbar > span { color: #8195aa; font-size: 12px; }
.tax-dashboard-toolbar .tax-filter-caption { color: #536f89; font-weight: 650; }
.tax-dashboard-toolbar .tax-view-select { width: 142px; }
.tax-period-button { min-width: 86px; padding: 0 14px; border: 1px solid #d7e4f1; border-radius: 9px; background: #fff; color: #5f7891; font-size: 13px; }
.tax-period-button:hover,.tax-period-button.active { border-color: #77afe3; background: #edf6ff; color: #2679bf; }
.tax-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(130px, .55fr)) minmax(300px, 1.6fr); overflow: hidden; }
.tax-summary-grid > div { min-height: 86px; padding: 18px 22px; border-right: 1px solid #e4edf7; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.tax-summary-grid > div:last-child { border-right: 0; }
.tax-summary-grid small,.tax-analysis-summary small { color: #7f91a5; font-size: 12px; }
.tax-summary-grid strong { color: #233e59; font-size: 24px; line-height: 1; }
.tax-summary-grid .tax-pending-number { color: #ed5d45; }
.tax-progress-summary > span { display: flex; align-items: baseline; justify-content: space-between; }
.tax-progress-summary > i,.tax-analysis-summary i { height: 6px; border-radius: 999px; background: #e5eef7; overflow: hidden; }
.tax-progress-summary > i > b,.tax-analysis-summary i > b { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#69aef0,#3e86ce); }
.tax-operator-warning { padding: 12px 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-color: #ffd5ca; background: #fff9f6; color: #75645e; font-size: 12px; }
.tax-operator-warning strong { color: #df5137; font-size: 13px; }
.tax-operator-warning a { padding: 4px 8px; border-radius: 7px; background: #ffebe5; color: #d94b32; text-decoration: none; }
.tax-report-table-card { overflow: hidden; }
.tax-report-table-card > header,.tax-subject-panel > header { min-height: 54px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e4edf7; }
.tax-report-table-card > header strong,.tax-subject-panel > header strong { color: #213d58; font-size: 17px; }
.tax-report-table-card > header span,.tax-subject-panel > header span { color: #8a9aab; font-size: 12px; }
.tax-report-table { table-layout: auto; }
.tax-report-table th,.tax-report-table td { padding: 12px 14px; white-space: nowrap; }
.tax-status { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.tax-status.done { background: #e9f6ef; color: #258263; }
.tax-status.pending { background: #fff0ec; color: #df593f; }
.tax-report-modal { max-height: min(86vh, 760px); color: #304a64; }
.tax-report-modal .modal-body { overflow-y: auto; background: #f7faff; }
.tax-report-modal .modal-header small { display: block; margin-bottom: 4px; color: #7590aa; font-size: 12px; }
.tax-report-meta { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin-bottom: 16px; overflow: hidden; border: 1px solid #dce9f6; border-radius: 12px; background: #fff; }
.tax-report-meta > div { min-height: 70px; padding: 14px 16px; border-right: 1px solid #e5eef7; display: flex; flex-direction: column; gap: 5px; }
.tax-report-meta > div:last-child { border-right: 0; }
.tax-report-meta small { color: #8497aa; font-size: 11px; }
.tax-report-meta strong { color: #294763; font-size: 14px; }
.tax-line-head,.tax-line-row { display: grid; grid-template-columns: minmax(260px,1.5fr) minmax(180px,1fr) minmax(180px,1fr) minmax(150px,.8fr) 36px; gap: 10px; align-items: center; }
.tax-line-head { padding: 0 10px 8px; color: #758da4; font-size: 12px; font-weight: 650; }
.tax-line-row { margin-bottom: 8px; padding: 10px; border: 1px solid #dce9f6; border-radius: 11px; background: #fff; }
.tax-line-row :is(.form-control,.form-select) { min-height: 40px; border-color: #dbe7f3; border-radius: 8px; font-size: 13px; }
.tax-line-row > strong { color: #1769ad; font-size: 16px; text-align: right; }
.tax-line-row > button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #f0f5fa; color: #71879d; font-size: 18px; }
.tax-add-line { min-height: 36px; padding: 0 13px; border: 1px dashed #9dc5eb; border-radius: 9px; background: #eef7ff; color: #347ab9; font-size: 12px; font-weight: 650; }
.tax-form-total { margin-top: 16px; padding: 14px 18px; border-radius: 11px; background: #eaf4fe; display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.tax-form-total span { color: #607b96; font-size: 13px; }
.tax-form-total strong { color: #1769ad; font-size: 22px; }
.tax-analysis-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); overflow: hidden; }
.tax-analysis-summary.tax-net-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
.tax-analysis-summary > div { min-height: 100px; padding: 18px 20px; border-right: 1px solid #e4edf7; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.tax-analysis-summary > div:last-child { border-right: 0; background: #f4f9ff; }
.tax-analysis-summary strong { color: #233f5b; font-size: 23px; }
.tax-analysis-summary i { width: 100%; }
.tax-dashboard-grid { display: grid; grid-template-columns: minmax(310px,.72fr) minmax(0,2fr); gap: 12px; align-items: start; }
.tax-missing-panel { overflow: hidden; }
.tax-missing-panel > header { min-height: 62px; padding: 12px 16px; border-bottom: 1px solid #e4edf7; display: flex; align-items: center; justify-content: space-between; }
.tax-missing-panel > header div { display: grid; gap: 3px; }
.tax-missing-panel > header strong { color: #253f59; font-size: 16px; }
.tax-missing-panel > header span { color: #8797a8; font-size: 11px; }
.tax-missing-panel > header b { color: #3f87cb; font-size: 21px; }
.tax-missing-panel > div { max-height: 560px; overflow-y: auto; }
.tax-missing-panel a { min-height: 60px; padding: 10px 15px; border-bottom: 1px solid #e8eff6; display: flex; align-items: center; justify-content: space-between; color: inherit; text-decoration: none; }
.tax-missing-panel a:hover { background: #f5f9fd; }
.tax-missing-panel a span { display: grid; gap: 3px; }
.tax-missing-panel a strong { color: #31516e; font-size: 13px; }
.tax-missing-panel a small { color: #8b9cad; font-size: 11px; }
.tax-missing-panel a i { padding: 4px 8px; border-radius: 999px; background: #fff0ec; color: #df593f; font-size: 11px; font-style: normal; }
.tax-missing-panel a.operator-missing i { background: #ffe6dd; }
.tax-missing-panel p { padding: 42px 16px; color: #8495a6; text-align: center; }
.tax-subject-panel { overflow: hidden; }
.tax-subject-panel .management-table th,.tax-subject-panel .management-table td { padding: 12px 13px; white-space: nowrap; }
.tax-subject-panel .management-table tfoot td { border-top: 1px solid #cbddec; background: #f1f7fd; color: #1f5d91; font-weight: 750; }

/* 店铺档案：聚水潭映射、保证金凭证和备注 */
.store-management-table { min-width: 2380px; }
.store-management-table th,
.store-management-table td { text-align: left; }
.store-management-table td:nth-child(2),
.store-management-table td:last-child { max-width: 260px; }
.store-history-modal .modal-header p { margin: 5px 0 0; color: #9b948e; font-size: 11px; }
.store-history-table { min-width: 1120px !important; }
.store-history-table tbody td { height: auto; min-height: 52px; padding-top: 12px; padding-bottom: 12px; white-space: normal; line-height: 1.6; }
.store-history-table .store-history-field { color: #3b65a2; font-weight: 750; white-space: nowrap; }
.store-history-table .store-history-new-value { color: #2f4058; font-weight: 700; }
.store-deposit-screenshot-field,
.store-remark-field { grid-column: 1 / -1; }
.store-deposit-preview {
    min-height: 32px;
    margin-top: 7px;
    padding: 7px 10px;
    border: 1px solid #dce8f3;
    border-radius: 8px;
    background: #f7fbff;
    color: #7890a8;
    font-size: 11px;
}
.store-deposit-preview a { color: #2f83cf; text-decoration: none; }
.store-file-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: #d95a4e;
    font-size: 11px;
}
.store-file-remove[hidden] { display: none; }
.tax-subject-panel > .table-responsive { overflow-x: hidden; }
.tax-subject-panel .tax-subject-table { width: 100%; min-width: 0; table-layout: fixed; }
.tax-subject-table--subject th:nth-child(1) { width: 72px; }
.tax-subject-table--subject th:nth-child(2) { width: auto; }
.tax-subject-table--subject th:nth-child(3) { width: 150px; }
.tax-subject-table--subject th:nth-child(4) { width: 150px; }
.tax-subject-table--subject th:nth-child(5) { width: 190px; }
.tax-subject-table--store th:nth-child(1) { width: 64px; }
.tax-subject-table--store th:nth-child(2) { width: 106px; }
.tax-subject-table--store th:nth-child(3) { width: 126px; }
.tax-subject-table--store th:nth-child(4),.tax-subject-table--store th:nth-child(5) { width: auto; }
.tax-subject-table--store th:nth-child(6) { width: 190px; }
.tax-subject-panel .tax-subject-table td:nth-child(2),.tax-subject-panel .tax-subject-table--store td:nth-child(4),.tax-subject-panel .tax-subject-table--store td:nth-child(5) { overflow: visible; white-space: normal; word-break: break-word; }
.tax-subject-table .tax-net-amount { color: #1d659e; text-align: left; white-space: nowrap; }
@media (max-width: 1100px) {
    .tax-toolbar { justify-content: flex-start; flex-wrap: wrap; }
    .tax-summary-grid,.tax-analysis-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tax-dashboard-grid { grid-template-columns: 1fr; }
    .tax-report-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tax-line-head { display: none; }
    .tax-line-row { grid-template-columns: 1fr 1fr; }
    .tax-line-row > :first-child { grid-column: 1 / -1; }
}

/* 最终全站工作区覆盖：主导航常驻，二级导航悬浮，内容使用全部可用宽度。 */
@media (min-width: 901px) {
    body.taobao-system-theme .sidebar {
        width: 82px !important;
        background: var(--xy-blue-75) !important;
        box-shadow: 7px 0 24px rgba(53, 93, 135, .06) !important;
    }
    body.taobao-system-theme .main-panel {
        width: calc(100% - 82px) !important;
        margin-left: 82px !important;
    }
    body.taobao-system-theme .content-wrap,
    body.taobao-system-theme .content-wrap:has(.batch-parse-launcher) {
        width: 100% !important;
        max-width: 1840px !important;
        margin-right: auto !important;
        margin-left: auto !important;
        padding: 14px 16px 22px !important;
    }
    body.taobao-system-theme .content-wrap > * {
        width: 100% !important;
        max-width: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    body.taobao-system-theme .nav-flyout,
    body.taobao-system-theme .nav-flyout-wide {
        position: fixed !important;
        top: var(--xy-nav-flyout-top, 72px) !important;
        right: auto !important;
        bottom: auto !important;
        left: 74px !important;
        z-index: 1180 !important;
        width: 214px !important;
        min-width: 214px !important;
        max-width: 214px !important;
        height: auto !important;
        max-height: calc(100vh - var(--xy-nav-flyout-top, 72px) - 12px) !important;
        margin: 0 !important;
        padding: 10px !important;
        grid-template-columns: 1fr !important;
        gap: 3px !important;
        overflow-y: auto !important;
        border: 1px solid var(--xy-line) !important;
        border-radius: 13px !important;
        background: rgba(255, 255, 255, .98) !important;
        box-shadow: 0 18px 48px rgba(42, 76, 112, .18) !important;
        backdrop-filter: blur(16px);
    }
    body.taobao-system-theme .nav-flyout-wide {
        width: 410px !important;
        min-width: 410px !important;
        max-width: 410px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    body.taobao-system-theme .nav-flyout-title { display: none !important; }
    body.taobao-system-theme .nav-group.active:not(.nav-preview-active):not(.open) > .nav-flyout { display: none !important; }
    body.taobao-system-theme .nav-group:hover > .nav-flyout,
    body.taobao-system-theme .nav-group.nav-preview-active > .nav-flyout,
    body.taobao-system-theme .nav-group.open > .nav-flyout { display: grid !important; }
}

@media (min-width: 901px) and (max-height: 820px) {
    body.taobao-system-theme:has(.order-profit-board) {
        overflow-y: auto !important;
    }
    body.taobao-system-theme .content-wrap:has(.order-profit-board) {
        height: auto !important;
        min-height: calc(100vh - 12px) !important;
        overflow: visible !important;
    }
    body.taobao-system-theme .analysis-detail-card:has(.order-profit-board) {
        height: 680px !important;
        min-height: 680px !important;
        max-height: 680px !important;
    }
    body.taobao-system-theme .analysis-detail-card:has(.order-profit-board) > .analysis-detail-scroll {
        min-height: 340px !important;
        overflow: auto !important;
    }
}

/* Final payroll editor overrides: keep admin editing visually identical to the light payslip. */
.payroll-edit-dialog .management-modal { border: 1px solid #cfe1f3 !important; background: #f7fbff !important; box-shadow: 0 24px 70px rgba(39, 82, 126, .22) !important; }
.payroll-edit-dialog .modal-header,
.payroll-edit-dialog .modal-footer { border-color: #d9e7f4 !important; background: #fff !important; }
.payroll-edit-dialog .modal-title { color: #223f5d !important; }
.payroll-edit-dialog .modal-body,
.payroll-edit-dialog .management-payslip-editor { background: #f3f8fd !important; }
.payroll-edit-dialog .formal-payslip-head { border: 1px solid #c8dff3 !important; background: linear-gradient(135deg, #e8f4ff 0%, #f8fbff 100%) !important; color: #234663 !important; box-shadow: none !important; }
.payroll-edit-dialog .formal-payslip-head::after { background: linear-gradient(90deg, #4d93d5, #9ecbf1) !important; }
.payroll-edit-dialog .formal-payslip-head .payslip-kicker,
.payroll-edit-dialog .formal-payslip-head label,
.payroll-edit-dialog .formal-payslip-head small { color: #6e8aa3 !important; }
.payroll-edit-dialog .formal-payslip-head h3 { color: #1f405e !important; }
.payroll-edit-dialog .formal-payslip-head input,
.payroll-edit-dialog .formal-payslip-head select { border-color: #bfd6ea !important; background: #fff !important; color: #263f57 !important; }
.payroll-edit-dialog .payroll-allocation-strip,
.payroll-edit-dialog .payslip-detail-section,
.payroll-edit-dialog .payroll-remark-section { border-color: #d3e3f1 !important; background: #fff !important; box-shadow: 0 7px 20px rgba(52, 91, 128, .05) !important; }
.payroll-edit-dialog .payslip-detail-section > header,
.payroll-edit-dialog .payroll-remark-section > header { border-color: #d7e6f3 !important; background: #edf6ff !important; color: #284e70 !important; }
.payroll-edit-dialog .payslip-detail-section > header span,
.payroll-edit-dialog .payroll-remark-section > header span { background: #dceeff !important; color: #367dbd !important; }
.payroll-edit-dialog .payslip-detail-section > header small,
.payroll-edit-dialog .payroll-remark-section > header small { color: #8197aa !important; }
.payroll-edit-dialog .payslip-detail-section .form-control,
.payroll-edit-dialog .payslip-detail-section .form-select,
.payroll-edit-dialog .payroll-remark-section .form-control,
.payroll-edit-dialog .payroll-allocation-strip .form-control,
.payroll-edit-dialog .payroll-allocation-strip .form-select { border-color: #cbddeb !important; background: #fbfdff !important; color: #29445d !important; }
.payroll-edit-dialog .payslip-detail-section .form-control:focus,
.payroll-edit-dialog .payslip-detail-section .form-select:focus,
.payroll-edit-dialog .payroll-remark-section .form-control:focus,
.payroll-edit-dialog .payroll-allocation-strip .form-control:focus,
.payroll-edit-dialog .payroll-allocation-strip .form-select:focus { border-color: #6da7db !important; box-shadow: 0 0 0 3px rgba(73, 143, 205, .13) !important; }
.payroll-edit-dialog .payslip-section-total { border-color: #c4ddf2 !important; background: #eaf5ff !important; color: #2476b9 !important; }
.payroll-edit-dialog .payroll-live-net { border-color: #bcd9f0 !important; background: linear-gradient(135deg, #e7f4ff, #f5faff) !important; color: #235f91 !important; }

/* Employee payslip v2: calm, spacious and intentionally low-density. */
.clean-payroll-toolbar {
    margin-bottom: 16px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid #dce8f3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(43, 83, 119, .055);
}
.clean-payroll-toolbar > div > span { color: #3e8bc9; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.clean-payroll-toolbar h2 { margin: 4px 0 2px; color: #244661; font-size: 23px; }
.clean-payroll-toolbar p { margin: 0; color: #8497a8; font-size: 12px; }
.clean-payroll-toolbar form { display: flex; align-items: center; gap: 8px; }
.clean-payroll-toolbar form label { margin-right: 3px; color: #71879a; font-size: 11px; white-space: nowrap; }
.clean-payroll-toolbar form .form-control { width: 165px; height: 36px; border-color: #d4e2ee; background: #f8fbfe; }
.clean-payroll-toolbar form :is(.btn-primary-custom,.btn-light-custom) { min-height: 36px; padding: 7px 13px; }

.clean-payroll-card {
    overflow: hidden;
    border: 1px solid #dce6ef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(35, 71, 102, .07);
}
.clean-payroll-card + .clean-payroll-card { margin-top: 14px; }
.clean-payroll-summary {
    min-height: 82px;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: minmax(220px,1fr) auto minmax(180px,.55fr) 96px;
    align-items: center;
    gap: 22px;
    cursor: pointer;
    list-style: none;
    background: #fff;
}
.clean-payroll-summary::-webkit-details-marker { display: none; }
.clean-payroll-card[open] > .clean-payroll-summary { border-bottom: 1px solid #e5edf4; background: #fbfdff; }
.clean-payroll-month { display: flex; align-items: center; gap: 12px; }
.clean-payroll-month > i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: #eaf4fd;
    color: #397fb8;
    font-size: 18px;
    font-style: normal;
    font-weight: 800;
}
.clean-payroll-month > span,
.clean-payroll-summary-net { display: flex; flex-direction: column; gap: 3px; }
.clean-payroll-summary small { color: #91a0ad; font-size: 10px; }
.clean-payroll-month strong { color: #294a65; font-size: 18px; }
.clean-payroll-summary-net { text-align: right; }
.clean-payroll-summary-net strong { color: #198b79; font-size: 20px; }
.clean-payroll-open-label { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: #6f879a; font-size: 11px; white-space: nowrap; }
.clean-payroll-open-label i { font-style: normal; transition: transform .2s ease; }
.clean-payroll-card[open] .clean-payroll-open-label i { transform: rotate(180deg); }

.clean-payroll-body { padding: 18px; background: #f4f8fb; }
.clean-payslip-sheet { overflow: hidden; max-width: 1180px; margin: 0 auto; border: 1px solid #dce6ef; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(43, 83, 119, .055); }
.clean-payslip-header {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid #e6edf3;
    background: #fff;
}
.clean-payslip-brand { min-width: 300px; display: flex; align-items: center; gap: 12px; }
.clean-payslip-brand > span {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    background: linear-gradient(145deg,#3f8ecb,#43aa9a);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
}
.clean-payslip-brand > div { display: flex; flex-direction: column; gap: 3px; }
.clean-payslip-brand small { color: #8b9dad; font-size: 9px; }
.clean-payslip-brand strong { color: #294a65; font-size: 15px; }
.clean-payslip-header dl { margin: 0 0 0 auto; display: grid; grid-template-columns: repeat(3,minmax(82px,auto)); gap: 18px; }
.clean-payslip-header dt { color: #97a5b1; font-size: 9px; font-weight: 500; }
.clean-payslip-header dd { margin: 3px 0 0; color: #36536b; font-size: 12px; font-weight: 700; }
.clean-payslip-header .payslip-copy-button { flex: 0 0 auto; border-color: #d4e2ed; background: #f7fafc; color: #537188; }

.clean-payroll-amount {
    margin: 18px 18px 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid #bfdceb;
    border-radius: 20px;
    background:
        radial-gradient(circle at 94% 8%,rgba(255,255,255,.96) 0 4%,transparent 4.2%),
        linear-gradient(120deg,#eaf6fd 0%,#f3f9fd 56%,#edf9f7 100%);
    box-shadow: 0 12px 28px rgba(42,111,158,.09), inset 0 1px 0 rgba(255,255,255,.9);
}
.payroll-ceremony-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg,#3e8bc9,#38a092); }
.payroll-card-orbit { position: absolute; z-index: 0; border: 1px solid rgba(70,145,194,.12); border-radius: 999px; pointer-events: none; }
.payroll-card-orbit.orbit-one { width: 230px; height: 230px; top: -138px; right: -45px; }
.payroll-card-orbit.orbit-two { width: 160px; height: 160px; top: -100px; right: -10px; }
.payroll-card-topline { min-height: 48px; padding: 0 25px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(104,159,196,.16); }
.payroll-card-topline span { color: #537a96; font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.payroll-card-topline span i { margin-right: 7px; color: #3285bd; font-style: normal; font-weight: 900; letter-spacing: .15em; }
.payroll-card-topline b { color: #7894a7; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.payroll-card-content { padding: 24px 25px 20px; position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(245px,.8fr); align-items: center; gap: 34px; }
.payroll-card-greeting small { color: #3e8bc9; font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.payroll-card-greeting h3 { margin: 7px 0 8px; color: #274d69; font-size: 20px; letter-spacing: -.01em; }
.payroll-card-greeting p { max-width: 550px; margin: 0; color: #688398; font-size: 11px; line-height: 1.8; }
.payroll-card-net { min-width: 0; padding-left: 26px; display: flex; flex-direction: column; border-left: 1px solid rgba(79,145,187,.2); }
.payroll-card-net small { color: #588576; font-size: 10px; font-weight: 700; }
.payroll-card-net strong { margin: 5px 0 4px; color: #168b78; font-size: 31px; line-height: 1.15; letter-spacing: -.02em; }
.payroll-card-net span { color: #789b94; font-size: 9px; }
.clean-payroll-amount dl.payroll-card-formula { margin: 0 25px 15px; padding: 12px 16px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-end; gap: 18px; border: 1px solid rgba(157,190,211,.32); border-radius: 12px; background: rgba(255,255,255,.66); }
.clean-payroll-amount dl > div { min-width: 105px; }
.clean-payroll-amount dt { color: #8597a6; font-size: 9px; font-weight: 500; }
.clean-payroll-amount dd { margin: 4px 0 0; color: #3d586e; font-size: 14px; font-weight: 750; }
.clean-payroll-amount dl > i { color: #9eb0bd; font-size: 15px; font-style: normal; }
.clean-payroll-amount dl .is-net dd { color: #168b78; }
.payroll-card-footer { min-height: 34px; padding: 0 25px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(104,159,196,.14); color: #8ba0ae; font-size: 9px; }

.clean-payroll-layout { padding: 16px 18px; display: grid; grid-template-columns: minmax(0,1.48fr) minmax(330px,.82fr); gap: 14px; }
.clean-payroll-main { min-width: 0; display: grid; align-content: start; gap: 14px; }
.clean-payroll-income { align-self: start; }
.clean-payroll-side { min-width: 0; display: grid; align-content: start; gap: 14px; }
.clean-payroll-section { overflow: hidden; min-width: 0; border: 1px solid #e0e9f1; border-radius: 15px; background: #fff; }
.clean-payroll-section > header { min-height: 61px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e7eef4; background: #f7faff; }
.clean-payroll-section > header small { color: #74a5cb; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.clean-payroll-section > header h3 { margin: 2px 0 0; color: #2e4d66; font-size: 15px; }
.clean-payroll-section > header > strong { color: #367fba; font-size: 16px; }
.clean-payroll-group-title { padding: 13px 16px 8px; display: flex; align-items: center; justify-content: space-between; color: #658197; font-size: 10px; font-weight: 700; }
.clean-payroll-group-title strong { color: #57748b; font-size: 11px; }
.clean-payroll-group-title.is-secondary { margin-top: 8px; padding-top: 15px; border-top: 1px solid #edf1f5; }
.clean-payroll-lines { padding: 0 9px 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.clean-payroll-line { min-height: 40px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #eef2f6; }
.clean-payroll-line span { min-width: 0; color: #74889a; font-size: 11px; }
.clean-payroll-line strong { color: #344f65; font-size: 11px; white-space: nowrap; }
.clean-attendance-card > header { background: #f2faf8; }
.clean-attendance-card > header small { color: #48a091; }
.clean-attendance-card > header > strong { color: #198b79; }
.clean-attendance-grid { padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.clean-attendance-grid > span { min-height: 56px; padding: 10px 11px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border-radius: 10px; background: #f7fafc; }
.clean-attendance-grid small { color: #91a1ae; font-size: 9px; }
.clean-attendance-grid b { color: #36536a; font-size: 11px; }
.clean-deduction-card > header { background: #fff8f8; }
.clean-deduction-card > header small { color: #c78787; }
.clean-deduction-card > header > strong { color: #b85c64; }
.clean-deduction-lines { padding: 3px 9px 9px; }
.clean-deduction-lines .clean-payroll-line strong { color: #9e5960; }

.clean-payroll-remark { margin: 0 18px 16px; padding: 12px 15px; display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 13px; border: 1px solid #e3eaf0; border-radius: 12px; background: #fafcfd; }
.clean-payroll-remark strong { color: #57768e; font-size: 11px; }
.clean-payroll-remark p { margin: 0; color: #687c8d; font-size: 11px; line-height: 1.65; }

.clean-payroll-ai { margin: 0 18px 16px; padding: 17px 18px; display: grid; grid-template-columns: 165px minmax(0,1fr); gap: 17px 22px; border: 1px solid #d8eae7; border-radius: 15px; background: #f4faf9; }
.clean-payroll-main > .clean-payroll-ai { margin: 0; }
.clean-payroll-ai-title { display: flex; align-items: flex-start; gap: 10px; }
.clean-payroll-ai-title > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: #dff3ef; color: #258c7b; }
.clean-payroll-ai-title > div { display: flex; flex-direction: column; gap: 3px; }
.clean-payroll-ai-title small { color: #587b75; font-size: 10px; font-weight: 750; }
.clean-payroll-ai-title strong { color: #2d9785; font-size: 9px; font-weight: 650; }
.clean-payroll-ai-text p { margin: 0; color: #536d75; font-size: 11px; line-height: 1.75; }
.clean-payroll-ai-text blockquote { margin: 10px 0 0; padding: 9px 12px; border-left: 3px solid #4eac9d; border-radius: 0 8px 8px 0; background: rgba(255,255,255,.7); color: #277768; font-size: 11px; font-weight: 600; line-height: 1.7; }
.clean-payroll-ai-text blockquote small { margin-right: 7px; color: #72a49b; font-size: 9px; }
.clean-payroll-ai > footer { grid-column: 1 / -1; padding-top: 10px; display: flex; align-items: center; gap: 10px; border-top: 1px solid #e1eeeb; }
.clean-payroll-ai > footer p { margin: 0 auto 0 0; color: #95a6a3; font-size: 9px; }
.clean-payroll-ai > footer time,
.clean-payroll-ai .payroll-ai-unavailable { color: #8fa09e; font-size: 9px; white-space: nowrap; }
.clean-payroll-ai .btn-ai-insight { padding: 6px 10px; background: #388d80; font-size: 10px; }

.clean-payslip-sheet > .payroll-review-actions,
.clean-payslip-sheet > .payroll-feedback-note,
.clean-payslip-sheet > .payroll-waiting-payment,
.clean-payslip-sheet > .payroll-payment-receipt { margin: 0 18px 18px; }
.clean-payslip-sheet > .payroll-review-actions { padding: 12px; border-color: #dbe7ef; border-radius: 13px; background: #f8fbfd; }
.clean-payslip-sheet > .payroll-review-actions .btn-primary-custom { background: #3689c7; }

@media (max-width: 1050px) {
    .clean-payslip-header { flex-wrap: wrap; }
    .clean-payslip-header dl { order: 3; width: 100%; margin-left: 55px; }
    .clean-payroll-layout { grid-template-columns: 1fr; }
    .clean-payroll-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .clean-payroll-toolbar { padding: 16px; align-items: stretch; flex-direction: column; gap: 13px; }
    .clean-payroll-toolbar form { flex-wrap: wrap; }
    .clean-payroll-toolbar form label { width: 100%; }
    .clean-payroll-toolbar form .form-control { flex: 1 1 150px; width: auto; }
    .clean-payroll-summary { min-height: 74px; padding: 12px 14px; grid-template-columns: minmax(145px,1fr) auto; gap: 10px; }
    .clean-payroll-summary > .payroll-status-badge,
    .clean-payroll-open-label { display: none; }
    .clean-payroll-summary-net strong { font-size: 17px; }
    .clean-payroll-month > i { width: 42px; height: 42px; }
    .clean-payroll-body { padding: 10px; }
    .clean-payslip-header { padding: 15px; gap: 14px; }
    .clean-payslip-brand { min-width: 0; flex: 1 1 100%; }
    .clean-payslip-header dl { width: 100%; margin: 0; gap: 10px; }
    .clean-payslip-header .payslip-copy-button { width: 100%; }
    .clean-payroll-amount { margin: 12px 12px 0; padding: 0; }
    .payroll-card-topline { min-height: 43px; padding: 0 16px; }
    .payroll-card-topline b { display: none; }
    .payroll-card-content { padding: 19px 16px 17px; grid-template-columns: 1fr; gap: 17px; }
    .payroll-card-greeting h3 { font-size: 18px; }
    .payroll-card-greeting p { font-size: 10px; }
    .payroll-card-net { padding: 15px 0 0; border-top: 1px solid rgba(79,145,187,.2); border-left: 0; }
    .payroll-card-net strong { font-size: 27px; }
    .clean-payroll-amount dl.payroll-card-formula { margin: 0 12px 12px; padding: 11px 10px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); justify-content: stretch; gap: 6px; }
    .clean-payroll-amount dl > div { min-width: 0; }
    .clean-payroll-amount dl > i { display: none; }
    .clean-payroll-amount dd { font-size: 11px; }
    .payroll-card-footer { min-height: 38px; padding: 0 16px; }
    .payroll-card-footer span:last-child { display: none; }
    .clean-payroll-layout { padding: 12px; }
    .clean-payroll-lines { grid-template-columns: 1fr; }
    .clean-payroll-side { grid-template-columns: 1fr; }
    .clean-payroll-remark { margin: 0 12px 12px; grid-template-columns: 1fr; gap: 5px; }
    .clean-payroll-ai { margin: 0 12px 12px; grid-template-columns: 1fr; gap: 12px; }
    .clean-payroll-ai > footer { align-items: flex-start; flex-direction: column; }
    .clean-payroll-ai > footer form,
    .clean-payroll-ai .btn-ai-insight { width: 100%; }
    .clean-payslip-sheet > .payroll-review-actions,
    .clean-payslip-sheet > .payroll-feedback-note,
    .clean-payslip-sheet > .payroll-waiting-payment,
    .clean-payslip-sheet > .payroll-payment-receipt { margin: 0 12px 12px; }
}

/* 员工端报销申请 V2：浅蓝系统色、分步表单与实时核对摘要。 */
.reimbursement-workspace-v2 {
    --reimbursement-blue:#5682c5;
    --reimbursement-blue-dark:#365a91;
    --reimbursement-blue-soft:#edf4ff;
    --reimbursement-ink:#2c3d57;
    --reimbursement-muted:#7d8da4;
    width:calc(100% - 32px);
    max-width:720px !important;
    margin-left:auto;
    margin-right:auto;
    display:grid;
    gap:10px;
}
body.taobao-system-theme .content-wrap > .reimbursement-workspace-v2 {
    width:calc(100% - 32px) !important;
    max-width:720px !important;
    margin-right:auto !important;
    margin-left:auto !important;
}
.reimbursement-hero-v2 {
    min-height:0;
    padding:10px 14px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    overflow:hidden;
    position:relative;
    border:1px solid #dbe7f6;
    border-radius:16px;
    background:
        radial-gradient(circle at 92% 2%,rgba(112,157,220,.22),transparent 34%),
        linear-gradient(135deg,#f8fbff 0%,#edf5ff 58%,#f9fbff 100%);
    box-shadow:0 16px 42px rgba(51,84,127,.08);
}
.reimbursement-hero-v2::after {
    content:"";
    width:190px;
    height:190px;
    position:absolute;
    right:-68px;
    bottom:-105px;
    border:30px solid rgba(88,132,196,.08);
    border-radius:50%;
}
.reimbursement-hero-copy { min-width:0; position:relative; z-index:1; display:flex; align-items:center; gap:12px; }
.reimbursement-hero-title-v2 { min-width:0; display:flex; align-items:baseline; gap:8px; }
.reimbursement-eyebrow { display:none; }
.reimbursement-hero-copy h1 { margin:0; color:var(--reimbursement-ink); font-size:18px; font-weight:800; letter-spacing:-.03em; white-space:nowrap; }
.reimbursement-hero-title-v2>p { margin:0; overflow:hidden; color:#6f8199; font-size:9px; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.reimbursement-identity-v2 { min-width:0; width:fit-content; margin:0; padding:6px 10px 6px 6px; display:flex; align-items:center; gap:8px; border:1px solid rgba(137,169,211,.35); border-radius:11px; background:rgba(255,255,255,.72); }
.reimbursement-avatar-v2 { width:31px; height:31px; display:grid; place-items:center; flex:0 0 31px; overflow:hidden; border-radius:8px; background:linear-gradient(145deg,#7198cf,#4f78b5); color:#fff; font-size:12px; font-weight:800; }
.reimbursement-avatar-v2.image { object-fit:cover; }
.reimbursement-identity-v2>div { display:grid; gap:2px; }
.reimbursement-identity-v2 strong { color:#3e5472; font-size:12px; }
.reimbursement-identity-v2 span { color:#8797aa; font-size:9px; }
.reimbursement-hero-side { min-width:0; position:relative; z-index:1; display:flex; align-items:center; }
.reimbursement-record-link { min-height:32px; padding:0 11px; display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(100,139,193,.28); border-radius:9px; background:rgba(255,255,255,.72); color:#5076ad; font-size:9px; font-weight:750; text-decoration:none; }
.reimbursement-record-link:hover { border-color:#7ca2d5; background:#fff; color:#365f99; }
.reimbursement-record-link span { font-size:15px; }
.reimbursement-process-v2 { width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.reimbursement-process-v2>div { min-width:0; padding:7px; display:flex; align-items:center; gap:6px; position:relative; border:1px solid rgba(131,164,208,.2); border-radius:10px; background:rgba(255,255,255,.55); }
.reimbursement-process-v2>div>i { width:23px; height:23px; display:grid; place-items:center; flex:0 0 23px; border-radius:7px; background:#e7eef8; color:#7d96b8; font-size:9px; font-style:normal; font-weight:800; }
.reimbursement-process-v2>div.is-current { border-color:#bcd2ef; background:#fff; box-shadow:0 8px 20px rgba(67,105,158,.08); }
.reimbursement-process-v2>div.is-current>i { background:var(--reimbursement-blue); color:#fff; }
.reimbursement-process-v2 span { min-width:0; display:grid; gap:2px; }
.reimbursement-process-v2 b { color:#4a5f7c; font-size:10px; white-space:nowrap; }
.reimbursement-process-v2 small { display:none; }

.reimbursement-form-v2 { min-width:0; display:grid; gap:0; }
.reimbursement-form-layout-v2 { min-width:0; display:grid; grid-template-columns:1fr; align-items:start; gap:10px; }
.reimbursement-form-main-v2 { min-width:0; display:grid; gap:10px; }
.reimbursement-form-card-v2 { padding:16px 18px 18px; border:1px solid #e1e9f3; border-radius:14px; background:#fff; box-shadow:0 7px 22px rgba(50,76,111,.04); }
.reimbursement-card-heading-v2 { min-height:34px; margin-bottom:13px; display:flex; align-items:center; gap:9px; }
.reimbursement-card-heading-v2>i { width:29px; height:29px; display:grid; place-items:center; flex:0 0 29px; border-radius:8px; background:var(--reimbursement-blue-soft); color:#5680ba; font-size:9px; font-style:normal; font-weight:850; }
.reimbursement-card-heading-v2>div { min-width:0; display:grid; gap:3px; }
.reimbursement-card-heading-v2 h2 { margin:0; display:flex; align-items:center; gap:4px; color:#344760; font-size:13px; font-weight:800; }
.reimbursement-card-heading-v2 p { margin:0; color:#96a2b2; font-size:9px; }
.reimbursement-card-heading-v2>span { margin-left:auto; padding:4px 8px; border-radius:999px; background:#edf4ff; color:#5d82b5; font-size:9px; font-weight:750; white-space:nowrap; }
.reimbursement-card-heading-v2>span.is-soft { background:#f3f6fa; color:#7c8ca2; }
.reimbursement-fields-v2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.reimbursement-fields-v2.three-columns { grid-template-columns:repeat(3,minmax(0,1fr)); }
.reimbursement-field-v2 { min-width:0; display:grid; align-content:start; gap:7px; color:#52657f; font-size:11px; font-weight:720; }
.reimbursement-field-v2.wide { grid-column:1/-1; }
.reimbursement-field-v2>span { min-height:18px; display:flex; align-items:center; }
.reimbursement-field-v2>span em,
.reimbursement-allocation-v2 legend em { margin-right:3px; color:#e1574b; font-style:normal; }
.reimbursement-field-v2>span>small { margin-left:auto; color:#a0acbb; font-size:9px; font-weight:600; }
.reimbursement-field-v2>span>small b { color:#6485b2; }
.reimbursement-help-v2 { width:15px; height:15px; margin-left:2px; display:inline-grid; place-items:center; flex:0 0 15px; position:relative; border:1px solid #dce3eb; border-radius:50%; color:#a6b0bd; cursor:help; outline:0; vertical-align:middle; }
.reimbursement-help-v2>i { font-size:8px; font-style:normal; font-weight:650; line-height:1; }
.reimbursement-help-v2>span { width:max-content; max-width:min(240px,calc(100vw - 40px)); padding:7px 9px; position:absolute; z-index:60; left:50%; bottom:calc(100% + 7px); border:1px solid #e4e9ef; border-radius:8px; background:rgba(255,255,255,.98); box-shadow:0 8px 22px rgba(52,70,96,.10); color:#98a3b1; font-size:8px; font-weight:500; line-height:1.55; text-align:left; white-space:normal; opacity:0; visibility:hidden; pointer-events:none; transform:translate(-50%,2px); transition:opacity .14s ease,transform .14s ease,visibility .14s ease; }
.reimbursement-help-v2:hover>span,
.reimbursement-help-v2:focus>span,
.reimbursement-help-v2:focus-visible>span { opacity:1; visibility:visible; transform:translate(-50%,0); }
.reimbursement-help-v2:focus-visible { border-color:#bcc9d8; box-shadow:0 0 0 2px rgba(117,143,177,.10); }
.reimbursement-help-v2.is-start>span { left:0; transform:translate(0,2px); }
.reimbursement-help-v2.is-start:hover>span,
.reimbursement-help-v2.is-start:focus>span,
.reimbursement-help-v2.is-start:focus-visible>span { transform:translate(0,0); }
.reimbursement-help-v2.is-bottom>span { top:calc(100% + 7px); bottom:auto; }
.reimbursement-field-v2 .form-control,
.reimbursement-field-v2 .form-select { min-height:43px; border-color:#dfe7f1; border-radius:10px; background-color:#fbfdff; color:#405571; font-size:12px; box-shadow:none; }
.reimbursement-field-v2 .form-control:focus,
.reimbursement-field-v2 .form-select:focus { border-color:#8daeda; background:#fff; box-shadow:0 0 0 3px rgba(86,130,197,.1); }
.reimbursement-field-v2 textarea.form-control { min-height:78px; padding:11px 12px; resize:vertical; line-height:1.6; }
.reimbursement-money-input-v2 { position:relative; }
.reimbursement-money-input-v2>b { position:absolute; z-index:2; left:13px; top:50%; color:#567fb9; font-size:16px; transform:translateY(-50%); }
.reimbursement-money-input-v2 .form-control { padding-left:33px; font-size:15px; font-weight:760; }
.reimbursement-auto-badge,
.reimbursement-permission-badge { margin-left:6px; padding:2px 6px; border-radius:999px; background:#edf5ff; color:#6486b7; font-size:8px; font-style:normal; font-weight:750; }

.reimbursement-allocation-v2 { margin:0 0 12px; padding:0; border:0; }
.reimbursement-allocation-v2 legend { margin:0 0 9px; color:#52657f; font-size:11px; font-weight:720; }
.reimbursement-allocation-options-v2 { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.reimbursement-allocation-option-v2 { min-width:0; min-height:44px; padding:7px 9px; display:flex; align-items:center; gap:7px; position:relative; border:1px solid #e0e8f2; border-radius:10px; background:#fbfdff; cursor:pointer; transition:.18s ease; }
.reimbursement-allocation-option-v2:hover { border-color:#a9c1e1; background:#f7fbff; }
.reimbursement-allocation-option-v2.is-selected { border-color:#7fa3d3; background:#edf5ff; box-shadow:0 0 0 2px rgba(86,130,197,.08); }
.reimbursement-allocation-option-v2 input { position:absolute; width:1px; height:1px; opacity:0; }
.reimbursement-allocation-option-v2>i { width:27px; height:27px; display:grid; place-items:center; flex:0 0 27px; border-radius:8px; background:#eef2f7; color:#8091a7; font-size:9px; font-style:normal; font-weight:800; }
.reimbursement-allocation-option-v2.is-selected>i { background:#5b85c3; color:#fff; }
.reimbursement-allocation-option-v2>span { min-width:0; display:flex; align-items:center; gap:3px; }
.reimbursement-allocation-option-v2 b { color:#4b5e77; font-size:11px; }
.reimbursement-allocation-option-v2 small { display:none; }
.reimbursement-allocation-option-v2>u { width:13px; height:13px; position:absolute; top:7px; right:7px; border:1px solid #ccd8e6; border-radius:50%; text-decoration:none; }
.reimbursement-allocation-option-v2.is-selected>u { border:4px solid #5b85c3; background:#fff; }
.allocation-fields { padding:12px; border:1px solid #e8eef5; border-radius:11px; background:#f9fbfd; }
.reimbursement-hierarchy-v2 { min-width:0; min-height:35px; padding:7px 10px; display:flex; align-items:center; gap:10px; border-radius:9px; background:#edf4fc; color:#637a98; }
.reimbursement-hierarchy-v2>span { flex:0 0 auto; padding-right:9px; border-right:1px solid #cddbeb; color:#7d90aa; font-size:9px; font-weight:650; }
.reimbursement-hierarchy-v2>strong { min-width:0; overflow:hidden; color:#4f6d94; font-size:9px; font-weight:720; text-overflow:ellipsis; white-space:nowrap; }
.reimbursement-order-lookup { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.reimbursement-order-lookup .btn-light-custom { min-width:96px; border-color:#cad9eb; color:#537aad; background:#fff; }
.reimbursement-field-v2>.lookup-result { min-height:17px; margin:0; display:block; color:#8e9bad; font-size:9px; font-weight:550; }
.reimbursement-field-v2>.lookup-result:empty { display:none; }
.reimbursement-field-v2>.lookup-result.success { color:#288269; }
.reimbursement-field-v2>.lookup-result.error { color:#d75048; }
.reimbursement-account-tip-v2 { margin:0; padding:8px 10px; display:flex; align-items:center; gap:8px; border:1px solid #dce9f7; border-radius:9px; background:#f4f9ff; }
.reimbursement-account-tip-v2>i { width:25px; height:25px; display:grid; place-items:center; flex:0 0 25px; border-radius:8px; background:#deecfb; color:#4e7fbc; font-size:10px; font-style:normal; font-weight:850; }
.reimbursement-account-tip-v2>span { display:grid; gap:2px; }
.reimbursement-account-tip-v2 b { color:#55708f; font-size:10px; }
.reimbursement-account-tip-v2 small { color:#93a2b4; font-size:8px; }
.reimbursement-default-account-v2 { margin:-2px 0 9px; padding:14px 15px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px 16px; position:relative; overflow:hidden; border:1px solid #cbdcf0; border-radius:13px; background:linear-gradient(135deg,#f4f8ff 0%,#eaf3ff 52%,#e1edfb 100%); box-shadow:0 7px 18px rgba(60,99,153,.08); }
.reimbursement-default-account-v2::after { content:""; width:150px; height:150px; position:absolute; right:-52px; bottom:-82px; border:24px solid rgba(255,255,255,.08); border-radius:50%; pointer-events:none; }
.reimbursement-bank-mark-v2 { min-width:0; display:flex; align-items:center; gap:10px; color:#476b9c; }
.reimbursement-bank-mark-v2>i { width:37px; height:37px; display:grid; place-items:center; flex:0 0 37px; border:1px solid #bfd3ec; border-radius:11px; background:#fff; color:#567fb7; font-size:15px; font-style:normal; font-weight:800; }
.reimbursement-bank-mark-v2>span { display:grid; gap:2px; font-size:11px; font-weight:800; letter-spacing:.12em; }
.reimbursement-bank-mark-v2 small { color:#8194ae; font-size:8px; font-weight:550; letter-spacing:.02em; }
.reimbursement-default-account-v2 dl { grid-column:1/-1; margin:0; display:grid; grid-template-columns:.8fr 1.25fr 1fr; gap:16px; }
.reimbursement-default-account-v2 dl>div { min-width:0; display:grid; gap:4px; }
.reimbursement-default-account-v2 dt { color:#8092aa; font-size:8px; font-weight:550; }
.reimbursement-default-account-v2 dd { margin:0; overflow:hidden; color:#425d80; font-size:11px; font-weight:750; text-overflow:ellipsis; white-space:nowrap; }
.reimbursement-account-edit-v2 { min-height:34px; padding:0 12px; position:relative; z-index:1; border:1px solid #b9cfea; border-radius:9px; background:#fff; color:#5279ad; font-size:9px; font-weight:760; }
.reimbursement-account-edit-v2:hover { border-color:#8dacd4; background:#f8fbff; color:#3e679e; }
.reimbursement-account-edit-v2:disabled { opacity:.55; cursor:not-allowed; }
.reimbursement-default-account-v2.is-empty { background:linear-gradient(135deg,#f5f8fc,#e9f0f8); }
.reimbursement-account-line-v2 { min-height:52px; padding:9px 10px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; border:1px solid #d2e0f0; border-radius:11px; background:#f3f7fd; }
.reimbursement-account-line-v2>i { width:31px; height:31px; display:grid; place-items:center; border-radius:9px; background:#e2ecf9; color:#5d81b2; font-size:10px; font-style:normal; font-weight:800; }
.reimbursement-account-line-v2 dl { min-width:0; margin:0; display:grid; grid-template-columns:.75fr 1.25fr 1fr; gap:12px; }
.reimbursement-account-line-v2 dl>div { min-width:0; display:flex; align-items:center; gap:5px; }
.reimbursement-account-line-v2 dt { flex:0 0 auto; color:#8a99ac; font-size:8px; font-weight:550; }
.reimbursement-account-line-v2 dd { min-width:0; margin:0; overflow:hidden; color:#4c6482; font-size:9px; font-weight:720; text-overflow:ellipsis; white-space:nowrap; }
.reimbursement-account-line-v2 .reimbursement-account-edit-v2 { min-height:28px; padding:0 8px; border:0; background:transparent; color:#527bb1; }
.reimbursement-account-line-v2 .reimbursement-account-edit-v2:hover { background:#e7f0fb; }
.reimbursement-account-modal-v2 .modal-body { display:grid; gap:14px; }
.reimbursement-account-modal-v2 .modal-body>p { margin:0; padding:10px 12px; border-radius:10px; background:#f1f6fd; color:#6e819a; font-size:10px; line-height:1.65; }
.reimbursement-account-modal-v2 .modal-body label { display:grid; gap:7px; color:#53667f; font-size:11px; font-weight:720; }
.reimbursement-account-modal-v2 .modal-body label em { margin-right:3px; color:#df554b; font-style:normal; }
.reimbursement-account-modal-v2 .form-control { min-height:43px; border-color:#dce6f2; border-radius:10px; background:#fbfdff; color:#405571; font-size:12px; }

.reimbursement-dropzone-v2 { min-height:78px; padding:13px 15px; display:flex; align-items:center; gap:11px; position:relative; border:1px dashed #aac0dc; border-radius:12px; background:linear-gradient(135deg,#f8fbff,#f3f8ff); cursor:pointer; transition:.18s ease; }
.reimbursement-dropzone-v2:hover { border-color:#6f98ce; background:#f0f6ff; }
.reimbursement-dropzone-v2 input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.reimbursement-dropzone-v2>i { width:34px; height:34px; display:grid; place-items:center; flex:0 0 34px; border-radius:9px; background:#e2edfb; color:#5682c2; font-size:18px; font-style:normal; font-weight:400; }
.reimbursement-dropzone-v2>span { min-width:0; display:grid; gap:4px; }
.reimbursement-dropzone-v2 b { color:#49617f; font-size:12px; }
.reimbursement-dropzone-v2 small { color:#91a0b3; font-size:9px; }
.reimbursement-dropzone-v2>u { margin-left:auto; padding:7px 11px; border:1px solid #c5d6ea; border-radius:8px; background:#fff; color:#557dad; font-size:9px; font-weight:750; text-decoration:none; white-space:nowrap; }
.reimbursement-file-list-v2 { margin-top:10px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.reimbursement-file-list-v2>.is-empty { grid-column:1/-1; min-height:38px; display:flex; align-items:center; justify-content:center; gap:7px; color:#9aa7b6; font-size:9px; }
.reimbursement-file-list-v2>.is-empty i { width:20px; height:20px; display:grid; place-items:center; border-radius:6px; background:#f0f4f8; color:#869bb5; font-size:8px; font-style:normal; }
.reimbursement-file-list-v2>article { min-width:0; padding:8px 9px; display:flex; align-items:center; gap:8px; border:1px solid #e4ebf3; border-radius:10px; background:#fbfdff; }
.reimbursement-file-list-v2>article>i { width:25px; height:25px; display:grid; place-items:center; flex:0 0 25px; border-radius:7px; background:#e9f1fb; color:#6084b5; font-size:8px; font-style:normal; font-weight:800; }
.reimbursement-file-list-v2>article>span { min-width:0; display:grid; gap:2px; }
.reimbursement-file-list-v2>article b { overflow:hidden; color:#52657e; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.reimbursement-file-list-v2>article small { color:#9aa7b6; font-size:8px; }

/* Keep the application area clean: white content with subtle system-tone headings. */
.reimbursement-form-main-v2 {
    border-radius:14px;
    background:#fff;
}
.reimbursement-form-main-v2 .reimbursement-card-heading-v2 {
    padding:7px 9px;
    border-radius:9px;
    background:#f3f7fd;
}
.reimbursement-form-main-v2 .reimbursement-hierarchy-v2 {
    display:none;
}
.reimbursement-form-main-v2 .reimbursement-form-card-v2,
.reimbursement-form-main-v2 .reimbursement-card-heading-v2>i,
.reimbursement-form-main-v2 .reimbursement-allocation-option-v2,
.reimbursement-form-main-v2 .reimbursement-allocation-option-v2:hover,
.reimbursement-form-main-v2 .reimbursement-allocation-option-v2.is-selected,
.reimbursement-form-main-v2 .reimbursement-allocation-option-v2>i,
.reimbursement-form-main-v2 .reimbursement-allocation-option-v2.is-selected>i,
.reimbursement-form-main-v2 .reimbursement-allocation-option-v2.is-selected>u,
.reimbursement-form-main-v2 .allocation-fields,
.reimbursement-form-main-v2 .reimbursement-hierarchy-v2,
.reimbursement-form-main-v2 .reimbursement-order-lookup .btn-light-custom,
.reimbursement-form-main-v2 .reimbursement-account-line-v2,
.reimbursement-form-main-v2 .reimbursement-account-line-v2>i,
.reimbursement-form-main-v2 .reimbursement-account-line-v2 .reimbursement-account-edit-v2:hover,
.reimbursement-form-main-v2 .reimbursement-dropzone-v2,
.reimbursement-form-main-v2 .reimbursement-dropzone-v2:hover,
.reimbursement-form-main-v2 .reimbursement-dropzone-v2>i,
.reimbursement-form-main-v2 .reimbursement-dropzone-v2>u,
.reimbursement-form-main-v2 .reimbursement-file-list-v2>.is-empty i,
.reimbursement-form-main-v2 .reimbursement-file-list-v2>article,
.reimbursement-form-main-v2 .reimbursement-file-list-v2>article>i {
    background:transparent;
}
.reimbursement-form-main-v2 .reimbursement-field-v2 .form-control,
.reimbursement-form-main-v2 .reimbursement-field-v2 .form-select {
    background-color:transparent;
}
.reimbursement-form-main-v2 .reimbursement-allocation-option-v2.is-selected>i {
    color:#5b85c3;
}
.reimbursement-form-main-v2 .reimbursement-form-card-v2,
.reimbursement-form-main-v2 .reimbursement-allocation-option-v2.is-selected {
    box-shadow:none;
}

.reimbursement-summary-rail-v2 { min-width:0; position:static; display:grid; grid-template-columns:1fr; gap:10px; }
.reimbursement-summary-card-v2,
.reimbursement-checklist-v2 { overflow:hidden; border:1px solid #dde7f3; border-radius:17px; background:#fff; box-shadow:0 10px 30px rgba(50,76,111,.05); }
.reimbursement-summary-card-v2 { display:grid; grid-template-columns:145px minmax(0,1fr); }
.reimbursement-summary-card-v2>header { grid-column:1/-1; min-height:40px; padding:0 14px; display:flex; align-items:center; border-bottom:1px solid #e7edf5; background:#f8fbff; }
.reimbursement-summary-card-v2>header span { color:#435976; font-size:12px; font-weight:800; }
.reimbursement-summary-card-v2>header i { margin-left:auto; padding:4px 7px; border-radius:999px; background:#eaf2fd; color:#6184b5; font-size:8px; font-style:normal; font-weight:750; }
.reimbursement-summary-amount-v2 { padding:15px; display:grid; align-content:center; gap:4px; border-right:1px solid #e8eef5; background:linear-gradient(135deg,#f4f8ff,#fff); }
.reimbursement-summary-amount-v2 small { color:#8d9bae; font-size:9px; }
.reimbursement-summary-amount-v2 strong { overflow:hidden; color:#365f97; font-size:22px; font-weight:820; letter-spacing:-.025em; text-overflow:ellipsis; }
.reimbursement-summary-list-v2 { margin:0; padding:7px 14px; display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
.reimbursement-summary-list-v2>div { min-height:35px; display:grid; grid-template-columns:55px minmax(0,1fr); align-items:center; gap:6px; border-bottom:1px dashed #e4ebf3; }
.reimbursement-summary-list-v2>div:last-child { border-bottom:0; }
.reimbursement-summary-list-v2 dt { color:#96a3b3; font-size:9px; font-weight:600; }
.reimbursement-summary-list-v2 dd { margin:0; overflow:hidden; color:#536780; font-size:9px; font-weight:720; text-align:right; text-overflow:ellipsis; white-space:nowrap; }
.reimbursement-summary-reason-v2 { grid-column:1/-1; margin:0 12px 12px; padding:9px 10px; border-radius:9px; background:#f6f8fb; }
.reimbursement-summary-reason-v2 span { color:#8c9aac; font-size:8px; }
.reimbursement-summary-reason-v2 p { max-height:56px; margin:5px 0 0; overflow:hidden; color:#63758c; font-size:9px; line-height:1.6; }
.reimbursement-process-footer-v2 { margin-top:10px; padding:10px 12px; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:12px; border:1px solid #dce7f4; border-radius:12px; background:#f7faff; }
.reimbursement-process-footer-v2>span { color:#6d819e; font-size:9px; font-weight:750; white-space:nowrap; }
.reimbursement-checklist-v2 { padding:16px; }
.reimbursement-checklist-v2>strong { color:#465c77; font-size:11px; }
.reimbursement-checklist-v2 ul { margin:12px 0 0; padding:0; display:grid; gap:10px; list-style:none; }
.reimbursement-checklist-v2 li { display:flex; align-items:center; gap:8px; color:#718198; font-size:9px; }
.reimbursement-checklist-v2 li i { width:19px; height:19px; display:grid; place-items:center; flex:0 0 19px; border-radius:6px; background:#edf3fb; color:#6988b3; font-size:8px; font-style:normal; font-weight:800; }
.reimbursement-checklist-v2>p { margin:13px 0 0; padding-top:11px; border-top:1px solid #e8edf4; color:#99a5b4; font-size:8px; line-height:1.65; }
.reimbursement-submit-bar-v2 { min-height:58px; margin-top:10px; padding:9px 11px 9px 13px; display:flex; align-items:center; gap:8px; position:sticky; bottom:0; z-index:5; border:1px solid #dce6f2; border-radius:13px; background:rgba(255,255,255,.94); box-shadow:0 -6px 22px rgba(45,69,103,.07); backdrop-filter:blur(14px); }
.reimbursement-submit-bar-v2>div { margin-right:auto; display:flex; align-items:center; gap:9px; }
.reimbursement-submit-bar-v2>div>i { width:28px; height:28px; display:grid; place-items:center; border-radius:9px; background:#e8f1fc; color:#557fb7; font-size:10px; font-style:normal; font-weight:800; }
.reimbursement-submit-bar-v2>div>span { display:grid; gap:2px; }
.reimbursement-submit-bar-v2>div b { color:#53677f; font-size:9px; }
.reimbursement-submit-bar-v2>div small { color:#9ca7b5; font-size:8px; }
.reimbursement-submit-bar-v2>a,
.reimbursement-submit-bar-v2>button { min-height:40px; padding:0 17px; display:inline-flex; align-items:center; justify-content:center; gap:11px; }
.reimbursement-submit-bar-v2>button { min-width:152px; border-radius:10px; background:linear-gradient(135deg,#658fd0,#4d77b7); box-shadow:0 8px 18px rgba(70,111,173,.2); }
.reimbursement-submit-bar-v2>button i { font-style:normal; font-size:14px; }
.reimbursement-submit-help-v2 { margin-right:auto; display:inline-flex; align-items:center; }

@media (max-width:1100px) {
    .reimbursement-form-layout-v2 { grid-template-columns:1fr; }
    .reimbursement-summary-rail-v2 { position:static; grid-template-columns:1fr 1fr; }
}
@media (max-width:760px) {
    body.taobao-system-theme .content-wrap > .reimbursement-workspace-v2 { width:100% !important; max-width:none !important; margin-right:0 !important; margin-left:0 !important; gap:11px; }
    .reimbursement-hero-v2 { min-height:0; padding:18px; grid-template-columns:1fr; gap:14px; border-radius:16px; }
    .reimbursement-hero-copy { align-items:flex-start; flex-direction:column; gap:10px; }
    .reimbursement-hero-title-v2 { display:grid; gap:4px; }
    .reimbursement-hero-side { display:block; }
    .reimbursement-hero-copy h1 { font-size:24px; }
    .reimbursement-hero-copy>p { font-size:11px; }
    .reimbursement-identity-v2 { width:100%; }
    .reimbursement-record-link { width:100%; justify-content:center; }
    .reimbursement-process-v2 { grid-template-columns:1fr; }
    .reimbursement-process-v2>div { min-height:48px; }
    .reimbursement-form-main-v2 { gap:11px; }
    .reimbursement-form-card-v2 { padding:18px 16px 19px; border-radius:15px; }
    .reimbursement-card-heading-v2 { align-items:flex-start; }
    .reimbursement-card-heading-v2>span { display:none; }
    .reimbursement-fields-v2,
    .reimbursement-fields-v2.three-columns { grid-template-columns:1fr; }
    .reimbursement-default-account-v2 { grid-template-columns:1fr; gap:14px; }
    .reimbursement-default-account-v2 dl { grid-template-columns:1fr; gap:10px; }
    .reimbursement-account-edit-v2 { width:100%; }
    .reimbursement-account-line-v2 { grid-template-columns:auto minmax(0,1fr) auto; }
    .reimbursement-account-line-v2 dl { grid-template-columns:1fr; gap:4px; }
    .reimbursement-account-line-v2 dl>div { justify-content:space-between; }
    .reimbursement-account-line-v2 .reimbursement-account-edit-v2 { width:auto; }
    .reimbursement-field-v2.wide { grid-column:auto; }
    .reimbursement-allocation-options-v2 { grid-template-columns:1fr 1fr; }
    .reimbursement-hierarchy-v2 { align-items:flex-start; flex-direction:column; gap:5px; }
    .reimbursement-hierarchy-v2>span { padding:0; border:0; }
    .reimbursement-hierarchy-v2>strong { white-space:normal; }
    .allocation-fields { padding:13px; }
    .reimbursement-order-lookup { grid-template-columns:1fr; }
    .reimbursement-order-lookup .btn-light-custom { width:100%; }
    .reimbursement-dropzone-v2 { align-items:flex-start; flex-wrap:wrap; }
    .reimbursement-dropzone-v2>u { width:100%; margin:0; text-align:center; }
    .reimbursement-file-list-v2 { grid-template-columns:1fr; }
    .reimbursement-summary-rail-v2 { grid-template-columns:1fr; }
    .reimbursement-process-footer-v2 { grid-template-columns:1fr; }
    .reimbursement-process-footer-v2 .reimbursement-process-v2 { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .reimbursement-submit-bar-v2 { padding:11px; flex-wrap:wrap; }
    .reimbursement-submit-bar-v2>div { width:100%; }
    .reimbursement-submit-bar-v2>a { flex:1; }
    .reimbursement-submit-bar-v2>button { flex:2; min-width:0; }
}

/* 内购单管理 2026-08：按原始表字段导入，按订单自动核对 */
.internal-purchase-workhead {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    min-height:74px;
    margin-bottom:10px;
    padding:12px 18px;
    border:1px solid #dfe8f4;
    border-radius:14px;
    background:#fff;
}
.internal-purchase-workhead h1 { margin:0; color:#263b59; font-size:22px; font-weight:760; }
.internal-purchase-workhead p { margin:4px 0 0; color:#8090a5; font-size:11px; }
.internal-purchase-hero {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    min-height:132px;
    margin-bottom:12px;
    padding:24px 28px;
    overflow:hidden;
    border:1px solid #dce8f8;
    border-radius:18px;
    background:
        radial-gradient(circle at 84% -40%, rgba(84,132,202,.20), transparent 38%),
        linear-gradient(135deg,#fafdff 0%,#f2f7ff 58%,#edf4fe 100%);
    box-shadow:0 13px 34px rgba(45,78,124,.08);
}
.internal-purchase-eyebrow {
    display:block;
    margin-bottom:4px;
    color:#5b82ba;
    font-size:10px;
    font-weight:750;
    letter-spacing:.16em;
}
.internal-purchase-hero h1 {
    margin:0;
    color:#263b59;
    font-size:27px;
    font-weight:760;
    letter-spacing:-.02em;
}
.internal-purchase-hero p {
    margin:8px 0 0;
    color:#71829a;
    font-size:13px;
}
.internal-purchase-hero-actions,
.internal-purchase-actions {
    display:flex;
    align-items:center;
    gap:9px;
}
.internal-purchase-hero-actions .btn-light-custom,
.internal-purchase-hero-actions .btn-primary-custom {
    min-height:40px;
    padding:8px 17px;
    border-radius:10px;
    font-size:13px;
    font-weight:650;
}
.internal-purchase-import-form input[type="file"] {
    position:absolute;
    width:1px;
    height:1px;
    opacity:0;
    pointer-events:none;
}
.internal-purchase-guide {
    display:grid;
    grid-template-columns:1fr auto 1.2fr auto 1fr;
    align-items:center;
    gap:14px;
    margin-bottom:12px;
    padding:13px 18px;
    border:1px solid #e1e9f4;
    border-radius:14px;
    background:#fff;
}
.internal-purchase-guide>div {
    display:flex;
    align-items:center;
    gap:11px;
    min-width:0;
}
.internal-purchase-guide i {
    display:grid;
    flex:0 0 28px;
    width:28px;
    height:28px;
    place-items:center;
    border-radius:9px;
    color:#4e7fbe;
    background:#edf4ff;
    font-size:11px;
    font-style:normal;
    font-weight:750;
}
.internal-purchase-guide span,
.internal-purchase-guide b,
.internal-purchase-guide small { display:block; min-width:0; }
.internal-purchase-guide b { color:#344a67; font-size:12px; font-weight:700; }
.internal-purchase-guide small {
    margin-top:3px;
    overflow:hidden;
    color:#8897aa;
    font-size:10px;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.internal-purchase-guide em { color:#b9c8dc; font-size:20px; font-style:normal; }
.internal-purchase-overview {
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:10px;
    margin-bottom:12px;
}
.internal-purchase-overview article {
    min-height:96px;
    padding:15px 17px;
    border:1px solid #dfe8f4;
    border-radius:14px;
    background:#fff;
    box-shadow:0 6px 18px rgba(48,75,111,.045);
}
.internal-purchase-overview article>span,
.internal-purchase-overview article>small { display:block; }
.internal-purchase-overview article>span { color:#74859b; font-size:11px; }
.internal-purchase-overview article>strong {
    display:block;
    margin-top:3px;
    color:#2f496b;
    font-family:"Bahnschrift","Segoe UI",sans-serif;
    font-size:22px;
    font-weight:700;
}
.internal-purchase-overview article>small { margin-top:3px; color:#9aa8b9; font-size:9px; }
.internal-purchase-overview article.is-warning {
    border-color:#f1d4c7;
    background:linear-gradient(145deg,#fff,#fff8f4);
}
.internal-purchase-overview article.is-warning>strong { color:#d75b35; }
.internal-purchase-query-card {
    margin-bottom:10px;
    padding:11px 13px;
}
.internal-purchase-query-form {
    display:flex;
    align-items:center;
    gap:8px;
}
.internal-purchase-search-box {
    display:flex;
    flex:1 1 320px;
    align-items:center;
    gap:8px;
    min-width:240px;
    height:38px;
    padding:0 12px;
    border:1px solid #dbe5f1;
    border-radius:9px;
    background:#fbfdff;
}
.internal-purchase-search-box>span { color:#6e8fb9; font-size:20px; line-height:1; transform:rotate(-18deg); }
.internal-purchase-search-box input {
    width:100%;
    min-width:0;
    border:0;
    outline:0;
    color:#32445e;
    background:transparent;
    font-size:12px;
}
.internal-purchase-query-form>.form-select {
    flex:0 0 145px;
    width:145px;
    height:38px;
    border-color:#dbe5f1;
    color:#425672;
    font-size:12px;
}
.internal-purchase-date {
    display:flex;
    align-items:center;
    gap:7px;
    height:38px;
    padding:0 9px;
    border:1px solid #dbe5f1;
    border-radius:9px;
    background:#fff;
}
.internal-purchase-date>span { color:#8291a5; font-size:10px; white-space:nowrap; }
.internal-purchase-date input { width:112px; border:0; outline:0; color:#425672; background:transparent; font-size:11px; }
.internal-purchase-date-separator { color:#a9b4c2; font-weight:400; }
.internal-purchase-query-form>.btn-primary-custom,
.internal-purchase-query-form>.btn-light-custom { min-height:38px; padding:8px 14px; white-space:nowrap; }
.internal-purchase-toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:10px;
    padding:9px 13px;
}
.internal-purchase-status-tabs {
    display:flex;
    align-items:center;
    gap:3px;
    min-width:0;
    overflow-x:auto;
}
.internal-purchase-status-tabs a {
    display:flex;
    align-items:center;
    gap:5px;
    padding:7px 10px;
    border-radius:8px;
    color:#718197;
    font-size:11px;
    white-space:nowrap;
}
.internal-purchase-status-tabs a b {
    min-width:18px;
    padding:2px 5px;
    border-radius:8px;
    color:#8090a5;
    background:#f0f4f9;
    font-size:9px;
    text-align:center;
}
.internal-purchase-status-tabs a.active {
    color:#3f72b5;
    background:#eaf2ff;
    font-weight:700;
}
.internal-purchase-status-tabs a.active b { color:#fff; background:#5986c3; }
.internal-purchase-actions .btn-light-custom { min-height:32px; padding:6px 11px; font-size:11px; white-space:nowrap; }
.internal-purchase-danger { color:#cf4c4f !important; }
.internal-purchase-table-card { overflow:hidden; }
.internal-purchase-table-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    min-height:52px;
    padding:0 17px;
    border-bottom:1px solid #e5ebf3;
}
.internal-purchase-table-head>div { display:flex; align-items:baseline; gap:8px; }
.internal-purchase-table-head h2 { margin:0; color:#304762; font-size:15px; font-weight:730; }
.internal-purchase-table-head span,
.internal-purchase-table-head p { margin:0; color:#94a1b2; font-size:10px; }
.internal-purchase-table-scroll { max-height:calc(100vh - 410px); min-height:220px; overflow:auto; }
.internal-purchase-table { min-width:2300px; table-layout:fixed; }
.internal-purchase-table th,
.internal-purchase-table td {
    padding:11px 12px;
    vertical-align:middle;
    border-bottom:1px solid #e8edf4;
    color:#465970;
    font-size:11px;
}
.internal-purchase-table thead th {
    position:sticky;
    top:0;
    z-index:4;
    height:42px;
    color:#667b96;
    background:#f5f8fc;
    font-size:10px;
    font-weight:680;
    white-space:nowrap;
}
.internal-purchase-table th:nth-child(1),.internal-purchase-table td:nth-child(1){width:42px}
.internal-purchase-table th:nth-child(2),.internal-purchase-table td:nth-child(2){width:50px}
.internal-purchase-table th:nth-child(3),.internal-purchase-table td:nth-child(3){width:180px}
.internal-purchase-table th:nth-child(4),.internal-purchase-table td:nth-child(4){width:115px}
.internal-purchase-table th:nth-child(5),.internal-purchase-table td:nth-child(5){width:100px}
.internal-purchase-table th:nth-child(6),.internal-purchase-table td:nth-child(6){width:175px}
.internal-purchase-table th:nth-child(7),.internal-purchase-table td:nth-child(7){width:220px}
.internal-purchase-table th:nth-child(8),.internal-purchase-table td:nth-child(8){width:130px}
.internal-purchase-table th:nth-child(9),.internal-purchase-table td:nth-child(9){width:115px}
.internal-purchase-table th:nth-child(10),.internal-purchase-table td:nth-child(10){width:165px}
.internal-purchase-table th:nth-child(11),.internal-purchase-table td:nth-child(11){width:135px}
.internal-purchase-table th:nth-child(12),.internal-purchase-table td:nth-child(12){width:90px}
.internal-purchase-table th:nth-child(13),.internal-purchase-table td:nth-child(13){width:210px}
.internal-purchase-table th:nth-child(14),.internal-purchase-table td:nth-child(14){width:145px}
.internal-purchase-table th:nth-child(15),.internal-purchase-table td:nth-child(15){width:220px}
.internal-purchase-table tbody tr { height:64px; cursor:pointer; transition:background .16s ease; }
.internal-purchase-table tbody tr:hover { background:#f8fbff; }
.internal-purchase-table tbody tr.internal-purchase-pending-row { box-shadow:inset 3px 0 #e47c5d; }
.internal-purchase-table td strong {
    display:block;
    overflow:hidden;
    color:#304660;
    font-size:11px;
    font-weight:680;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.internal-purchase-table td small {
    display:block;
    margin-top:3px;
    overflow:hidden;
    color:#9aa8b8;
    font-size:9px;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.internal-purchase-table .internal-money { font-variant-numeric:tabular-nums; text-align:right; }
.internal-purchase-table .internal-money strong { font-family:"Bahnschrift","Segoe UI",sans-serif; }
.internal-summary-text { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.internal-platform-badge,
.internal-reconcile-status {
    display:inline-flex;
    align-items:center;
    min-height:23px;
    padding:3px 8px;
    border-radius:9px;
    color:#4876ae;
    background:#edf4fd;
    font-size:9px;
    font-weight:680;
    white-space:nowrap;
}
.internal-reconcile-status { color:#b64942; background:#fff0ed; }
.internal-reconcile-status.matched { color:#16805e; background:#e9f7f1; }
.internal-reconcile-status.amount_mismatch { color:#c75b23; background:#fff2e8; }
.internal-purchase-error { color:#d45543 !important; }
.internal-purchase-table tfoot td {
    position:sticky;
    bottom:0;
    z-index:3;
    height:44px;
    border-top:1px solid #dbe4ef;
    border-bottom:0;
    color:#3e5878;
    background:#fafdff;
    font-weight:680;
}
.internal-purchase-pagination { justify-content:center; gap:18px; margin-top:10px; }
.internal-purchase-form-note {
    margin-bottom:15px;
    padding:10px 12px;
    border:1px solid #d9e6f5;
    border-radius:10px;
    color:#58708e;
    background:#f3f8ff;
    font-size:11px;
}
.internal-purchase-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.internal-purchase-form-grid .form-field-wide { grid-column:1 / -1; }
#internalPurchaseModal .modal-dialog:has(.management-modal.is-crud-form-modal) {
    height:auto;
    max-height:calc(100vh - 32px);
}
#internalPurchaseModal .management-modal.is-crud-form-modal {
    height:auto;
    max-height:calc(100vh - 32px);
}
#internalPurchaseModal .management-modal.is-crud-form-modal .modal-body { flex:0 1 auto; }

@media (max-width:1400px) {
    .internal-purchase-query-form { flex-wrap:wrap; }
    .internal-purchase-search-box { flex-basis:100%; }
    .internal-purchase-table-scroll { max-height:calc(100vh - 400px); }
}

/* 内购结算 2026-08-31：商家主档、批量付款与结算查询 */
.internal-purchase-overview-compact article { min-height:78px; padding:11px 15px; }
.internal-purchase-toolbar-stacked { align-items:stretch; flex-direction:column; gap:7px; }
.internal-purchase-toolbar-row { display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid #edf1f6; padding-top:7px; }
.internal-purchase-reconcile-tabs a { padding:5px 8px; }
.internal-purchase-actions .form-select { width:156px; min-height:32px; padding:4px 28px 4px 9px; font-size:11px; }
.internal-purchase-table-redesigned { width:1960px; min-width:1960px; }
body.taobao-system-theme .internal-purchase-table-redesigned th:nth-child(1),body.taobao-system-theme .internal-purchase-table-redesigned td:nth-child(1){width:34px;padding-right:3px;padding-left:7px}
body.taobao-system-theme .internal-purchase-table-redesigned th:nth-child(2),body.taobao-system-theme .internal-purchase-table-redesigned td:nth-child(2){width:36px;padding-right:4px;padding-left:3px;text-align:left}
body.taobao-system-theme .internal-purchase-table-redesigned th:nth-child(3),body.taobao-system-theme .internal-purchase-table-redesigned td:nth-child(3){width:240px;padding-left:8px}
body.taobao-system-theme .internal-purchase-table-redesigned th:nth-child(4),body.taobao-system-theme .internal-purchase-table-redesigned td:nth-child(4){width:100px}
body.taobao-system-theme .internal-purchase-table-redesigned th:nth-child(5),body.taobao-system-theme .internal-purchase-table-redesigned td:nth-child(5){width:90px}
body.taobao-system-theme .internal-purchase-table-redesigned th:nth-child(6),body.taobao-system-theme .internal-purchase-table-redesigned td:nth-child(6){width:110px}
body.taobao-system-theme .internal-purchase-table-redesigned th:nth-child(7),body.taobao-system-theme .internal-purchase-table-redesigned td:nth-child(7){width:190px}
body.taobao-system-theme .internal-purchase-table-redesigned th:nth-child(8),body.taobao-system-theme .internal-purchase-table-redesigned td:nth-child(8){width:205px}
body.taobao-system-theme .internal-purchase-table-redesigned th:nth-child(9),body.taobao-system-theme .internal-purchase-table-redesigned td:nth-child(9){width:150px}
body.taobao-system-theme .internal-purchase-table-redesigned th:nth-child(10),body.taobao-system-theme .internal-purchase-table-redesigned td:nth-child(10){width:205px}
body.taobao-system-theme .internal-purchase-table-redesigned th:nth-child(11),body.taobao-system-theme .internal-purchase-table-redesigned td:nth-child(11){width:150px}
body.taobao-system-theme .internal-purchase-table-redesigned th:nth-child(12),body.taobao-system-theme .internal-purchase-table-redesigned td:nth-child(12){width:108px}
body.taobao-system-theme .internal-purchase-table-redesigned th:nth-child(13),body.taobao-system-theme .internal-purchase-table-redesigned td:nth-child(13){width:150px}
body.taobao-system-theme .internal-purchase-table-redesigned th:nth-child(14),body.taobao-system-theme .internal-purchase-table-redesigned td:nth-child(14){width:190px}
.internal-purchase-table-redesigned .internal-order-number {
    overflow:visible;
    font-variant-numeric:tabular-nums;
    text-overflow:clip;
    white-space:nowrap;
}
.internal-purchase-table-redesigned .internal-money-left { text-align:left; }
.internal-purchase-table-redesigned .internal-payable-total strong { color:#d45a36; }
.internal-reconcile-status.ignored { color:#6d63a9; background:#f0edfb; }
.internal-payment-status { display:inline-flex; align-items:center; min-height:24px; padding:3px 9px; border-radius:10px; font-size:10px; font-weight:700; white-space:nowrap; }
.internal-payment-status.unbatched { color:#75869a; background:#eef2f6; }
.internal-payment-status.pending { color:#a76816; background:#fff3dc; }
.internal-payment-status.paid { color:#16805e; background:#e7f7f0; }
.internal-merchant-create { margin-bottom:12px; overflow:hidden; }
.internal-merchant-form { display:grid; grid-template-columns:repeat(6,minmax(130px,1fr)); align-items:end; gap:10px; padding:14px 17px; }
.internal-merchant-form label>span { display:block; margin-bottom:5px; color:#6f8096; font-size:10px; font-weight:650; }
.internal-merchant-form .form-control,.internal-merchant-form .form-select { height:38px; font-size:11px; }
.internal-merchant-form .internal-merchant-note { grid-column:span 2; }
.internal-merchant-form>.btn-primary-custom { min-height:38px; }
.internal-merchant-table td { vertical-align:middle; }
.internal-merchant-table td strong,.internal-merchant-table td small { display:block; }
.internal-merchant-table td small { margin-top:3px; color:#8d9aab; font-size:10px; }
.internal-merchant-edit-row td { padding:0 !important; background:#f8fbff; }
.internal-payment-boundary { margin-bottom:10px; padding:9px 13px; border:1px solid #d8e5f5; border-radius:10px; color:#56708e; background:#f4f8fe; font-size:11px; }
.internal-payment-query { display:flex; align-items:center; justify-content:space-between; }
.internal-payment-search { display:flex; align-items:center; gap:8px; }
.internal-payment-search .form-control { width:250px; height:34px; font-size:11px; }
.internal-payment-search .btn-primary-custom { min-height:34px; padding:6px 14px; }
.internal-payment-batch-table tr.is-selected td { background:#f1f7ff; }
.internal-payment-batch-table td strong,.internal-payment-detail td strong { display:block; }
.internal-payment-batch-table td small,.internal-payment-detail td small { display:block; margin-top:3px; color:#8d9aab; font-size:10px; }
.internal-payment-voucher-button { min-height:30px; padding:5px 10px; white-space:nowrap; }
.internal-payment-voucher-empty { color:#a1adba; }
.internal-payment-voucher-modal .modal-body { padding:16px; overflow:auto; background:#f4f7fb; }
.internal-payment-voucher-modal img { display:block; width:100%; height:auto; margin:auto; border:1px solid #dce5ef; background:#fff; box-shadow:0 8px 24px rgba(43,68,96,.1); }
.internal-payment-detail { margin-top:12px; overflow:hidden; }
.internal-payment-detail-actions { display:flex !important; align-items:center !important; gap:8px !important; }
.internal-payment-ledger-head { margin-top:10px; border-top:1px solid #e1e9f2; }
.internal-purchase-table-scroll { max-height:calc(100vh - 335px); }

/* 内购单管理 2026-09-03：与利润订单一致的订单头 + 商品明细分组视图 */
.internal-purchase-order-board {
    height:100%;
    max-height:100%;
    border:0;
    border-radius:0;
}
.internal-purchase-order-table {
    min-width:1600px;
}
.internal-purchase-order-table col:nth-child(1){width:38px}
.internal-purchase-order-table col:nth-child(2){width:330px}
.internal-purchase-order-table col:nth-child(3){width:110px}
.internal-purchase-order-table col:nth-child(4){width:100px}
.internal-purchase-order-table col:nth-child(5){width:145px}
.internal-purchase-order-table col:nth-child(6){width:105px}
.internal-purchase-order-table col:nth-child(7){width:165px}
.internal-purchase-order-table col:nth-child(8){width:85px}
.internal-purchase-order-table col:nth-child(9){width:80px}
.internal-purchase-order-table col:nth-child(10){width:100px}
.internal-purchase-order-table col:nth-child(11){width:190px}
.internal-purchase-order-table col:nth-child(12){width:150px}
.internal-purchase-order-table thead th {
    position:sticky;
    top:0;
    z-index:5;
}
.internal-purchase-order-table th:nth-child(1),
.internal-purchase-order-table td:nth-child(1){text-align:center}
.internal-purchase-order-table th:nth-child(3){text-align:right}
.internal-purchase-order-table th:nth-child(7),
.internal-purchase-order-table th:nth-child(9){text-align:left}
.internal-purchase-order-group.is-pending .analysis-order-clean-meta td:first-child {
    box-shadow:inset 3px 0 #e47c5d;
}
.internal-purchase-order-meta > strong > span {
    display:inline-block;
    max-width:240px;
    overflow:hidden;
    vertical-align:bottom;
    text-overflow:ellipsis;
}
.internal-purchase-order-meta em > span {
    display:inline-block;
    max-width:260px;
    overflow:hidden;
    vertical-align:bottom;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.internal-purchase-order-sequence {
    color:#60748c;
    font-variant-numeric:tabular-nums;
}
.internal-purchase-order-child { min-height:86px; }
.internal-purchase-order-child .analysis-order-clean-product strong,
.internal-purchase-order-child .analysis-order-clean-product small,
.internal-purchase-order-child .analysis-order-clean-shipping span,
.internal-purchase-order-child .analysis-order-clean-common small {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.internal-purchase-order-child .analysis-order-clean-common {
    vertical-align:top !important;
}
.internal-purchase-order-child .analysis-order-clean-common > :first-child { margin-top:0; }
.internal-purchase-order-amount strong,
.internal-purchase-order-amount small { font-variant-numeric:tabular-nums; }
.internal-purchase-order-payable { margin-top:7px; color:#d45a36 !important; }
.internal-purchase-order-table tfoot td {
    position:sticky;
    bottom:0;
    z-index:4;
    padding:9px 10px;
    border-top:1px solid #dbe4ef;
    color:#3e5878;
    background:#fafdff;
    font-weight:680;
}
.internal-purchase-order-table tfoot small { display:block; margin-top:2px; }
.internal-purchase-raw-scroll { overflow:auto; }
@media (max-width:1280px) {
    .internal-purchase-order-table { min-width:1540px; }
    .internal-purchase-order-table col:nth-child(2){width:300px}
    .internal-purchase-order-meta { gap:12px; }
}
@media (max-width:1450px) {
    .internal-purchase-workhead { align-items:flex-start; flex-direction:column; }
    .internal-purchase-toolbar-row { align-items:flex-start; flex-direction:column; }
    .internal-purchase-actions { flex-wrap:wrap; }
    .internal-merchant-form { grid-template-columns:repeat(3,minmax(150px,1fr)); }
}
@media (max-width:900px) {
    .internal-purchase-hero { align-items:flex-start; flex-direction:column; padding:20px; }
    .internal-purchase-hero-actions { width:100%; }
    .internal-purchase-hero-actions>* { flex:1; }
    .internal-purchase-hero-actions button { width:100%; }
    .internal-purchase-guide { grid-template-columns:1fr; }
    .internal-purchase-guide>em { display:none; }
    .internal-purchase-overview { display:flex; overflow-x:auto; }
    .internal-purchase-overview article { flex:0 0 180px; }
    .internal-purchase-toolbar { align-items:stretch; flex-direction:column; }
    .internal-purchase-actions { justify-content:flex-end; }
    .internal-purchase-table-head>p { display:none; }
}
@media (max-width:620px) {
    .internal-purchase-hero-actions { flex-direction:column; }
    .internal-purchase-query-form>.form-select,
    .internal-purchase-date { flex:1 1 calc(50% - 8px); width:auto; }
    .internal-purchase-date-separator { display:none; }
    .internal-purchase-date input { width:100%; }
    .internal-purchase-query-form>.btn-primary-custom,
    .internal-purchase-query-form>.btn-light-custom { flex:1; text-align:center; }
    .internal-purchase-form-grid { grid-template-columns:1fr; }
    .internal-purchase-form-grid .form-field-wide { grid-column:auto; }
}

/* Reimbursement flow, progress and audit log */
.self-reimbursement-shell-v3 {
    width:min(1080px, 100%);
    margin:0 auto;
    color:#263a59;
}
@media (min-width:901px) {
    body.taobao-system-theme .content-wrap>.self-reimbursement-shell-v3 {
        width:min(1080px, 100%) !important;
        max-width:1080px !important;
        margin-right:auto !important;
        margin-left:auto !important;
    }
}
.self-reimbursement-head-v3 {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding:22px 26px;
    margin-bottom:16px;
    border:1px solid #dbe7f6;
    border-radius:20px;
    background:linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
    box-shadow:0 16px 38px rgba(63, 99, 147, .08);
}
.self-reimbursement-kicker-v3 {
    display:block;
    margin-bottom:3px;
    color:#5b87c9;
    font-size:11px;
    font-weight:800;
    letter-spacing:.14em;
}
.self-reimbursement-head-v3 h1 { margin:0; font-size:26px; font-weight:750; letter-spacing:-.03em; }
.self-reimbursement-head-v3 p { margin:5px 0 0; color:#7c8da7; font-size:13px; }
.self-reimbursement-list-v3 { display:grid; gap:16px; }
.self-reimbursement-card-v3 {
    overflow:hidden;
    border:1px solid #dbe6f4;
    border-radius:20px;
    background:#fff;
    box-shadow:0 14px 34px rgba(58, 91, 136, .07);
}
.self-reimbursement-card-v3[data-status="已驳回"] { border-color:#f2d5d5; }
.self-reimbursement-card-head-v3 {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:20px 24px 16px;
    border-bottom:1px solid #edf2f8;
}
.self-reimbursement-card-head-v3>div:first-child { display:grid; gap:4px; }
.self-reimbursement-card-head-v3 small { color:#91a0b5; font-size:12px; }
.self-reimbursement-number-v3 { color:#315783; font-size:15px; font-weight:800; letter-spacing:.02em; }
.self-reimbursement-amount-v3 { display:flex; align-items:center; gap:12px; }
.self-reimbursement-amount-v3>strong { color:#243a5a; font-size:24px; font-variant-numeric:tabular-nums; }
.reimbursement-status-v3 {
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:0 11px;
    border-radius:999px;
    color:#3569a9;
    background:#eaf3ff;
    font-size:12px;
    font-weight:750;
}
.self-reimbursement-card-v3[data-status="已付款"] .reimbursement-status-v3 { color:#28795a; background:#e6f7ef; }
.self-reimbursement-card-v3[data-status="已驳回"] .reimbursement-status-v3 { color:#b94c4c; background:#fff0ef; }
.self-reimbursement-meta-v3 {
    display:grid;
    grid-template-columns:.8fr 1.15fr 1.5fr .75fr;
    gap:0;
    margin:0 24px;
    padding:17px 0;
    border-bottom:1px solid #edf2f8;
}
.self-reimbursement-meta-v3>div { min-width:0; padding:0 16px; border-left:1px solid #edf2f8; }
.self-reimbursement-meta-v3>div:first-child { padding-left:0; border-left:0; }
.self-reimbursement-meta-v3 small,
.self-reimbursement-reason-v3>small { display:block; margin-bottom:6px; color:#93a1b4; font-size:11px; }
.self-reimbursement-meta-v3 strong { display:block; overflow:hidden; color:#344967; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.self-reimbursement-meta-v3 a { color:#4f7fbe; text-decoration:none; }
.self-reimbursement-reason-v3 { padding:16px 24px 4px; }
.self-reimbursement-reason-v3 p { margin:0; color:#344967; font-size:14px; line-height:1.65; }
.self-reimbursement-reason-v3>span { display:block; margin-top:7px; color:#8b6a42; font-size:12px; }
.reimbursement-progress-v3 { padding:18px 24px 20px; }
.reimbursement-progress-v3>header { display:flex; justify-content:space-between; margin-bottom:10px; }
.reimbursement-progress-v3>header strong { font-size:14px; }
.reimbursement-progress-v3>header span { color:#6484ae; font-size:12px; font-weight:700; }
.reimbursement-progress-track-v3 { overflow:hidden; height:5px; border-radius:999px; background:#e9f0f8; }
.reimbursement-progress-track-v3>i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg, #6f9bd5, #497cc2); transition:width .25s ease; }
.self-reimbursement-card-v3[data-status="已驳回"] .reimbursement-progress-track-v3>i { background:#d77b75; }
.reimbursement-progress-steps-v3 { display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; padding-top:14px; }
.reimbursement-progress-steps-v3>article,
.reimbursement-review-progress-v3>article { display:flex; align-items:flex-start; gap:10px; min-width:0; }
.reimbursement-progress-steps-v3>article>i,
.reimbursement-review-progress-v3>article>i {
    display:grid;
    flex:0 0 26px;
    place-items:center;
    width:26px;
    height:26px;
    border-radius:50%;
    color:#8c9bb0;
    background:#edf2f7;
    font-size:11px;
    font-style:normal;
    font-weight:800;
}
.reimbursement-progress-steps-v3 .is-done>i,
.reimbursement-review-progress-v3 .is-done>i { color:#fff; background:#5686c8; }
.reimbursement-progress-steps-v3 .is-current>i,
.reimbursement-review-progress-v3 .is-current>i { color:#3569a9; background:#e4effe; box-shadow:0 0 0 4px #f2f7ff; }
.reimbursement-progress-steps-v3 .is-rejected>i,
.reimbursement-review-progress-v3 .is-rejected>i { color:#fff; background:#cb6963; }
.reimbursement-progress-steps-v3 article>div,
.reimbursement-review-progress-v3 article>div { display:grid; min-width:0; gap:2px; }
.reimbursement-progress-steps-v3 strong,
.reimbursement-review-progress-v3 strong { color:#304765; font-size:13px; }
.reimbursement-progress-steps-v3 span,
.reimbursement-review-progress-v3 span { overflow:hidden; color:#71839b; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.reimbursement-progress-steps-v3 small,
.reimbursement-review-progress-v3 small { color:#a0acbc; font-size:10px; }
.reimbursement-log-panel-v3 { border-top:1px solid #e7eef7; background:#f8fbff; }
.reimbursement-log-panel-v3>summary {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:14px 24px;
    cursor:pointer;
    list-style:none;
}
.reimbursement-log-panel-v3>summary::-webkit-details-marker { display:none; }
.reimbursement-log-panel-v3>summary>span { display:grid; gap:2px; }
.reimbursement-log-panel-v3>summary strong { color:#365273; font-size:13px; }
.reimbursement-log-panel-v3>summary small { color:#98a6b8; font-size:10px; }
.reimbursement-log-panel-v3>summary em { color:#5e82b2; font-size:11px; font-style:normal; font-weight:700; }
.reimbursement-timeline-v3,
.reimbursement-review-logs-v3>div { display:grid; gap:0; padding:0 24px 18px; }
.reimbursement-timeline-v3>article,
.reimbursement-review-logs-v3 article { position:relative; display:grid; grid-template-columns:14px 1fr; gap:10px; padding:7px 0; }
.reimbursement-timeline-v3>article:not(:last-child)::after,
.reimbursement-review-logs-v3 article:not(:last-child)::after { content:""; position:absolute; top:20px; bottom:-6px; left:4px; width:1px; background:#d8e5f4; }
.reimbursement-timeline-v3>article>i,
.reimbursement-review-logs-v3 article>i { z-index:1; width:9px; height:9px; margin-top:5px; border:2px solid #d8e8fb; border-radius:50%; background:#5a89c8; }
.reimbursement-timeline-v3 article header,
.reimbursement-review-logs-v3 article header { display:flex; justify-content:space-between; gap:16px; }
.reimbursement-timeline-v3 article strong,
.reimbursement-review-logs-v3 article strong { color:#334b6a; font-size:12px; }
.reimbursement-timeline-v3 time,
.reimbursement-review-logs-v3 time { color:#9aa8b9; font-size:10px; }
.reimbursement-timeline-v3 p,
.reimbursement-review-logs-v3 p { margin:2px 0 0; color:#71839a; font-size:11px; }
.reimbursement-timeline-v3 article span,
.reimbursement-review-logs-v3 article span { display:block; margin-top:2px; color:#586d88; font-size:11px; }
.self-reimbursement-empty-v3 { padding:70px 24px; border:1px dashed #cfdded; border-radius:20px; text-align:center; background:#fff; }
.self-reimbursement-empty-v3 strong { color:#365273; }
.self-reimbursement-empty-v3 p { margin:8px 0 0; color:#8a9aae; font-size:13px; }
.self-reimbursement-shell-v3>.pagination-bar { margin-top:16px; border:1px solid #dbe6f4; border-radius:14px; background:#fff; }

.reimbursement-table-progress-v3 { display:grid; min-width:112px; gap:6px; }
.reimbursement-table-progress-v3>span { display:flex; justify-content:space-between; color:#526b8a; font-size:11px; font-weight:700; }
.reimbursement-table-progress-v3 small { color:#8da0b8; font-size:10px; }
.reimbursement-table-progress-v3>i { overflow:hidden; height:4px; border-radius:999px; background:#e6edf6; }
.reimbursement-table-progress-v3>i>em { display:block; height:100%; border-radius:inherit; background:#5a87c5; }
.reimbursement-review-tracking-v3 { margin-bottom:18px; padding:18px; border:1px solid #d9e7f7; border-radius:16px; background:linear-gradient(145deg, #f9fcff, #f2f7fd); }
.reimbursement-review-tracking-v3>header { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:16px; }
.reimbursement-review-tracking-v3>header>div { display:grid; gap:3px; }
.reimbursement-review-tracking-v3>header small { color:#8da0b8; font-size:10px; }
.reimbursement-review-tracking-v3>header strong { color:#315173; font-size:18px; }
.reimbursement-review-tracking-v3>header>span { color:#4e7db9; font-size:13px; font-weight:800; }
.reimbursement-review-progress-v3 { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; padding-bottom:16px; }
.reimbursement-review-logs-v3 { padding-top:14px; border-top:1px solid #dce8f5; }
.reimbursement-review-logs-v3>summary { display:flex; align-items:center; justify-content:space-between; cursor:pointer; list-style:none; }
.reimbursement-review-logs-v3>summary::-webkit-details-marker { display:none; }
.reimbursement-review-logs-v3>summary strong { color:#365273; font-size:13px; }
.reimbursement-review-logs-v3>summary span { color:#91a1b5; font-size:10px; }
.reimbursement-review-logs-v3>div { max-height:210px; overflow:auto; padding:12px 2px 0; }

.reimbursement-review-evidence-v4 {
    display:grid;
    grid-template-columns:minmax(280px, .85fr) minmax(420px, 1.15fr);
    gap:14px;
    margin-bottom:18px;
}
.reimbursement-review-reason-v4,
.reimbursement-review-attachments-v4 {
    min-width:0;
    padding:18px;
    border:1px solid #dce7f4;
    border-radius:16px;
    background:#fff;
}
.reimbursement-review-reason-v4 { display:flex; flex-direction:column; background:linear-gradient(145deg,#fff,#f8fbff); }
.reimbursement-review-reason-v4>header,
.reimbursement-review-attachments-v4>header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.reimbursement-review-reason-v4>header strong,
.reimbursement-review-attachments-v4>header strong { color:#304b6c; font-size:14px; }
.reimbursement-review-reason-v4>header span { padding:3px 8px; border-radius:999px; color:#52759f; background:#eaf3ff; font-size:10px; font-weight:750; }
.reimbursement-review-reason-v4>p { flex:1; min-height:82px; margin:15px 0; color:#293f5c; font-size:15px; line-height:1.75; overflow-wrap:anywhere; white-space:pre-wrap; }
.reimbursement-review-reason-v4>footer { padding-top:12px; border-top:1px solid #e5edf6; color:#8292a6; font-size:11px; }
.reimbursement-review-attachments-v4>header>div { display:grid; gap:3px; }
.reimbursement-review-attachments-v4>header span { color:#93a1b4; font-size:10px; }
.reimbursement-review-attachments-v4>header em { color:#4f79ad; font-size:11px; font-style:normal; font-weight:800; white-space:nowrap; }
.reimbursement-review-attachment-list-v4 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:13px; }
.reimbursement-review-attachment-card-v4 { display:grid; grid-template-columns:66px minmax(0,1fr); gap:10px; min-width:0; padding:8px; border:1px solid #e1e9f3; border-radius:12px; background:#f9fbfe; }
.reimbursement-review-attachment-card-v4.is-payment-voucher { border-color:#cde5d9; background:#f5fbf8; }
.reimbursement-review-attachment-preview-v4 { width:66px; height:66px; padding:0; overflow:hidden; display:grid; place-items:center; border:0; border-radius:9px; color:#55779f; background:#eaf1f9; cursor:pointer; }
.reimbursement-review-attachment-preview-v4:disabled { cursor:default; }
.reimbursement-review-attachment-preview-v4 img { width:100%; height:100%; object-fit:cover; transition:transform .18s ease; }
.reimbursement-review-attachment-preview-v4:hover img { transform:scale(1.04); }
.reimbursement-review-attachment-preview-v4 i { font-size:12px; font-style:normal; font-weight:850; letter-spacing:.04em; }
.reimbursement-review-attachment-card-v4>div { display:grid; align-content:center; min-width:0; gap:4px; }
.reimbursement-review-attachment-card-v4 strong { overflow:hidden; color:#354b67; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.reimbursement-review-attachment-card-v4 span { color:#92a0b2; font-size:9px; }
.reimbursement-review-attachment-card-v4 footer { display:flex; gap:10px; }
.reimbursement-review-attachment-card-v4 footer button,
.reimbursement-review-attachment-card-v4 footer a { padding:0; border:0; color:#4d79ae; background:none; font-size:10px; font-weight:700; text-decoration:none; }
.reimbursement-review-attachment-empty-v4 { grid-column:1/-1; min-height:82px; display:grid; place-items:center; border:1px dashed #d8e3ef; border-radius:11px; color:#9ba8b8; background:#fbfcfe; font-size:11px; }
.reimbursement-review-attachment-viewer-v4 { grid-column:1/-1; overflow:hidden; border:1px solid #d5e2f1; border-radius:16px; background:#eef4fb; }
.reimbursement-review-attachment-viewer-v4[hidden] { display:none; }
.reimbursement-review-attachment-viewer-v4>header { min-height:58px; padding:10px 14px 10px 18px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid #dce6f1; background:#fff; }
.reimbursement-review-attachment-viewer-v4>header>div:first-child { display:grid; min-width:0; gap:2px; }
.reimbursement-review-attachment-viewer-v4>header small { color:#93a1b4; font-size:9px; }
.reimbursement-review-attachment-viewer-v4>header strong { overflow:hidden; color:#344c69; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.reimbursement-review-attachment-viewer-v4>header>div:last-child { display:flex; gap:7px; white-space:nowrap; }
.reimbursement-review-attachment-viewer-v4>header .btn-light-custom { min-height:32px; padding:6px 10px; font-size:10px; text-decoration:none; }
.reimbursement-review-attachment-viewer-v4>div { min-height:360px; max-height:58vh; display:grid; place-items:center; overflow:auto; padding:16px; }
.reimbursement-review-attachment-viewer-v4 img { max-width:100%; max-height:54vh; object-fit:contain; border-radius:8px; box-shadow:0 10px 30px rgba(44,72,105,.14); }
.reimbursement-review-attachment-viewer-v4 iframe { width:100%; min-height:54vh; border:0; border-radius:8px; background:#fff; }
.self-reimbursement-payment-voucher-v4 { margin:14px 24px 2px; padding:16px; border:1px solid #cfe5da; border-radius:15px; background:linear-gradient(145deg,#f8fcfa,#f1f9f5); }
.self-reimbursement-payment-voucher-v4>header { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:12px; }
.self-reimbursement-payment-voucher-v4>header>div { display:grid; gap:2px; }
.self-reimbursement-payment-voucher-v4>header strong { color:#315c4b; font-size:14px; }
.self-reimbursement-payment-voucher-v4>header span { color:#88a196; font-size:10px; }
.self-reimbursement-payment-voucher-v4>header em { padding:4px 9px; border-radius:999px; color:#28795a; background:#ddf3e8; font-size:10px; font-style:normal; font-weight:800; }
.self-reimbursement-payment-voucher-v4>a { display:grid; grid-template-columns:150px minmax(0,1fr); gap:14px; align-items:center; color:inherit; text-decoration:none; }
.self-reimbursement-payment-voucher-v4 img { width:150px; height:82px; object-fit:cover; object-position:left top; border:1px solid #d6e6de; border-radius:10px; background:#fff; }
.self-reimbursement-payment-voucher-v4>a>span { display:grid; min-width:0; gap:5px; }
.self-reimbursement-payment-voucher-v4>a>span strong { overflow:hidden; color:#3c5d50; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.self-reimbursement-payment-voucher-v4>a>span small { color:#779186; font-size:10px; }

@media (max-width:900px) {
    .self-reimbursement-meta-v3 { grid-template-columns:repeat(2, 1fr); row-gap:16px; }
    .self-reimbursement-meta-v3>div:nth-child(3) { padding-left:0; border-left:0; }
    .reimbursement-review-evidence-v4 { grid-template-columns:1fr; }
}
@media (max-width:680px) {
    .self-reimbursement-head-v3 { align-items:flex-start; flex-direction:column; padding:18px; }
    .self-reimbursement-head-v3>a { width:100%; text-align:center; }
    .self-reimbursement-card-head-v3 { align-items:flex-start; padding:17px 18px 14px; }
    .self-reimbursement-amount-v3 { align-items:flex-end; flex-direction:column; gap:5px; }
    .self-reimbursement-amount-v3>strong { font-size:20px; }
    .self-reimbursement-meta-v3 { grid-template-columns:1fr; margin:0 18px; }
    .self-reimbursement-meta-v3>div { padding:10px 0; border-top:1px solid #edf2f8; border-left:0; }
    .self-reimbursement-meta-v3>div:first-child { border-top:0; }
    .self-reimbursement-reason-v3,
    .reimbursement-progress-v3 { padding-left:18px; padding-right:18px; }
    .reimbursement-progress-steps-v3,
    .reimbursement-review-progress-v3 { grid-template-columns:1fr; gap:12px; }
    .reimbursement-log-panel-v3>summary { padding:14px 18px; }
    .reimbursement-timeline-v3 { padding-left:18px; padding-right:18px; }
    .reimbursement-review-attachment-list-v4 { grid-template-columns:1fr; }
    .reimbursement-review-attachment-viewer-v4>header { align-items:flex-start; flex-direction:column; }
    .self-reimbursement-payment-voucher-v4>a { grid-template-columns:1fr; }
    .self-reimbursement-payment-voucher-v4 img { width:100%; height:auto; max-height:180px; object-fit:contain; }
}

/* 当前账号菜单：在侧栏底部向上展开，统一支持点击与右键。 */
.sidebar-account {
    z-index: 40;
}

.sidebar-user-summary {
    cursor: pointer;
}

.sidebar-user-summary[aria-expanded="true"] {
    border-color: rgba(78, 128, 190, .38);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 32px rgba(50, 83, 122, .13);
}

.sidebar-account-more {
    margin-left: auto;
    color: #7390b4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    transition: color .18s ease;
}

.sidebar-user-summary:hover .sidebar-account-more,
.sidebar-user-summary:focus-visible .sidebar-account-more,
.sidebar-user-summary[aria-expanded="true"] .sidebar-account-more {
    color: #3f75b8;
}

.sidebar-account-menu[hidden] {
    display: none !important;
}

.sidebar-account-menu {
    position: absolute;
    right: 0;
    bottom: 72px;
    left: 0;
    padding: 7px;
    border: 1px solid #d8e5f4;
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 22px 55px rgba(39, 72, 109, .2);
    transform: translateY(5px) scale(.985);
    transform-origin: bottom center;
    opacity: 0;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
}

.sidebar-account-menu.is-open {
    animation: sidebar-account-menu-in .16s ease-out forwards;
}

@keyframes sidebar-account-menu-in {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.sidebar-account-menu-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 5px;
    padding: 9px 9px 10px;
    border-bottom: 1px solid #edf2f8;
}

.sidebar-account-menu-head > span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.sidebar-account-menu-head strong,
.sidebar-account-menu-head small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-account-menu-head strong {
    color: #2e4564;
    font-size: 13px;
}

.sidebar-account-menu-head small {
    color: #91a0b3;
    font-size: 10px;
}

.sidebar-account .sidebar-account-menu form,
body.taobao-system-theme .sidebar-account .sidebar-account-menu form {
    width: 100%;
    margin: 0;
}

.sidebar-account-menu-item {
    width: 100%;
    min-height: 48px;
    padding: 7px 8px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #385371;
    text-align: left;
    transition: background .16s ease, color .16s ease;
    text-decoration: none;
}

.sidebar-account-menu-label {
    display: block;
    padding: 4px 9px 3px;
    color: #9aa9ba;
    font-size: 9px;
    font-weight: 760;
    letter-spacing: .08em;
}

.sidebar-account-menu-label-security {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #edf2f8;
}

.sidebar-account-menu-item:hover,
.sidebar-account-menu-item:focus-visible {
    outline: 0;
    color: #2f6fb5;
    background: #edf5ff;
}

.sidebar-account-menu-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 9px;
    background: #e7f1fd;
    color: #4e7fbc;
    font-size: 11px;
    font-weight: 800;
}

.sidebar-account-menu-item > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.sidebar-account-menu-item strong {
    font-size: 12px;
    font-weight: 750;
}

.sidebar-account-menu-item small {
    overflow: hidden;
    color: #94a2b4;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-account-menu-item > i {
    color: #a7b4c4;
    font-size: 16px;
    font-style: normal;
}

.sidebar-account-menu-logout:hover,
.sidebar-account-menu-logout:focus-visible {
    color: #bd5454;
    background: #fff1f0;
}

.sidebar-account-menu-logout .sidebar-account-menu-icon {
    color: #b95a55;
    background: #fff0ee;
}

@media (max-width: 900px) {
    .sidebar-account-menu {
        right: 0;
        bottom: 70px;
        left: 0;
    }
}

/* 左侧导航底部使用紧凑账号卡；完整账号信息仅在操作菜单中展开。 */
body.taobao-system-theme .sidebar-account {
    z-index: 40;
    width: 82px;
    height: 76px;
    padding: 7px;
    display: grid;
    place-items: center;
    border-top: 1px solid rgba(108, 154, 205, .12);
    background: var(--xy-blue-75);
}

body.taobao-system-theme .sidebar-account .sidebar-user-card {
    position: relative;
    width: 66px;
    height: 62px;
    min-height: 62px;
    margin: 0;
    padding: 5px 4px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-color: #d7e5f4;
    border-radius: 14px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 5px 15px rgba(53, 91, 132, .065);
}

body.taobao-system-theme .sidebar-account .sidebar-user-card:hover,
body.taobao-system-theme .sidebar-account .sidebar-user-card:focus-visible,
body.taobao-system-theme .sidebar-account .sidebar-user-card[aria-expanded="true"] {
    border-color: #aac9ea;
    background: #fff;
    box-shadow: 0 8px 20px rgba(53, 91, 132, .12);
}

body.taobao-system-theme .sidebar-account .sidebar-user-card .avatar {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    font-size: 12px;
}

body.taobao-system-theme .sidebar-account .sidebar-user-card .user-meta {
    width: 100%;
    min-width: 0;
    display: block;
    flex: 0 0 auto;
    text-align: center;
}

body.taobao-system-theme .sidebar-account .sidebar-user-card .user-meta strong,
body.taobao-system-theme .sidebar-account .sidebar-user-card .user-meta small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.taobao-system-theme .sidebar-account .sidebar-user-card .user-meta strong {
    color: #304965;
    font-size: 10.5px;
    font-weight: 760;
    line-height: 1.2;
}

body.taobao-system-theme .sidebar-account .sidebar-user-card .user-meta small {
    display: none;
}

body.taobao-system-theme .sidebar-account .sidebar-account-more {
    display: none;
}

body.taobao-system-theme .sidebar-account .sidebar-account-menu {
    right: auto;
    bottom: 72px;
    left: 8px;
    width: 232px;
}

body.taobao-system-theme .sidebar-account .sidebar-account-menu-head .avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

/* 员工个人中心：劳动合同与薪资方案仅展示当前登录员工的数据。 */
.personal-document-hero {
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.personal-document-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    background: linear-gradient(145deg, #4c8ed2, #65a9ea);
    box-shadow: 0 10px 24px rgba(66, 130, 196, .2);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.personal-document-hero.salary .personal-document-mark {
    background: linear-gradient(145deg, #6685cf, #83a5e8);
}

.personal-document-hero > div:nth-child(2) {
    min-width: 0;
}

.personal-document-hero > div:nth-child(2) > span {
    color: #5b87b6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

.personal-document-hero h2 {
    margin: 3px 0 4px;
    color: #2b4058;
    font-size: 21px;
    font-weight: 780;
}

.personal-document-hero p {
    margin: 0;
    color: #8392a4;
    font-size: 12px;
}

.personal-document-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 760;
    white-space: nowrap;
}

.personal-document-status.ready {
    color: #318069;
    background: #e8f7f1;
}

.personal-document-status.empty {
    color: #7e8fa2;
    background: #edf2f7;
}

.personal-document-layout {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 14px;
}

.personal-document-summary,
.personal-document-file {
    padding: 20px;
}

.personal-document-summary > header,
.personal-document-file > header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
}

.personal-document-summary > header > span,
.personal-document-file > header > span {
    color: #6992bf;
    font-size: 11px;
    font-weight: 800;
}

.personal-document-summary > header > div,
.personal-document-file > header > div {
    display: grid;
    gap: 2px;
}

.personal-document-summary > header strong,
.personal-document-file > header strong {
    color: #324961;
    font-size: 14px;
}

.personal-document-summary > header small,
.personal-document-file > header small {
    color: #94a2b2;
    font-size: 10px;
}

.personal-document-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #e6edf5;
    border-radius: 13px;
    overflow: hidden;
}

.personal-document-grid > span {
    min-width: 0;
    padding: 12px 13px;
    display: grid;
    gap: 3px;
    border-right: 1px solid #e9eff6;
    border-bottom: 1px solid #e9eff6;
    background: #fbfdff;
}

.personal-document-grid > span:nth-child(4n) { border-right: 0; }
.personal-document-grid > span:nth-last-child(-n + 4) { border-bottom: 0; }
.personal-document-grid small { color: #93a1b1; font-size: 10px; }
.personal-document-grid strong { overflow: hidden; color: #354b62; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.personal-file-ready {
    min-height: 104px;
    padding: 15px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid #dce8f5;
    border-radius: 14px;
    background: #f7fbff;
}

.personal-file-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 50px;
    border-radius: 10px;
    background: #e4f0fd;
    color: #4e7fb7;
    font-size: 10px;
    font-weight: 850;
}

.personal-file-ready > div { min-width: 0; display: grid; gap: 3px; }
.personal-file-ready > div strong { overflow: hidden; color: #344b63; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.personal-file-ready > div small { color: #8998a9; font-size: 10px; }
.personal-file-ready .btn-primary-custom { padding: 8px 13px; text-decoration: none; white-space: nowrap; }

.personal-file-empty {
    min-height: 104px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px dashed #d6e1ed;
    border-radius: 14px;
    color: #718498;
    text-align: center;
}

.personal-file-empty span { font-size: 13px; font-weight: 760; }
.personal-file-empty small { color: #9aa8b7; font-size: 10px; }

.personal-scheme-list {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.personal-scheme-card { overflow: hidden; }
.personal-scheme-card > summary {
    min-height: 82px;
    padding: 14px 19px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 150px auto 18px;
    align-items: center;
    gap: 13px;
    cursor: pointer;
    list-style: none;
}
.personal-scheme-card > summary::-webkit-details-marker { display: none; }
.personal-scheme-index {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    color: #527fb2;
    background: #e9f2fc;
    font-size: 11px;
    font-weight: 800;
}
.personal-scheme-title { min-width: 0; display: grid; gap: 2px; }
.personal-scheme-title small { color: #7392b4; font-size: 9px; }
.personal-scheme-title strong { overflow: hidden; color: #304861; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.personal-scheme-title em { color: #94a1b0; font-size: 10px; font-style: normal; }
.personal-scheme-total { display: grid; gap: 2px; text-align: right; }
.personal-scheme-total small { color: #93a0af; font-size: 9px; }
.personal-scheme-total strong { color: #335c86; font-size: 16px; }
.personal-scheme-card > summary > i { color: #8296aa; font-style: normal; transition: transform .18s ease; }
.personal-scheme-card[open] > summary > i { transform: rotate(180deg); }
.personal-scheme-body {
    padding: 4px 19px 19px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-top: 1px solid #edf2f7;
}
.personal-scheme-body > section { padding-top: 15px; }
.personal-scheme-body header { margin-bottom: 9px; color: #3b526a; font-size: 12px; }
.personal-scheme-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #e5edf5;
    border-radius: 12px;
    overflow: hidden;
}
.personal-scheme-grid > span { min-width: 0; padding: 10px; display: grid; gap: 3px; border-right: 1px solid #e9eff6; border-bottom: 1px solid #e9eff6; background: #fbfdff; }
.personal-scheme-grid > span:nth-child(4n) { border-right: 0; }
.personal-scheme-grid small { color: #94a1b0; font-size: 9px; }
.personal-scheme-grid strong { color: #354d65; font-size: 11px; }
.personal-scheme-notes { grid-column: 1 / -1; }
.personal-scheme-notes dl { margin: 0; display: grid; gap: 8px; }
.personal-scheme-notes dl > div { padding: 10px 12px; display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; border-radius: 10px; background: #f7faff; }
.personal-scheme-notes dt { color: #8796a7; font-size: 10px; }
.personal-scheme-notes dd { margin: 0; color: #3c5269; font-size: 11px; white-space: pre-wrap; }
.personal-scheme-empty { padding: 28px; }

/* 个人报销：一行功能区，新增表单在弹窗内，页面主体专注历史明细。 */
.personal-reimbursement-toolbar {
    margin-bottom: 12px;
    padding: 16px 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.personal-reimbursement-toolbar > div:first-child { min-width: 0; }
.personal-reimbursement-toolbar h1 { margin: 2px 0; color: #2e435a; font-size: 20px; }
.personal-reimbursement-toolbar p { margin: 0; color: #8b99a9; font-size: 11px; }
.personal-reimbursement-toolbar > div:last-child { display: flex; align-items: center; gap: 8px; }
.self-reimbursement-shell-v5 { width:100%; display:grid; gap:12px; color:#263a59; }
body.taobao-system-theme .content-wrap>.self-reimbursement-shell-v5 { width:100% !important; max-width:none !important; margin-right:0 !important; margin-left:0 !important; }
.self-reimbursement-shell-v5>.personal-reimbursement-toolbar { margin-bottom:0; }
.self-reimbursement-table-panel-v5 { overflow:hidden; padding:0; }
.self-reimbursement-search-v5 { min-height:70px; padding:12px 16px; display:flex; align-items:center; justify-content:center; gap:9px; border-bottom:1px solid #e3ebf4; background:#fff; }
.self-reimbursement-search-v5 .search-control { width:min(700px,100%); }
.self-reimbursement-search-v5 .per-page-select { width:86px; }
.self-reimbursement-status-v5 { min-height:60px; padding:10px 16px; display:flex; align-items:center; gap:7px; border-bottom:1px solid #e5ecf4; background:#f9fbfe; }
.self-reimbursement-status-v5>a { min-height:38px; padding:7px 12px; display:inline-flex; align-items:center; gap:8px; border:1px solid #dbe5f0; border-radius:9px; color:#60758e; background:#fff; font-size:11px; font-weight:700; text-decoration:none; }
.self-reimbursement-status-v5>a em { min-width:20px; padding:2px 6px; border-radius:999px; color:#8193a7; background:#eef3f8; font-size:9px; font-style:normal; text-align:center; }
.self-reimbursement-status-v5>a.active { border-color:#a9caee; color:#3875b7; background:#edf6ff; box-shadow:0 4px 12px rgba(67,123,183,.08); }
.self-reimbursement-status-v5>a.active em { color:#fff; background:#5a8dca; }
.self-reimbursement-table-scroll-v5 { min-height:330px; }
.self-reimbursement-table-v5 { min-width:1660px; }
.self-reimbursement-table-v5 th,.self-reimbursement-table-v5 td { padding-right:14px; padding-left:14px; }
.self-reimbursement-table-v5 tbody tr { cursor:pointer; }
.self-reimbursement-table-v5 tbody tr:hover td { background:#f1f7fe; }
.self-reimbursement-table-v5 td:first-child strong { color:#315d8c; }
.self-reimbursement-table-panel-v5>.pagination-bar { margin:0; border-top:1px solid #e3ebf3; border-radius:0; background:#fff; }
.reimbursement-detail-facts-v5 { margin-bottom:18px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:hidden; border:1px solid #dce7f3; border-radius:14px; background:#fff; }
.reimbursement-detail-facts-v5>div { min-width:0; min-height:70px; padding:14px 16px; display:grid; align-content:center; gap:5px; border-right:1px solid #e5edf5; border-bottom:1px solid #e5edf5; }
.reimbursement-detail-facts-v5>div:nth-child(3n) { border-right:0; }
.reimbursement-detail-facts-v5>div:nth-last-child(-n+3) { border-bottom:0; }
.reimbursement-detail-facts-v5 small { color:#91a1b3; font-size:9px; }
.reimbursement-detail-facts-v5 strong { overflow:hidden; color:#334d6b; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.self-reimbursement-allocation-detail-v5 { margin-bottom:18px; overflow:hidden; border:1px solid #dce7f3; border-radius:14px; background:#fff; }
.self-reimbursement-allocation-detail-v5>header { min-height:54px; padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid #e4ecf4; background:#f8fbfe; }
.self-reimbursement-allocation-detail-v5>header strong { color:#36516f; font-size:13px; }
.self-reimbursement-allocation-detail-v5>header span { color:#92a0b1; font-size:9px; }
.self-reimbursement-allocation-detail-v5>div>article { min-height:72px; padding:10px 16px; display:grid; grid-template-columns:34px minmax(0,1fr); align-items:center; gap:12px; border-bottom:1px solid #edf2f7; }
.self-reimbursement-allocation-detail-v5>div>article:last-child { border-bottom:0; }
.self-reimbursement-allocation-detail-v5>div>article>i { width:30px; height:30px; display:grid; place-items:center; border-radius:9px; color:#4b7fb9; background:#eaf3fd; font-size:10px; font-style:normal; font-weight:800; }
.self-reimbursement-allocation-detail-v5 article>div { display:grid; grid-template-columns:1fr 1.25fr 1.2fr .65fr; gap:14px; }
.self-reimbursement-allocation-detail-v5 article span { min-width:0; display:grid; gap:4px; }
.self-reimbursement-allocation-detail-v5 article small { color:#95a3b3; font-size:9px; }
.self-reimbursement-allocation-detail-v5 article strong { overflow:hidden; color:#39516c; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.reimbursement-apply-dialog-v4 { max-width: 980px; }
.reimbursement-apply-dialog-v4 .modal-content > form { min-height: 0; display: flex; flex-direction: column; }
.reimbursement-modal-body-v4 { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; background: #f5f8fc; }
.reimbursement-modal-body-v4 .reimbursement-form-card-v2 { height: 100%; margin: 0; padding: 16px; }
.reimbursement-modal-body-v4 .reimbursement-card-heading-v2 { margin-bottom: 12px; }
.reimbursement-modal-body-v4 .reimbursement-fields-v2 { gap: 10px; }
.reimbursement-modal-body-v4 .reimbursement-allocation-options-v2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reimbursement-modal-body-v4 .reimbursement-allocation-option-v2 { min-height: 54px; padding: 7px; }
.reimbursement-dropzone-v2.compact { min-height: 82px; }
.reimbursement-dropzone-v2.compact span { min-width: 0; }
.reimbursement-dropzone-v2.compact span small { overflow: hidden; display: block; max-width: 520px; color: #94a2b2; text-overflow: ellipsis; white-space: nowrap; }
.reimbursement-modal-footer-v4 > span { margin-right: auto; color: #8c9aaa; font-size: 10px; }
.reimbursement-account-form-v4 { display: grid; gap: 13px; }
.reimbursement-account-form-v4 label { display: grid; gap: 6px; color: #52687f; font-size: 11px; }
.reimbursement-account-form-v4 label em { color: #dc685c; font-style: normal; }

/* 我的薪资单：当前方案置顶，下面按月展示不可变工资单快照。 */
.my-salary-plan-v4 { margin-top: 12px; overflow: hidden; }
.my-salary-plan-v4 > summary {
    min-height: 84px;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 145px auto 18px;
    align-items: center;
    gap: 13px;
    cursor: pointer;
    list-style: none;
}
.my-salary-plan-v4 > summary::-webkit-details-marker { display: none; }
.my-salary-plan-icon-v4 { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(145deg,#6685cf,#83a5e8); font-size: 14px; font-weight: 800; }
.my-salary-plan-v4 > summary > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.my-salary-plan-v4 > summary > span:nth-child(2) small { color: #6988b1; font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.my-salary-plan-v4 > summary > span:nth-child(2) strong { overflow: hidden; color: #30485f; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.my-salary-plan-v4 > summary > span:nth-child(2) em { color: #91a0b0; font-size: 10px; font-style: normal; }
.my-salary-plan-v4 > summary > span:nth-child(3) { display: grid; gap: 2px; text-align: right; }
.my-salary-plan-v4 > summary > span:nth-child(3) small { color: #91a0b0; font-size: 9px; }
.my-salary-plan-v4 > summary > span:nth-child(3) strong { color: #355f88; font-size: 16px; }
.my-salary-plan-v4 > summary > b { padding: 5px 10px; border-radius: 999px; color: #318069; background: #e8f7f1; font-size: 10px; white-space: nowrap; }
.my-salary-plan-v4 > summary > i { color: #8497aa; font-style: normal; transition: transform .18s ease; }
.my-salary-plan-v4[open] > summary > i { transform: rotate(180deg); }
.my-salary-plan-body-v4 { padding: 4px 18px 18px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; border-top: 1px solid #edf2f7; }
.my-salary-plan-body-v4 > section { padding-top: 14px; }
.my-salary-plan-body-v4 section > header { margin-bottom: 9px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.my-salary-plan-body-v4 section > header strong { color: #39516a; font-size: 12px; }
.my-salary-plan-body-v4 section > header small { color: #96a3b1; font-size: 9px; }
.my-salary-plan-grid-v4 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid #e4ecf4; border-radius: 12px; overflow: hidden; }
.my-salary-plan-grid-v4 > span { min-width: 0; padding: 10px; display: grid; gap: 2px; border-right: 1px solid #e8eef5; border-bottom: 1px solid #e8eef5; background: #fbfdff; }
.my-salary-plan-grid-v4 > span:nth-child(4n) { border-right: 0; }
.my-salary-plan-grid-v4 > span:nth-last-child(-n+4) { border-bottom: 0; }
.my-salary-plan-grid-v4 small { color: #94a1b0; font-size: 9px; }
.my-salary-plan-grid-v4 strong { color: #354d65; font-size: 11px; }
.my-salary-plan-rules-v4 dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.my-salary-plan-rules-v4 dl > div { min-width: 0; padding: 9px 10px; display: grid; gap: 3px; border-radius: 9px; background: #f7faff; }
.my-salary-plan-rules-v4 dl > div.wide { grid-column: 1/-1; }
.my-salary-plan-rules-v4 dt { color: #8d9bab; font-size: 9px; }
.my-salary-plan-rules-v4 dd { margin: 0; overflow: hidden; color: #3d536a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.my-salary-plan-history-v4 { grid-column: 1/-1; padding-top: 2px; }
.my-salary-plan-history-v4 > summary { color: #557da7; cursor: pointer; font-size: 10px; font-weight: 700; }
.my-salary-plan-history-v4 > div { margin-top: 8px; display: grid; gap: 6px; }
.my-salary-plan-history-v4 article { padding: 9px 11px; display: grid; grid-template-columns: minmax(0,1fr) 230px 100px 60px; align-items: center; gap: 10px; border: 1px solid #e7edf4; border-radius: 9px; color: #65788c; font-size: 10px; }
.my-salary-plan-history-v4 article > span:first-child { display: grid; }
.my-salary-plan-history-v4 article strong { color: #3c536a; }
.my-salary-plan-history-v4 article small { color: #97a4b2; }
.my-salary-plan-history-v4 article b { color: #3f6589; text-align: right; }
.my-salary-plan-history-v4 article em { color: #8796a6; font-style: normal; text-align: right; }
.my-salary-plan-empty-v4 { margin-top: 12px; padding: 18px; display: grid; gap: 3px; color: #40576e; }
.my-salary-plan-empty-v4 span { color: #8d9aaa; font-size: 10px; }
.my-monthly-payroll-heading-v4 { margin: 18px 2px 10px; display: flex; align-items: end; justify-content: space-between; }
.my-monthly-payroll-heading-v4 span { color: #6989ad; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.my-monthly-payroll-heading-v4 h2 { margin: 2px 0 0; color: #30475e; font-size: 17px; }
.my-monthly-payroll-heading-v4 > strong { color: #8495a7; font-size: 11px; }
.clean-payroll-month > span > em { display: block; overflow: hidden; max-width: 190px; margin-top: 2px; color: #8799ac; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1100px) {
    .personal-document-layout { grid-template-columns: 1fr; }
    .personal-document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .personal-document-grid > span:nth-child(2n) { border-right: 0; }
    .personal-document-grid > span:nth-last-child(-n + 4) { border-bottom: 1px solid #e9eff6; }
    .personal-document-grid > span:nth-last-child(-n + 2) { border-bottom: 0; }
    .personal-scheme-body { grid-template-columns: 1fr; }
    .personal-scheme-notes { grid-column: auto; }
    .reimbursement-modal-body-v4 { grid-template-columns: 1fr; }
    .my-salary-plan-body-v4 { grid-template-columns: 1fr; }
    .my-salary-plan-history-v4 { grid-column: auto; }
}

@media (max-width: 700px) {
    .personal-document-hero { grid-template-columns: 44px minmax(0, 1fr); padding: 18px; }
    .personal-document-mark { width: 44px; height: 44px; border-radius: 14px; }
    .personal-document-hero > .personal-document-status { grid-column: 1 / -1; justify-self: start; }
    .personal-document-grid { grid-template-columns: 1fr; }
    .personal-document-grid > span { border-right: 0; border-bottom: 1px solid #e9eff6 !important; }
    .personal-document-grid > span:last-child { border-bottom: 0 !important; }
    .personal-file-ready { grid-template-columns: 44px minmax(0, 1fr); }
    .personal-file-ready .btn-primary-custom { grid-column: 1 / -1; text-align: center; }
    .personal-scheme-card > summary { grid-template-columns: 34px minmax(0, 1fr) auto; }
    .personal-scheme-total { grid-column: 2; text-align: left; }
    .personal-scheme-card > summary > .personal-document-status { grid-column: 2; justify-self: start; }
    .personal-scheme-card > summary > i { grid-column: 3; grid-row: 1 / span 3; }
    .personal-scheme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .personal-scheme-grid > span:nth-child(2n) { border-right: 0; }
    .personal-reimbursement-toolbar { align-items: flex-start; flex-direction: column; }
    .personal-reimbursement-toolbar > div:last-child { width: 100%; }
    .personal-reimbursement-toolbar > div:last-child > button { flex: 1; }
    .self-reimbursement-search-v5 { align-items:stretch; flex-wrap:wrap; }
    .self-reimbursement-search-v5 .search-control { flex:1 1 100%; }
    .self-reimbursement-status-v5 { overflow-x:auto; }
    .self-reimbursement-status-v5>a { flex:0 0 auto; }
    .reimbursement-detail-facts-v5 { grid-template-columns:1fr; }
    .reimbursement-detail-facts-v5>div { border-right:0; border-bottom:1px solid #e5edf5 !important; }
    .reimbursement-detail-facts-v5>div:last-child { border-bottom:0 !important; }
    .self-reimbursement-allocation-detail-v5 article>div { grid-template-columns:1fr; gap:8px; }
    .reimbursement-modal-body-v4 .reimbursement-allocation-options-v2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .my-salary-plan-v4 > summary { grid-template-columns: 40px minmax(0,1fr) auto; }
    .my-salary-plan-v4 > summary > span:nth-child(3) { grid-column: 2; text-align: left; }
    .my-salary-plan-v4 > summary > b { grid-column: 2; justify-self: start; }
    .my-salary-plan-v4 > summary > i { grid-column: 3; grid-row: 1/span 3; }
    .my-salary-plan-grid-v4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .my-salary-plan-grid-v4 > span:nth-child(2n) { border-right: 0; }
    .my-salary-plan-grid-v4 > span:nth-last-child(-n+4) { border-bottom: 1px solid #e8eef5; }
    .my-salary-plan-grid-v4 > span:nth-last-child(-n+2) { border-bottom: 0; }
    .my-salary-plan-history-v4 article { grid-template-columns: 1fr; gap: 4px; }
    .my-salary-plan-history-v4 article b,.my-salary-plan-history-v4 article em { text-align: left; }
}

/* Team task execution board ------------------------------------------------ */
.content-wrap:has(.realtime-task-dashboard) {
    width: 100%;
    max-width: 1900px;
    padding: 18px 20px 30px;
}

.realtime-task-dashboard {
    --task-page: #f4f8fd;
    --task-card: #fff;
    --task-line: #dfe9f3;
    --task-ink: #26384b;
    --task-muted: #718399;
    --task-blue: #397fc8;
    --task-blue-soft: #e8f3ff;
    --task-green: #2d9b75;
    --task-green-soft: #eaf8f2;
    --task-orange: #d98527;
    --task-orange-soft: #fff5e7;
    --task-red: #d95b58;
    --task-red-soft: #fff0ef;
    --task-slate: #8a9bad;
    --task-slate-soft: #f0f4f8;
    min-width: 0;
    color: var(--task-ink);
}

.realtime-task-dashboard :is(button, input, select) { font: inherit; }
.realtime-task-hero {
    min-height: 112px;
    padding: 20px 390px 18px 22px;
    position: relative;
    border: 1px solid var(--task-line);
    border-radius: 16px;
    background: linear-gradient(115deg, #fff 0, #f8fbff 72%, #eef6ff);
    box-shadow: 0 8px 25px rgba(53,93,135,.045);
}
.realtime-task-title > span { color: #5f8fc9; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.realtime-task-title h1 { margin: 5px 0; color: var(--task-ink); font-size: 25px; font-weight: 780; letter-spacing: -.02em; }
.realtime-task-title p { margin: 0; color: var(--task-muted); font-size: 11px; }
.realtime-task-hero-actions { position: absolute; right: 20px; bottom: 16px; display: flex; align-items: center; gap: 7px; }
.realtime-task-hero-actions :is(.btn-light-custom,.btn-primary-custom) { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 11px; text-decoration: none; }
.realtime-task-live { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d7e9e2; border-radius: 9px; background: #f6fcf9; color: #407565; font-size: 10px; white-space: nowrap; }
.realtime-task-live > i { width: 7px; height: 7px; border-radius: 50%; background: #39b58a; box-shadow: 0 0 0 4px rgba(57,181,138,.11); }
.realtime-task-live.is-history { border-color: #dce5ee; background: #f7f9fb; color: #76889a; }
.realtime-task-live.is-history > i { background: #8fa0b1; box-shadow: 0 0 0 4px rgba(143,160,177,.1); }
.realtime-task-live.is-error { border-color: #f0d0ce; background: #fff7f6; color: var(--task-red); }
.realtime-task-live.is-error > i { background: var(--task-red); box-shadow: 0 0 0 4px rgba(217,91,88,.1); }
.realtime-task-hero-actions [data-task-refresh].is-loading { opacity: .68; cursor: wait; }

.realtime-task-filter {
    min-height: 58px;
    margin-top: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--task-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(53,93,135,.035);
}
.realtime-task-filter :is(.form-control,.form-select,.btn-light-custom) { width: auto; min-height: 36px; height: 36px; border-color: #d9e5ef; border-radius: 9px; box-shadow: none; color: #526a81; background-color: #fff; font-size: 11px; }
.realtime-task-filter > .form-control { flex: 0 0 148px; }
.realtime-task-filter > .form-select { flex: 0 0 150px; }
.realtime-task-search { width: min(310px, 24vw); min-height: 36px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border: 1px solid #d9e5ef; border-radius: 9px; background: #fbfdff; color: #8ba0b4; }
.realtime-task-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #526a81; font-size: 11px; }
.realtime-task-filter-clear { padding: 7px 5px; color: #8496a8; font-size: 10px; text-decoration: none; white-space: nowrap; }
.realtime-task-filter-clear:hover { color: var(--task-blue); }
.realtime-task-date-stepper { margin-left: auto; min-height: 36px; display: flex; align-items: center; overflow: hidden; border: 1px solid #d9e5ef; border-radius: 9px; background: #fff; }
.realtime-task-date-stepper a { width: 34px; align-self: stretch; display: grid; place-items: center; color: #5e7c99; font-size: 18px; text-decoration: none; }
.realtime-task-date-stepper a:hover { background: #edf5fd; color: var(--task-blue); }
.realtime-task-date-stepper span { padding: 0 9px; border-right: 1px solid #e6edf4; border-left: 1px solid #e6edf4; color: #526a81; font-size: 10px; white-space: nowrap; }

.realtime-task-summary {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1.65fr repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--task-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(53,93,135,.04);
}
.realtime-task-summary article { min-width: 0; min-height: 102px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--task-line); }
.realtime-task-summary article:last-child { border: 0; }
.realtime-task-summary article > span,.realtime-task-summary small { color: var(--task-muted); font-size: 11px; }
.realtime-task-summary article > strong,.realtime-task-summary .is-team strong { margin-top: 6px; color: var(--task-ink); font-size: 25px; line-height: 1; }
.realtime-task-summary small { margin-top: 7px; color: #8fa0b1; font-size: 10px; }
.realtime-task-summary .is-team { position: relative; display: grid; grid-template-columns: 1fr 40px; align-items: center; }
.realtime-task-summary .is-team > div { display: flex; flex-direction: column; }
.realtime-task-summary .is-team > b { justify-self: end; color: var(--task-green); font-size: 24px; }
.realtime-task-summary .is-team > i { position: absolute; left: 18px; right: 18px; bottom: 12px; height: 5px; overflow: hidden; border-radius: 99px; background: #edf3f8; }
.realtime-task-summary .is-team > i::after { content: ""; display: block; width: var(--task-rate); height: 100%; border-radius: inherit; background: linear-gradient(90deg,#5aa0e7,#37ad89); }
.realtime-task-summary .is-done > strong { color: var(--task-green); }
.realtime-task-summary .is-progress > strong { color: var(--task-blue); }
.realtime-task-summary .is-wait > strong { color: var(--task-orange); }
.realtime-task-summary .is-risk > strong { color: var(--task-red); }

.realtime-task-types { margin-top: 12px; padding: 12px; display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 10px; border: 1px solid var(--task-line); border-radius: 15px; background: #fff; }
.realtime-task-type { min-width: 0; padding: 12px 13px; border: 1px solid #e3ebf3; border-radius: 12px; background: #fbfdff; }
.realtime-task-type > div { display: flex; align-items: center; gap: 9px; }
.realtime-task-type-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--task-blue-soft); color: var(--task-blue); font-size: 11px; font-weight: 800; }
.realtime-task-type > div > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.realtime-task-type strong { overflow: hidden; color: var(--task-ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.realtime-task-type small { margin-top: 2px; overflow: hidden; color: #8b9cad; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.realtime-task-type b { margin-left: auto; color: #38556f; font-size: 14px; white-space: nowrap; }
.realtime-task-type > i { height: 4px; margin-top: 10px; display: block; overflow: hidden; border-radius: 99px; background: #edf2f6; }
.realtime-task-type > i::after { content: ""; display: block; width: var(--task-rate); height: 100%; border-radius: inherit; background: #5799df; }
.realtime-task-type.is-launch .realtime-task-type-icon,.realtime-task-type.is-daily_launch .realtime-task-type-icon { background: var(--task-green-soft); color: var(--task-green); }
.realtime-task-type.is-launch > i::after,.realtime-task-type.is-daily_launch > i::after { background: #46b18c; }
.realtime-task-type.is-tax .realtime-task-type-icon { background: var(--task-orange-soft); color: var(--task-orange); }
.realtime-task-type.is-tax > i::after { background: #e5a04e; }
.realtime-task-type.is-manual .realtime-task-type-icon { background: #f1effb; color: #7766b2; }
.realtime-task-type.is-manual > i::after { background: #8979c5; }

.realtime-task-board { margin-top: 12px; overflow: hidden; border: 1px solid var(--task-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(53,93,135,.05); }
.realtime-task-board-toolbar { min-height: 62px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--task-line); }
.realtime-task-board-toolbar h2 { margin: 0; color: var(--task-ink); font-size: 15px; }
.realtime-task-board-toolbar p { margin: 4px 0 0; color: #8a9bad; font-size: 9px; }
.realtime-task-board-tools { display: flex; align-items: center; gap: 10px; }
.realtime-task-board-tools > .btn-light-custom { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 9px; font-size: 11px; text-decoration: none; }
.realtime-task-auto-refresh { display: flex; align-items: center; gap: 7px; color: var(--task-muted); font-size: 10px; white-space: nowrap; }
.realtime-task-auto-refresh button { width: 30px; height: 18px; padding: 2px; border: 0; border-radius: 99px; background: #c7d2dc; transition: background .2s; }
.realtime-task-auto-refresh button i { width: 14px; height: 14px; display: block; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(37,62,84,.18); transition: transform .2s; }
.realtime-task-auto-refresh button.is-on { background: #67a7e5; }
.realtime-task-auto-refresh button.is-on i { transform: translateX(12px); }
.realtime-task-legend { min-height: 34px; padding: 8px 14px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #edf2f6; background: #f9fbfe; color: #8091a3; font-size: 9px; }
.realtime-task-legend > span { display: inline-flex; align-items: center; }
.realtime-task-legend i { width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; }
.realtime-task-legend i.is-done { background: #39aa80; }.realtime-task-legend i.is-progress { background: #5799df; }.realtime-task-legend i.is-wait { background: #dfa047; }.realtime-task-legend i.is-danger { background: #d95b58; }.realtime-task-legend i.is-na { background: #9aaabd; }
.realtime-task-last-sync { margin-left: auto; }
.realtime-task-table-head,.realtime-task-employee-row { display: grid; grid-template-columns: minmax(180px,220px) 76px 136px minmax(560px,1fr) 92px 94px 28px; align-items: center; column-gap: 10px; }
.realtime-task-table-head { min-height: 38px; padding: 0 15px; border-bottom: 1px solid var(--task-line); background: #f3f8fe; color: #6e8297; font-size: 10px; font-weight: 700; }
.realtime-task-employee { border-bottom: 1px solid #e8eff5; }
.realtime-task-employee:last-child { border-bottom: 0; }
.realtime-task-employee-row { width: 100%; min-height: 70px; padding: 8px 15px; border: 0; background: #fff; color: inherit; text-align: left; transition: background .15s; }
.realtime-task-employee-row:hover,.realtime-task-employee.is-open > .realtime-task-employee-row { background: #fbfdff; }
.realtime-task-person { min-width: 0; display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 9px; }
.realtime-task-person > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg,#e3effc,#cfe4f8); color: var(--task-blue); font-size: 12px; font-style: normal; font-weight: 800; }
.realtime-task-person strong,.realtime-task-person small,.realtime-task-stores strong,.realtime-task-stores small,.realtime-task-updated small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.realtime-task-person strong { color: var(--task-ink); font-size: 12px; }
.realtime-task-person small,.realtime-task-stores small { margin-top: 3px; color: #8a9bac; font-size: 9px; }
.realtime-task-stores strong { color: #3e566e; font-size: 13px; }
.realtime-task-overall { min-width: 0; }
.realtime-task-overall > strong { display: flex; justify-content: space-between; color: #536b82; font-size: 10px; }
.realtime-task-overall > strong b { color: var(--task-blue); }
.realtime-task-overall > i { height: 5px; margin-top: 7px; display: block; overflow: hidden; border-radius: 99px; background: #ecf2f7; }
.realtime-task-overall > i b { display: block; width: var(--task-rate); height: 100%; border-radius: inherit; background: linear-gradient(90deg,#5d9fe0,#36ac87); }
.realtime-task-chips { min-width: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; }
.realtime-task-chip { min-width: 0; min-height: 47px; padding: 7px 8px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #e0e9f1; border-radius: 9px; background: #f9fbfd; }
.realtime-task-chip small,.realtime-task-chip strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.realtime-task-chip small { color: #8091a3; font-size: 8px; }.realtime-task-chip strong { margin-top: 3px; color: #3f566d; font-size: 10px; }
.realtime-task-chip.is-done { border-color: #cfe9df; background: #f1fbf7; }.realtime-task-chip.is-done strong { color: #278966; }
.realtime-task-chip.is-progress { border-color: #cfe2f5; background: #f1f7fe; }.realtime-task-chip.is-progress strong { color: #347bbf; }
.realtime-task-chip.is-wait { border-color: #f0dfc7; background: #fff9ef; }.realtime-task-chip.is-wait strong { color: #bd7526; }
.realtime-task-chip.is-danger { border-color: #f0d2cf; background: #fff5f4; }.realtime-task-chip.is-danger strong { color: #c85551; }
.realtime-task-chip.is-na { border-color: #e4eaf0; background: #f4f7f9; }.realtime-task-chip.is-na :is(small,strong) { color: #9aaabd; }
.realtime-task-status { min-height: 25px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; justify-self: start; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.realtime-task-status.is-done { background: var(--task-green-soft); color: var(--task-green); }.realtime-task-status.is-progress { background: var(--task-blue-soft); color: var(--task-blue); }.realtime-task-status.is-wait { background: var(--task-orange-soft); color: var(--task-orange); }.realtime-task-status.is-danger { background: var(--task-red-soft); color: var(--task-red); }
.realtime-task-updated { color: #788b9f; font-size: 9px; line-height: 1.4; }.realtime-task-updated small { color: #9aa9b8; font-size: 8px; }
.realtime-task-chevron { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #eff5fb; color: #4e7ead; font-size: 15px; font-style: normal; transition: transform .2s; }
.realtime-task-employee.is-open .realtime-task-chevron { transform: rotate(180deg); }

.realtime-task-details { padding: 12px 15px 14px; border-top: 1px solid #edf3f8; background: linear-gradient(180deg,#f7fbff,#fbfdff); }
.realtime-task-details[hidden] { display: none !important; }
.realtime-task-details > header { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.realtime-task-details > header strong { color: var(--task-ink); font-size: 12px; }.realtime-task-details > header span { color: #7f92a5; font-size: 9px; }
.realtime-task-detail-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 8px; }
.realtime-task-detail-card { min-width: 0; min-height: 112px; padding: 11px 12px; display: flex; flex-direction: column; border: 1px solid #dfe9f2; border-radius: 11px; background: #fff; }
.realtime-task-detail-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.realtime-task-detail-card > header strong { color: var(--task-ink); font-size: 10px; }.realtime-task-detail-card > header span { color: var(--task-orange); font-size: 9px; font-weight: 800; }
.realtime-task-detail-card.is-done > header span { color: var(--task-green); }.realtime-task-detail-card.is-progress > header span { color: var(--task-blue); }.realtime-task-detail-card.is-danger > header span { color: var(--task-red); }
.realtime-task-detail-card > p { margin: 8px 0 6px; color: #40576e; font-size: 11px; font-weight: 700; }
.realtime-task-detail-description { color: #8799ab; font-size: 8px; line-height: 1.6; }
.realtime-task-detail-card > footer { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; gap: 8px; border-top: 1px dashed #e1e9f0; color: #70869b; font-size: 8px; }.realtime-task-detail-card > footer a { color: var(--task-blue); text-decoration: none; }
.realtime-task-detail-items { margin: 4px 0 8px; display: grid; gap: 5px; }
.realtime-task-detail-items > article { min-width: 0; padding: 7px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px; border-top: 1px solid #edf2f6; }
.realtime-task-detail-items > article > div { min-width: 0; }.realtime-task-detail-items strong,.realtime-task-detail-items small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.realtime-task-detail-items strong { color: #40566d; font-size: 9px; }.realtime-task-detail-items small { margin-top: 2px; color: #8a9bad; font-size: 8px; }
.realtime-task-detail-items a { color: var(--task-blue); font-size: 8px; text-decoration: none; white-space: nowrap; }
.realtime-task-detail-items form { grid-column: 1/-1; display: flex; gap: 5px; }.realtime-task-detail-items form input { min-width: 0; height: 27px; padding: 0 7px; flex: 1; border: 1px solid #dfe8f0; border-radius: 7px; outline: 0; color: #536b82; font-size: 8px; }.realtime-task-detail-items form button { height: 27px; padding: 0 8px; border: 0; border-radius: 7px; background: var(--task-blue); color: #fff; font-size: 8px; white-space: nowrap; }.realtime-task-detail-items form button.realtime-task-reopen { background: #eef3f7; color: #60758a; }
.realtime-task-detail-empty { min-height: 100px; grid-column: 1/-1; display: grid; place-items: center; border: 1px dashed #dce6ef; border-radius: 10px; color: #8b9bad; font-size: 10px; background: rgba(255,255,255,.7); }
.realtime-task-empty { min-height: 220px; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8a9bad; }.realtime-task-empty i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #edf5fd; color: var(--task-blue); font-style: normal; }.realtime-task-empty strong { margin-top: 12px; color: #526a81; font-size: 13px; }.realtime-task-empty span { margin-top: 5px; font-size: 10px; }
.realtime-task-board-footer { min-height: 42px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #fbfdff; color: #8193a5; font-size: 9px; }.realtime-task-board-footer strong { color: #4b6781; white-space: nowrap; }

/* Global feedback must stay above navigation and ordinary Bootstrap dialogs. */
.flash-stack { z-index: 2200 !important; top: 18px !important; right: max(18px, calc((100vw - 1900px)/2 + 24px)) !important; }
body.taobao-system-theme .content-wrap > .flash-stack {
    position: fixed !important;
    z-index: 2200 !important;
    top: 18px !important;
    right: max(18px, calc((100vw - 1900px)/2 + 24px)) !important;
    left: auto !important;
    width: min(440px, calc(100vw - 36px)) !important;
    max-width: 440px !important;
    margin: 0 !important;
}
.modal { z-index: 2100 !important; }
.modal-backdrop { z-index: 2090 !important; }

@media (max-width: 1380px) {
    .realtime-task-filter { flex-wrap: wrap; }
    .realtime-task-date-stepper { margin-left: 0; }
    .realtime-task-table-head,.realtime-task-employee-row { grid-template-columns: minmax(150px,190px) 65px 120px minmax(440px,1fr) 86px 28px; }
    .realtime-task-table-head > span:nth-child(6),.realtime-task-updated { display: none; }
}
@media (max-width: 1120px) {
    .realtime-task-hero { padding: 72px 20px 18px; }
    .realtime-task-hero-actions { top: 17px; right: auto; bottom: auto; left: 20px; }
    .realtime-task-summary { grid-template-columns: 1.5fr repeat(2,1fr); }
    .realtime-task-summary article:nth-child(4),.realtime-task-summary article:nth-child(5) { display: none; }
    .realtime-task-types { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .realtime-task-table-head,.realtime-task-employee-row { grid-template-columns: minmax(145px,180px) 58px 110px minmax(360px,1fr) 28px; }
    .realtime-task-table-head > span:nth-child(5),.realtime-task-status { display: none; }
    .realtime-task-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .content-wrap:has(.realtime-task-dashboard) { padding: 64px 10px 20px; }
    .realtime-task-hero { padding: 68px 15px 16px; border-radius: 13px; }.realtime-task-title h1 { font-size: 20px; }.realtime-task-title p { line-height: 1.6; }
    .realtime-task-hero-actions { left: 14px; right: 14px; }.realtime-task-live { margin-right: auto; }.realtime-task-hero-actions .btn-light-custom { display: none; }
    .realtime-task-filter { align-items: stretch; }.realtime-task-search { width: 100%; flex: 1 1 100%; }.realtime-task-filter > :is(.form-control,.form-select) { flex: 1 1 135px; }.realtime-task-filter-clear { align-self: center; }.realtime-task-date-stepper { width: 100%; justify-content: space-between; }.realtime-task-date-stepper span { flex: 1; text-align: center; }
    .realtime-task-summary { grid-template-columns: 1.3fr 1fr; }.realtime-task-summary article { min-height: 92px; padding: 14px; }.realtime-task-summary article:nth-child(n+3) { display: none; }
    .realtime-task-types { padding: 8px; grid-template-columns: 1fr; }.realtime-task-board-toolbar { align-items: flex-start; }.realtime-task-board-toolbar p { display: none; }
    .realtime-task-legend > span:nth-child(-n+5) { display: none; }.realtime-task-last-sync { margin-left: 0; }
    .realtime-task-table-head { display: none; }.realtime-task-employee-row { min-height: 84px; grid-template-columns: minmax(135px,1.1fr) 90px 28px; gap: 8px; }.realtime-task-stores,.realtime-task-chips { display: none; }
    .realtime-task-detail-grid { grid-template-columns: 1fr; }.realtime-task-details > header span { display: none; }
    .flash-stack { top: 12px !important; right: 12px !important; left: 12px !important; width: auto !important; }
}

/* Project master and its immutable one-to-one virtual account. */
.project-account-workspace-v4 { display:grid; gap:14px; }
.project-account-heading-v4 { margin-bottom:0; }
.project-account-heading-v4 > div { min-width:0; }
.project-account-heading-v4 > div > p:last-child { margin:5px 0 0; color:#8290a2; font-size:11px; }
.project-account-directory-v4 { overflow:hidden; }
.project-account-simple-table-v4 { min-width:720px; }
.project-account-simple-table-v4 th:nth-child(1) { width:48%; }
.project-account-simple-table-v4 th:nth-child(2) { width:22%; }
.project-account-simple-table-v4 th:nth-child(3) { width:12%; }
.project-account-simple-table-v4 tr.is-inactive { background:#fafafa; opacity:.76; }
.project-account-simple-table-v4 td > a { color:#354c6a; text-decoration:none; }
.project-account-simple-table-v4 td > a:hover { color:#2e73b8; }
.project-account-simple-table-v4 .money-cell { color:#2c536f; font-size:15px; font-weight:800; }
.project-account-simple-table-v4 .money-cell.negative { color:#c45a52; }
.project-account-state-v4,
.project-account-inline-status { width:fit-content; display:inline-flex; align-items:center; border-radius:999px; font-size:9px; font-weight:760; }
.project-account-state-v4 { padding:4px 9px; }
.project-account-state-v4.active,
.project-account-inline-status.active { background:#e9f7f0; color:#378164; }
.project-account-state-v4.inactive,
.project-account-inline-status.inactive { background:#f1f2f4; color:#858d97; }
.project-account-actions-v4 { display:flex; align-items:center; gap:7px; }
.project-account-actions-v4 form { margin:0; }
.project-account-actions-v4 .btn-light-custom,
.project-account-actions-v4 .btn-danger-soft { min-height:31px; padding:0 10px; font-size:10px; }
.project-account-movements-v4 { overflow:hidden; }
.project-account-movements-v4 .management-table { min-width:1280px; }
.project-account-inline-status { margin-top:5px; padding:3px 7px; }
.project-dividend-table-chip { margin:2px 4px 2px 0; padding:4px 7px; display:inline-flex; border-radius:999px; background:#eef4fb; color:#526f94; font-size:9px; font-weight:720; white-space:nowrap; }
.project-master-grid-v4 { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
.project-master-grid-v4 .span-2 { grid-column:span 2; }
.project-master-grid-v4 .form-field small { margin-top:5px; display:block; color:#929ba7; font-size:9px; font-weight:500; }
.project-master-grid-v4 input[readonly] { background:#f3f5f7; color:#6f7883; cursor:not-allowed; }
.management-modal.is-crud-form-modal .project-master-grid-v4 { max-width:none; gap:12px 14px; }
.management-modal.is-crud-form-modal .project-master-grid-v4 .form-field {
    width:auto; min-width:0; min-height:0; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:6px;
}
.management-modal.is-crud-form-modal .project-master-grid-v4 .form-field.span-2 { grid-column:span 2; }
.management-modal.is-crud-form-modal .project-master-grid-v4 .modal-field-label { width:auto; padding:0; color:#5f6c7c; font-size:10px; text-align:left; }
.management-modal.is-crud-form-modal .project-master-grid-v4 .form-field > :is(.form-control,.form-select),
.management-modal.is-crud-form-modal .project-master-grid-v4 .form-field > small {
    width:100%; min-width:0; max-width:none; grid-column:auto;
}
.management-modal.is-crud-form-modal .project-master-grid-v4 .form-field:has(textarea) { min-height:0; align-items:stretch; }
.management-modal.is-crud-form-modal .project-master-grid-v4 .form-field > textarea.form-control { height:74px; min-height:74px; }
.project-dividend-editor-v4 { margin-top:18px; padding:16px; border:1px solid #dfe6ee; border-radius:13px; background:#f9fbfd; }
.project-dividend-editor-v4 > header { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.project-dividend-editor-v4 > header > div { display:grid; gap:3px; }
.project-dividend-editor-v4 > header strong { color:#384c66; font-size:13px; }
.project-dividend-editor-v4 > header small { color:#8794a5; font-size:9px; }
.project-dividend-editor-v4 [data-dividend-list] { margin-top:12px; display:grid; gap:8px; }
.project-dividend-row-v4 { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(150px,.7fr) 34px; align-items:end; gap:10px; }
.project-dividend-row-v4 label { display:grid; gap:5px; color:#627187; font-size:9px; font-weight:700; }
.project-dividend-row-v4 label > div { display:grid; grid-template-columns:minmax(0,1fr) 30px; align-items:center; }
.project-dividend-row-v4 label > div input { border-radius:8px 0 0 8px; }
.project-dividend-row-v4 label > div i { height:38px; display:grid; place-items:center; border:1px solid #d7e0ea; border-left:0; border-radius:0 8px 8px 0; background:#eef2f6; color:#7a8796; font-size:10px; font-style:normal; }
.project-dividend-row-v4 > button { width:34px; height:38px; border:1px solid #ecd9d5; border-radius:8px; background:#fff7f5; color:#c3695d; font-size:17px; }
.project-dividend-editor-v4 > footer { margin-top:11px; padding-top:10px; display:flex; justify-content:flex-end; align-items:center; gap:9px; border-top:1px solid #e4eaf0; color:#8591a0; font-size:10px; }
.project-dividend-editor-v4 > footer strong { color:#c05f55; font-size:15px; }
.project-dividend-editor-v4 > footer strong.is-valid { color:#378164; }

@media (max-width:720px) {
    .project-master-grid-v4 { grid-template-columns:1fr !important; }
    .project-master-grid-v4 .span-2 { grid-column:auto; }
    .management-modal.is-crud-form-modal .project-master-grid-v4 .form-field.span-2 { grid-column:auto; }
    .project-dividend-row-v4 { grid-template-columns:1fr 1fr 34px; }
    .project-account-heading-v4 { align-items:flex-start; }
}

/* Finance V2 uses the production V1 design language; these rules only add
   layouts missing from the shared account, table, button and modal system. */
.finance-v2-account-page { max-width: 1500px; margin: 0 auto; }
.finance-v2-account-nav { grid-template-columns: repeat(6,minmax(145px,1fr)); }
.finance-v2-safety-strip { padding: 11px 15px; border: 1px solid #f0d3c6; border-radius: 12px; color: #7f685c; background: #fff8f4; font-size: 10px; line-height: 1.65; }
.finance-v2-safety-strip strong { margin-right: 8px; color: #dc592a; font-size: 10px; }
.finance-v2-account-table,.finance-v2-source-table { min-width: 1180px; }
.finance-v2-account-table tbody tr,.finance-v2-source-table tbody tr { cursor: pointer; }
.finance-v2-account-table tbody tr.selected td { background: #fff4ed; }
.finance-v2-cell-title,.finance-v2-cell-subtitle { display: block; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finance-v2-cell-title { color: #443c37; font-size: 11px; font-weight: 750; }
.finance-v2-cell-subtitle { margin-top: 3px; color: #a09690; font-size: 8px; }
.finance-v2-pending,.finance-v2-ready { color: #c56a26 !important; font-size: 9px; font-weight: 750; }
.finance-v2-ready { color: #16845e !important; }
.finance-v2-muted-badge,.finance-v2-readonly-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 0 8px; border-radius: 7px; color: #847a74; background: #f1eeeb; font-size: 9px; font-weight: 750; }
.finance-v2-readonly-badge { color: #16845e; background: #eaf7f1; letter-spacing: .08em; }
.finance-v2-detail-panel { overflow: hidden; }
.finance-v2-detail-panel .toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.finance-v2-detail-grid { margin: 0; padding: 16px 18px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; background: #fbfaf9; }
.finance-v2-detail-grid > div { min-width: 0; min-height: 58px; padding: 10px 12px; border: 1px solid #eee8e4; border-radius: 10px; background: #fff; }
.finance-v2-detail-grid > div:nth-last-child(-n+2) { grid-column: span 2; }
.finance-v2-detail-grid dt { color: #a09690; font-size: 8px; font-weight: 650; }
.finance-v2-detail-grid dd { margin: 5px 0 0; overflow-wrap: anywhere; color: #514842; font-size: 10px; font-weight: 700; }
.finance-v2-detail-grid .finance-account-empty { grid-column: 1/-1 !important; }
.finance-v2-detail-actions,.finance-v2-attachment-bar { padding: 11px 15px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid #eee8e4; }
.finance-v2-detail-actions .compact-select { width: 220px; margin-left: auto; }
.finance-v2-trace-area { border-top: 1px solid #eee8e4; }
.finance-v2-attachment-bar { background: #fcfbfa; }
.finance-v2-attachment-bar .form-control { width: min(420px,100%); }
.finance-v2-attachment-bar small { color: #9a908a; font-size: 9px; }
.finance-v2-source-summary { padding: 13px 16px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; background: #fbfaf9; }
.finance-v2-source-summary article { min-height: 76px; padding: 12px 14px; border: 1px solid #ece5e0; border-radius: 11px; background: #fff; }
.finance-v2-source-summary span,.finance-v2-source-summary small { display: block; color: #9a908a; font-size: 9px; }
.finance-v2-source-summary strong { display: block; margin: 5px 0 2px; color: #e95824; font-size: 22px; }
.finance-v2-form-note { margin-bottom: 15px; padding: 10px 12px; border: 1px solid #eee0d8; border-radius: 9px; color: #806f66; background: #fff9f5; font-size: 10px; }
.finance-v2-form-result { color: #16845e; font-size: 10px; }
.finance-v2-form-result.is-error { color: #d84c3f; }

/* Shared V2 workspace layouts keep the same V1 spacing and palette. */
.finance-v2-workspace { display: grid; gap: 12px; }
.finance-v2-workspace .v2-warning { padding: 11px 15px; border: 1px solid #f0d3c6; border-radius: 12px; color: #7f685c; background: #fff8f4; font-size: 10px; line-height: 1.65; }
.finance-v2-workspace .v2-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.finance-v2-workspace .v2-nav a { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid #e5dfdb; border-radius: 9px; color: #6e635d; background: #fff; font-size: 10px; font-weight: 700; text-decoration: none; }
.finance-v2-workspace .v2-nav a:hover { border-color: #f1bda7; color: #e95824; background: #fff7f2; }
.finance-v2-workspace .v2-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.finance-v2-workspace .v2-card { padding: 17px 18px; overflow: hidden; border: 1px solid #e8e2de; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(64,43,30,.035); }
.finance-v2-workspace .v2-card h2 { margin: 0; color: #3d3632; font-size: 15px; }
.finance-v2-workspace .v2-card p { margin: 5px 0 12px; color: #978d87; font-size: 9px; }
.finance-v2-workspace .v2-form { display: grid; gap: 9px; }
.finance-v2-workspace :is(.v2-form input,.v2-form select,.v2-form textarea,.v2-card>textarea,.v2-card>input) { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #dedede; border-radius: 9px; color: #555; background: #fff; font-size: 10px; }
.finance-v2-workspace :is(.v2-form textarea,.v2-card>textarea) { min-height: 120px; font-family: ui-monospace,"Cascadia Mono",monospace; }
.finance-v2-workspace .v2-actions { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 7px; }
.finance-v2-workspace :is(.v2-actions button,.v2-form button) { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; color: #fff; background: var(--ink); font-size: 10px; font-weight: 750; cursor: pointer; }
.finance-v2-workspace :is(.v2-actions button,.v2-form button):hover { background: var(--coral); }
.finance-v2-workspace .v2-output { margin: 11px 0 0; padding: 11px; max-height: 330px; overflow: auto; border: 1px solid #ece7e3; border-radius: 9px; color: #625a55; background: #faf9f8; font-size: 10px; white-space: pre-wrap; word-break: break-word; }
.finance-v2-workspace-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.finance-v2-workspace-nav a { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid #e5dfdb; border-radius: 9px; color: #6e635d; background: #fff; font-size: 10px; font-weight: 700; text-decoration: none; }
.finance-v2-workspace-nav a:hover,.finance-v2-workspace-nav a.active { border-color: #f1bda7; color: #e95824; background: #fff7f2; }
.finance-v2-workspace-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.finance-v2-workspace-card { overflow: hidden; }
.finance-v2-workspace-card > header { padding: 14px 16px; border-bottom: 1px solid #eee8e4; }
.finance-v2-workspace-card > header h2 { margin: 0; color: #3d3632; font-size: 15px; }
.finance-v2-workspace-card > header p { margin: 4px 0 0; color: #978d87; font-size: 9px; }
.finance-v2-workspace-body { padding: 15px 16px; }
.finance-v2-workspace-form { display: grid; gap: 9px; }
.finance-v2-workspace-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.finance-v2-json-output { margin: 11px 0 0; padding: 11px; max-height: 330px; overflow: auto; border: 1px solid #ece7e3; border-radius: 9px; color: #625a55; background: #faf9f8; font-size: 10px; white-space: pre-wrap; word-break: break-word; }
.finance-v2-core-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.finance-v2-core-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.finance-v2-core-summary article { padding: 15px 17px; border: 1px solid #eae3de; border-radius: 13px; background: #fff; box-shadow: 0 7px 19px rgba(64,43,30,.03); }
.finance-v2-core-summary span { display: block; color: #9d928b; font-size: 9px; }
.finance-v2-core-summary strong { display: block; margin-top: 7px; color: #e95824; font-size: 23px; }

@media (max-width: 1100px) {
    .finance-v2-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .finance-v2-source-summary,.finance-v2-core-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .finance-v2-detail-panel .finance-account-directory-head { align-items: stretch; }
    .finance-v2-detail-panel .toolbar-actions { justify-content: flex-start; }
    .finance-v2-detail-grid,.finance-v2-source-summary,.finance-v2-core-summary,.finance-v2-workspace-grid { grid-template-columns: 1fr; }
    .finance-v2-workspace .v2-grid { grid-template-columns: 1fr; }
    .finance-v2-detail-grid > div:nth-last-child(-n+2) { grid-column: span 1; }
    .finance-v2-detail-actions .compact-select { width: 100%; margin-left: 0; }
}

/* 手工记账：整笔资金流水在上、可重复添加的分摊组在下。 */
.modal-dialog.ledger-entry-dialog:has(.ledger-entry-modal.is-crud-form-modal) {
    width: min(1540px, calc(100vw - 44px));
    max-width: min(1540px, calc(100vw - 44px));
    height: min(840px, calc(100vh - 32px));
    max-height: min(840px, calc(100vh - 32px));
}

.ledger-entry-modal.is-crud-form-modal .modal-header {
    min-height: 58px;
    padding: 11px 18px;
    border-bottom: 1px solid #e2ebf4;
    background: #fff;
}

.ledger-entry-modal.is-crud-form-modal .modal-body {
    padding: 10px 14px 12px;
    overflow: auto;
    background: #f5f9fd;
}

.ledger-entry-layout {
    width: 100%;
    display: grid;
    gap: 12px;
}

.ledger-entry-overview {
    padding: 10px 14px 12px;
    border: 1px solid #dbe6f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(54, 89, 124, .035);
}

.ledger-entry-overview-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ledger-entry-modal.is-crud-form-modal .ledger-entry-field {
    width: auto;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: 112px 520px;
    align-items: center;
    justify-content: start;
    gap: 14px;
}

.ledger-entry-modal.is-crud-form-modal .ledger-entry-field[hidden] { display: none !important; }
.ledger-entry-modal.is-crud-form-modal .ledger-field-summary { grid-template-columns: 112px 760px; }

.ledger-entry-modal.is-crud-form-modal .ledger-entry-field .modal-field-label {
    width: 112px;
    padding: 0;
    color: #587089;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
}

.ledger-entry-modal.is-crud-form-modal .ledger-entry-field > :is(.form-control, .form-select),
.ledger-entry-modal.is-crud-form-modal .ledger-entry-field > .ledger-combobox,
.ledger-entry-modal.is-crud-form-modal .ledger-entry-field > .ledger-combobox > .form-control {
    width: 520px;
    min-width: 520px;
    max-width: 520px;
    grid-column: auto;
}

.ledger-entry-modal.is-crud-form-modal .ledger-field-summary > .form-control {
    width: 760px;
    min-width: 760px;
    max-width: 760px;
}

.ledger-entry-modal.is-crud-form-modal .ledger-entry-field > :is(.form-control, .form-select),
.ledger-entry-modal.is-crud-form-modal .ledger-entry-field > .ledger-combobox > .form-control {
    height: 38px;
    min-height: 38px;
    padding: 0 11px;
    border-color: #d7e1ec;
    border-radius: 8px;
    color: #3d4d5f;
    background-color: #fff;
    font-size: 12px;
    box-shadow: none;
}

.ledger-entry-modal.is-crud-form-modal .ledger-entry-field > .form-control[readonly] {
    color: #78899a;
    background: #f4f7fa;
}

.ledger-entry-modal .ledger-smart-entry {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d8e5f1;
    border-radius: 11px;
    background: #fff;
    box-shadow: none;
}

.ledger-entry-modal .ledger-smart-entry > summary {
    min-height: 38px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #57718b;
    background: #f8fbfe;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    list-style: none;
}

.ledger-entry-modal .ledger-smart-entry > summary::-webkit-details-marker { display: none; }
.ledger-entry-modal .ledger-smart-entry > summary::after { content: "展开"; margin-left: auto; color: #8ca0b4; font-size: 10px; font-weight: 500; }
.ledger-entry-modal .ledger-smart-entry[open] > summary::after { content: "收起"; }
.ledger-entry-modal .ledger-smart-entry > summary i { padding: 2px 7px; border-radius: 999px; color: #7791aa; background: #eaf2f9; font-size: 9px; font-style: normal; }
.ledger-entry-modal .ledger-smart-entry-body { padding: 12px 14px 14px; border-top: 1px solid #e4edf5; }

.ledger-entry-modal .ledger-fund-editor {
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d9e4ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(54, 89, 124, .035);
}

.ledger-entry-modal .ledger-fund-editor-head {
    min-height: 48px;
    margin: 0;
    padding: 0 14px;
    border-bottom: 1px solid #dfe8f1;
    background: #fff;
}

.ledger-entry-modal .ledger-fund-editor-head .modal-field-label {
    color: #3f5871;
    font-size: 13px;
    font-weight: 750;
}

.ledger-entry-modal .ledger-fund-editor-head .btn-light-custom {
    min-height: 34px;
    padding: 0 12px;
    border-color: #cfddea;
    color: #496b8c;
    background: #f4f8fc;
}

.ledger-entry-modal .ledger-fund-table {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #b9c9d8 transparent;
}

.ledger-entry-modal .ledger-fund-column-heads,
.ledger-entry-modal .ledger-fund-row {
    min-width: 1120px;
    display: grid;
    grid-template-columns: minmax(126px, 1fr) minmax(136px, 1.05fr) 100px minmax(180px, 1.4fr) 110px minmax(210px, 1.55fr) 58px;
    align-items: center;
    gap: 8px;
}

.ledger-entry-modal .ledger-fund-column-heads {
    padding: 9px 12px;
    border-bottom: 1px solid #dfe8f1;
    color: #688096;
    background: #f3f7fb;
    font-size: 10px;
    font-weight: 700;
}

.ledger-entry-modal .ledger-fund-column-heads > span[title] { cursor: help; }
.ledger-entry-modal .ledger-fund-rows { gap: 0; }

.ledger-entry-modal .ledger-fund-row {
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid #e5edf4;
    border-radius: 0;
    background: #fff;
}

.ledger-entry-modal .ledger-fund-row:last-child { border-bottom: 0; }
.ledger-entry-modal .ledger-fund-row > *,
.ledger-entry-modal .ledger-fund-row .ledger-combobox:nth-of-type(1),
.ledger-entry-modal .ledger-fund-row .ledger-combobox:nth-of-type(2),
.ledger-entry-modal .ledger-fund-row > .ledger-fund-amount,
.ledger-entry-modal .ledger-fund-row .btn-danger-soft {
    width: 100%;
    min-width: 0;
    grid-column: auto;
    justify-self: stretch;
}

.ledger-entry-modal .ledger-fund-row > .form-select,
.ledger-entry-modal .ledger-fund-row .ledger-combobox > .form-control,
.ledger-entry-modal .ledger-fund-row > .ledger-fund-amount {
    height: 38px;
    min-height: 38px;
    border-color: #d7e1ec;
    border-radius: 8px;
    color: #405267;
    font-size: 11px;
}

.ledger-entry-modal .ledger-fund-row [data-fund-owner-display][readonly] {
    color: #63788e;
    background: #f1f5f9;
    cursor: default;
}

.ledger-entry-modal .ledger-fund-row .btn-danger-soft {
    min-height: 36px;
    padding: 0 7px;
    border-radius: 8px;
    font-size: 10px;
}

.ledger-entry-modal .ledger-fund-summary {
    min-height: 38px;
    margin: 0;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid #e0e9f1;
    color: #74879a;
    background: #f8fbfd;
    font-size: 11px;
}

.ledger-entry-actions {
    margin-top: -4px;
    padding: 4px 4px 2px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.ledger-entry-actions > button {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
}

.ledger-entry-actions > .btn-primary-custom {
    min-width: 188px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: linear-gradient(135deg, #638fc2, #4f76a9);
    box-shadow: 0 7px 16px rgba(71, 111, 155, .18);
}

.ledger-entry-actions > .btn-primary-custom:hover { background: linear-gradient(135deg, #547fae, #416795); }
.ledger-entry-actions > .btn-primary-custom i { font-size: 16px; font-style: normal; font-weight: 500; }

@media (max-width: 1100px) {
    .modal-dialog.ledger-entry-dialog:has(.ledger-entry-modal.is-crud-form-modal) {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        height: calc(100vh - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
    }
    .ledger-entry-modal.is-crud-form-modal .ledger-entry-field { grid-template-columns: 104px 500px; }
    .ledger-entry-modal.is-crud-form-modal .ledger-entry-field .modal-field-label { width: 104px; }
    .ledger-entry-modal.is-crud-form-modal .ledger-field-summary { grid-template-columns: 104px minmax(0, 1fr); }
    .ledger-entry-modal.is-crud-form-modal .ledger-field-summary > .form-control { width: min(700px, calc(100vw - 176px)); min-width: 0; max-width: 700px; }
}

@media (max-width: 700px) {
    .ledger-entry-modal.is-crud-form-modal .modal-body { padding: 10px; }
    .ledger-entry-overview { padding: 12px; }
    .ledger-entry-modal.is-crud-form-modal .ledger-entry-field,
    .ledger-entry-modal.is-crud-form-modal .ledger-field-summary { grid-template-columns: 1fr; gap: 5px; }
    .ledger-entry-modal.is-crud-form-modal .ledger-entry-field .modal-field-label { width: auto; text-align: left; }
    .ledger-entry-modal.is-crud-form-modal .ledger-entry-field > :is(.form-control, .form-select),
    .ledger-entry-modal.is-crud-form-modal .ledger-entry-field > .ledger-combobox,
    .ledger-entry-modal.is-crud-form-modal .ledger-entry-field > .ledger-combobox > .form-control,
    .ledger-entry-modal.is-crud-form-modal .ledger-field-summary > .form-control { width: 100%; min-width: 0; max-width: none; }
    .ledger-entry-modal .ledger-smart-entry-row { grid-template-columns: 1fr; }
    .ledger-entry-modal .ledger-smart-entry-row button { height: 40px; }
    .ledger-entry-actions > .btn-primary-custom { min-width: 0; }
}

/* 财务业务登记：沿用主系统浅蓝工作台，保持单行列表和紧凑功能区。 */
.business-registration-page { display:grid; gap:10px; color:#30445e; }
.business-registration-head { min-height:78px; padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:18px; border:1px solid #dce7f3; border-radius:14px; background:#fff; }
.business-registration-head>div:first-child { min-width:0; }
.business-registration-head span { color:#6288ba; font-size:9px; font-weight:800; letter-spacing:.14em; }
.business-registration-head h1 { margin:1px 0 0; color:#263b57; font-size:22px; font-weight:800; }
.business-registration-head p { margin:3px 0 0; overflow:hidden; color:#8292a7; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.business-registration-head-actions,.business-registration-actions { display:flex; align-items:center; gap:8px; }
.business-registration-toolbar { min-height:50px; padding:7px 10px; display:flex; align-items:center; gap:10px; }
.business-registration-filter { min-width:0; flex:1; display:flex; align-items:center; gap:8px; }
.business-registration-filter>.form-select { width:140px; min-height:36px; font-size:11px; }
.business-registration-search { min-width:260px; height:36px; flex:1; display:flex; align-items:center; gap:8px; padding:0 11px; border:1px solid #d7e4f2; border-radius:9px; background:#fbfdff; }
.business-registration-search span { color:#618bbb; font-size:18px; }
.business-registration-search input { width:100%; border:0; outline:0; background:transparent; color:#334b68; font-size:11px; }
.business-registration-statuses { min-height:43px; padding:6px 9px; overflow-x:auto; border:1px solid #dfe8f3; border-radius:12px; background:#fff; }
.business-registration-statuses .quick-filter { white-space:nowrap; }
.business-registration-statuses b { margin-left:3px; color:inherit; }
.business-registration-list,.business-registration-unmatched { overflow:hidden; }
.business-registration-list>header,.business-registration-unmatched>header,.business-registration-detail-block>header { min-height:45px; padding:0 14px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #e2ebf4; }
.business-registration-list>header>div,.business-registration-unmatched>header>div { display:flex; align-items:baseline; gap:8px; }
.business-registration-list>header strong,.business-registration-unmatched>header strong,.business-registration-detail-block>header strong { color:#2e4663; font-size:13px; }
.business-registration-list>header span,.business-registration-list>header small,.business-registration-unmatched>header span,.business-registration-unmatched>header small,.business-registration-detail-block>header span { color:#8c9bad; font-size:9px; }
.business-registration-table { min-width:1580px; table-layout:fixed; }
.business-registration-table th:nth-child(1),.business-registration-table td:nth-child(1) { width:38px; }
.business-registration-table th:nth-child(2),.business-registration-table td:nth-child(2) { width:160px; }
.business-registration-table th:nth-child(3),.business-registration-table td:nth-child(3) { width:115px; }
.business-registration-table th:nth-child(4),.business-registration-table td:nth-child(4) { width:115px; }
.business-registration-table th:nth-child(5),.business-registration-table td:nth-child(5) { width:170px; }
.business-registration-table th:nth-child(6),.business-registration-table td:nth-child(6) { width:230px; }
.business-registration-table th:nth-child(7),.business-registration-table td:nth-child(7) { width:260px; }
.business-registration-table th:nth-child(8),.business-registration-table td:nth-child(8) { width:110px; }
.business-registration-table th:nth-child(9),.business-registration-table td:nth-child(9) { width:130px; }
.business-registration-table th:nth-child(10),.business-registration-table td:nth-child(10) { width:220px; }
.business-registration-table th:nth-child(11),.business-registration-table td:nth-child(11) { width:70px; }
.business-registration-table tr { cursor:pointer; }
.business-registration-table td { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.business-registration-table td>strong,.business-registration-table td>small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.business-registration-table td>small { margin-top:3px; color:#91a0b2; font-size:9px; }
.business-registration-summary strong,.business-registration-summary small,.ellipsis-cell { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.business-registration-unmatched { margin-top:4px; }
.business-registration-unmatched table { min-width:1380px; }
.business-registration-manual-match { min-width:390px; display:flex; gap:7px; }
.business-registration-manual-match .form-select { min-height:34px; font-size:10px; }

.business-registration-create-dialog { width:min(97vw,1580px); max-width:1580px; margin-left:auto; margin-right:auto; }
.business-registration-create-dialog .modal-content { height:min(96vh,920px); max-height:96vh; display:flex; flex-direction:column; overflow:hidden; border:1px solid #cfe0f1; background:#f5f9fd; }
.business-registration-create-dialog .modal-content>form { min-height:0; height:100%; display:flex; flex-direction:column; }
.business-registration-create-dialog .modal-header { flex:0 0 auto; padding-top:10px; padding-bottom:10px; }
.business-registration-create-dialog .modal-body { min-height:0; height:0; flex:1 1 0; padding:10px 12px; display:grid; align-content:start; gap:10px; overflow-x:hidden; overflow-y:auto; }
.business-registration-create-dialog .modal-footer { flex:0 0 auto; background:#fff; }
.business-registration-form-section { overflow:hidden; border:1px solid #dae6f2; border-radius:12px; background:#fff; }
.business-registration-form-section>header { min-height:44px; padding:0 13px; display:flex; align-items:center; justify-content:space-between; gap:10px; border-bottom:1px solid #e5edf5; background:#f9fbfe; }
.business-registration-form-section>header strong { color:#2f4866; font-size:13px; }
.business-registration-form-section>header span { color:#8a99ab; font-size:9px; }
.business-registration-form-grid { padding:12px 14px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px 12px; }
.business-registration-form-grid label { min-width:0; display:grid; gap:5px; color:#5c6f86; font-size:10px; font-weight:700; }
.business-registration-form-grid label.span-2 { grid-column:span 2; }
.business-registration-form-grid label.span-all { grid-column:1/-1; }
.business-registration-form-grid .form-control,.business-registration-form-grid .form-select { min-width:0; min-height:38px; border-color:#d8e2ed; border-radius:8px; font-size:11px; }
.business-registration-form-grid small { color:#94a1b1; font-size:9px; }
.business-registration-allocation-row { padding:10px 13px; display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:8px; align-items:end; border-bottom:1px solid #e7eef5; }
.business-allocation-field { min-width:0; display:grid; align-content:end; gap:5px; }
.business-allocation-field>span,.business-allocation-action>span { color:#607993; font-size:10px; font-weight:650; line-height:1.2; }
.business-allocation-field.is-parent { grid-column:span 2; }
.business-allocation-field.is-child { grid-column:span 2; }
.business-allocation-field.is-level { grid-column:span 1; }
.business-allocation-field.is-target { grid-column:span 3; }
.business-allocation-field.is-owner { grid-column:span 2; }
.business-allocation-field.is-amount { grid-column:span 1; }
.business-allocation-action { min-width:0; grid-column:span 1; display:grid; align-content:end; gap:5px; }
.business-allocation-action .btn-danger-soft { width:100%; min-height:38px; padding-left:8px; padding-right:8px; }
.business-registration-allocation-row .form-control,.business-registration-allocation-row .form-select { min-width:0; min-height:38px; border-color:#d7e2ed; border-radius:8px; font-size:10px; }
.business-registration-target>select,.business-registration-target>input { width:100%; }
.business-registration-form-section>footer { min-height:38px; padding:0 14px; display:flex; align-items:center; justify-content:flex-end; color:#57789f; font-size:10px; font-weight:750; background:#f8fbfe; }

.business-registration-detail .modal-body { padding:14px; display:grid; gap:10px; background:#f5f9fd; }
.business-registration-detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.business-registration-detail-grid dl { margin:0; padding:10px 12px; display:grid; grid-template-columns:90px minmax(0,1fr); gap:7px 10px; border:1px solid #dce7f2; border-radius:10px; background:#fff; }
.business-registration-detail-grid dt { color:#8a98aa; font-size:10px; }
.business-registration-detail-grid dd { margin:0; overflow:hidden; color:#3f536d; font-size:11px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.business-registration-detail-block { overflow:hidden; border:1px solid #dce7f2; border-radius:10px; background:#fff; }
.business-registration-detail-block>p { margin:0; padding:12px 14px; color:#5f7187; font-size:11px; line-height:1.7; }
.business-registration-detail-block table { min-width:900px; }
.business-registration-attachments { padding:12px 14px; display:flex; flex-wrap:wrap; gap:9px; }
.business-registration-attachments>a { min-width:230px; padding:9px 10px; display:flex; align-items:center; gap:9px; border:1px solid #dce6f1; border-radius:9px; color:#455e7d; text-decoration:none; }
.business-registration-attachments>a.is-voucher { border-color:#afd0ef; background:#f1f7ff; }
.business-registration-attachments i { width:36px; height:36px; display:grid; place-items:center; border-radius:8px; background:#eaf2fb; color:#5b84b5; font-size:8px; font-style:normal; font-weight:800; }
.business-registration-attachments span,.business-registration-attachments strong,.business-registration-attachments small { min-width:0; display:block; }
.business-registration-attachments strong { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
.business-registration-attachments small { margin-top:2px; color:#92a0b1; font-size:8px; }
.business-registration-logs { padding:10px 14px; display:grid; gap:8px; }
.business-registration-logs article { display:grid; grid-template-columns:9px minmax(0,1fr); gap:8px; }
.business-registration-logs article>i { width:7px; height:7px; margin-top:5px; border-radius:50%; background:#6d9bc8; }
.business-registration-logs header { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.business-registration-logs strong { color:#405874; font-size:10px; }
.business-registration-logs time,.business-registration-logs p,.business-registration-logs span { margin:0; color:#8a99aa; font-size:9px; }
.business-registration-logs span { display:block; margin-top:2px; color:#667b93; }
.business-registration-counterparty-form { padding:10px 14px; display:grid; grid-template-columns:1.35fr 1fr 1.15fr 1fr auto; gap:8px; }
.business-registration-review-box { padding:12px; border:1px solid #cddff0; border-radius:10px; background:#edf5fd; }
.business-registration-review-box form { display:grid; grid-template-columns:1fr 1.5fr auto; align-items:end; gap:10px; }
.business-registration-review-box label { display:grid; gap:5px; color:#55708f; font-size:10px; font-weight:700; }
.business-registration-review-box form>div { display:flex; gap:7px; }

@media (max-width:900px) {
    .business-registration-head,.business-registration-toolbar,.business-registration-filter { align-items:stretch; flex-direction:column; }
    .business-registration-head-actions,.business-registration-actions { flex-wrap:wrap; }
    .business-registration-filter>.form-select { width:100%; }
    .business-registration-search { width:100%; min-width:0; }
    .business-registration-form-grid { grid-template-columns:1fr; }
    .business-registration-form-grid label.span-2,.business-registration-form-grid label.span-all { grid-column:auto; }
    .business-registration-detail-grid { grid-template-columns:1fr; }
    .business-registration-counterparty-form,.business-registration-review-box form { grid-template-columns:1fr; }
    .business-registration-allocation-row { grid-template-columns:1fr; }
    .business-allocation-field.is-parent,.business-allocation-field.is-child,.business-allocation-field.is-level,.business-allocation-field.is-target,.business-allocation-field.is-owner,.business-allocation-field.is-amount,.business-allocation-action { grid-column:auto; }
    .business-allocation-action>span { display:none; }
}

@media (min-width:901px) and (max-width:1200px) {
    .business-registration-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .business-registration-allocation-row { grid-template-columns:repeat(6,minmax(0,1fr)); }
    .business-allocation-field.is-parent,.business-allocation-field.is-child,.business-allocation-field.is-level { grid-column:span 2; }
    .business-allocation-field.is-target,.business-allocation-field.is-owner { grid-column:span 2; }
    .business-allocation-field.is-amount,.business-allocation-action { grid-column:span 1; }
}

/* Dropship batches: compact purchase workbench using the established system palette. */
.dropship-page { display:flex; flex-direction:column; gap:10px; }
.dropship-head { min-height:76px; padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:20px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.dropship-head span,.dropship-head h1,.dropship-head p { margin:0; }
.dropship-head>div:first-child>span { color:#6689ad; font-size:9px; font-weight:800; letter-spacing:.12em; }
.dropship-head h1 { color:#32465e; font-size:22px; }
.dropship-head p { margin-top:3px; color:#8b98a8; font-size:10px; }
.dropship-head-actions,.dropship-row-actions,.dropship-detail-actions { display:flex; align-items:center; gap:7px; }
.dropship-toolbar { min-height:54px; padding:7px 10px; display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:12px; }
.dropship-search { width:min(760px,70vw); display:flex; gap:7px; }
.dropship-search .form-control { min-height:38px; }
.dropship-statuses { align-items:center; }
.dropship-statuses .quick-filter { color:#718298; text-decoration:none; }
.dropship-statuses .quick-filter.active { color:#3078bb; }
.dropship-statuses b { padding:1px 5px; border-radius:9px; background:#e6eef8; font-size:9px; }
.dropship-list>header,.dropship-pending-payments>header { min-height:47px; padding:9px 14px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.dropship-list>header strong,.dropship-list>header span,.dropship-pending-payments>header strong,.dropship-pending-payments>header span { display:block; }
.dropship-list>header strong,.dropship-pending-payments>header strong { color:#38516d; font-size:12px; }
.dropship-list>header span,.dropship-list>header small,.dropship-pending-payments>header span { color:#909dac; font-size:9px; }
.dropship-table { width:100%; min-width:0; table-layout:fixed; }
.dropship-table .dropship-col-check { width:30px; }
.dropship-table .dropship-col-batch { width:130px; }
.dropship-table .dropship-col-supplier { width:110px; }
.dropship-table .dropship-col-count { width:92px; }
.dropship-table .dropship-col-money { width:74px; }
.dropship-table .dropship-col-project { width:125px; }
.dropship-table .dropship-col-status { width:74px; }
.dropship-table .dropship-col-payment { width:120px; }
.dropship-table .dropship-col-remark { width:68px; }
.dropship-table .dropship-col-actions { width:80px; }
.dropship-table thead th { overflow:hidden; text-overflow:ellipsis; }
.dropship-table tbody tr { cursor:default; }
.dropship-table tbody td { max-width:210px; }
.dropship-table td>strong,.dropship-table td>small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dropship-table td>small { margin-top:2px; color:#98a4b1; font-size:9px; }
.dropship-table .match-ok { color:#228b6b; }
.dropship-table .match-warning { color:#d66a37; }
.dropship-row-actions { justify-content:flex-start; gap:5px 6px; flex-wrap:wrap; white-space:normal; }
.dropship-row-actions form { margin:0; }
.dropship-row-actions .btn-text-link { padding:0; border:0; background:transparent; color:#3c7dc1; font:inherit; cursor:pointer; white-space:nowrap; }
.dropship-row-actions .btn-text-link.text-danger { color:#d35353; }
.dropship-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.dropship-form-grid label { display:grid; align-content:start; gap:5px; color:#5d7188; font-size:10px; font-weight:700; }
.dropship-form-grid label.span-2 { grid-column:1/-1; }
.dropship-form-grid .form-control,.dropship-form-grid .form-select { min-height:40px; border-color:#d7e2ed; border-radius:8px; font-size:11px; }
.dropship-form-grid small { color:#95a2b1; font-size:9px; font-weight:400; }
.dropship-reconcile-summary { margin-bottom:14px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.dropship-reconcile-summary>div { min-height:76px; padding:11px 13px; border:1px solid #dce7f2; border-radius:10px; background:#f8fbfe; }
.dropship-reconcile-summary span,.dropship-reconcile-summary strong,.dropship-reconcile-summary small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dropship-reconcile-summary span,.dropship-reconcile-summary small { color:#8c9aaa; font-size:9px; }
.dropship-reconcile-summary strong { margin:5px 0 3px; color:#3d5672; font-size:14px; }
.dropship-detail-body { display:grid; gap:11px; background:#f5f9fd; }
.dropship-detail-actions { justify-content:flex-end; }
.dropship-detail-actions form { margin:0; }
.dropship-detail-section { overflow:hidden; border:1px solid #dce7f2; border-radius:10px; background:#fff; }
.dropship-detail-section h3 { margin:0; padding:10px 13px; border-bottom:1px solid #e6edf4; color:#455e79; font-size:11px; }
.dropship-detail-section .table-responsive { max-height:320px; }
.dropship-log-list { padding:6px 13px 12px; display:grid; gap:0; }
.dropship-log-list>div { padding:8px 0; display:grid; grid-template-columns:145px 120px minmax(0,1fr); gap:8px; border-bottom:1px solid #edf1f5; color:#64778d; font-size:9px; }
.dropship-log-list>div p { grid-column:2/-1; margin:0; color:#8b98a6; }
.dropship-manual-match { min-width:360px; display:flex; gap:6px; }
.dropship-manual-match .form-select { min-height:34px; font-size:10px; }
.dropship-toolbar-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; flex-wrap:wrap; }
.dropship-direct-upload { margin:0; }
.dropship-direct-upload input[type="file"] { display:none; }
.dropship-remark-cell { position:relative; cursor:copy; }
.dropship-remark-cell span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; user-select:text; }
.dropship-remark-cell.is-copied::after { content:'✓'; position:absolute; top:50%; right:7px; color:#228b6b; font-weight:800; transform:translateY(-50%); }
.dropship-batch-edit { padding:12px 13px; display:grid; grid-template-columns:1fr 1.3fr .7fr .7fr auto; align-items:end; gap:9px; }
.dropship-batch-edit label { min-width:0; display:grid; gap:5px; color:#5d7188; font-size:10px; font-weight:700; }
.dropship-batch-edit .form-control,.dropship-batch-edit .form-select { min-height:38px; border-color:#d7e2ed; border-radius:8px; font-size:10px; }

@media (max-width:900px) {
    .dropship-head,.dropship-toolbar { align-items:stretch; flex-direction:column; }
    .dropship-head-actions { flex-wrap:wrap; }
    .dropship-search { width:100%; }
    .dropship-form-grid,.dropship-reconcile-summary { grid-template-columns:1fr; }
    .dropship-log-list>div { grid-template-columns:1fr; }
    .dropship-log-list>div p { grid-column:auto; }
    .dropship-toolbar-actions { justify-content:flex-start; }
    .dropship-batch-edit { grid-template-columns:1fr; }
}

/* Internal daily statements intentionally use neutral accounting typography. */
body.taobao-system-theme .internal-daily-workspace .money-cell,
body.taobao-system-theme .internal-daily-workspace .internal-daily-net,
body.taobao-system-theme .internal-daily-workspace .internal-daily-summary strong,
body.taobao-system-theme .internal-daily-workspace .internal-daily-detail-panel > header b {
    color:#526a80 !important;
    font-family:inherit !important;
    font-weight:500 !important;
}
body.taobao-system-theme .internal-daily-workspace .internal-daily-table tbody .internal-daily-row:hover > td,
body.taobao-system-theme .internal-daily-workspace .internal-daily-table tbody .internal-daily-row:focus-within > td,
body.taobao-system-theme .internal-daily-workspace .internal-daily-detail-panel tbody tr:hover > td,
body.taobao-system-theme .internal-daily-workspace .internal-daily-detail-panel tbody tr:focus-within > td {
    color:#687c90 !important;
    border-color:#e6edf3 !important;
    background:#fafcfd !important;
    box-shadow:none !important;
}
body.taobao-system-theme .internal-daily-workspace .internal-daily-table tbody .internal-daily-row:hover > td:first-child,
body.taobao-system-theme .internal-daily-workspace .internal-daily-table tbody .internal-daily-row:focus-within > td:first-child,
body.taobao-system-theme .internal-daily-workspace .internal-daily-detail-panel tbody tr:hover > td:first-child,
body.taobao-system-theme .internal-daily-workspace .internal-daily-detail-panel tbody tr:focus-within > td:first-child {
    box-shadow:none !important;
}

/* The global CRUD modal uses a label/input row. Employee resumes keep a regular 3-column form. */
.management-modal.is-crud-form-modal .employee-resume-field-grid .form-field {
    width:100%;
    min-width:0;
    min-height:0;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:6px;
}
.management-modal.is-crud-form-modal .employee-resume-field-grid .form-field > :is(label,.modal-field-label) {
    width:auto;
    margin:0;
    padding:0;
    color:#5f7283;
    font-size:11px;
    font-weight:650;
    line-height:1.35;
    text-align:left;
}
.management-modal.is-crud-form-modal .employee-resume-field-grid .form-field > :is(.form-control,.form-select) {
    width:100%;
    min-width:0;
    max-width:none;
    min-height:41px;
    height:41px;
    padding:7px 10px;
}
.management-modal.is-crud-form-modal .employee-resume-field-grid .form-field > textarea.form-control {
    width:100%;
    min-height:86px;
    height:86px;
}
.management-modal.is-crud-form-modal .employee-resume-field-grid .form-field > small {
    width:auto;
    margin:0;
}

/* Permission center: current V1 modules, account scope and team scope in one editor. */
.permission-page-v2 { display:grid; gap:14px; }
.permission-overview-v2 {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding:20px 24px;
    border:1px solid #dce6ee;
    border-radius:16px;
    background:#fff;
}
.permission-overview-copy > span { color:#6d93bb; font-size:10px; font-weight:800; letter-spacing:.16em; }
.permission-overview-copy h1 { margin:4px 0 5px; color:#253b54; font-size:22px; font-weight:750; }
.permission-overview-copy p { margin:0; color:#8392a1; font-size:12px; }
.permission-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(110px,1fr)); gap:9px; min-width:min(560px,55%); }
.permission-stat-grid > div { min-height:66px; padding:11px 14px; border:1px solid #e2eaf1; border-radius:11px; background:#f8fbfe; }
.permission-stat-grid span { display:block; color:#8493a2; font-size:11px; }
.permission-stat-grid strong { display:block; margin-top:4px; color:#294765; font-size:21px; font-weight:760; }
.permission-list-toolbar-v2 { display:grid; grid-template-columns:minmax(320px,1fr) 150px 170px auto; gap:10px; align-items:center; }
.permission-list-toolbar-v2 .form-select { min-height:40px; }
.permission-result-count { color:#82909e; font-size:12px; white-space:nowrap; }
.permission-user-cell { display:flex; align-items:center; gap:9px; }
.permission-user-cell > b { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:#edf4fb; color:#4e78a4; font-size:13px; }
.permission-role-badge { display:inline-flex; padding:4px 8px; border:1px solid #dce7f0; border-radius:7px; background:#f8fbfd; color:#60778c; font-size:11px; font-weight:700; }
#permissionModal .modal-dialog { max-width:min(1480px,calc(100vw - 36px)); }
.permission-modal-v2 .modal-body { padding:18px 22px 24px; background:#f6f9fc; }
.management-modal.permission-modal-v2.is-crud-form-modal .permission-account-strip { width:100%; max-width:none; margin:0; display:grid; grid-template-columns:minmax(300px,1.6fr) minmax(180px,.7fr) minmax(150px,.45fr); align-items:end; gap:12px; padding:14px; border:1px solid #dfe8ef; background:#fff; }
.management-modal.permission-modal-v2.is-crud-form-modal .permission-account-strip > label { width:auto; min-width:0; min-height:0; display:grid; grid-template-columns:1fr; align-items:stretch; justify-content:stretch; gap:6px; }
.permission-modal-v2 .permission-account-strip label > .modal-field-label { width:auto; margin:0; padding:0; color:#687b8d; font-size:11px; font-weight:650; text-align:left; }
.management-modal.permission-modal-v2.is-crud-form-modal .permission-account-strip > label > .form-select { width:100%; min-width:0; max-width:none; }
.management-modal.permission-modal-v2.is-crud-form-modal .permission-account-strip .permission-active { min-height:40px; align-self:end; display:grid; grid-template-columns:1fr; gap:6px; padding:0; border:0; background:transparent; box-shadow:none; }
.permission-modal-v2 .permission-account-strip .permission-active .modal-check-control { min-height:40px; display:flex; align-items:center; gap:8px; padding:8px 11px; border:1px solid #d7e0e5; border-radius:9px; background:#fff; }
.permission-modal-v2 .permission-account-strip .permission-active.is-selected .modal-check-control { border-color:#7fabd2; background:#f0f7fd; color:#345a7b; }
.permission-open-access-note { display:flex; align-items:center; gap:12px; margin-top:10px; padding:10px 13px; border:1px solid #d9e9e4; border-radius:10px; background:#f2f9f7; }
.permission-open-access-note strong { color:#437767; font-size:12px; white-space:nowrap; }
.permission-open-access-note span { color:#74887f; font-size:11px; }
.permission-editor-toolbar { position:sticky; top:-18px; z-index:4; display:grid; grid-template-columns:minmax(280px,1fr) auto auto auto; align-items:center; gap:9px; margin:14px 0 9px; padding:10px; border:1px solid #dfe7ee; border-radius:12px; background:rgba(255,255,255,.96); box-shadow:0 8px 20px rgba(49,75,98,.06); backdrop-filter:blur(12px); }
.permission-selected-count { color:#718191; font-size:12px; white-space:nowrap; }
.permission-selected-count b { color:#3173b5; font-size:15px; }
.permission-module-jumps { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:10px; }
.permission-module-jumps button { min-height:31px; padding:5px 9px; border:1px solid #dce5ed; border-radius:8px; background:#fff; color:#5c7083; font-size:11px; }
.permission-module-jumps button:hover { border-color:#9cbddd; color:#2d6da9; background:#f6faff; }
.permission-module-jumps small { margin-left:4px; color:#9aa8b5; }
.permission-feature-groups { align-items:start; }
.permission-feature-groups > section { scroll-margin-top:78px; border-color:#dde7ef; background:#fff; }
.permission-feature-groups .permission-group-title > div,
.permission-scope-groups .permission-group-title > div { display:flex; align-items:baseline; gap:9px; }
.permission-feature-groups .permission-group-title span,
.permission-scope-groups .permission-group-title span { color:#8b99a6; font-size:10px; font-weight:500; }
.permission-feature-groups .permission-group-title span b { color:#4f7fae; font-size:12px; }
.permission-modal-v2 .permission-check-grid label { min-height:58px; align-items:flex-start; padding:9px 10px; border-color:#dfe7ee; box-shadow:none; }
.permission-modal-v2 .permission-check-grid label:hover { transform:none; border-color:#a9c5df; background:#f8fbfe; }
.permission-modal-v2 .permission-check-grid label.is-selected { border-color:#7fabd2; background:#f0f7fd; color:#345a7b; box-shadow:inset 3px 0 0 #4b8bc4; }
.permission-modal-v2 .permission-check-grid label.is-selected::after { content:"已选"; margin-top:1px; background:#4b8bc4; }
.permission-option-copy { display:grid; gap:3px; min-width:0; flex:1; }
.permission-option-copy strong { color:#42566a; font-size:12px; font-weight:700; }
.permission-option-copy small { color:#8a98a5; font-size:10px; font-weight:500; line-height:1.45; }
.permission-scope-heading { margin:18px 0 8px; padding-top:16px; border-top:1px solid #dce5ed; }
.permission-scope-heading strong { display:block; color:#344f68; font-size:15px; }
.permission-scope-heading span { display:block; margin-top:3px; color:#8694a1; font-size:11px; }
.permission-scope-groups { margin-top:0; }
.permission-scope-groups > section { background:#fff; }
.permission-scope-grid { max-height:310px; overflow:auto; padding-right:3px; }
.permission-superadmin-note { margin-right:auto; color:#8a6d3b; font-size:11px; }
.permission-modal-v2 [hidden], .permission-account-list-v2 tr[hidden] { display:none !important; }

@media (max-width:1100px) {
    .permission-overview-v2 { align-items:flex-start; flex-direction:column; }
    .permission-stat-grid { width:100%; min-width:0; }
    .permission-feature-groups { grid-template-columns:1fr; }
}
@media (max-width:760px) {
    .permission-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .permission-list-toolbar-v2 { grid-template-columns:1fr; }
    .management-modal.permission-modal-v2.is-crud-form-modal .permission-account-strip { grid-template-columns:1fr; }
    .permission-editor-toolbar { position:static; grid-template-columns:1fr 1fr; }
    .permission-editor-toolbar .search-control { grid-column:1 / -1; }
    .permission-modal-v2 .permission-check-grid { grid-template-columns:1fr; }
}
