/* billing.css — 云仓计费中心（2026-11-24）—— 深色主题，与项目整体一致 */

/* 宽度铺满可用区域：原来写死 1320px，在 2560/3840 的屏幕上右边空出大片，
   看着像「只用了四分之一」。表格与编辑器本身都按百分比自适应，不需要上限。 */
.bl-wrap { padding: 18px 22px 40px; max-width: none; }

.bl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.bl-title { font-size: 19px; font-weight: 600; color: var(--text-primary, #E6EAF2); letter-spacing: .5px; }
.bl-sub { font-size: 12px; color: var(--text-secondary, #94A3B8); margin-top: 4px; }
.bl-head-right { display: flex; align-items: center; gap: 10px; }

.bl-input {
    height: 34px; padding: 0 10px; border: 1px solid rgba(255,255,255,.10); border-radius: 8px;
    font-size: 13px; color: var(--text-primary, #E6EAF2); background: rgba(255,255,255,.05); outline: none;
}
.bl-input:focus { border-color: rgba(59,130,246,.55); box-shadow: 0 0 0 3px rgba(59,130,246,.14); }
.bl-input option { background: #0f172a; color: #E6EAF2; }
.bl-period { min-width: 120px; }
.bl-mini { height: 28px; font-size: 12px; width: 100%; min-width: 56px; }

.bl-btn {
    height: 34px; padding: 0 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
    background: rgba(255,255,255,.05); color: var(--text-primary, #E6EAF2); font-size: 13px; cursor: pointer;
    transition: background .15s, border-color .15s;
}
.bl-btn:hover { background: rgba(255,255,255,.09); }
.bl-btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.bl-btn-primary { background: rgba(59,130,246,.85); border-color: rgba(59,130,246,.9); color: #fff; }
.bl-btn-primary:hover { background: rgba(59,130,246,1); }

.bl-tabs { display: flex; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 16px; }
.bl-tab {
    padding: 9px 16px; font-size: 13px; color: var(--text-secondary, #94A3B8); cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.bl-tab:hover { color: var(--text-primary, #E6EAF2); }
.bl-tab.active { color: #7FB2FF; border-bottom-color: #3b82f6; font-weight: 500; }

.bl-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.bl-kpi {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px; padding: 14px 16px;
}
.bl-kpi-v { font-size: 21px; font-weight: 600; color: var(--text-primary, #E6EAF2); font-variant-numeric: tabular-nums; }
.bl-kpi-l { font-size: 12px; color: var(--text-secondary, #94A3B8); margin-top: 4px; }
.bl-ok { color: #34D399; }
.bl-warn { color: #FBBF24; }

.bl-table {
    width: 100%; border-collapse: collapse; background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07); border-radius: 10px; overflow: hidden;
}
.bl-table th {
    text-align: left; font-size: 12px; font-weight: 500; color: var(--text-secondary, #94A3B8);
    background: rgba(255,255,255,.04); padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.07);
    white-space: nowrap;
}
.bl-table td {
    font-size: 13px; color: var(--text-primary, #E6EAF2); padding: 11px 12px;
    border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle;
}
.bl-table tbody tr:last-child td { border-bottom: none; }
.bl-table .r { text-align: right; }
.bl-amount { font-variant-numeric: tabular-nums; font-weight: 500; color: #EAF0FA; }
.bl-row:hover { background: rgba(255,255,255,.03); }
.bl-table-inner { border: 1px solid rgba(255,255,255,.07); margin-top: 6px; background: rgba(255,255,255,.02); }
.bl-total td { background: rgba(59,130,246,.10); font-weight: 600; color: #EAF0FA; }

.bl-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; }
.bl-badge-draft { background: rgba(251,191,36,.14); color: #FCD34D; }
.bl-badge-ok { background: rgba(52,211,153,.14); color: #6EE7B7; }
.bl-badge-manual { background: rgba(244,114,182,.14); color: #F9A8D4; }
.bl-badge-auto { background: rgba(96,165,250,.14); color: #93C5FD; }
/* 代运营客户：系统能按平台账单自动取数出账，一眼要和手工录入的区分开 */
.bl-badge-op { background: rgba(52,211,153,.16); color: #6EE7B7; border: 1px solid rgba(52,211,153,.28); }
.bl-tag {
    display: inline-block; padding: 1px 6px; border-radius: 4px;
    background: rgba(255,255,255,.08); color: #A9B6C8; font-size: 11px; margin-left: 4px;
}

.bl-note { font-size: 11px; color: var(--text-secondary, #94A3B8); line-height: 1.5; max-width: 320px; white-space: pre-line; }
.bl-reason { color: #F9A8D4; }
.bl-muted { color: var(--text-secondary, #94A3B8); }
.bl-link { color: #7FB2FF; cursor: pointer; font-size: 12px; }
.bl-link:hover { text-decoration: underline; }

.bl-empty {
    padding: 40px 20px; text-align: center; color: #64748B; font-size: 13px;
    background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.12); border-radius: 10px;
}
.bl-tip {
    margin: 12px 0; padding: 10px 14px; background: rgba(251,191,36,.10);
    border: 1px solid rgba(251,191,36,.25); border-radius: 8px; font-size: 12px; color: #FCD34D; line-height: 1.6;
}

.bl-detail-row > td { background: rgba(255,255,255,.02); padding: 0 0 4px; }
.bl-detail { padding: 12px 14px 16px; }
.bl-detail-head { font-size: 12px; color: var(--text-secondary, #94A3B8); margin-bottom: 8px; }
/* 明细操作按钮：导出/小票加进来后按钮变多，窄屏要能换行，否则挤成一排溢出 */
.bl-detail-acts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }

.bl-contract-layout { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.bl-seller-list {
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px; overflow: hidden; max-height: 640px; overflow-y: auto;
}
.bl-seller-list-head {
    padding: 10px 12px; font-size: 12px; color: var(--text-secondary, #94A3B8);
    background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07);
}
.bl-seller-item { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.04); }
.bl-seller-item:hover { background: rgba(255,255,255,.04); }
.bl-seller-item.active { background: rgba(59,130,246,.14); border-left: 3px solid #3b82f6; padding-left: 9px; }
.bl-seller-name { font-size: 13px; color: var(--text-primary, #E6EAF2); }
.bl-seller-meta { font-size: 11px; color: var(--text-secondary, #94A3B8); margin-top: 2px; }
.bl-seller-item.has .bl-seller-meta { color: #6EE7B7; }

.bl-contract-editor {
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px; padding: 16px; min-height: 300px;
}
.bl-ed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 14px; color: var(--text-primary, #E6EAF2); }
.bl-ed-head-acts { display: flex; gap: 8px; }
.bl-field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.bl-field-l { font-size: 12px; color: var(--text-secondary, #94A3B8); margin-bottom: 5px; }
.bl-lines-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; font-size: 13px; color: var(--text-primary, #E6EAF2); }
.bl-lines-head .bl-muted { font-size: 11px; flex: 1; }
.bl-table-lines td { padding: 6px 6px; }
.bl-hint { font-size: 10px; color: #64748B; margin-top: 3px; line-height: 1.4; }
.bl-preview-box { margin-top: 14px; }
.bl-preview-out { margin-top: 10px; }

@media (max-width: 1100px) {
    .bl-kpis { grid-template-columns: repeat(2, 1fr); }
    .bl-contract-layout { grid-template-columns: 1fr; }
    .bl-field-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==================== 收费项目开关（2026-11-24） ==================== */
.bl-tpl-panel {
    border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
    background: rgba(255,255,255,.03); padding: 14px 16px 12px; margin-bottom: 16px;
}
.bl-tpl-panel-head {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
    font-size: 13px; color: var(--text-primary, #E6EAF2);
}
.bl-tpl-panel-head .bl-link { margin-left: auto; }
.bl-tpl-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 10px;
}
.bl-tpl {
    border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 10px 12px;
    background: rgba(255,255,255,.02); transition: border-color .15s, background .15s;
}
.bl-tpl:hover { border-color: rgba(255,255,255,.14); }
.bl-tpl.on { border-color: rgba(59,130,246,.45); background: rgba(59,130,246,.07); }
.bl-tpl-top { display: flex; align-items: center; gap: 9px; }
.bl-tpl-name { font-size: 13px; color: var(--text-primary, #E6EAF2); }
.bl-tpl-desc { font-size: 10px; color: #64748B; line-height: 1.45; margin-top: 6px; }
.bl-tpl-static { font-size: 11px; }
.bl-tpl-params {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px;
}
.bl-tpl-params .bl-tpl-in { width: 68px; height: 26px; font-size: 12px; }
.bl-unit { font-size: 11px; color: var(--text-secondary, #94A3B8); }
.bl-tpl-foot { font-size: 10px; color: #475569; margin-top: 10px; }

/* 开关 */
.bl-switch {
    position: relative; width: 34px; height: 19px; border-radius: 10px; flex: 0 0 auto;
    background: rgba(255,255,255,.14); cursor: pointer; transition: background .18s;
}
.bl-switch::after {
    content: ''; position: absolute; top: 2.5px; left: 2.5px; width: 14px; height: 14px;
    border-radius: 50%; background: #94A3B8; transition: transform .18s, background .18s;
}
.bl-switch.on { background: rgba(59,130,246,.85); }
.bl-switch.on::after { transform: translateX(15px); background: #fff; }
.bl-tag {
    display: inline-block; padding: 1px 6px; border-radius: 5px; font-size: 10px;
    background: rgba(148,163,184,.16); color: #94A3B8;
}
.bl-tpl-warn { color: #FCD34D; }

/* ===== 表单 / 选择弹层（替代原生 prompt、confirm）=====
   深色玻璃拟态，与页面其它卡片同一套配色；不用浏览器原生弹窗（老板明确要求）。 */
.bl-modal-mask {
    position: fixed; inset: 0; z-index: 40000; padding: 20px;
    background: rgba(8, 12, 20, .62); backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center;
}
.bl-modal {
    width: 100%; max-width: 420px; max-height: 82vh; overflow-y: auto;
    background: #161B26; border: 1px solid rgba(255,255,255,.10); border-radius: 16px;
    padding: 20px 20px 16px; box-shadow: 0 24px 64px rgba(0,0,0,.55);
}
.bl-modal-title { font-size: 15px; font-weight: 600; color: var(--text-primary, #E6EAF2); }
.bl-modal-hint { font-size: 12px; color: var(--text-secondary, #94A3B8); line-height: 1.65; margin-top: 6px; }
.bl-modal-field { margin-top: 14px; }
.bl-modal-field label { display: block; font-size: 12px; color: var(--text-secondary, #94A3B8); margin-bottom: 5px; }
.bl-modal-field .bl-input { width: 100%; }
.bl-modal-sub { font-size: 11px; color: rgba(148,163,184,.75); margin-top: 4px; line-height: 1.5; }
.bl-modal-acts { display: flex; gap: 10px; margin-top: 20px; }
.bl-modal-acts .bl-btn { flex: 1; justify-content: center; }
.bl-modal-list { margin-top: 12px; max-height: 48vh; overflow-y: auto; }
.bl-modal-item {
    padding: 10px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px;
    margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s;
}
.bl-modal-item:hover { border-color: rgba(59,130,246,.55); background: rgba(59,130,246,.07); }
.bl-modal-item-main { font-size: 13px; color: var(--text-primary, #E6EAF2); }
.bl-modal-item-sub { font-size: 11px; color: var(--text-secondary, #94A3B8); margin-top: 3px; }

/* ===== 账单环比（对比上月）===== */
.bl-compare { margin-top: 12px; }
.bl-cmp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bl-cmp-title { font-size: 12px; color: var(--text-secondary, #94A3B8); letter-spacing: .3px; }
.bl-cmp-delta { font-size: 13px; font-weight: 600; color: var(--text-secondary, #94A3B8); }
.bl-cmp-delta.up { color: #F97316; }
.bl-cmp-delta.down { color: #34D399; }
.bl-cmp-tip { font-size: 11px; color: rgba(148,163,184,.78); line-height: 1.65; margin-bottom: 8px; }
.bl-compare .r.up { color: #F97316; }
.bl-compare .r.down { color: #34D399; }

/* ===== 合同历史版本 ===== */
.bl-modal-wide { max-width: 660px; }
.bl-modal-body { margin-top: 12px; max-height: 62vh; overflow-y: auto; }
.bl-rev-tip { font-size: 11.5px; color: rgba(148,163,184,.85); line-height: 1.65; margin-bottom: 10px; }
.bl-rev-item { border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 10px 12px; margin-bottom: 9px; }
.bl-rev-head { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--text-primary, #E6EAF2); }
.bl-rev-head b { font-size: 14px; }
.bl-rev-time { font-size: 11px; color: rgba(148,163,184,.8); }
.bl-rev-cnt { font-size: 11px; color: rgba(148,163,184,.8); margin-left: auto; }
.bl-rev-same { font-size: 11.5px; color: rgba(148,163,184,.7); margin-top: 6px; }
.bl-rev-list { margin: 7px 0 0; padding-left: 0; list-style: none; font-size: 12px; line-height: 1.85; color: var(--text-secondary, #94A3B8); }
.bl-rev-tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-right: 6px; }
.bl-rev-tag.add { background: rgba(52,211,153,.16); color: #34D399; }
.bl-rev-tag.del { background: rgba(248,113,113,.16); color: #F87171; }
.bl-rev-tag.chg { background: rgba(59,130,246,.16); color: #60A5FA; }
.bl-cmp-note { font-size: 10.5px; color: #F59E0B; margin-top: 3px; line-height: 1.5; }

/* ===== 取数明细（账单下钻，内部审账用）===== */
.bl-drill-btn {
    font-size: 10.5px; color: #60A5FA; cursor: pointer; margin-left: 4px;
    user-select: none; padding: 1px 5px; border-radius: 4px;
    background: rgba(59,130,246,.10);
}
.bl-drill-btn:hover { background: rgba(59,130,246,.20); }
.bl-drill-row > td { background: rgba(255,255,255,.022); }
.bl-drill { padding: 4px 2px 8px; }
.bl-drill-blk { margin-top: 9px; }
.bl-drill-ttl { font-size: 11px; color: var(--text-secondary, #94A3B8); margin-bottom: 5px; }
.bl-drill-tbl { width: 100%; max-width: 660px; border-collapse: collapse; font-size: 11px; }
.bl-drill-tbl th {
    text-align: left; font-weight: 500; color: rgba(148,163,184,.82);
    padding: 3px 6px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.bl-drill-tbl td {
    padding: 3px 6px; color: var(--text-secondary, #94A3B8);
    border-bottom: 1px solid rgba(255,255,255,.045);
}
.bl-drill-tbl th.r, .bl-drill-tbl td.r { text-align: right; }
.bl-drill-sub { font-size: 10px; color: rgba(148,163,184,.6); }
.bl-drill-miss { font-size: 11px; color: #F59E0B; line-height: 1.75; }
.bl-tag-warn { background: rgba(245,158,11,.16) !important; color: #F59E0B !important; }

/* ===== 卸货费（按吨）明细：账单里点「查看明细」/「导出 CSV」===== */
.bl-ud-acts { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.bl-ud-acts .bl-btn { font-size: 11px; padding: 2px 8px; }
.bl-ud-head { margin-bottom: 10px; }
.bl-ud-sum { font-size: 13px; color: var(--text-secondary, #94A3B8); line-height: 1.7; }
.bl-ud-sum b { color: var(--text-primary, #E6EAF2); font-variant-numeric: tabular-nums; }
.bl-ud-excl {
    margin-top: 6px; font-size: 11.5px; color: #F59E0B; line-height: 1.65;
    padding: 6px 10px; background: rgba(245,158,11,.08); border-radius: 6px;
}
.bl-ud-wrap { max-height: 420px; overflow: auto; border-radius: 10px; }
.bl-ud-tbl { font-size: 12px; overflow: visible; min-width: 720px; }
.bl-ud-tbl th, .bl-ud-tbl td { padding: 6px 8px; font-size: 12px; vertical-align: top; }
.bl-ud-tbl th { position: sticky; top: 0; z-index: 1; }
.bl-ud-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; }
.bl-ud-code { font-size: 10.5px; color: rgba(148,163,184,.72); margin-top: 2px; }
.bl-ud-warn { color: #F59E0B; font-size: 11.5px; }
.bl-ud-foot {
    margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.bl-ud-tip { font-size: 11.5px; color: var(--text-secondary, #94A3B8); line-height: 1.6; }
.bl-ud-err {
    font-size: 12.5px; color: #F87171; line-height: 1.7;
    padding: 12px 14px; background: rgba(248,113,113,.08); border-radius: 8px;
}

/* ===== 计费主体：勾选 + 批量套用 ===== */
.bl-seller-list-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.bl-seller-item { display: flex; gap: 8px; align-items: flex-start; }
.bl-seller-body { min-width: 0; flex: 1; }
.bl-chk {
    flex: none; margin: 3px 0 0; width: 13px; height: 13px;
    accent-color: #3b82f6; cursor: pointer;
}
.bl-batch-btn {
    font-size: 11px; color: #60A5FA; cursor: pointer; white-space: nowrap;
    padding: 2px 9px; border-radius: 6px; background: rgba(59,130,246,.15);
}
.bl-batch-btn:hover { background: rgba(59,130,246,.26); }
.bl-seller-list { position: relative; display: flex; flex-direction: column; }
.bl-batch-bar {
    position: sticky; bottom: 0; margin: 6px; padding: 9px 10px; text-align: center;
    font-size: 12px; color: #BFDBFE; cursor: pointer; border-radius: 8px;
    background: rgba(37,99,235,.92); box-shadow: 0 -2px 10px rgba(0,0,0,.3);
}
.bl-batch-bar:hover { background: rgba(37,99,235,1); }
.bl-review-ok {
    margin-top: 6px; font-size: 11px; color: #6EE7B7;
    background: rgba(52,211,153,.08); border-radius: 6px; padding: 5px 9px; display: inline-block;
}
.bl-tag-ok { background: rgba(52,211,153,.16) !important; color: #34D399 !important; }

/* 一口价包干时的提醒条：已配的收费项不会生效 */
.bl-flat-warn {
    margin: 10px 0 4px; padding: 10px 12px; border-radius: 8px;
    font-size: 12px; line-height: 1.75; color: #FCD34D;
    background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.28);
}
.bl-flat-warn b { color: #F59E0B; }

/* ===== 计费方式选择（合同第一步）===== */
.bl-mode-pick { display: flex; gap: 12px; margin: 14px 0 4px; }
.bl-mode-card {
    flex: 1; padding: 12px 14px; border-radius: 10px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.03);
    transition: border-color .15s, background .15s;
}
.bl-mode-card:hover { border-color: rgba(59,130,246,.45); }
.bl-mode-card.on {
    border-color: rgba(59,130,246,.75); background: rgba(59,130,246,.12);
    box-shadow: inset 0 0 0 1px rgba(59,130,246,.35);
}
.bl-mode-t { font-size: 14px; font-weight: 600; color: var(--text-primary, #E6EAF2); }
.bl-mode-card.on .bl-mode-t { color: #93C5FD; }
.bl-mode-d { font-size: 11.5px; color: var(--text-secondary, #94A3B8); margin-top: 4px; line-height: 1.55; }
/* 置灰的字段：整格降透明度，提示也说明原因 */
.bl-field input:disabled, .bl-field select:disabled {
    opacity: .42; cursor: not-allowed; background: rgba(255,255,255,.02);
}

/* 一口价包干的两种算法：固定金额 / 按营业额百分比 */
.bl-flat-pick { display: flex; align-items: center; gap: 8px; margin: 11px 0 2px; }
.bl-flat-lbl { font-size: 12px; color: var(--text-secondary, #94A3B8); margin-right: 2px; }
.bl-pill {
    font-size: 12px; padding: 5px 12px; border-radius: 20px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.12); color: var(--text-secondary, #94A3B8);
    background: rgba(255,255,255,.03); transition: all .15s;
}
.bl-pill:hover { border-color: rgba(59,130,246,.45); }
.bl-pill.on {
    border-color: rgba(59,130,246,.8); background: rgba(59,130,246,.16); color: #93C5FD;
}

/* 保底方式：取高 / 保底 + 抽佣叠加（保底为 0 时整组置灰） */
.bl-minmode { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.bl-minmode-lbl { font-size: 12px; color: var(--text-secondary, #94A3B8); margin-right: 2px; }
.bl-minmode-hint { flex: 0 0 100%; font-size: 11px; line-height: 1.55; color: rgba(148,163,184,.85); }
.bl-minmode.off .bl-pill { opacity: .42; cursor: not-allowed; pointer-events: none; }
.bl-minmode.off .bl-minmode-lbl, .bl-minmode.off .bl-minmode-hint { opacity: .5; }

/* 入库 / 出库 切换（在收费项目卡片里） */
.bl-seg {
    display: inline-flex; border-radius: 6px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.12); margin-left: 6px;
}
.bl-seg-i {
    font-size: 10.5px; padding: 2px 8px; cursor: pointer;
    color: var(--text-secondary, #94A3B8); background: rgba(255,255,255,.03);
}
.bl-seg-i.on { background: rgba(59,130,246,.22); color: #93C5FD; }
.bl-tpl-note { display: block; width: 100%; font-size: 10px; color: rgba(148,163,184,.7); margin-top: 3px; }

/* 列表里的小按钮（确认） */
.bl-btn-xs { height: 24px; padding: 0 10px; font-size: 11.5px; border-radius: 6px; }
.bl-table .bl-btn-xs { margin-left: 6px; vertical-align: middle; }

/* ===== 计费方式三选一：卡片化 ===== */
.bl-step-lbl {
    font-size: 11px; color: rgba(148,163,184,.8); letter-spacing: .5px;
    margin: 16px 0 8px; text-transform: none;
}
.bl-mode-pick { display: flex; gap: 12px; margin: 0 0 6px; }
.bl-mode-card {
    flex: 1 1 0; min-width: 0; padding: 13px 15px 14px; border-radius: 12px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.10); background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    transition: border-color .16s, background .16s, transform .16s;
}
.bl-mode-card:hover { border-color: rgba(59,130,246,.45); transform: translateY(-1px); }
.bl-mode-card.on {
    border-color: rgba(59,130,246,.85);
    background: linear-gradient(160deg, rgba(59,130,246,.20), rgba(59,130,246,.06));
    box-shadow: 0 0 0 1px rgba(59,130,246,.35), 0 6px 20px -8px rgba(59,130,246,.5);
}
.bl-mode-top { display: flex; align-items: center; gap: 8px; }
.bl-mode-no {
    flex: none; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%;
    font-size: 11px; font-weight: 600; color: #94A3B8; background: rgba(255,255,255,.08);
}
.bl-mode-card.on .bl-mode-no { color: #0B1220; background: #93C5FD; }
.bl-mode-t { font-size: 14px; font-weight: 600; color: var(--text-primary, #E6EAF2); }
.bl-mode-card.on .bl-mode-t { color: #DBEAFE; }
.bl-mode-ok { margin-left: auto; font-size: 13px; color: #93C5FD; }
.bl-mode-d { font-size: 11.5px; color: var(--text-secondary, #94A3B8); margin-top: 7px; line-height: 1.6; }

/* ===== 货主对账单 ===== */
.bl-rec { font-size: 12.5px; }
.bl-rec-gap {
    margin-bottom: 12px; padding: 10px 12px; border-radius: 8px; line-height: 1.75;
    color: #FCD34D; background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.28);
    font-size: 11.5px;
}
.bl-rec-sec { margin-bottom: 16px; }
.bl-rec-t {
    font-size: 12px; font-weight: 600; color: #93C5FD; margin-bottom: 7px;
    padding-bottom: 5px; border-bottom: 1px solid rgba(59,130,246,.22);
}
.bl-rec-line { color: var(--text-secondary, #94A3B8); line-height: 1.9; font-size: 12.5px; }
.bl-rec-line b { color: var(--text-primary, #E6EAF2); font-weight: 600; }
.bl-rec-dash { color: rgba(148,163,184,.65); font-size: 11px; }
.bl-rec-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.bl-rec-tbl th {
    text-align: left; font-weight: 500; color: rgba(148,163,184,.82);
    padding: 5px 7px; border-bottom: 1px solid rgba(255,255,255,.09);
}
.bl-rec-tbl td {
    padding: 6px 7px; color: var(--text-secondary, #94A3B8);
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.bl-rec-tbl th.r, .bl-rec-tbl td.r { text-align: right; }
.bl-rec-tbl tfoot td {
    color: var(--text-primary, #E6EAF2); font-weight: 600;
    border-top: 1px solid rgba(255,255,255,.14); border-bottom: none;
}

/* ===== 数据覆盖看板 / 生成失败清单 ===== */
.bl-cov-head { font-size: 12.5px; color: var(--text-secondary, #94A3B8); margin-bottom: 10px; }
.bl-cov-head b { font-size: 15px; }
.bl-cov-head b.bl-ok { color: #34D399; }
.bl-cov-head b.bl-warn { color: #F59E0B; }
.bl-cov-bad td { background: rgba(245,158,11,.05); }
.bl-fail-tip { font-size: 12px; color: var(--text-secondary, #94A3B8); margin-bottom: 10px; line-height: 1.7; }

/* 数据覆盖看板：7 列，弹层要更宽 */
.bl-modal-xwide { max-width: 940px; }
.bl-cov-tbl td { line-height: 1.5; }
.bl-cov-tbl td:nth-child(6) { color: #F59E0B; font-size: 11.5px; }
.bl-cov-tbl tr:not(.bl-cov-bad) td:nth-child(6) { color: rgba(148,163,184,.6); }

/* 取数源切换（平台账单 / 仓库出库单） */
.bl-seg-src { margin-left: 4px; }
.bl-seg-src .bl-seg-i { font-size: 10px; padding: 2px 7px; }
.bl-seg-src .bl-seg-i.on { background: rgba(52,211,153,.20); color: #6EE7B7; }

/* ===== 导入月度账单 ===== */
.bl-mi-tip { font-size: 12px; color: var(--text-secondary, #94A3B8); line-height: 1.75; margin-bottom: 14px; }
.bl-mi-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12.5px; }
.bl-mi-lbl { width: 70px; color: rgba(148,163,184,.8); flex: none; }
.bl-mi-period { color: var(--text-primary, #E6EAF2); font-weight: 600; }
.bl-mi-acts { margin-top: 14px; display: flex; gap: 10px; }
.bl-mi-out { margin-top: 14px; }
.bl-mi-doing { font-size: 12px; color: #93C5FD; padding: 10px 0; }
.bl-mi-ok { font-size: 13px; color: #34D399; font-weight: 600; margin-bottom: 8px; }
.bl-mi-err { font-size: 12px; color: #F87171; line-height: 1.7; padding: 10px 12px;
    background: rgba(248,113,113,.08); border-radius: 8px; }
.bl-mi-warn { font-size: 11.5px; color: #F59E0B; line-height: 1.7; margin-top: 8px; }
.bl-mi input[type=file] { font-size: 12px; color: var(--text-secondary, #94A3B8); }

/* ===== 营业额录入（按平台 + 账号，2026-12-01）===== */
.bl-rev-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bl-rev-lbl { font-size: 12.5px; color: rgba(148,163,184,.85); flex: none; }
.bl-rev-period { font-size: 12.5px; font-weight: 600; color: var(--text-primary, #E6EAF2); }
.bl-rev-tip { font-size: 12px; color: var(--text-secondary, #94A3B8); line-height: 1.75; margin-bottom: 12px; }
.bl-rev-tbl { width: 100%; border-collapse: separate; border-spacing: 0; margin-bottom: 10px; }
.bl-rev-tbl th { font-size: 11.5px; font-weight: 500; color: rgba(148,163,184,.8);
    text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.bl-rev-tbl th.r { text-align: right; }
.bl-rev-tbl td { padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,.05); }
.bl-rev-tbl td.r { text-align: right; }
.bl-rev-tbl .bl-input { width: 100%; height: 32px; }
.bl-rev-amt { text-align: right; font-variant-numeric: tabular-nums; }
.bl-rev-del { height: 28px; padding: 0 10px; font-size: 11.5px; line-height: 1; color: #F87171;
    background: transparent; white-space: nowrap; display: inline-flex; align-items: center;
    justify-content: center; min-width: 48px; box-sizing: border-box;
    border: 1px solid rgba(248,113,113,.28); border-radius: 6px; cursor: pointer; }
.bl-rev-del:hover { background: rgba(248,113,113,.12); }
.bl-rev-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bl-rev-note { font-size: 11.5px; color: rgba(148,163,184,.85); line-height: 1.6; }
.bl-rev-sum { margin-top: 14px; padding: 12px 14px; border-radius: 10px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.bl-rev-sum-main { display: flex; align-items: baseline; gap: 12px; }
.bl-rev-sum-main span { font-size: 12.5px; color: rgba(148,163,184,.9); }
.bl-rev-sum-main b { font-size: 22px; font-weight: 600; color: #E6EAF2; font-variant-numeric: tabular-nums; }
.bl-rev-fee { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.bl-rev-fee-row { display: flex; justify-content: space-between; font-size: 12.5px;
    color: rgba(148,163,184,.95); padding-top: 6px; border-top: 1px dashed rgba(255,255,255,.10); }
.bl-rev-fee-row b { color: #34D399; font-variant-numeric: tabular-nums; }
.bl-rev-warn { font-size: 11.5px; color: #F59E0B; line-height: 1.6; }
.bl-rev-foot { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.bl-rev-hint { font-size: 11.5px; color: rgba(148,163,184,.75); line-height: 1.6; }
.bl-rev-filehint { font-size: 11.5px; color: rgba(148,163,184,.7); }
/* 单成员货主：只有一行总额度，不显示删除按钮和删除列 */
.bl-rev-tbl.bl-rev-single .bl-rev-del,
.bl-rev-tbl.bl-rev-single .bl-rev-delcol { display: none; }

/* 卸货费明细：账单口径与当前口径不一致时的提示（橙字，别让人以为是算错了） */
.bl-ud-stale { color: #F59E0B; font-size: 11.5px; line-height: 1.6; }
.bl-ud-amt { color: #E6EAF2; }

/* ===== 外包结算包（2026-12-01）=====
   包里是几个互相独立的货主，合成一个主体结算；与货主组（同一货主多个账号）区分开。 */
.bl-badge-pack { background: rgba(100,116,139,.22); color: #B7C4D6; border: 1px solid rgba(148,163,184,.22); }
/* 包内货主那行保持灰蓝，不跟着「已配合同」变绿（否则和「组内 N 个账号」混在一起看不出区别） */
.bl-seller-item.has .bl-seller-meta.bl-seller-pack { color: #8CA0B8; }
.bl-pk-tip { font-size: 11.5px; color: rgba(148,163,184,.9); line-height: 1.7; margin-bottom: 12px; }
.bl-pk-tip b { color: #CBD5E1; font-weight: 600; }
.bl-pk-empty {
    padding: 22px 14px; text-align: center; font-size: 12px; color: #64748B;
    background: rgba(255,255,255,.02); border: 1px dashed rgba(255,255,255,.12); border-radius: 10px;
}
.bl-pk-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.03);
}
.bl-pk-item-main { flex: 1; min-width: 0; }
.bl-pk-item-name { font-size: 13px; color: var(--text-primary, #E6EAF2); }
.bl-pk-item-sub { font-size: 11px; color: var(--text-secondary, #94A3B8); margin-top: 3px; line-height: 1.55; word-break: break-all; }
.bl-pk-item-acts { display: flex; gap: 12px; flex: none; }
.bl-pk-del { color: #F87171; }
.bl-pk-new { margin-top: 12px; }

/* 选货主：可滚动 + 搜索过滤 */
.bl-pk-list {
    margin-top: 8px; max-height: 230px; overflow-y: auto;
    border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: rgba(255,255,255,.02);
}
.bl-pk-row {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,.045); font-size: 12.5px;
}
.bl-pk-row:last-child { border-bottom: none; }
.bl-pk-row:hover { background: rgba(255,255,255,.04); }
.bl-pk-row .bl-pk-chk { width: 13px; height: 13px; accent-color: #3b82f6; cursor: pointer; flex: none; }
.bl-pk-name { color: var(--text-primary, #E6EAF2); }
.bl-pk-cnt { font-size: 11px; color: #64748B; }
.bl-pk-err { font-size: 11.5px; color: #F87171; line-height: 1.6; margin-top: 10px; }
.bl-pk-err:empty { display: none; }

/* 合同编辑页里的包提示 */
.bl-pk-ed-hint { color: #8CA0B8; }
.bl-pk-hint { color: #8FA3BC; line-height: 1.6; }
.bl-pk-warn {
    margin: 10px 0 4px; padding: 10px 12px; border-radius: 8px;
    font-size: 12px; line-height: 1.75; color: #FCD34D;
    background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.28);
}
.bl-pk-warn a { color: #93C5FD; margin: 0 2px; }

/* ==================== 试算弹层（2026-12-01） ==================== */
/* 老板：账单页点「试算」，选主体 → 直接看这套合同这个月会算出多少钱，不写入账单 */
.bl-pv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.bl-pv-bar label { font-size: 12px; color: #94A3B8; }
.bl-pv-bar .bl-input { height: 32px; }
.bl-pv-fixed {
    padding: 0 12px; height: 32px; line-height: 32px; border-radius: 8px; font-size: 13px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
    color: var(--text-primary, #E6EAF2);
}
.bl-pv-sub { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.bl-pv-sub .bl-hint { margin: 0; }
.bl-pv-note { font-size: 11.5px; color: #64748B; line-height: 1.7; margin-top: 8px; }
.bl-pv-note b { color: #94A3B8; font-weight: 500; }
.bl-pv-warnbar {
    margin-bottom: 10px; padding: 8px 12px; border-radius: 8px; font-size: 12px; line-height: 1.7;
    color: #FCD34D; background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.25);
}
.bl-pv-warnbar a { color: #93C5FD; margin-left: 6px; }
.bl-pv-amt { font-variant-numeric: tabular-nums; font-weight: 500; color: #EAF0FA; }

/* ============================================================
   2026-12-01 排版重构：月度账单 / 明细展开
   ============================================================ */

/* 摘要条：三个数横排，替掉四张大卡片（原来还有一个「0 已确认」纯占位） */
.bl-sum {
    display: flex; gap: 30px; align-items: flex-end; flex-wrap: wrap;
    padding: 14px 18px; margin-bottom: 14px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 12px;
}
.bl-sum-i { display: flex; flex-direction: column; gap: 2px; }
.bl-sum-l { font-size: 11.5px; color: var(--text-secondary, #94A3B8); letter-spacing: .3px; }
.bl-sum-v { font-size: 20px; font-weight: 600; color: #EAF0FA; font-variant-numeric: tabular-nums; line-height: 1.25; }
.bl-sum-s { font-size: 11px; color: #64748B; }
.bl-warn-t { color: #FBBF24; }

/* 账单列表：四列，行高放开 */
.bl-stmt-table td { padding: 14px 12px; }
.bl-cell-seller b { font-size: 14px; }
.bl-cell-sub { display: block; margin-top: 3px; font-size: 11.5px; color: #8290A6; font-style: normal; }
.bl-cell-status { white-space: nowrap; }
.bl-st {
    display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px;
    background: rgba(255,255,255,.06); color: #A9B6C8;
}
.bl-st-draft, .bl-st-warn { background: rgba(251,191,36,.14); color: #FCD34D; }
.bl-st-ok { background: rgba(52,211,153,.14); color: #34D399; }
.bl-sepdot {
    display: inline-block; width: 3px; height: 3px; border-radius: 50%;
    background: rgba(255,255,255,.25); margin: 0 7px; vertical-align: middle;
}
.bl-cell-acts { white-space: nowrap; }
.bl-cell-acts .bl-link { margin-right: 14px; }
.bl-done { font-size: 11.5px; color: #64748B; }

/* 明细展开：头部左右分栏，金额单独一列 */
.bl-dt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 4px 0 10px; }
.bl-dt-name { font-size: 16px; font-weight: 600; color: #EAF0FA; }
.bl-dt-name .bl-st { margin-left: 8px; vertical-align: 2px; }
.bl-dt-sub { font-size: 12px; color: #8290A6; margin-top: 4px; }
.bl-dt-amt { font-size: 22px; font-weight: 600; color: #EAF0FA; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl-dt-remark { font-size: 12px; color: #8290A6; margin-bottom: 10px; line-height: 1.6; }

/* 计算说明挂在行下面，不再独占一列把行撑高 */
.bl-table-inner .bl-ln td { border-bottom: none; padding-bottom: 4px; }
.bl-ln-note td { padding: 0 12px 12px; }
.bl-ln-note .bl-note { font-size: 12px; color: #7C8AA0; line-height: 1.7; white-space: pre-line; }
.bl-ln-note .bl-reason { font-size: 11.5px; color: #FBBF24; margin-top: 3px; }
.bl-ln-note .bl-ud-acts { margin-top: 6px; display: flex; gap: 8px; }

/* 底部按钮：主操作 / 改数 / 导出 三组，导出靠右 */
.bl-detail-acts {
    margin-top: 14px; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
    border-top: 1px solid rgba(255,255,255,.07);
}
.bl-acts-grp { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bl-acts-lb { font-size: 11.5px; color: #64748B; margin-right: 2px; }
.bl-acts-export { margin-left: auto; }
.bl-btn-ghost { background: transparent; border-color: rgba(255,255,255,.10); color: #A9B6C8; }
.bl-btn-ghost:hover { background: rgba(255,255,255,.06); color: #E6EAF2; border-color: rgba(255,255,255,.2); }

/* 出账体检（原数据覆盖）：分成「缺数据 / 可以出账」两段，缺什么直接给去补的入口 */
.bl-cov-top { display: flex; align-items: center; gap: 28px; padding: 12px 16px; margin-bottom: 16px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; }
.bl-cov-n { display: flex; align-items: baseline; gap: 6px; }
.bl-cov-n b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bl-cov-n span { font-size: 12px; color: #94A3B8; }
.bl-cov-tip { font-size: 11.5px; color: #64748B; line-height: 1.6; margin-left: auto; max-width: 380px; text-align: right; }
.bl-cov-sec { font-size: 12px; font-weight: 600; color: #A9B6C8; letter-spacing: .5px; margin: 16px 0 8px; }
.bl-cov-sec:first-of-type { margin-top: 4px; }
.bl-cov-tbl { width: 100%; border-collapse: collapse; }
.bl-cov-tbl th { text-align: left; font-size: 11.5px; font-weight: 500; color: #94A3B8;
    padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; }
.bl-cov-tbl td { font-size: 13px; color: #E6EAF2; padding: 10px; border-bottom: 1px solid rgba(255,255,255,.05); }
.bl-cov-tbl .r { text-align: right; }
.bl-cov-bad td { background: rgba(251,191,36,.04); }
.bl-cov-gap { color: #FCD34D; font-size: 12.5px; }

/* 合同 / 收费项目：左侧列表分组 + 搜索，右侧未选中时给引导卡（原来是 2/3 屏一片空白） */
.bl-seller-search { padding: 8px 10px 4px; }
.bl-seller-search .bl-input { height: 30px; font-size: 12.5px; width: 100%; }
.bl-seller-scroll { max-height: calc(100vh - 330px); overflow-y: auto; }
.bl-grp-lb {
    font-size: 11px; color: #64748B; letter-spacing: .5px;
    padding: 10px 12px 6px; font-weight: 600;
}
.bl-grp-lb b { font-weight: 600; }
.bl-cnt { font-size: 11px; color: #64748B; margin-left: 8px; font-weight: 400; }
.bl-guide {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; min-height: 300px; text-align: center;
    border: 1px dashed rgba(255,255,255,.10); border-radius: 12px;
    background: rgba(255,255,255,.02); padding: 40px 24px;
}
.bl-guide-t { font-size: 15px; font-weight: 600; color: #C7D2E0; }
.bl-guide-s { font-size: 13px; color: #94A3B8; margin-top: 8px; }
.bl-guide-k { font-size: 12px; color: #64748B; margin-top: 14px; line-height: 1.9; }

/* 左右两栏等高撑满视口：原来列表 640px 就截断、右侧引导卡只有 300px，
   下面留一大片黑，看着像没做完 */
.bl-contract-layout { align-items: stretch; min-height: calc(100vh - 320px); }
.bl-seller-list { max-height: none; display: flex; flex-direction: column; }
.bl-seller-scroll { flex: 1 1 auto; max-height: none; overflow-y: auto; }
.bl-contract-editor { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.bl-contract-editor .bl-guide { flex: 1 1 auto; }
.bl-cov-n span, .bl-cov-n b { white-space: nowrap; }
.bl-dim { color: #5C6879; }

/* 人工调整区（罚款/优惠）：单独一段，能改能删 */
.bl-man-box { margin-top: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; }
.bl-man-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: rgba(255,255,255,.04);
    font-size: 12.5px; color: #C7D2E0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.bl-man-empty { padding: 12px 14px; font-size: 12px; color: #64748B; line-height: 1.7; }
.bl-man-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.04);
}
.bl-man-row:last-child { border-bottom: none; }
.bl-man-l { flex: 1 1 auto; min-width: 0; }
.bl-man-l b { font-size: 13.5px; color: #E6EAF2; font-weight: 500; }
.bl-man-l em { display: block; margin-top: 3px; font-size: 11.5px; color: #8290A6; font-style: normal; }
.bl-man-amt { font-size: 14px; font-variant-numeric: tabular-nums; color: #34D399; white-space: nowrap; }
.bl-man-amt.down { color: #F87171; }
.bl-man-acts { white-space: nowrap; }
.bl-man-acts .bl-link { margin-left: 10px; }
.bl-link-danger { color: #F87171 !important; }

/* ============================================================
   2026-12-01 字号整体放大（老板：近视眼看太累）
   统一 +1~1.5px，行高同步放开；不改布局结构，只改字
   ============================================================ */
.bl-table td { font-size: 14.5px; }
.bl-table th { font-size: 13px; }
.bl-table-inner td { font-size: 14px; }
.bl-btn { font-size: 13.5px; }
.bl-btn-sm { font-size: 12.5px; }
.bl-input { font-size: 13.5px; }
.bl-tab { font-size: 14px; }
.bl-title { font-size: 20px; }
.bl-sub { font-size: 12.5px; }

/* 摘要条 */
.bl-sum-l { font-size: 12.5px; }
.bl-sum-v { font-size: 22px; }
.bl-sum-s { font-size: 12px; }

/* 列表行 */
.bl-cell-seller b { font-size: 15px; }
.bl-cell-sub { font-size: 12.5px; margin-top: 4px; }
.bl-st { font-size: 12.5px; padding: 2px 9px; }
.bl-done { font-size: 12.5px; }

/* 明细 */
.bl-dt-name { font-size: 17px; }
.bl-dt-sub { font-size: 13px; }
.bl-dt-amt { font-size: 24px; }
.bl-dt-remark { font-size: 13px; }
.bl-ln-note .bl-note { font-size: 13px; line-height: 1.85; }
.bl-ln-note .bl-reason { font-size: 12.5px; }
.bl-acts-lb { font-size: 12.5px; }

/* 人工调整 */
.bl-man-head { font-size: 13.5px; }
.bl-man-l b { font-size: 14.5px; }
.bl-man-l em { font-size: 12.5px; }
.bl-man-amt { font-size: 15px; }
.bl-man-empty { font-size: 13px; }

/* 弹层（营业额录入 / 表单） */
.bl-modal-title { font-size: 16.5px; }
.bl-modal-hint, .bl-modal-sub { font-size: 12.5px; }
.bl-modal-field label { font-size: 12.5px; }
.bl-rev-tbl td, .bl-rev-tbl th { font-size: 13.5px; }
.bl-rev-tip { font-size: 12.5px; line-height: 1.85; }
.bl-rev-lbl { font-size: 12.5px; }
.bl-rev-note { font-size: 12.5px; }
.bl-hint { font-size: 12.5px; }

/* 账单列表页的状态图例 */
.bl-legend {
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
    padding: 10px 14px; margin-bottom: 12px; border-radius: 10px;
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
    font-size: 12.5px; color: #8290A6;
}
.bl-legend b { color: #A9B6C8; font-weight: 500; margin-right: 2px; }
.bl-legend i { font-style: normal; margin-right: 4px; }
.bl-st-click { cursor: pointer; }
.bl-st-click:hover { background: rgba(251,191,36,.26); }

/* 账单明细里的「各账号营业额」 */
.bl-revblock {
    margin: 4px 0 14px; border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.02);
}
.bl-revblock-t {
    display: flex; align-items: baseline; gap: 10px;
    padding: 9px 14px; font-size: 13px; color: #C7D2E0;
    background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06);
}
.bl-revblock-t span { font-size: 12px; color: #64748B; }
.bl-revblock-r {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: 13.5px; color: #E6EAF2;
}
.bl-revblock-r:last-child { border-bottom: none; }
.bl-revblock-r .plat { width: 62px; color: #8290A6; font-size: 12.5px; }
.bl-revblock-r .acc { flex: 1 1 auto; }
.bl-revblock-r .amt { font-variant-numeric: tabular-nums; color: #EAF0FA; }
.bl-revblock-r.sum { background: rgba(59,130,246,.08); font-weight: 600; }

/* 营业额录入表：固定列宽，否则金额框会把「删除」列挤成 0 宽看不见 */
.bl-rev-tbl { table-layout: fixed; }
.bl-rev-tbl th.bl-rev-delcol, .bl-rev-tbl td:last-child { width: 82px; }
.bl-rev-tbl td:last-child { padding-left: 4px; }
/* 删除列再收窄一点：58px 只放一个「删除」小按钮，不再把表格顶宽 */
.bl-rev-tbl th.bl-rev-delcol, .bl-rev-tbl td:last-child { width: 58px; }
.bl-rev-del { min-width: 0; padding: 0 6px; font-size: 11px; }
.bl-rev-emptyrow { padding: 18px 8px; color: #64748B; font-size: 12.5px; text-align: center; }

/* ============================================================
   2026-12-02 弹窗统一美化（老板：模块内所有弹窗都要美化）
   ============================================================ */
.bl-modal-mask {
    background: rgba(6, 9, 15, .74);
    backdrop-filter: blur(6px);
    padding: 24px;
}
.bl-modal {
    background: linear-gradient(180deg, #1A2130 0%, #141A24 100%);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.05);
    padding: 22px 22px 18px;
}
.bl-modal-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 16.5px; letter-spacing: .2px;
    padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.bl-modal-hint { margin-top: 12px; font-size: 12.5px; line-height: 1.8; }
.bl-modal-field { margin-top: 16px; }
.bl-modal-field label { font-size: 12.5px; margin-bottom: 6px; }
.bl-modal-field .bl-input { height: 38px; }
.bl-modal-acts { margin-top: 22px; gap: 12px; }
.bl-modal-acts .bl-btn { height: 38px; }
.bl-modal-sub { font-size: 11.5px; line-height: 1.6; }

/* ---- 总导入面板 ---- */
.bl-imp-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding: 12px 14px; margin-top: 12px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
}
.bl-imp-period { display: flex; align-items: baseline; gap: 8px; }
.bl-imp-period span { font-size: 12px; color: #94A3B8; }
.bl-imp-period b { font-size: 17px; color: #EAF0FA; font-variant-numeric: tabular-nums; }
.bl-imp-hint { font-size: 12px; color: #7C8AA0; line-height: 1.8; margin: 10px 2px 12px; }
.bl-imp-list { min-height: 60px; }
.bl-imp-idle { font-size: 12.5px; color: #64748B; padding: 16px 4px; }
.bl-imp-done {
    font-size: 13px; color: #34D399; line-height: 1.8;
    padding: 16px; border-radius: 12px;
    background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.22);
}
.bl-imp-err {
    font-size: 12.5px; color: #F87171; line-height: 1.8; padding: 12px 14px;
    background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.22); border-radius: 10px;
}
.bl-imp-sec, .bl-imp-sec2 {
    display: flex; align-items: baseline; gap: 8px;
    font-size: 12.5px; font-weight: 600; color: #C7D2E0; margin: 14px 0 8px;
}
.bl-imp-sec b { color: #FCD34D; font-size: 15px; }
.bl-imp-sec span, .bl-imp-sec2 span { font-weight: 400; color: #64748B; font-size: 11.5px; }
.bl-imp-tbl { width: 100%; border-collapse: collapse; }
.bl-imp-tbl th {
    text-align: left; font-size: 11.5px; font-weight: 500; color: #94A3B8;
    padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap;
}
.bl-imp-tbl td { font-size: 13px; color: #E6EAF2; padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.05); }
.bl-imp-tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.bl-imp-mem { display: block; font-size: 11.5px; color: #7C8AA0; font-style: normal; margin-top: 3px; }
.bl-imp-plat {
    display: inline-block; min-width: 52px; color: #7C8AA0; font-size: 11.5px; margin-right: 6px;
}
.bl-imp-files { font-size: 11.5px; color: #64748B; }
.bl-imp-sub td { background: rgba(255,255,255,.03); color: #A9B6C8; font-size: 12px; }
.bl-imp-tip2 { font-size: 11.5px; color: #64748B; line-height: 1.8; margin-top: 10px; }
.bl-imp-warnbox {
    font-size: 12px; color: #FCD34D; line-height: 1.85; padding: 10px 14px; margin-top: 10px;
    background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.2); border-radius: 10px;
}
.bl-imp-drop {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 16px; padding: 14px; border-radius: 12px;
    border: 1px dashed rgba(255,255,255,.16); background: rgba(255,255,255,.02);
}
.bl-imp-drop-hint { font-size: 11.5px; color: #64748B; }
.bl-imp-acts { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.bl-imp-acts-hint { font-size: 11.5px; color: #64748B; }
.bl-imp-doing { font-size: 12.5px; color: #94A3B8; padding: 14px 4px; }
.bl-imp-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); }

/* 弹窗底部按钮：不再撑满整行，主次分明靠右 */
.bl-modal-acts { justify-content: flex-end; flex-wrap: wrap; }
.bl-modal-acts .bl-btn { flex: 0 1 auto; min-width: 104px; }

/* 危险操作按钮（完整导入：会覆盖历史明细） */
.bl-btn-danger {
    background: rgba(248,113,113,.12);
    border-color: rgba(248,113,113,.4);
    color: #FCA5A5;
}
.bl-btn-danger:hover { background: rgba(248,113,113,.2); border-color: rgba(248,113,113,.6); }
.bl-imp-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bl-imp-foot-hint { font-size: 11.5px; color: #64748B; }
.bl-cov-note { font-size: 11.5px; color: #64748B; font-weight: 400; margin-left: 6px; }
.bl-cov-nolist { font-size: 12px; color: #7C8AA0; line-height: 1.9; padding: 4px 2px 8px; }
.bl-imp-per { height: 32px; font-size: 15px; font-weight: 600; min-width: 118px; }

/* ============================================================
   2026-12-02 手机端适配（老板：手机上看排版全乱了）
   小屏下表格一律转卡片：四列挤在一行会把「永锋集团」压成竖排
   ============================================================ */
@media (max-width: 860px) {
    .bl-wrap { padding: 12px 10px 32px; }
    .bl-title { font-size: 17px; }
    .bl-sub { font-size: 11.5px; }

    /* 顶部：标题一行，工具条换行铺满 */
    .bl-head { flex-direction: column; align-items: stretch; gap: 10px; }
    .bl-head-right { flex-wrap: wrap; gap: 8px; }
    .bl-head-right .bl-period { flex: 1 1 100%; width: 100%; }
    .bl-head-right .bl-btn { flex: 1 1 calc(50% - 4px); height: 36px; font-size: 13px; padding: 0 8px; }

    /* 页签横向滚动，不换行 */
    .bl-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .bl-tab { flex: 0 0 auto; padding: 9px 14px; }

    /* 摘要条：两列网格 */
    .bl-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; padding: 12px 14px; }
    .bl-sum-v { font-size: 18px; }

    /* 状态图例：换行、不占满 */
    .bl-legend { gap: 8px 14px; padding: 10px 12px; font-size: 11.5px; line-height: 1.7; }

    /* ---------- 账单列表：表格转卡片 ---------- */
    .bl-stmt-table { border: none; background: transparent; }
    .bl-stmt-table thead { display: none; }
    .bl-stmt-table tbody, .bl-stmt-table tr, .bl-stmt-table td { display: block; width: 100%; }
    .bl-stmt-table tr.bl-row {
        border: 1px solid rgba(255,255,255,.09); border-radius: 12px;
        background: rgba(255,255,255,.03); padding: 12px 14px; margin-bottom: 10px;
    }
    .bl-stmt-table tr.bl-row td { border: none; padding: 0; }
    .bl-stmt-table .bl-cell-seller b { font-size: 15.5px; }
    .bl-stmt-table .bl-cell-sub { margin-top: 4px; }
    .bl-stmt-table .bl-amount {
        font-size: 19px; margin-top: 8px; text-align: right;
    }
    .bl-stmt-table .bl-cell-status { margin-top: 8px; white-space: normal; line-height: 2; }
    .bl-stmt-table .bl-cell-acts {
        margin-top: 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    }
    .bl-stmt-table .bl-cell-acts .bl-btn-xs { margin-left: auto; height: 32px; padding: 0 14px; }
    .bl-detail-row td { padding: 0 !important; }
    .bl-detail { padding: 4px 2px; }

    /* ---------- 账单明细表：也转卡片 ---------- */
    .bl-table-inner thead { display: none; }
    .bl-table-inner, .bl-table-inner tbody, .bl-table-inner tr, .bl-table-inner td { display: block; width: 100%; }
    .bl-table-inner tr.bl-ln {
        border-bottom: 1px solid rgba(255,255,255,.06); padding: 10px 0 4px;
    }
    .bl-table-inner tr.bl-ln td { border: none; padding: 2px 0; }
    .bl-table-inner tr.bl-ln td.r:not(.bl-amount) {
        display: inline-block; width: auto; margin-right: 18px; text-align: left;
        font-size: 12px; color: #8290A6;
    }
    .bl-table-inner tr.bl-ln td.r:not(.bl-amount)::before { content: ''; }
    .bl-table-inner tr.bl-ln td.bl-amount { text-align: right; font-size: 15px; margin-top: 2px; }
    .bl-ln-note td { padding: 0 0 10px !important; }
    .bl-dt-head { flex-direction: column; gap: 6px; }
    .bl-dt-amt { font-size: 22px; }
    .bl-detail-acts { gap: 10px; }
    .bl-acts-export { margin-left: 0; }

    /* 各账号营业额：平台列收窄 */
    .bl-revblock-r .plat { width: 46px; }
    .bl-revblock-r { font-size: 13px; }

    /* 人工调整行 */
    .bl-man-row { flex-wrap: wrap; gap: 6px; }

    /* ---------- 弹窗铺满屏幕 ---------- */
    .bl-modal-mask { padding: 10px; }
    .bl-modal, .bl-modal-wide, .bl-modal-xwide { max-width: 100%; padding: 16px 14px 14px; }
    .bl-modal-body { max-height: 66vh; }
    .bl-modal-title { font-size: 15.5px; }

    /* 导入面板表格转卡片 */
    .bl-imp-tbl thead { display: none; }
    .bl-imp-tbl tbody, .bl-imp-tbl tr, .bl-imp-tbl td { display: block; width: 100%; }
    .bl-imp-tbl tr { border-bottom: 1px solid rgba(255,255,255,.06); padding: 9px 0; }
    .bl-imp-tbl td { border: none; padding: 2px 0; }
    .bl-imp-tbl td.r { text-align: left; font-size: 14px; color: #EAF0FA; font-weight: 500; }
    .bl-imp-tbl td.r::before { content: '营业额 '; font-size: 11.5px; color: #64748B; font-weight: 400; }
    .bl-imp-top { flex-wrap: wrap; gap: 10px; }
    .bl-imp-drop { flex-direction: column; align-items: stretch; }
    .bl-imp-drop .bl-btn { width: 100%; }

    /* 出账体检表格 */
    .bl-cov-tbl thead { display: none; }
    .bl-cov-tbl tbody, .bl-cov-tbl tr, .bl-cov-tbl td { display: block; width: 100%; }
    .bl-cov-tbl tr { border-bottom: 1px solid rgba(255,255,255,.06); padding: 9px 0; }
    .bl-cov-tbl td { border: none; padding: 2px 0; }
    .bl-cov-top { flex-direction: column; align-items: flex-start; gap: 8px; }
    .bl-cov-tip { text-align: left; max-width: none; margin-left: 0; }

    /* 营业额录入：表格转卡片 */
    .bl-rev-tbl { table-layout: auto; }
    .bl-rev-tbl thead { display: none; }
    .bl-rev-tbl tbody, .bl-rev-tbl tr, .bl-rev-tbl td { display: block; width: 100%; }
    .bl-rev-tbl tr {
        border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
        padding: 8px 10px; margin-bottom: 8px;
    }
    .bl-rev-tbl td { border: none; padding: 3px 0; }
    .bl-rev-tbl th.bl-rev-delcol, .bl-rev-tbl td:last-child { width: 100%; }
    .bl-rev-tbl td:last-child { text-align: right; }
    .bl-rev-top { flex-wrap: wrap; }
    .bl-rev-top .bl-input { flex: 1 1 100%; max-width: none !important; }
    .bl-rev-acts { flex-wrap: wrap; }
    .bl-rev-acts .bl-btn { flex: 1 1 calc(50% - 6px); }

    /* 合同/收费项目：左右分栏改上下 */
    .bl-contract-layout { grid-template-columns: 1fr; min-height: 0; }
    .bl-seller-scroll { max-height: 40vh; }
    .bl-contract-editor { min-height: 240px; }
    .bl-guide { min-height: 180px; padding: 24px 16px; }

    /* 试算工具条 */
    .bl-pv-bar { gap: 6px; }
    .bl-pv-bar .bl-input { flex: 1 1 100%; width: 100% !important; }
}

/* 弹窗右上角关闭（老板：没有 × 只能找最下面的按钮） */
.bl-modal { position: relative; }
.bl-modal-x {
    position: absolute; top: 12px; right: 12px; width: 30px; height: 30px;
    border: none; border-radius: 8px; background: transparent; cursor: pointer;
    color: #7C8AA0; font-size: 19px; line-height: 1; padding: 0;
    display: flex; align-items: center; justify-content: center;
}
.bl-modal-x:hover { background: rgba(255,255,255,.08); color: #E6EAF2; }
.bl-modal-title { padding-right: 34px; }

/* 文件选择控件：原生 Choose File 跟深色界面不搭 */
.bl-mi input[type="file"], .bl-imp input[type="file"] { display: none; }
.bl-mi-row input[type="file"] {
    display: block; width: 100%; padding: 9px 10px; border-radius: 9px;
    border: 1px dashed rgba(255,255,255,.18); background: rgba(255,255,255,.03);
    color: #A9B6C8; font-size: 12.5px;
}
.bl-mi-row input[type="file"]::file-selector-button {
    margin-right: 10px; padding: 6px 12px; border-radius: 7px; border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06); color: #E6EAF2; font-size: 12px; cursor: pointer;
}

/* 合同/收费项目页签吸顶：滚下去以后还能切页签 */
.bl-tabs { position: sticky; top: 0; z-index: 20; background: rgba(11,16,26,.92); backdrop-filter: blur(10px); }
.bl-build {
    display: inline-block; margin-left: 10px; padding: 1px 7px; border-radius: 5px;
    background: rgba(255,255,255,.06); color: #5C6879; font-size: 10.5px;
    font-variant-numeric: tabular-nums; cursor: default;
}

/* 手机端补充：营业额录入按钮各占一行、试算表只留项目+金额 */
@media (max-width: 860px) {
    .bl-rev-acts .bl-btn { flex: 1 1 100%; }
    .bl-rev-filehint { display: block; margin-top: 6px; }
    .bl-rev-foot { padding: 10px 0 2px; }
    .bl-rev-hint { display: block; line-height: 1.75; }

    /* 试算结果表：数量/单价两列在手机上读不出意义，只留「项目 + 金额」 */
    .bl-table-inner th:nth-child(2),
    .bl-table-inner th:nth-child(3) { display: none; }
    .bl-table-inner tr:not(.bl-ln) td:nth-child(2),
    .bl-table-inner tr:not(.bl-ln) td:nth-child(3) { display: none; }
}

/* 手机上页签不吸顶：会和左上角汉堡按钮叠在一起，把「月度账单」挡住 */
@media (max-width: 860px) {
    .bl-tabs { position: static; background: transparent; backdrop-filter: none; }
}

/* ===== 手机兜底：不依赖视口宽度（浏览器按桌面宽度渲染时 media query 不触发） ===== */

    html.is-mobile .bl-wrap { padding: 12px 10px 32px; }
    html.is-mobile .bl-title { font-size: 17px; }
    html.is-mobile .bl-sub { font-size: 11.5px; }

    /* 顶部：标题一行，工具条换行铺满 */
    html.is-mobile .bl-head { flex-direction: column; align-items: stretch; gap: 10px; }
    html.is-mobile .bl-head-right { flex-wrap: wrap; gap: 8px; }
    html.is-mobile .bl-head-right .bl-period { flex: 1 1 100%; width: 100%; }
    html.is-mobile .bl-head-right .bl-btn { flex: 1 1 calc(50% - 4px); height: 36px; font-size: 13px; padding: 0 8px; }

    /* 页签横向滚动，不换行 */
    html.is-mobile .bl-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    html.is-mobile .bl-tab { flex: 0 0 auto; padding: 9px 14px; }

    /* 摘要条：两列网格 */
    html.is-mobile .bl-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; padding: 12px 14px; }
    html.is-mobile .bl-sum-v { font-size: 18px; }

    /* 状态图例：换行、不占满 */
    html.is-mobile .bl-legend { gap: 8px 14px; padding: 10px 12px; font-size: 11.5px; line-height: 1.7; }

    /* ---------- 账单列表：表格转卡片 ---------- */
    html.is-mobile .bl-stmt-table { border: none; background: transparent; }
    html.is-mobile .bl-stmt-table thead { display: none; }
    html.is-mobile .bl-stmt-table tbody, html.is-mobile .bl-stmt-table tr, html.is-mobile .bl-stmt-table td { display: block; width: 100%; }
    html.is-mobile .bl-stmt-table tr.bl-row {
        border: 1px solid rgba(255,255,255,.09); border-radius: 12px;
        background: rgba(255,255,255,.03); padding: 12px 14px; margin-bottom: 10px;
    }
    html.is-mobile .bl-stmt-table tr.bl-row td { border: none; padding: 0; }
    html.is-mobile .bl-stmt-table .bl-cell-seller b { font-size: 15.5px; }
    html.is-mobile .bl-stmt-table .bl-cell-sub { margin-top: 4px; }
    html.is-mobile .bl-stmt-table .bl-amount {
        font-size: 19px; margin-top: 8px; text-align: right;
    }
    html.is-mobile .bl-stmt-table .bl-cell-status { margin-top: 8px; white-space: normal; line-height: 2; }
    html.is-mobile .bl-stmt-table .bl-cell-acts {
        margin-top: 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    }
    html.is-mobile .bl-stmt-table .bl-cell-acts .bl-btn-xs { margin-left: auto; height: 32px; padding: 0 14px; }
    html.is-mobile .bl-detail-row td { padding: 0 !important; }
    html.is-mobile .bl-detail { padding: 4px 2px; }

    /* ---------- 账单明细表：也转卡片 ---------- */
    html.is-mobile .bl-table-inner thead { display: none; }
    html.is-mobile .bl-table-inner, html.is-mobile .bl-table-inner tbody, html.is-mobile .bl-table-inner tr, html.is-mobile .bl-table-inner td { display: block; width: 100%; }
    html.is-mobile .bl-table-inner tr.bl-ln {
        border-bottom: 1px solid rgba(255,255,255,.06); padding: 10px 0 4px;
    }
    html.is-mobile .bl-table-inner tr.bl-ln td { border: none; padding: 2px 0; }
    html.is-mobile .bl-table-inner tr.bl-ln td.r:not(.bl-amount) {
        display: inline-block; width: auto; margin-right: 18px; text-align: left;
        font-size: 12px; color: #8290A6;
    }
    html.is-mobile .bl-table-inner tr.bl-ln td.r:not(.bl-amount)::before { content: ''; }
    html.is-mobile .bl-table-inner tr.bl-ln td.bl-amount { text-align: right; font-size: 15px; margin-top: 2px; }
    html.is-mobile .bl-ln-note td { padding: 0 0 10px !important; }
    html.is-mobile .bl-dt-head { flex-direction: column; gap: 6px; }
    html.is-mobile .bl-dt-amt { font-size: 22px; }
    html.is-mobile .bl-detail-acts { gap: 10px; }
    html.is-mobile .bl-acts-export { margin-left: 0; }

    /* 各账号营业额：平台列收窄 */
    html.is-mobile .bl-revblock-r .plat { width: 46px; }
    html.is-mobile .bl-revblock-r { font-size: 13px; }

    /* 人工调整行 */
    html.is-mobile .bl-man-row { flex-wrap: wrap; gap: 6px; }

    /* ---------- 弹窗铺满屏幕 ---------- */
    html.is-mobile .bl-modal-mask { padding: 10px; }
    html.is-mobile .bl-modal, html.is-mobile .bl-modal-wide, html.is-mobile .bl-modal-xwide { max-width: 100%; padding: 16px 14px 14px; }
    html.is-mobile .bl-modal-body { max-height: 66vh; }
    html.is-mobile .bl-modal-title { font-size: 15.5px; }

    /* 导入面板表格转卡片 */
    html.is-mobile .bl-imp-tbl thead { display: none; }
    html.is-mobile .bl-imp-tbl tbody, html.is-mobile .bl-imp-tbl tr, html.is-mobile .bl-imp-tbl td { display: block; width: 100%; }
    html.is-mobile .bl-imp-tbl tr { border-bottom: 1px solid rgba(255,255,255,.06); padding: 9px 0; }
    html.is-mobile .bl-imp-tbl td { border: none; padding: 2px 0; }
    html.is-mobile .bl-imp-tbl td.r { text-align: left; font-size: 14px; color: #EAF0FA; font-weight: 500; }
    html.is-mobile .bl-imp-tbl td.r::before { content: '营业额 '; font-size: 11.5px; color: #64748B; font-weight: 400; }
    html.is-mobile .bl-imp-top { flex-wrap: wrap; gap: 10px; }
    html.is-mobile .bl-imp-drop { flex-direction: column; align-items: stretch; }
    html.is-mobile .bl-imp-drop .bl-btn { width: 100%; }

    /* 出账体检表格 */
    html.is-mobile .bl-cov-tbl thead { display: none; }
    html.is-mobile .bl-cov-tbl tbody, html.is-mobile .bl-cov-tbl tr, html.is-mobile .bl-cov-tbl td { display: block; width: 100%; }
    html.is-mobile .bl-cov-tbl tr { border-bottom: 1px solid rgba(255,255,255,.06); padding: 9px 0; }
    html.is-mobile .bl-cov-tbl td { border: none; padding: 2px 0; }
    html.is-mobile .bl-cov-top { flex-direction: column; align-items: flex-start; gap: 8px; }
    html.is-mobile .bl-cov-tip { text-align: left; max-width: none; margin-left: 0; }

    /* 营业额录入：表格转卡片 */
    html.is-mobile .bl-rev-tbl { table-layout: auto; }
    html.is-mobile .bl-rev-tbl thead { display: none; }
    html.is-mobile .bl-rev-tbl tbody, html.is-mobile .bl-rev-tbl tr, html.is-mobile .bl-rev-tbl td { display: block; width: 100%; }
    html.is-mobile .bl-rev-tbl tr {
        border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
        padding: 8px 10px; margin-bottom: 8px;
    }
    html.is-mobile .bl-rev-tbl td { border: none; padding: 3px 0; }
    html.is-mobile .bl-rev-tbl th.bl-rev-delcol, html.is-mobile .bl-rev-tbl td:last-child { width: 100%; }
    html.is-mobile .bl-rev-tbl td:last-child { text-align: right; }
    html.is-mobile .bl-rev-top { flex-wrap: wrap; }
    html.is-mobile .bl-rev-top .bl-input { flex: 1 1 100%; max-width: none !important; }
    html.is-mobile .bl-rev-acts { flex-wrap: wrap; }
    html.is-mobile .bl-rev-acts .bl-btn { flex: 1 1 calc(50% - 6px); }

    /* 合同/收费项目：左右分栏改上下 */
    html.is-mobile .bl-contract-layout { grid-template-columns: 1fr; min-height: 0; }
    html.is-mobile .bl-seller-scroll { max-height: 40vh; }
    html.is-mobile .bl-contract-editor { min-height: 240px; }
    html.is-mobile .bl-guide { min-height: 180px; padding: 24px 16px; }

    /* 试算工具条 */
    html.is-mobile .bl-pv-bar { gap: 6px; }
    html.is-mobile .bl-pv-bar .bl-input { flex: 1 1 100%; width: 100% !important; }


    html.is-mobile .bl-rev-acts .bl-btn { flex: 1 1 100%; }
    html.is-mobile .bl-rev-filehint { display: block; margin-top: 6px; }
    html.is-mobile .bl-rev-foot { padding: 10px 0 2px; }
    html.is-mobile .bl-rev-hint { display: block; line-height: 1.75; }

    /* 试算结果表：数量/单价两列在手机上读不出意义，只留「项目 + 金额」 */
    html.is-mobile .bl-table-inner th:nth-child(2),
    html.is-mobile .bl-table-inner th:nth-child(3) { display: none; }
    html.is-mobile .bl-table-inner tr:not(.bl-ln) td:nth-child(2),
    html.is-mobile .bl-table-inner tr:not(.bl-ln) td:nth-child(3) { display: none; }


    html.is-mobile .bl-tabs { position: static; background: transparent; backdrop-filter: none; }

/* 手机上账单卡片的操作区：三个动作别互相挤压（「明细」被截成「细」） */
@media (max-width: 860px) {
    .bl-stmt-table .bl-cell-acts > * { flex: 0 0 auto; }
}
html.is-mobile .bl-stmt-table .bl-cell-acts > * { flex: 0 0 auto; }

/* 过机费的平台开关（快驴 / 美菜） */
.bl-plats { display: flex; gap: 4px; margin-top: 6px; }
.bl-pchip {
    padding: 2px 8px; border-radius: 6px; font-size: 11px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.12); color: #7C8AA0; user-select: none;
}
.bl-pchip.on { background: rgba(59,130,246,.18); border-color: rgba(59,130,246,.5); color: #93B7FF; }
.bl-pchip:hover { border-color: rgba(255,255,255,.28); }

/* 账单列表搜索框 */
.bl-searchbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bl-searchbar .bl-input { max-width: 260px; height: 34px; }
.bl-search-cnt { font-size: 12px; color: #64748B; }
