  * { box-sizing: border-box; }
  html, body { height: 100%; overflow: hidden; }
  body { margin:0; font-family:-apple-system,"Microsoft YaHei",sans-serif; background:#f5f7fa; color:#303133; }
  #app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
  .header { background:#fff; padding:10px 20px; display:flex; justify-content:space-between;
            align-items:center; box-shadow:0 2px 8px rgba(0,0,0,.06); flex-shrink:0; }
  .header h2 { margin:0; color:#303133; font-size:16px; font-weight:600; }
  .header .user { color:#606266; font-size:13px; display:flex; align-items:center; }
  .page { flex: 1; display: flex; flex-direction: column;
          padding: 10px 16px; overflow: hidden; min-height: 0; }
  .filter { margin-bottom:8px; flex-shrink:0; }
  .filter .el-form-item { margin-bottom:0; flex:none; }
  .filter .el-form { display:flex; flex-wrap:wrap; align-items:center; }
  /* 主列表操作栏保持单行不换行 */
  .filter .filter-nowrap { flex-wrap:nowrap; }
  .filter .el-card__body { padding: 10px 14px; }
  .list-card { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
  .list-card .el-card__body { flex: 1; display: flex; flex-direction: column;
                              padding: 8px 12px; overflow: hidden; min-height: 0; }
  .table-wrap { flex: 1; overflow: hidden; min-height: 0; }
  .pager { margin-top:8px; text-align:right; flex-shrink:0; }

  .cards {
    margin: 10px 0;
    display: flex;
    gap: 12px;
    width: 100%;
  }
  .cards .card-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
  }
  .cards .card-box {
    flex: 1;
    width: 100%;
  }
  .cards .card-box .el-card__body {
    padding: 10px 12px;
    min-width: 0;
  }
  .cards .card-label {
    color: #909399;
    font-size: 12px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cards .card-value {
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card-value.blue { color:#409EFF; }
  .card-value.red { color:#F56C6C; }
  .card-value.green { color:#67C23A; }

  .red { color:#F56C6C; font-weight:500; }
  .green { color:#67C23A; font-weight:500; }
  .expense-summary { margin-bottom:8px; display:flex; gap:8px; flex-wrap:wrap; }
  .formula { margin:0; font-family:Consolas,monospace; white-space:pre-wrap; font-size:12px; line-height:1.6; }
  .empty { text-align:center; color:#909399; padding:40px 0; }
  .summary-bar {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 16px; padding: 8px 12px; background: #ecf5ff;
    border: 1px solid #d9ecff; border-radius: 4px;
    margin-bottom: 8px; font-size: 12px; color: #1e3c72; flex-shrink: 0;
    width: 100%; max-width: 100%; overflow: hidden;
  }
  .summary-bar .sum-label {
    font-weight: 700; color: #409EFF; padding-right: 8px; border-right: 1px solid #d9ecff;
  }
  .summary-bar .sum-item {
    display: inline-flex; align-items: center; gap: 4px;
    white-space: nowrap; flex-shrink: 0;
  }
  .summary-bar .sum-item em { font-style: normal; color: #909399; }
  .summary-bar .sum-item b { font-variant-numeric: tabular-nums; color: #1e3c72; font-weight: 700; }
  .summary-bar .sum-item b.blue { color: #409EFF; }

  .el-table th.el-table__cell { background: #fafbfd !important; padding: 0 !important; height: 34px !important; }
  .el-table th.el-table__cell .cell {
    height: 34px !important; line-height: 34px !important; padding: 0 8px !important;
    color: #1e3c72; font-weight: 600; font-size: 12px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .el-table td.el-table__cell { padding: 0 !important; height: 32px !important; }
  .el-table td.el-table__cell .cell {
    height: 32px !important; line-height: 32px !important; padding: 0 8px !important;
    font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .el-table .el-tag { height: 20px; line-height: 20px; padding: 0 6px; }
  .el-table .el-link { vertical-align: middle; font-size: 12px !important; }
  .el-table .el-link .el-link__inner { font-size: 12px !important; }
  .el-table tbody tr:hover > td.el-table__cell {
    background: #f0f7ff !important;
    border-top: 1px solid #a0cfff !important;
    border-bottom: 1px solid #a0cfff !important;
  }
  .el-table tfoot td.el-table__cell {
    background: #ecf5ff !important; color: #1e3c72 !important;
    font-weight: 800 !important; height: 34px !important; padding: 0 !important;
    border-top: none !important;
  }
  .el-table tfoot td.el-table__cell .cell {
    height: 34px !important; line-height: 34px !important; padding: 0 8px !important;
    font-size: 13px !important; color: #1e3c72 !important; font-weight: 800 !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
  }
  .el-table tfoot td.el-table__cell:first-child .cell {
    color: #409EFF !important; font-weight: 700 !important;
  }
  .num { font-variant-numeric:tabular-nums; font-weight:500; }
  .calc-panel {
    background: #f8fafc; border-radius: 8px; padding: 12px 16px; border: 1px solid #e9eef5;
  }
  .calc-panel .el-descriptions__label { width: 130px; color: #5a6a7a; font-weight: 500; font-size: 12px; }
  .calc-panel .el-descriptions__content { font-weight: 600; color: #1e3c72; font-size: 12px; }
  .calc-panel .formula {
    background: #fff; border-radius: 6px; padding: 12px 14px;
    border: 1px solid #e4e9f2; font-size: 12px; line-height: 1.7;
    color: #2c3e50; margin-top: 12px;
  }
  .section-head {
    display: flex; justify-content: space-between; align-items: center; margin: 10px 0 6px;
  }
  .section-head h4 { margin: 0; color:#303133; font-weight:600; font-size:13px; }
  .filter .el-button { border-radius: 4px; font-size: 13px; }
  .filter .export-group { margin-left: 8px; display: inline-flex; vertical-align: middle; }
  .filter .export-main, .filter .export-arrow {
    color: #409EFF; background: #ecf5ff; border: 1px solid #b3d8ff;
  }
  .filter .export-main:hover, .filter .export-arrow:hover,
  .filter .export-main:focus, .filter .export-arrow:focus {
    color: #409EFF; background: #d9ecff; border-color: #409EFF;
  }
  .filter .export-main { border-top-right-radius: 0; border-bottom-right-radius: 0; }
  .filter .export-arrow { border-left: none; border-top-left-radius: 0; border-bottom-left-radius: 0; }
  .export-mini {
    color: #409EFF !important; background: #ecf5ff !important; border: 1px solid #b3d8ff !important;
  }
  .export-mini:hover, .export-mini:focus {
    color: #409EFF !important; background: #d9ecff !important; border-color: #409EFF !important;
  }

  .calc-block {
    border: 1px solid #e4e9f2;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: #fff;
  }
  .calc-block:last-child {
    margin-bottom: 0;
  }
  .calc-block .calc-title {
    font-size: 13px;
    font-weight: 700;
    color: #409EFF;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #d9ecff;
  }
  .calc-block.pool .calc-title {
    color: #E6A23C;
    border-bottom-color: #faecd8;
  }

  .calc-steps { margin-top: 14px; }
  .calc-steps .calc-title {
    font-size: 12px; color: #409EFF; font-weight: 700; margin-bottom: 8px;
  }
  .calc-steps .calc-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 0; font-size: 13px; gap: 8px;
  }
  .calc-steps .calc-row .calc-k {
    display: inline-flex; align-items: center; color: #606266;
    white-space: nowrap; flex: 1; min-width: 0;
  }
  .calc-steps .calc-row .calc-v {
    color: #1e3c72; font-weight: 600; font-variant-numeric: tabular-nums;
    flex-shrink: 0; text-align: right;
  }
  .calc-steps .calc-op {
    display: inline-block; width: 18px;
    color: #909399; font-weight: 700; text-align: center;
  }
  .calc-steps .calc-sub {
    font-size: 11px;
    color: #F56C6C !important;
    font-weight: 400;
    padding-left: 18px;
  }
  .calc-steps .calc-total {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 8px; padding-top: 10px; border-top: 1px solid #ebeef5;
  }
  .calc-steps .calc-total .calc-k {
    display: inline-flex; align-items: center;
    font-size: 13px; font-weight: 700; color: #1e3c72;
  }
  .calc-steps .calc-total .calc-v {
    font-size: 20px; font-weight: 700; color: #409EFF;
    font-variant-numeric: tabular-nums;
  }

  .no-login-mask {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: #f5f7fa; font-family: -apple-system, "Microsoft YaHei", sans-serif;
  }
  .no-login-mask .box {
    text-align: center; color: #555;
    background: #fff; padding: 40px 60px; border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
  }
  .no-login-mask h2 { color: #333; margin: 0 0 12px; }
  .no-login-mask a { color: #1890ff; text-decoration: none; }
  .no-login-mask a:hover { text-decoration: underline; }

   /* ==================== 业绩明细查询页 - Tab 样式 ==================== */
  /* 未选中 Tab：黑色 */
  .detail-query-tabs .el-tabs__item {
    color: #303133 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
  }
  /* 选中 Tab：蓝色 */
  .detail-query-tabs .el-tabs__item.is-active {
    color: #409EFF !important;
    font-weight: 500 !important;
  }
  /* hover：蓝色 */
  .detail-query-tabs .el-tabs__item:hover {
    color: #409EFF !important;
  }
  /* 底部灰线：去掉 */
  .detail-query-tabs .el-tabs__nav-wrap::after {
  background-color: #dcdfe6 !important;   /* 更浅的灰 */
  height: 1px !important;
}
  /* 选中下划线：蓝色 */
  .detail-query-tabs .el-tabs__active-bar {
    background-color: #409EFF !important;
    height: 2px !important;
  }

  /* ==================== 明细查询卡片：白底 ==================== */
  /* 整个卡片白底 */
  .detail-query-card,
  .detail-query-card .el-card__body,
  .detail-query-card .el-card__header {
    background-color: #fff !important;
  }
  /* Tab 区域白底 */
  .detail-query-card .el-tabs,
  .detail-query-card .el-tabs__header,
  .detail-query-card .el-tabs__nav-wrap,
  .detail-query-card .el-tabs__nav-scroll,
  .detail-query-card .el-tabs__nav,
  .detail-query-card .el-tabs__content {
    background-color: #fff !important;
  }
  /* 表格区域白底 */
  .detail-query-card .table-wrap {
    background-color: #fff !important;
  }