.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); background: #f3f6f6; }
.sidebar { position: sticky; top: 0; z-index: 30; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 16px; color: #dcebea; background: #103f44; }
.app-logo { display: flex; align-items: center; gap: 10px; padding: 0 10px 25px; }
.app-logo > span { width: 38px; height: 38px; display: grid; place-items: center; color: #103f44; background: #f1b857; border-radius: 11px; font-weight: 900; }
.app-logo strong { color: #fff; font-size: 19px; }
.app-logo small { margin-left: auto; padding: 3px 6px; color: #9fc4c1; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; font-size: 11px; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; }
.nav-group { margin: 3px 0; }
.nav-group summary { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 13px; border-radius: 9px; cursor: pointer; color: #dcebea; list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover { background: rgba(255,255,255,.06); }
.nav-group summary:focus-visible { outline: 2px solid #f1b857; outline-offset: -2px; }
.nav-group summary > span { width: 22px; text-align: center; color: #8eb5b2; font-size: 18px; }
.nav-group summary strong { font-size: 14px; }
.nav-group summary i { margin-left: auto; font-size: 23px; font-style: normal; transition: transform .15s; }
.nav-group[open] summary i { transform: rotate(90deg); }
.nav-group-items { margin: 4px 0 8px 14px; padding-left: 7px; border-left: 1px solid #356468; display: flex; flex-direction: column; gap: 4px; }
.nav-item { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 13px; border: 0; border-radius: 9px; color: #bcd1cf; background: transparent; cursor: pointer; text-align: left; }
.nav-item span { width: 22px; color: #8eb5b2; font-size: 18px; text-align: center; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: #1d6269; box-shadow: inset 3px 0 #f1b857; }
.nav-item.active span { color: #f1b857; }
.nav-count { min-width: 22px; height: 22px; display: grid; place-items: center; margin-left: auto; padding: 0 6px; color: #103f44; background: #f1b857; border-radius: 99px; font-size: 11px; }
.nav-caption { margin: 24px 13px 7px; color: #729895; font-size: 12px; }
.sidebar-foot { display: grid; grid-template-columns: 38px 1fr auto; gap: 9px; align-items: center; margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,.12); }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; color: #103f44; background: #d5e9e7; border-radius: 50%; font-weight: 800; }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot strong { color: #fff; font-size: 14px; }
.sidebar-foot small { margin-top: 3px; color: #8fb0ad; font-size: 12px; }
.sidebar-foot button { min-height: 34px; border: 0; color: #9fc0bd; background: transparent; cursor: pointer; }
.sidebar-account-actions { display: grid; gap: 2px; }
.sidebar-account-actions button { min-height: 26px; padding: 0 4px; font-size: 11px; }
.sidebar-account-actions button:hover { color: #fff; }
.app-main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: rgba(255,255,255,.95); border-bottom: 1px solid #dce5e4; backdrop-filter: blur(12px); }
.store-switch small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; }
.store-switch button { min-height: auto; padding: 0; border: 0; color: var(--ink); background: transparent; font-weight: 800; cursor: pointer; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.role-preview { display: flex; align-items: center; gap: 7px; padding: 5px 7px 5px 10px; color: var(--muted); background: #f4f7f6; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; }
.role-preview select { min-height: 28px; padding: 0 24px 0 8px; color: var(--ink); background: #fff; border: 0; border-radius: 6px; outline: none; font-weight: 800; }
.role-identity { padding: 8px 11px; color: var(--brand); background: #eef6f5; border: 1px solid #d4e6e4; border-radius: 8px; font-size: 12px; font-weight: 800; }
.demo-badge { padding: 6px 10px; color: #7f571a; background: #fff3d7; border-radius: 999px; font-size: 12px; font-weight: 800; }
.icon-button { width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; cursor: pointer; }
.menu-button { display: none; }
.primary-compact { min-height: 40px; padding: 0 17px; border: 0; border-radius: 9px; color: #fff; background: var(--brand); cursor: pointer; font-weight: 800; }
.workspace { max-width: 1480px; margin: 0 auto; padding: 30px clamp(18px, 3vw, 42px) 56px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { margin: 2px 0 7px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.035em; }
.page-heading p { margin: 0; color: var(--muted); }
.page-heading .breadcrumb { color: var(--brand); font-size: 13px; font-weight: 800; }
.page-primary { width: auto; min-width: 124px; padding: 0 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric-card { padding: 20px; background: #fff; border: 1px solid #dce5e4; border-radius: 14px; box-shadow: 0 5px 18px rgba(24,66,70,.04); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
.metric-top i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; font-style: normal; font-weight: 900; }
.metric-card.income i { color: #147762; background: #e5f5ef; }
.metric-card.expense i { color: #b45a38; background: #fff0ea; }
.metric-card.profit i { color: #8b651e; background: #fff4d9; }
.metric-card.pending i { color: #6262a8; background: #ededfb; }
.metric-card > strong { display: block; margin: 16px 0 7px; font-size: clamp(24px, 2.4vw, 31px); letter-spacing: -.03em; }
.metric-card > small { color: var(--muted); }
.metric-card.is-clickable { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.metric-card.is-clickable:hover, .metric-card.is-clickable:focus { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(24,66,70,.1); outline: none; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); gap: 16px; margin-top: 16px; }
.leaderboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.leaderboard-card { overflow: hidden; }
.leaderboard-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; border-bottom: 1px solid #edf1f0; }
.leaderboard-head h2 { margin: 0 0 5px; font-size: 18px; }
.leaderboard-head p { margin: 0; color: var(--muted); font-size: 12px; }
.rank-scope { min-height: 34px; padding: 0 11px; color: #4f686b; background: #fff; border: 1px solid #d2dfdd; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 800; }
.podium { min-height: 190px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; padding: 34px 22px 18px; background: linear-gradient(180deg, #fff 0%, #fbfcfc 100%); }
.podium-item { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.podium-item.first { transform: translateY(-20px); }
.rank-badge { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 9px; border: 5px solid #e5eceb; border-radius: 50%; color: #607579; background: #f5f8f8; box-shadow: 0 7px 14px rgba(21,66,70,.1); font-size: 22px; font-weight: 900; }
.podium-item.first .rank-badge { width: 62px; height: 62px; color: #8c5e07; border-color: #f3c65f; background: #fff2bd; }
.podium-item.second .rank-badge { color: #536c72; border-color: #cbd8db; background: #edf3f4; }
.podium-item.third .rank-badge { color: #9b542e; border-color: #e8a47a; background: #ffe0ca; }
.podium-item strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.podium-item b { margin-top: 5px; color: #183b3f; font-size: 16px; font-variant-numeric: tabular-nums; }
.leaderboard-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0 18px 18px; list-style: none; }
.leaderboard-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; min-height: 39px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.leaderboard-list li:nth-child(odd) { background: #f5f7f7; }
.leaderboard-list li.is-current { color: #0d6266; background: #e9f5f3; }
.leaderboard-list strong { font-weight: 700; }
.leaderboard-list strong small { display: inline-block; margin-left: 5px; padding: 2px 5px; color: #fff; background: var(--brand); border-radius: 4px; font-size: 10px; }
.leaderboard-list b { font-variant-numeric: tabular-nums; }
.list-rank { color: var(--muted); }
.service-recent-panel { margin-top: 16px; }
.panel { background: #fff; border: 1px solid #dce5e4; border-radius: 14px; box-shadow: 0 5px 18px rgba(24,66,70,.035); }
.panel-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px; border-bottom: 1px solid #edf1f0; }
.panel-head h2 { margin: 0 0 5px; font-size: 17px; }
.panel-head p { margin: 0; color: var(--muted); font-size: 13px; }
.ghost-button, .secondary-button { min-height: 40px; padding: 0 14px; border: 1px solid #ccd9d7; border-radius: 8px; color: var(--ink); background: #fff; cursor: pointer; font-weight: 700; }
.danger-button { min-height: 40px; padding: 0 14px; border: 1px solid #d99090; border-radius: 8px; color: #9b3030; background: #fff7f7; cursor: pointer; font-weight: 800; }
.danger-button:hover { background: #fce8e8; }
.secondary-button { color: #fff; border-color: var(--brand); background: var(--brand); }
.text-link { border: 0; color: var(--brand); background: transparent; cursor: pointer; font-weight: 800; }
.chart-legend { display: flex; gap: 20px; padding: 16px 22px 0; color: var(--muted); font-size: 12px; }
.dot { width: 8px; height: 8px; display: inline-block; margin-right: 5px; border-radius: 50%; }
.income-dot { background: #1d7b78; }
.expense-dot { background: #bd7659; }
.profit-dot { background: #e7b451; }
.bar-chart { height: 230px; display: flex; align-items: stretch; justify-content: space-around; gap: 12px; padding: 24px 22px 20px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 49px, #edf1f0 50px); }
.bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
.bars { width: 100%; height: 170px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.bars i { width: min(12px, 24%); border-radius: 4px 4px 1px 1px; background: #1d7b78; }
.bars i:nth-child(2) { background: #bd7659; }
.bars i:nth-child(3) { background: #e7b451; }
.bar-group small { color: var(--muted); font-size: 11px; }
.store-rank { padding: 9px 20px 17px; }
.rank-row { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid #edf1f0; }
.rank-row:last-child { border: 0; }
.rank { width: 28px; height: 28px; display: grid; place-items: center; color: #8a621e; background: #fff1d2; border-radius: 8px; font-weight: 900; font-size: 13px; }
.rank-row > div { min-width: 0; }
.rank-row p { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-size: 13px; }
.rank-row b { color: var(--brand); }
.progress { height: 6px; overflow: hidden; background: #e8eeee; border-radius: 99px; }
.progress i { display: block; height: 100%; background: #1d7b78; border-radius: inherit; }
.recent-panel, .filter-panel, .orders-panel { margin-top: 16px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 14px 16px; border-bottom: 1px solid #edf1f0; text-align: left; font-size: 13px; }
th { color: var(--muted); background: #f8faf9; font-size: 12px; font-weight: 700; }
td strong, td small { display: block; }
td small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.number { text-align: right; font-variant-numeric: tabular-nums; }
.income-text { color: #147762; }
.profit-text { color: #8b651e; font-weight: 800; }
.record-link { min-height: auto; padding: 0; border: 0; color: var(--brand); background: transparent; cursor: pointer; font-weight: 800; }
.status { display: inline-block; padding: 5px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.status.approved { color: #196852; background: #e2f3ec; }
.status.review { color: #8b6118; background: #fff1d3; }
.status.rejected { color: #9a3d3d; background: #fde9e7; }
.more-button { min-height: 30px; padding: 0 8px; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.admin-records-table th:last-child, .admin-records-table td:last-child { position: sticky; right: 0; z-index: 1; min-width: 104px; background: #fff; }
.admin-records-table thead th:last-child { z-index: 2; background: #f4f7f6; }
.record-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; white-space: nowrap; }
.record-action-button,
.record-delete-button { min-height: 30px; padding: 0 8px; border: 0; border-radius: 6px; color: #a33f3f; background: transparent; cursor: pointer; font-weight: 700; }
.record-action-button { color: var(--brand); }
.record-action-button:hover { background: #e9f4f3; }
.record-delete-button:hover { background: #fcecec; }
.filter-panel { padding: 18px; }
.filter-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) auto auto; gap: 12px; align-items: end; }
.filter-grid label, .field { margin: 0; color: var(--ink); font-size: 13px; }
.filter-grid label input, .filter-grid label select { margin-top: 7px; }
.filter-grid input, .filter-grid select, .field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #ccd9d7; border-radius: 8px; color: var(--ink); background: #fff; outline: none; }
.field textarea { padding-top: 10px; resize: vertical; }
.filter-grid input:focus, .filter-grid select:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,89,97,.1); }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; color: var(--muted); font-size: 12px; }
.pagination button { min-width: 34px; min-height: 34px; margin-left: 5px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.pagination button.active { color: #fff; background: var(--brand); }
.empty-panel { min-height: 360px; display: grid; place-content: center; justify-items: center; padding: 30px; text-align: center; }
.empty-panel h2 { margin: 14px 0 7px; }
.empty-panel p { max-width: 440px; margin: 0; color: var(--muted); }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; color: var(--brand); background: #e3efee; border-radius: 18px; font-size: 30px; }

/* 管理员基础选项与账号设置 */
.settings-panel, .master-data-panel, .account-panel, .store-settings-panel, .approval-panel { overflow: hidden; }
.settings-panel { margin-top: 16px; }
.master-data-panel { margin-top: 16px; }
.settings-panel-head { min-height: 82px; }
.count-badge { display: inline-grid; place-items: center; min-width: 25px; height: 25px; margin-left: 6px; padding: 0 7px; color: #fff; background: #b77a18; border-radius: 99px; font-size: 12px; vertical-align: 2px; }
.settings-notice { display: flex; align-items: center; gap: 12px; margin: 18px 20px; padding: 13px 15px; color: #486367; background: #eef6f5; border: 1px solid #d4e6e4; border-radius: 10px; }
.settings-notice span { flex: 0 0 auto; padding: 5px 8px; color: #fff; background: var(--brand); border-radius: 6px; font-size: 11px; font-weight: 800; }
.settings-notice p, .settings-foot p { margin: 0; color: var(--muted); font-size: 13px; }
.type-settings-head, .type-setting-row { display: grid; grid-template-columns: minmax(230px, 1.55fr) minmax(145px, .75fr) minmax(140px, .65fr) 126px 84px 62px; gap: 12px; align-items: center; }
.type-settings-head { margin: 0 20px; padding: 0 14px 8px; color: #607579; font-size: 12px; font-weight: 800; }
.type-settings-list { display: flex; flex-direction: column; gap: 9px; padding: 0 20px 20px; }
.type-setting-row { padding: 13px 14px; background: #f8faf9; border: 1px solid #e0e8e7; border-radius: 10px; }
.setting-field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.setting-field input, .setting-field select { width: 100%; min-height: 42px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid #ccd9d7; border-radius: 8px; outline: none; }
.setting-field input:focus, .setting-field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,89,97,.1); }
.setting-field input[readonly] { background: #f1f5f4; color: #617374; cursor: not-allowed; }
[data-after-sales-form] .setting-field { display: flex; flex-direction: column; gap: 8px; }
[data-after-sales-form] .setting-field > span { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-size: 13px; font-weight: 700; color: var(--ink); }
[data-after-sales-form] textarea { width: 100%; min-height: 86px; padding: 10px 12px; border: 1px solid #ccd9d7; border-radius: 8px; font: inherit; color: var(--ink); resize: vertical; }
[data-after-sales-form] textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,89,97,.1); }
[data-after-sales-form] input::placeholder, [data-after-sales-form] textarea::placeholder { color: #7a8d8e; }
.after-sales-panel { overflow: hidden; }
.after-sales-shared { padding: 6px 12px; border-radius: 20px; color: #176367; background: #e9f5f2; font-size: 12px; font-weight: 700; }
[data-after-sales-form] { padding: 28px; display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 26px 20px; }
[data-after-sales-form] > .setting-field { grid-column: span 4; min-width: 0; }
[data-after-sales-form] > .after-sales-problem { grid-column: span 6; }
[data-after-sales-form] > .after-sales-notes { grid-column: span 3; }
[data-after-sales-form] > .after-sales-status { grid-column: span 2; }
[data-after-sales-form] input, [data-after-sales-form] select { min-height: 46px; }
[data-after-sales-form] textarea { min-height: 120px; background: #fcfdfd; }
[data-after-sales-form] .setting-field small { margin-left: 5px; font-size: 11px; font-weight: 400; color: #8a9a9c; }
.after-sales-actions { grid-column: 1/-1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px solid #e8eeee; }
.after-sales-actions p { margin: 0; font-size: 12px; color: #7a8d8e; }
.after-sales-actions button { min-height: 44px; min-width: 128px; box-shadow: 0 4px 10px rgba(11,89,97,.12); }
[data-after-sales-form] > .setting-field:has(input[name="date"]), [data-after-sales-form] > .setting-field:has(input[name="merchant_name"]), [data-after-sales-form] > .setting-field:has(input[name="game_number"]), [data-after-sales-form] > .setting-field:has(input[name="platform"]) { grid-column: span 3; }
.sale-note-cell { min-width: 270px; }
.sale-note-cell textarea { width: 100%; min-height: 78px; padding: 10px 12px; font: inherit; font-size: 13px; border: 1px solid #d6e2e0; border-radius: 8px; resize: vertical; background: rgba(255,255,255,.8); color: var(--ink); }
.sale-note-cell textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,89,97,.08); }
.sale-note-cell small { display: block; margin-top: 6px; font-size: 11px; color: #78918e; white-space: normal; }
.sale-note-cell .note-save-error { color: #bc3030; }
@media(max-width:900px){[data-after-sales-form] > .setting-field:has(input){grid-column:span 1}}
@media(max-width:900px){[data-after-sales-form]{grid-template-columns:repeat(2,minmax(0,1fr));padding:20px}[data-after-sales-form] > .setting-field{grid-column:span 1}[data-after-sales-form] > .after-sales-problem,[data-after-sales-form] > .after-sales-notes{grid-column:1/-1}}
@media(max-width:600px){[data-after-sales-form]{grid-template-columns:1fr}[data-after-sales-form] > .setting-field{grid-column:1/-1}.after-sales-actions{align-items:flex-end}.after-sales-actions p{max-width:55%}}
.after-sale-resolved { background: #eef0f1; color: #8a9396; }
.after-sale-resolved td { color: #8a9396; }
.after-sale-overdue td { background: #fff0f0; color: #bc3030; }
.top-search { display: flex; gap: 10px; }
.top-search input { width: 145px; min-height: 38px; padding: 8px 10px; border: 1px solid #ccd9d7; border-radius: 8px; background: #fff; font: inherit; font-size: 12px; }
.search-results { max-height: 65vh; overflow-y: auto; }
.search-results .ghost-button { display: block; width: 100%; text-align: left; padding: 12px; margin-bottom: 8px; white-space: normal; }
.search-results small { display: block; margin-top: 5px; color: #637879; }
.search-results .search-recovery-number { font-size: 15px; font-weight: 700; color: var(--ink); }
.search-highlight td { background: #fff0c2!important; }
.unified-search { position: relative; }
.unified-search form { position: relative; }
.unified-search form > span { position: absolute; left: 12px; top: 7px; font-size: 22px; color: #6c8b88; }
.unified-search input { width: clamp(240px,30vw,480px); min-height: 42px; padding-left: 38px; background: #f8fbfa; }
.unified-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,89,97,.08); }
.quick-search-dropdown { position: absolute; right: 0; top: calc(100% + 12px); z-index: 90; width: min(560px,85vw); box-shadow: 0 16px 50px rgba(16,63,68,.18); border-radius: 14px; }
.quick-search-dropdown .record-dialog { width: 100%; max-height: 75vh; border: 1px solid #d9e5e2; }
.quick-search-dropdown .dialog-head { padding: 16px 20px; }
.quick-search-dropdown h2 { font-size: 18px; }
.quick-search-dropdown .search-results { padding: 14px 20px; max-height: 55vh; }
.quick-search-dropdown h3 { font-size: 13px; color: #527571; }
@media(max-width:1100px){.topbar{height:auto;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}.top-actions{flex-wrap:wrap}.top-search input{width:120px}}
.after-sale-resolved .ghost-button { background: #f3f4f5; color: #7c878b; border-color: #d8dddf; }
.rate-input { position: relative; }
.rate-input input { padding-right: 34px; font-variant-numeric: tabular-nums; }
.rate-input b { position: absolute; right: 12px; top: 13px; color: var(--muted); font-size: 12px; }
.setting-check { display: flex; align-items: center; gap: 8px; min-height: 42px; color: #465e62; font-size: 12px; font-weight: 700; cursor: pointer; }
.setting-check input { width: 17px; height: 17px; accent-color: var(--brand); }
.remove-type { min-height: 36px; border: 0; color: #a54d4d; background: transparent; cursor: pointer; font-weight: 700; }
.remove-type:hover { background: #fcecec; border-radius: 7px; }
.settings-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; background: #fbfcfc; border-top: 1px solid #edf1f0; }
.option-editor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px 20px 20px; }
.option-editor { padding: 15px; background: #f8faf9; border: 1px solid #e0e8e7; border-radius: 11px; }
.option-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.option-editor-head h3 { margin: 0 0 4px; font-size: 15px; }
.option-editor-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.option-editor-head button { flex: 0 0 auto; min-height: 30px; padding: 0 9px; color: var(--brand); background: #fff; border: 1px solid #b8d0cd; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 800; }
.option-editor-list { display: flex; flex-direction: column; gap: 7px; }
.option-setting-row { display: grid; grid-template-columns: 1fr 30px; gap: 7px; }
.option-setting-row input { min-width: 0; min-height: 38px; padding: 0 10px; color: var(--ink); background: #fff; border: 1px solid #ccd9d7; border-radius: 7px; outline: none; }
.option-setting-row input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,89,97,.1); }
.option-setting-row button { min-height: 36px; color: #a54d4d; background: #fcecec; border: 0; border-radius: 7px; cursor: pointer; font-size: 18px; }
.approval-table-head, .approval-row { display: grid; grid-template-columns: 76px minmax(240px, 1fr) 110px 100px 210px; gap: 12px; align-items: center; }
.approval-table-head { margin: 0 20px; padding: 0 14px 8px; color: #607579; font-size: 12px; font-weight: 800; }
.approval-list { display: flex; flex-direction: column; gap: 9px; padding: 0 20px 20px; }
.approval-row { padding: 13px 14px; background: #f8faf9; border: 1px solid #e0e8e7; border-radius: 10px; }
.approval-row > strong { color: #35555a; font-size: 13px; }
.approval-row > small { color: var(--muted); font-size: 12px; }
.approval-type { justify-self: start; padding: 6px 9px; color: #195b52; background: #def1ed; border-radius: 99px; font-size: 12px; font-weight: 800; }
.approval-type.merchants { color: #84591b; background: #fff0d0; }
.approval-name > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.approval-name input { width: 100%; min-height: 40px; padding: 0 11px; color: var(--ink); background: #fff; border: 1px solid #ccd9d7; border-radius: 8px; outline: none; }
.approval-name input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,89,97,.1); }
.approval-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.approval-actions .primary-compact, .approval-actions .ghost-button { min-height: 38px; padding: 0 11px; white-space: nowrap; }
.approval-empty { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 112px; margin: 0 20px 20px; padding: 18px; color: #476266; background: #f8faf9; border: 1px dashed #cbdad8; border-radius: 10px; }
.approval-empty > span { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 50%; font-weight: 900; }
.approval-empty strong, .approval-empty p { display: block; margin: 0; }
.approval-empty p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.account-settings-head, .account-setting-row { display: grid; grid-template-columns: minmax(90px, .55fr) minmax(150px, .9fr) minmax(160px, .9fr) 150px minmax(250px, 1.65fr) 65px 100px 58px; gap: 10px; align-items: center; }
.account-settings-head { margin: 0 20px; padding: 0 14px 8px; color: #607579; font-size: 12px; font-weight: 800; }
.account-settings-list { display: flex; flex-direction: column; gap: 9px; padding: 0 20px 20px; }
.account-setting-row { padding: 13px 14px; background: #f8faf9; border: 1px solid #e0e8e7; border-radius: 10px; }
.account-password-field { display: grid; gap: 5px; margin: 0; }
.account-password-control { display: block; }
.account-password-control input[readonly] { color: var(--muted); background: #f0f4f3; cursor: wait; }
.account-password-field small { color: var(--muted); font-size: 11px; font-weight: 700; }
.account-password-field small.saved { color: #267066; }
.account-password-field small.changing { color: #9a6818; }
.account-password-field small.pending { color: #8a6262; }
.account-password-field small.unavailable { color: #a15b4e; }
.protected-account { color: var(--brand); font-size: 12px; font-weight: 800; text-align: center; }
.store-settings-head, .store-setting-row { display: grid; grid-template-columns: minmax(300px, 1fr) 96px 64px; gap: 12px; align-items: center; }
.store-settings-head { margin: 0 20px; padding: 0 14px 8px; color: #607579; font-size: 12px; font-weight: 800; }
.store-settings-list { display: flex; flex-direction: column; gap: 9px; padding: 0 20px 20px; }
.store-setting-row { padding: 13px 14px; background: #f8faf9; border: 1px solid #e0e8e7; border-radius: 10px; }
.field[hidden] { display: none; }

.modal-open { overflow: hidden; }
.record-dialog-overlay { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 15px 18px; background: rgba(9,31,35,.58); backdrop-filter: blur(3px); }
.record-dialog { width: min(1420px, calc(100vw - 36px)); max-height: calc(100vh - 30px); padding: 0; overflow: hidden; border: 0; border-radius: 18px; color: var(--ink); background: #f4f7f6; box-shadow: 0 30px 100px rgba(9,38,42,.3); }
.record-form { height: min(900px, calc(100vh - 30px)); display: flex; flex-direction: column; }
.password-dialog { width: min(520px, calc(100vw - 36px)); }
.password-dialog-form { display: flex; flex-direction: column; }
.password-dialog-body { display: grid; gap: 14px; padding: 22px 26px 26px; background: #fff; }
.password-dialog-body label { margin: 0; color: #415c60; font-size: 13px; font-weight: 800; }
.password-dialog-body label > input, .password-dialog-body .password-field { margin-top: 7px; }
.password-dialog-body input { width: 100%; min-height: 44px; padding: 0 13px; color: var(--ink); background: #fbfdfd; border: 1px solid #c8d7d5; border-radius: 9px; outline: none; }
.password-dialog-body .password-field { position: relative; }
.password-dialog-body .password-field input { padding-right: 62px; }
.password-dialog-body .text-button { position: absolute; top: 0; right: 4px; min-height: 44px; padding: 0 10px; color: var(--brand); background: transparent; border: 0; cursor: pointer; font-weight: 800; }
.password-dialog-body .form-error { min-height: 20px; margin: 0; color: #aa4141; font-size: 12px; }
.password-warning { margin: 0; padding: 11px 13px; color: #875c1b; background: #fff7e7; border: 1px solid #f0d8a8; border-radius: 8px; font-size: 12px; line-height: 1.6; }
.record-detail-dialog { width: min(1120px, calc(100vw - 36px)); }
.record-detail-form { height: min(880px, calc(100vh - 30px)); display: flex; flex-direction: column; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 26px; background: #fff; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 24px; }
.dialog-head p:not(.section-kicker) { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.dialog-head .section-kicker { margin-bottom: 4px; }
.dialog-close { width: 42px; min-height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; cursor: pointer; font-size: 25px; }
.dialog-body { flex: 1; overflow: auto; padding: 20px; }
.form-section { margin-bottom: 16px; padding: 22px; background: #fff; border: 1px solid #dce5e4; border-radius: 13px; }
.form-section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }
.form-section-title > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--brand); background: #e4f0ef; border-radius: 9px; font-size: 12px; font-weight: 900; }
.form-section-title > .status { width: auto; height: auto; margin-left: auto; padding: 6px 10px; border-radius: 99px; }
.form-section-title h3 { margin: 0 0 4px; font-size: 16px; }
.form-section-title p { margin: 0; color: var(--muted); font-size: 12px; }
.add-row-button { margin-left: auto; min-height: 38px; padding: 0 13px; color: var(--brand); border: 1px solid #b8d0cd; border-radius: 8px; background: #f7fbfa; cursor: pointer; font-weight: 800; }
.field-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 17px 14px; }
.field > span { display: block; min-height: 20px; margin-bottom: 6px; color: #465e62; font-size: 12px; font-weight: 700; }
.field-note { display: block; margin-top: 6px; color: #6d7f82; font-size: 11px; line-height: 1.4; }
.span-2 { grid-column: span 2; }
.record-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.record-detail-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.record-detail-item { min-width: 0; padding: 12px 13px; background: #f7faf9; border: 1px solid #e0e8e7; border-radius: 9px; }
.record-detail-item small, .record-detail-item strong { display: block; }
.record-detail-item small { color: var(--muted); font-size: 11px; }
.record-detail-item strong { margin-top: 6px; overflow-wrap: anywhere; font-size: 14px; }
.record-payment-table { white-space: normal; }
.record-detail-notes { min-height: 46px; margin: 0; color: #405b60; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.flow-list { display: flex; flex-direction: column; gap: 10px; }
.flow-row { padding: 14px; background: #f7faf9; border: 1px solid #e0e8e7; border-radius: 10px; }
.flow-row-grid { display: grid; grid-template-columns: .7fr .8fr .9fr 1.15fr 1fr 1.1fr 34px; gap: 10px; align-items: end; }
.money-input { position: relative; }
.money-input b { position: absolute; z-index: 1; left: 12px; top: 12px; color: var(--muted); font-size: 13px; }
.money-input input { padding-left: 30px; }
.attachment-field { min-width: 0; }
.upload-button { width: 100%; min-height: 42px; overflow: hidden; padding: 0 10px; border: 1px dashed #a9c4c1; border-radius: 8px; color: var(--brand); background: #fff; cursor: pointer; text-overflow: ellipsis; white-space: nowrap; }
.remove-flow { width: 32px; min-height: 42px; border: 0; border-radius: 8px; color: #a54d4d; background: #fcecec; cursor: pointer; font-size: 20px; }
.profit-layout { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: end; }
.profit-summary { display: grid; grid-template-columns: repeat(6, 1fr); overflow: hidden; border: 1px solid #d9e4e2; border-radius: 10px; }
.profit-summary > div { padding: 13px 14px; border-right: 1px solid #e5eceb; }
.profit-summary > div:last-child { border: 0; }
.profit-summary small, .profit-summary strong { display: block; }
.profit-summary small { color: var(--muted); font-size: 11px; }
.profit-summary strong { margin-top: 6px; font-size: 15px; font-variant-numeric: tabular-nums; }
.profit-summary .highlight { color: #fff; background: var(--brand); }
.profit-summary .highlight small { color: #c8e2df; }
.dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 22px; background: #fff; border-top: 1px solid var(--line); }
.dialog-foot p { margin: 0; color: var(--muted); font-size: 12px; }
.dialog-foot > div { display: flex; gap: 9px; }
.draft-dot { width: 7px; height: 7px; display: inline-block; margin-right: 5px; background: #e6a846; border-radius: 50%; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 12px 17px; color: #fff; background: #153f43; border-radius: 9px; box-shadow: 0 10px 30px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.warning { background: #8a5719; }
.mobile-overlay { display: none; }

/* 订单与收款明细 */
.detail-list { display: flex; flex-direction: column; gap: 10px; }
.detail-row { padding: 14px; background: #f7faf9; border: 1px solid #e0e8e7; border-radius: 10px; }
.detail-columns { display: grid; grid-template-columns: 1.05fr 2fr 1fr 34px; gap: 10px; padding: 0 14px 7px; color: #607579; font-size: 12px; font-weight: 800; }
.payment-row-grid { display: grid; grid-template-columns: 1.05fr 2fr 1fr 34px; gap: 10px; align-items: start; }
.payment-row-grid > .field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.amount-field small { display: block; min-height: 18px; margin-top: 6px; color: #75878a; font-size: 11px; line-height: 1.35; }
.remove-detail { width: 32px; min-height: 42px; margin-top: 0; border: 0; border-radius: 8px; color: #a54d4d; background: #fcecec; cursor: pointer; font-size: 20px; }
.finance-inputs { display: grid; grid-template-columns: repeat(3, minmax(180px, 220px)); gap: 14px; margin-bottom: 10px; }
.finance-formula { margin: 0 0 20px; padding: 10px 12px; color: #436166; background: #eef6f5; border-radius: 8px; font-size: 12px; font-weight: 700; }
.summary-label { margin: 17px 0 8px; color: #586f72; font-size: 12px; font-weight: 800; }
.settlement-summary { display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; border: 1px solid #d9e4e2; border-radius: 10px; }
.settlement-summary > div { padding: 13px 14px; border-right: 1px solid #e5eceb; }
.settlement-summary > div:last-child { border: 0; }
.settlement-summary small, .settlement-summary strong { display: block; }
.settlement-summary small { color: var(--muted); font-size: 11px; }
.settlement-summary strong { margin-top: 6px; font-size: 15px; font-variant-numeric: tabular-nums; }
.balance-cell { color: #176951; background: #e9f6f1; }
.balance-cell small { color: #568377; }
.balance-cell.mismatch { color: #a33d3d; background: #fff0ef; }
.balance-cell.mismatch small { color: #a66e6e; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .field-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .flow-row-grid { grid-template-columns: repeat(3, 1fr) 34px; }
  .flow-row-grid .field:nth-child(4) { grid-column: 1 / 2; }
  .flow-row-grid .field:nth-child(6) { grid-column: span 2; }
  .profit-summary { grid-template-columns: repeat(3, 1fr); }
  .profit-summary > div:nth-child(3) { border-right: 0; }
  .profit-summary > div:nth-child(-n+3) { border-bottom: 1px solid #e5eceb; }
  .filter-grid { grid-template-columns: repeat(4, 1fr); }
  .filter-grid button { width: 100%; }
  .detail-columns, .payment-row-grid { grid-template-columns: 1.05fr 1.65fr 1fr 34px; }
  .type-settings-head, .type-setting-row { grid-template-columns: minmax(210px, 1.4fr) minmax(130px, .75fr) minmax(125px, .65fr) 112px 72px 58px; gap: 9px; }
  .approval-table-head, .approval-row { grid-template-columns: 70px minmax(210px, 1fr) 90px 84px 195px; gap: 9px; }
  .record-detail-grid, .record-detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; transform: translateX(-100%); width: 250px; transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .mobile-overlay.show { position: fixed; z-index: 25; inset: 0; display: block; background: rgba(9,31,35,.45); }
  .menu-button { display: inline-grid; place-items: center; }
  .topbar { padding: 0 16px; }
  .topbar .store-switch { margin-right: auto; margin-left: 12px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .leaderboard-grid { grid-template-columns: 1fr; }
  .option-editor-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .flow-row-grid { grid-template-columns: repeat(2, 1fr) 34px; }
  .flow-row-grid .field:nth-child(4), .flow-row-grid .field:nth-child(6) { grid-column: auto; }
  .flow-row-grid .field:nth-child(6) { grid-column: span 2; }
  .profit-layout { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .approval-table-head { display: none; }
  .approval-row { grid-template-columns: 72px 1fr; }
  .approval-row > strong, .approval-row > small { padding-left: 84px; grid-column: 1 / -1; }
  .approval-actions { grid-column: 1 / -1; }
  .store-settings-head { display: none; }
  .store-setting-row { grid-template-columns: 1fr 1fr; }
  .store-setting-row .setting-check, .store-setting-row .remove-type { justify-self: start; }
}

@media (max-width: 620px) {
  .top-actions .icon-button, .demo-badge, .role-preview > span { display: none; }
  .primary-compact { padding: 0 12px; }
  .workspace { padding: 22px 13px 40px; }
  .page-heading { align-items: center; }
  .page-heading > div > p:not(.breadcrumb) { display: none; }
  .page-primary { min-width: auto; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { padding: 15px; }
  .metric-card > strong { font-size: 20px; }
  .dashboard-grid { gap: 10px; margin-top: 10px; }
  .trend-panel { display: none; }
  .recent-panel { margin-top: 10px; }
  .filter-grid { grid-template-columns: 1fr; }
  .export-button { display: none; }
  .record-dialog { width: 100vw; max-height: 100vh; border-radius: 0; }
  .record-dialog-overlay { padding: 0; }
  .record-form { height: 100vh; }
  .record-detail-form { height: 100vh; }
  .dialog-head { padding: 15px 17px; }
  .dialog-body { padding: 10px; }
  .form-section { padding: 16px 13px; }
  .field-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .finance-inputs { grid-template-columns: 1fr; }
  .flow-row-grid { grid-template-columns: 1fr 1fr; }
  .flow-row-grid .field:nth-child(4), .flow-row-grid .field:nth-child(5), .flow-row-grid .field:nth-child(6) { grid-column: span 2; }
  .remove-flow { width: 100%; grid-column: span 2; }
  .profit-summary { grid-template-columns: 1fr 1fr; }
  .profit-summary > div { border-bottom: 1px solid #e5eceb; }
  .profit-summary > div:nth-child(even) { border-right: 0; }
  .dialog-foot { align-items: stretch; padding: 10px; }
  .dialog-foot p { display: none; }
  .dialog-foot > div { width: 100%; }
  .dialog-foot button { flex: 1; padding: 0 7px; }
  .record-detail-grid, .record-detail-summary { grid-template-columns: 1fr; }
  .table-scroll table { min-width: 980px; }
}

.system-version{font-size:11px;white-space:nowrap;border:1px solid #dbe3f0;background:#f7f9fc;color:#61708b;border-radius:6px;padding:4px 6px;cursor:pointer}.notification-button{position:relative;font-size:22px}.notification-count{position:absolute;right:-5px;top:-5px;border-radius:12px;background:#e34b50;color:white;font-size:10px;padding:2px 5px}.system-update-banner{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:12000;background:#eff5ff;border:1px solid #bfd3ff;box-shadow:0 6px 22px #15274820;border-radius:12px;padding:14px 18px;display:flex;align-items:center;gap:18px;max-width:90vw;color:#26476e}.system-update-banner button,.notification-panel button{cursor:pointer;border:1px solid #dde4f2;background:white;border-radius:8px;padding:8px 12px;color:#2964ee;white-space:nowrap}.notification-overlay{position:fixed;inset:0;background:#15223850;z-index:11000;display:flex;justify-content:flex-end}.notification-panel{width:min(480px,100vw);height:100%;background:#fff;box-shadow:-8px 0 30px #14204020;display:flex;flex-direction:column}.notification-panel header{display:flex;justify-content:space-between;align-items:center;padding:24px;border-bottom:1px solid #e7ecf4}.notification-panel h2{margin:0 0 6px;font-size:23px}.notification-panel small{color:#8491a4}.notification-panel nav{padding:14px 20px;display:flex;gap:8px;border-bottom:1px solid #edf0f7}.notification-panel nav .active{background:#eaf1ff;border-color:#c7d8ff}.notification-list{padding:16px 20px;overflow:auto;flex:1}.notification-list article{border:1px solid #e5eaf3;border-radius:12px;padding:16px;margin-bottom:12px}.notification-list article.unread{background:#f4f8ff;border-color:#cfddff}.notification-list p{font-size:14px;line-height:1.6;margin:10px 0;white-space:pre-wrap}.notification-list footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.notification-list footer small{flex:1}.notification-empty{text-align:center;color:#8491a4;padding:35px 0}

.option-editor-actions{display:flex;gap:8px}.option-editor-content[hidden]{display:none!important}.option-sort-heading{display:grid;grid-template-columns:80px 1fr;gap:8px;font-size:12px;color:#8491a4;padding:12px 0 6px}.option-setting-row.numeric-option-row{grid-template-columns:80px minmax(0,1fr) 32px}.numeric-option-row [data-option-sort]{text-align:center}

.option-editor-content.is-compact .option-setting-row:nth-child(n+11){display:none!important}

.approval-select-cell{width:82px;text-align:center!important;white-space:nowrap}.approval-select-cell input{width:16px;height:16px;vertical-align:middle;accent-color:#2964ff}[data-batch-selection]{font-size:13px;color:#8491a4}[data-batch-approve]:disabled{opacity:.5;cursor:not-allowed}

.recovery-detail-dialog{width:min(1080px,94vw);max-height:90vh;display:flex;flex-direction:column}.recovery-detail-dialog .dialog-body{overflow:auto;min-height:0}.recovery-detail-dialog .record-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.recovery-detail-dialog .record-detail-item strong{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:700px){.recovery-detail-dialog .record-detail-grid{grid-template-columns:1fr}}

.recovery-detail-dialog .field-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.recovery-detail-dialog .merchant-recovery-form{border:0;border-radius:0}.recovery-detail-dialog .form-section{margin:16px}.recovery-detail-dialog .page-heading{padding:24px;margin:0}.recovery-detail-dialog .dialog-foot{position:sticky;bottom:0;background:#fff;z-index:2}.recovery-detail-dialog .dialog-foot>div{display:flex;gap:8px}@media(max-width:700px){.recovery-detail-dialog .field-grid{grid-template-columns:1fr}}

.daily-business-trends{margin:22px 0}.daily-trend-heading{display:flex;justify-content:space-between;align-items:center;padding:20px;margin-bottom:16px;gap:15px}.daily-trend-heading h2{margin:0;font-size:20px}.daily-trend-heading p{margin:8px 0 0;color:#8491a4;font-size:13px}.daily-trend-heading input{padding:8px;border:1px solid #d9e1ef;border-radius:8px;color:#42596c}.daily-trend-chart{padding:18px 12px 0;overflow:auto}.daily-trend-chart svg{width:100%;min-width:480px;display:block}.daily-trend-legend{display:flex;flex-wrap:wrap;gap:12px;padding:12px 20px 20px;font-size:12px;color:#61708b}.daily-trend-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}.daily-business-trends .muted{padding:0 20px 16px}.daily-business-trends .rank-scope{max-width:155px}@media(max-width:700px){.daily-trend-heading{align-items:flex-start;flex-direction:column}}

.game-trend-summary{display:flex;justify-content:space-between;gap:12px;padding:20px 22px 0;font-size:14px}.game-trend-summary span{color:#70819a}.game-trend-summary b{font-size:20px;color:#2964ff}.game-sales-bars{padding-bottom:10px}.game-sales-bars svg{max-width:none}

.daily-game-rankings{display:flex;gap:12px;overflow-x:auto;align-items:flex-start;padding:18px 20px 24px;max-height:440px}.daily-game-rank-card{flex:0 0 225px;border:1px solid #e3e9f3;border-radius:12px;overflow:hidden;background:#fff}.daily-game-rank-card header{display:flex;justify-content:space-between;align-items:center;padding:14px;background:#f3f7ff;border-bottom:1px solid #e3e9f3}.daily-game-rank-card header strong{font-size:17px;color:#2964ff}.daily-game-rank-card header span{font-size:12px;color:#8491a4}.daily-game-rank-card ol{list-style:none;padding:8px 12px;margin:0}.daily-game-rank-card li{display:flex;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #f0f3f8;font-size:13px}.daily-game-rank-card li:last-child{border-bottom:0}.day-game-rank{font-size:11px;flex:0 0 22px;text-align:center;color:#8491a4}.day-game-rank.top-rank{background:#fff2ce;color:#a76d06;border-radius:5px;padding:4px 0}.day-game-name{flex:1;min-width:0;overflow-wrap:anywhere}.daily-game-rank-card li b{color:#2964ff;white-space:nowrap}.daily-game-rank-card li small{font-weight:normal;font-size:11px;color:#8491a4}.daily-rank-empty{padding:20px 14px;text-align:center;color:#9ba7b7;font-size:13px}

.daily-store-rank-card{flex-basis:270px}.daily-store-rank-card li b{font-size:13px}.daily-store-rank-card header span{color:#2964ff}

.daily-business-trends>.leaderboard-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}.daily-business-trends>.leaderboard-grid>.panel{min-width:0}.game-rank-filters{display:flex;gap:10px;flex-wrap:wrap}.store-game-rank-section{border-bottom:1px solid #e5eaf3;padding-top:12px}.store-game-rank-section:last-child{border-bottom:0}.store-game-rank-section>h3{margin:6px 22px 0;color:#263e59;font-size:17px}.daily-business-trends .daily-game-rankings{max-height:440px}

.rank-month-control{display:flex;align-items:center;gap:8px;font-size:13px;color:#61708b}.rank-month-control input{border:1px solid #d9e1ef;border-radius:8px;background:white;padding:7px 10px;font:inherit;color:#42596c}.daily-business-trends .game-rank-filters{align-items:center}

.daily-business-trends>.leaderboard-grid>article:has([data-game-trend]){order:0}.daily-business-trends>.leaderboard-grid>article:has([data-store-trend]){order:1}


[data-game-trend] .daily-game-rank-card{flex-basis:290px}

.daily-game-rank-card .day-game-rank{flex-basis:38px;display:flex;flex-direction:column;align-items:center;gap:4px;background:transparent!important}.daily-game-rank-card .day-game-rank.top-rank{font-weight:700;color:#a76d06}.daily-game-rank-card .rank-change{font-size:10px;line-height:1.2;white-space:nowrap;font-weight:400}.daily-game-rank-card .rank-change.up{color:#f05b68}.daily-game-rank-card .rank-change.down{color:#16b69a}.daily-game-rank-card .rank-change.steady{color:#8491a4}.daily-game-rank-card .rank-change.new{color:#2964ff}

.recovery-listing-editor{grid-column:2 / -1;min-width:0}.recovery-listing-row.field-grid{display:grid;grid-template-columns:minmax(150px,1fr) minmax(200px,2fr) auto;gap:12px;align-items:end;padding:12px;background:#f8faff;border:1px solid #e5ebf5;border-radius:10px;margin-bottom:10px}.recovery-listing-row [data-remove-listing]{height:40px;align-self:end;padding:0 14px;color:#c44b4b;background:white}.recovery-listing-editor [data-add-listing]{display:inline-flex;height:36px;padding:0 16px;align-items:center;color:#2861ed;background:#f3f7ff;border:1px dashed #b7caf6}.recovery-listing-editor+.field{grid-column:1 / -1}@media(max-width:700px){.recovery-listing-editor{grid-column:1 / -1}.recovery-listing-row.field-grid{grid-template-columns:1fr}.recovery-listing-row [data-remove-listing]{justify-self:end}}

.recovery-select-all{display:inline-flex;align-items:center;gap:6px;margin-left:20px;font-size:13px;font-weight:400;color:#6d7890;cursor:pointer}.recovery-records-table th:first-child,.recovery-records-table td:first-child{text-align:left;padding-left:20px}.recovery-records-table .record-row-actions input[type=checkbox]{margin-right:8px}
.recovery-title-group{display:flex;align-items:center}.recovery-title-group h2{margin:0}

.inventory-platform-column{min-width:130px;white-space:nowrap}.inventory-platform-column small{display:block;margin-top:4px;font-size:11px;color:#929caf}
.recovery-records-table th:last-child,.recovery-records-table td:last-child{position:static}.recovery-records-table{width:max-content;min-width:100%}.recovery-records-table .inventory-platform-column{min-width:110px}
.recovery-records-table{width:100%;min-width:100%;table-layout:auto}.recovery-records-table th,.recovery-records-table td{padding:12px 7px;font-size:12px}.recovery-records-table th:first-child,.recovery-records-table td:first-child{padding-left:12px;width:36px;min-width:0}.recovery-records-table th:nth-child(2),.recovery-records-table td:nth-child(2){width:82px;min-width:0}.recovery-records-table .inventory-platform-column{min-width:82px}.recovery-records-table .rank-scope{min-width:76px;width:76px;padding:6px;font-size:12px}.recovery-records-table .record-row-actions{gap:6px;flex-wrap:wrap}.recovery-records-table th:last-child,.recovery-records-table td:last-child{min-width:96px}.recovery-records-table td{white-space:normal;overflow-wrap:anywhere}
.store-expense-edit-dialog{width:min(620px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow-y:auto;padding:24px;box-sizing:border-box}.store-expense-edit-dialog .expense-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.store-expense-edit-dialog .field{min-width:0}.store-expense-edit-dialog input,.store-expense-edit-dialog select{width:100%;min-width:0;box-sizing:border-box}.store-expense-edit-dialog .dialog-foot{margin-top:24px;position:static}.store-expense-edit-dialog h2{margin:0 0 20px}@media(max-width:540px){.store-expense-edit-dialog .expense-edit-grid{grid-template-columns:1fr}}
.promotion-month-total{margin:0 20px 20px;padding:20px 24px;border:1px solid #dce6ff;border-radius:12px;background:#f3f7ff;display:flex;justify-content:space-between;align-items:center;gap:16px}.promotion-month-total span{display:block;color:#687b9f;font-size:13px;margin-bottom:8px}.promotion-month-total strong{font-size:28px;color:#2964ff}.promotion-month-total small{color:#8694ae}

.expense-summary-footer{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px}.expense-summary-footer>strong{white-space:nowrap;color:#252b37;font-size:16px}.expense-summary-footer>div{justify-self:end}@media(max-width:700px){.expense-summary-footer{grid-template-columns:1fr auto}.expense-summary-footer>p{grid-column:1/-1}.expense-summary-footer>strong{font-size:14px}}

.role-money-summary{display:flex;flex-wrap:wrap;gap:12px 24px;padding:16px 20px;background:#f7f9fd;border-bottom:1px solid #edf0f5;align-items:center}.role-money-summary span{white-space:nowrap}.panel-head .role-money-summary{padding:0;background:transparent;border:0}

/* 收款日期列 */
.payment-row-grid,.detail-columns { grid-template-columns:minmax(140px,.85fr) 1.05fr 2fr 1fr 34px; }

/* 金额只允许手动输入，隐藏原生微调箭头。 */
input[type="number"][step="0.01"]::-webkit-inner-spin-button,
input[type="number"][step="0.01"]::-webkit-outer-spin-button,
input[type="number"][step=".01"]::-webkit-inner-spin-button,
input[type="number"][step=".01"]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
input[type="number"][step="0.01"],input[type="number"][step=".01"] { -moz-appearance:textfield; appearance:textfield; }

/* 号卡管理表头及资料统一居中。 */
.sim-cards-table th,.sim-cards-table td { text-align:center !important; vertical-align:middle; }
.sim-cards-table input[type="checkbox"] { width:20px; height:20px; min-width:20px; margin:0 auto; vertical-align:middle; padding:0; }
.sim-cards-table td small { display:block; margin-top:6px; white-space:nowrap; }
.sim-cards-table td textarea { text-align:left; }
[data-cards-count] { white-space:nowrap; flex-shrink:0; }
[data-refresh-cards] { white-space:nowrap; min-width:68px; }

/* 统一业务详情内容和原生控件的字体。 */
.record-dialog .record-detail-grid,.record-dialog .record-detail-summary,.record-dialog .record-payment-table { font-family:inherit; }
.record-dialog .record-detail-grid .record-detail-item strong,
.record-dialog .record-detail-grid .record-detail-item input,
.record-dialog .record-detail-grid .record-detail-item select,
.record-dialog .record-detail-grid .detail-item input,
.record-dialog .record-detail-grid .detail-item select,
.record-dialog .record-detail-summary .record-detail-item strong,
.record-dialog .record-detail-summary input,
.record-dialog .record-payment-table input,
.record-dialog .record-payment-table select { font-family:inherit !important; font-size:14px !important; font-weight:500 !important; line-height:1.5; }
.record-dialog .record-detail-grid small,.record-dialog .record-detail-grid .setting-field>span { font-family:inherit; font-size:12px; font-weight:400; }

/* 业务详情字段与收款明细统一靠左。 */
.record-detail-dialog .record-detail-item,
.record-detail-dialog .record-detail-item input,
.record-detail-dialog .record-detail-item select,
.record-detail-dialog .record-payment-table th,
.record-detail-dialog .record-payment-table td,
.record-detail-dialog .record-payment-table input,
.record-detail-dialog .record-payment-table select,
.record-detail-dialog .record-detail-notes,
.record-detail-dialog .record-detail-notes textarea { text-align:left; }
.record-detail-dialog .record-detail-item select,
.record-detail-dialog .record-payment-table select { text-align-last:left; }
.record-detail-dialog input[type="date"]::-webkit-datetime-edit { text-align:left; }

/* 让只读内容和可编辑控件使用同一文字起点及行高。 */
.record-detail-dialog .record-detail-item input,
.record-detail-dialog .record-detail-item select,
.record-detail-dialog .record-payment-table input,
.record-detail-dialog .record-payment-table select {
 box-sizing:border-box; width:100%; min-width:0; min-height:21px;
 margin:0; padding:0 24px 0 0; border:0; text-indent:0;
 color:inherit; background-color:transparent;
}
.record-detail-dialog .record-detail-item > input,
.record-detail-dialog .record-detail-item > select { margin-top:6px; }
.record-detail-dialog .record-detail-item select,
.record-detail-dialog .record-payment-table select {
 appearance:none; -webkit-appearance:none;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23415161' stroke-width='1.5'/%3E%3C/svg%3E");
 background-repeat:no-repeat; background-position:right 4px center;
}
.record-detail-dialog input[type="date"]::-webkit-datetime-edit,
.record-detail-dialog input[type="date"]::-webkit-datetime-edit-fields-wrapper { padding:0; }

/* 多笔直赔单号编辑卡片。 */
.compensation-order-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;}
.compensation-order-add{flex-shrink:0;border:0;background:#eaf0ff;color:#2860e8;padding:4px 7px;border-radius:6px;font:inherit;font-size:11px;cursor:pointer;}
.compensation-order-list{display:flex;flex-direction:column;gap:7px;}
.compensation-order-row{display:flex;align-items:center;gap:6px;min-width:0;}
.record-detail-dialog .record-detail-item .compensation-order-row input{flex:1;min-width:0;width:0;min-height:34px;margin:0;padding:6px 9px;border:1px solid #dae3f3;border-radius:7px;background:#fff;font-size:13px !important;outline:none;}
.record-detail-dialog .record-detail-item .compensation-order-row input:focus{border-color:#7296ff;box-shadow:0 0 0 2px #edf2ff;}
.compensation-order-remove{flex-shrink:0;width:25px;height:29px;padding:0;border:0;border-radius:6px;background:#fff0f0;color:#c65c61;font-size:18px;cursor:pointer;}
.record-detail-item .compensation-order-hint{margin-top:8px;font-size:10px;color:#8996aa;}

.approval-submitter-tabs{display:flex;gap:10px;margin:0 0 18px;}.approval-submitter-tabs button{border:1px solid #dce5f5;background:white;color:#64748b;padding:10px 18px;border-radius:9px;font:inherit;cursor:pointer;}.approval-submitter-tabs button.active{background:#edf3ff;border-color:#7fa2ff;color:#2860ed;font-weight:600;}.approval-submitter-tabs span{margin-left:7px;font-size:12px;}

/* 原商户回收多行直赔单号。 */
.merchant-order-card{padding:12px;border:1px solid #e0e7f4;border-radius:9px;background:#f7f9ff;align-self:start;}
.merchant-order-card .compensation-order-head{margin-bottom:4px;}
.merchant-order-card .compensation-order-row input{flex:1;min-width:0;width:0;min-height:35px;padding:6px 9px;border:1px solid #d6e0f2;border-radius:7px;background:#fff;}
.merchant-order-card .compensation-order-remove{height:35px;}
.merchant-order-card .compensation-order-hint{font-size:11px;color:#8493a9;}

/* 工资条。 */
.payroll-head{gap:16px;flex-wrap:wrap;}.payroll-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;}.payroll-filters label{display:grid;gap:5px;color:var(--muted);font-size:12px;}.payroll-filters input,.payroll-filters select{min-height:38px;border:1px solid #dbe4f2;border-radius:8px;padding:6px 10px;background:white;color:var(--ink);font:inherit;}
.payroll-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px 20px 4px;}.payroll-totals>div{padding:15px 18px;border:1px solid #e2e9f6;background:#f6f9ff;border-radius:10px;}.payroll-totals span{display:block;color:var(--muted);font-size:12px;}.payroll-totals strong{display:block;margin-top:7px;font-size:22px;color:#2861ee;}
.payroll-help{margin:12px 20px 16px;color:var(--muted);font-size:12px;line-height:1.8;}.payroll-table{min-width:1250px;}.payroll-table td{white-space:nowrap;}.payroll-table .payroll-notes{min-width:130px;max-width:240px;white-space:pre-wrap;overflow-wrap:anywhere;}.payroll-net{font-weight:700;color:#2861ee;}.payroll-table small{display:block;margin-top:5px;color:var(--muted);font-size:11px;}
.payroll-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100vh - 36px);display:flex;flex-direction:column;}.payroll-dialog .dialog-body{min-height:0;overflow:auto;}.payroll-slip-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}.payroll-slip-grid .field{padding:12px 13px;border:1px solid #e0e8e7;border-radius:9px;background:#f7faf9;}.payroll-edit-notes{margin-top:16px;}.payroll-slip-total{display:flex;align-items:center;justify-content:space-between;padding:20px;margin-top:18px;background:#edf3ff;border-radius:10px;color:#2861ee;}.payroll-slip-total strong{font-size:28px;}.payroll-dialog .payroll-help{margin:12px 0;}.payroll-dialog .dialog-foot{flex-wrap:wrap;gap:12px;}@media(max-width:650px){.payroll-totals{grid-template-columns:1fr;}.payroll-slip-grid{grid-template-columns:1fr;}.payroll-dialog .dialog-head,.payroll-dialog .dialog-body,.payroll-dialog .dialog-foot{padding:16px;}}

.payment-add-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}.payment-count{margin-left:8px;font-weight:500;font-size:12px;color:#71829e;}.payment-row{position:relative;}.payment-row .payment-row-grid{padding-left:28px;}.payment-sequence{position:absolute;left:9px;top:20px;display:flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:7px;color:#2861ee;background:#eaf0ff;font-size:12px;font-weight:600;}
 .record-form .detail-columns{padding-left:42px;}

/* 收款批量粘贴。 */
.record-form [data-payment-section]>.form-section-title{justify-content:space-between;align-items:flex-start;flex-wrap:wrap;}.payment-add-actions{margin-left:auto;justify-content:flex-end;flex-shrink:0;}.payment-paste-panel{padding:16px;margin-bottom:18px;background:#f5f8ff;border:1px solid #dbe5fa;border-radius:10px;}.payment-paste-options{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:12px;}.payment-paste-options .field{min-width:180px;flex:0 1 220px;}.payment-paste-panel textarea{font-family:Consolas,monospace;line-height:1.6;resize:vertical;min-height:110px;padding:10px 12px;}.payment-paste-status{margin-top:9px;color:#58758b;font-size:12px;line-height:1.7;}

.expense-month-controls{display:flex;align-items:center;gap:12px;margin-left:auto;flex-wrap:wrap;}.expense-month-controls label{display:flex;align-items:center;gap:8px;font-size:13px;color:#74849c;}.expense-month-controls input{min-height:38px;padding:6px 10px;border:1px solid #dce5f3;border-radius:8px;background:#fff;font:inherit;color:var(--ink);}

/* 工资条筛选控件与表格对齐 */
.payroll-filters{align-items:flex-end;}
.payroll-filters label{margin:0;}
.payroll-filters input,.payroll-filters select,.payroll-filters>button{box-sizing:border-box;height:40px;min-height:40px;margin:0;align-self:end;line-height:20px;}
.payroll-filters>button{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;}
.payroll-table th,.payroll-table td,.payroll-table td.number{text-align:left;}
.payroll-table .approval-actions{justify-content:flex-start;}

/* 超过7天未解决的找回问题自动优先 */
.after-sale-reclaim-priority td{background:#921c31;color:#fff;}
.after-sale-reclaim-priority .sale-note-cell textarea{color:#26344a;border-color:#c8808e;background:#fff;}
.after-sale-reclaim-priority .sale-note-cell small{color:#ffe4e9;}
.after-sale-reclaim-priority .ghost-button{color:#8b0015;border-color:#d79aa6;}

.after-sales-records-table td{padding:8px 10px;vertical-align:middle;}
.after-sales-records-table .sale-note-cell{min-width:210px;width:230px;}
.after-sales-records-table .sale-note-cell textarea{box-sizing:border-box;display:block;min-height:34px;height:34px;padding:6px 9px;line-height:20px;resize:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;}
.after-sales-records-table .sale-note-cell small{margin-top:3px;}
.after-sales-records-table td:last-child{white-space:nowrap;}
.after-sales-records-table td:last-child button{min-height:32px;padding:4px 8px;}
.sale-edit-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100vh - 36px);display:flex;flex-direction:column;}
.sale-edit-dialog .dialog-body{overflow:auto;min-height:0;}
.sale-edit-dialog .field-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
@media(max-width:650px){.sale-edit-dialog .field-grid{grid-template-columns:1fr;}}

.after-sales-records-table{width:100%;min-width:0;table-layout:fixed;}
.after-sales-records-table th,.after-sales-records-table td{min-width:0!important;max-width:none!important;padding:8px 7px;font-size:12px;white-space:normal;overflow-wrap:anywhere;}
.after-sales-records-table .sale-note-cell{width:auto;}
.after-sales-records-table th:nth-child(1){width:8%;}.after-sales-records-table th:nth-child(2){width:6%;}.after-sales-records-table th:nth-child(3){width:10%;}.after-sales-records-table th:nth-child(4){width:10%;}.after-sales-records-table th:nth-child(5){width:16%;}.after-sales-records-table th:nth-child(6){width:5%;}.after-sales-records-table th:nth-child(7){width:6%;}.after-sales-records-table th:nth-child(8){width:17%;}.after-sales-records-table th:nth-child(9){width:6%;}.after-sales-records-table th:nth-child(10){width:16%;}
.after-sales-records-table td:last-child{white-space:normal;}
.after-sales-records-table td:last-child button{white-space:nowrap;font-size:12px;padding:4px 6px;margin:2px;vertical-align:middle;}

.after-sale-reclaim-priority .record-delete-button{color:#ffe4e9;}

/* 售后记录统一黑色字体，状态使用背景区分 */
.after-sales-records-table th,.after-sales-records-table [data-sale-id] td,.after-sales-records-table [data-sale-id] td textarea,.after-sales-records-table [data-sale-id] td small,.after-sales-records-table [data-sale-id] td button{color:#000;}
.after-sales-records-table textarea::placeholder{color:#000;opacity:1;}

/* 找回超时背景优先于主题中的普通超时底色 */
table.after-sales-records-table tr.after-sale-reclaim-priority>td{background:#e99aab;}

/* 收款明细：统一左对齐，逐笔直赔金额合计到店铺直赔。 */
.record-detail-dialog .record-payment-table th,.record-detail-dialog .record-payment-table td,.record-detail-dialog .record-payment-table .number,.record-detail-dialog .record-payment-table input,.record-detail-dialog .record-payment-table select {text-align:left!important;}
.record-detail-dialog .record-payment-table {width:100%;min-width:0;table-layout:fixed;}
.record-detail-dialog .record-payment-table th:nth-child(1) {width:16%;}
.record-detail-dialog .record-payment-table th:nth-child(2) {width:14%;}
.record-detail-dialog .record-payment-table th:nth-child(3) {width:24%;}
.record-detail-dialog .record-payment-table th:nth-child(4) {width:11%;}
.record-detail-dialog .record-payment-table th:nth-child(5) {width:10%;}
.record-detail-dialog .record-payment-table th:nth-child(6) {width:16%;}
.record-detail-dialog .record-payment-table th:nth-child(7) {width:9%;}
.record-detail-dialog .record-payment-table th {font-size:12px;font-weight:500;white-space:normal;line-height:1.5;}
.record-detail-dialog .record-payment-table td {vertical-align:middle;overflow-wrap:anywhere;}
.record-detail-dialog .record-payment-table td input:not([type="checkbox"]),.record-detail-dialog .record-payment-table td select {max-width:100%;box-sizing:border-box;}
.record-detail-dialog .record-payment-table td:nth-child(4) input {padding-right:4px;}
.record-detail-dialog .record-payment-table td:last-child button {min-width:0;padding:7px 10px;font-size:12px;border-radius:7px;white-space:nowrap;}
.record-detail-dialog .record-payment-table tbody tr:hover {background:#fafcff;}
.record-detail-dialog .record-payment-table th,.record-detail-dialog .record-payment-table td {padding-left:12px;padding-right:8px;}
.payment-direct-controls {display:flex;flex-direction:column;align-items:flex-start;gap:8px;}
.record-detail-dialog .payment-direct-controls input[type="checkbox"],.payment-direct-controls input[type="checkbox"] {appearance:auto!important;-webkit-appearance:auto!important;width:16px!important;min-height:16px!important;height:16px!important;margin:0!important;padding:0!important;flex:none;}
.record-detail-dialog .payment-direct-controls input[type="number"] {width:110px;min-height:30px;padding:4px 6px;border:1px solid #dbe3ed;border-radius:5px;}
.payment-direct-controls [hidden] {display:none!important;}

.payment-row .payment-row-grid {grid-template-columns:minmax(140px,.85fr) 1.05fr 2fr 1fr 130px 34px;}
.payment-row-grid > .payment-direct-controls > span {position:static;width:auto;height:auto;clip:auto;overflow:visible;white-space:normal;}

.record-detail-dialog .payment-direct-controls {display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0;}
.record-detail-dialog .payment-direct-controls input[type="number"] {width:calc(100% - 24px);min-width:0;background:#f7faff;padding:5px 7px;border-color:#d9e3f2;border-radius:6px;font-size:13px!important;}

.record-detail-dialog .payment-direct-amount-field {display:flex;flex-direction:column;gap:4px;width:calc(100% - 24px);min-width:0;margin:0;}
.record-detail-dialog .payment-direct-amount-field > span {font-size:12px;line-height:1.4;color:#718096;white-space:nowrap;}
.record-detail-dialog .payment-direct-amount-field input[type="number"] {width:100%;}

/* 砍价明细突出砍价金额，独立展示商品编号。 */
.bargain-details-table th:nth-child(7) {background:#dce6fa;color:#244f91;font-weight:700;box-shadow:inset 1px 0 #c9d7ef,inset -1px 0 #c9d7ef;}
.bargain-details-table td:nth-child(7) {background:#eaf0fc;color:#173d78;font-weight:700;box-shadow:inset 1px 0 #d7e2f5,inset -1px 0 #d7e2f5;}
.bargain-details-table tbody tr:hover td:nth-child(7) {background:#dce7fb;}
.bargain-details-table td:nth-child(8) {font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}

.sim-cards-table tr.after-sale-overdue td:last-child { background:#fff2f2; }
