/* ============================================================================
 * V3.5.6 工作台重构 + 应用中心 · 独立样式覆盖层
 *
 * 纯样式，不改业务 DOM、不破坏 [v-cloak] 高权重 guard。
 * 三布局加载顺序：v35-theme → v351-typography → v352-polish → v353-bill
 *                 → v354-self → v355-setting → v356-dashboard（本文件）。
 * ========================================================================== */

/* ---------- 1) 顶部指标卡：3 个「收入 + 支出」合并卡 + 2 个利润卡 ---------- */
body.yj-v35 .yj-v356-metric-grid {
  display: grid;
  /* 3 张「收入+支出」合并卡各占 1.35 份，2 张利润卡各占 1 份，
     保证合并卡内两个金额都能单行显示、不折行 */
  grid-template-columns: 1.35fr 1.35fr 1.35fr 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
body.yj-v35 .yj-v356-metric-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  padding: 16px 18px;
  box-sizing: border-box;
}
/* 合并卡内两个数值只靠留白分隔，明确去掉任何竖线 / 边框 / 阴影 */
body.yj-v35 .yj-v356-metric-pair {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
body.yj-v35 .yj-v356-metric-item {
  flex: 1 1 0;
  min-width: 0;
  border: 0 !important;
  box-shadow: none !important;
}
body.yj-v35 .yj-v356-metric-item + .yj-v356-metric-item { border: 0 !important; }
body.yj-v35 .yj-v356-metric-label {
  font-size: 13px;
  color: #909399;
  line-height: 1.4;
  white-space: nowrap;
}
body.yj-v35 .yj-v356-metric-hint {
  margin-left: 6px;
  font-size: 11px;
  color: #a8abb2;
  background: #f4f6fb;
  border-radius: 3px;
  padding: 1px 5px;
}
body.yj-v35 .yj-v356-metric-value {
  margin-top: 8px;
  font-size: 21px;
  font-weight: 700;
  color: #303133;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  line-height: 1.3;
}
/* 合并卡内两个金额共用一行空间，字号略收以避免折行 */
body.yj-v35 .yj-v356-metric-pair .yj-v356-metric-value { font-size: 18px; }
body.yj-v35 .yj-v356-metric-card.is-profit .yj-v356-metric-value { color: var(--yj-brand, #2f6bff); }
@media (max-width: 1360px) {
  body.yj-v35 .yj-v356-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body.yj-v35 .yj-v356-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 2) 图表：收入 / 支出、利润数据统计 各占一整行 ---------- */
body.yj-v35 .yj-v356-chart-grid {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 16px;
}
body.yj-v35 .yj-v356-chart-grid > .yj-chart-card-wide { grid-column: 1 / -1; }
body.yj-v35 .yj-v356-chart-grid .yj-chart-box-wide { height: 270px; }

/* ---------- 3) 利润行下方：部门计划进度 / 部门收入占比 并排同一行 ---------- */
body.yj-v35 .yj-v356-dash-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
  align-items: stretch;
}
body.yj-v35 .yj-v356-bottom-card {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  padding: 14px 16px;
  min-height: 300px;
  box-sizing: border-box;
}
body.yj-v35 .yj-v356-dept-box { position: relative; height: 240px; margin-top: 6px; }
@media (max-width: 1200px) {
  body.yj-v35 .yj-v356-dash-bottom { display: grid; grid-template-columns: 1fr; }
}

/* ---------- 4) 应用中心：任务中心 / 消息推送 / 勾稽自检 三宫格 ---------- */
body.yj-v35 .yj-v356-apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}
body.yj-v35 .yj-v356-app-card {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  padding: 24px 22px;
  cursor: pointer;
  transition: box-shadow .18s, transform .18s, border-color .18s;
  min-height: 176px;
  box-sizing: border-box;
}
body.yj-v35 .yj-v356-app-card:hover {
  border-color: var(--yj-brand, #2f6bff);
  box-shadow: 0 6px 20px rgba(47, 107, 255, .10);
  transform: translateY(-2px);
}
body.yj-v35 .yj-v356-app-card.is-placeholder {
  cursor: default;
  background: #fafbfc;
  border-style: dashed;
}
body.yj-v35 .yj-v356-app-card.is-placeholder:hover {
  border-color: #dcdfe6;
  box-shadow: none;
  transform: none;
}
body.yj-v35 .yj-v356-app-icon {
  width: 44px; height: 44px; line-height: 44px; text-align: center;
  border-radius: 10px; font-size: 22px;
  color: var(--yj-brand, #2f6bff);
  background: #eef3ff;
  margin-bottom: 14px;
}
body.yj-v35 .yj-v356-app-card.is-placeholder .yj-v356-app-icon { color: #a8abb2; background: #f0f2f5; }
body.yj-v35 .yj-v356-app-title { font-size: 16px; font-weight: 600; color: #303133; }
body.yj-v35 .yj-v356-app-tag {
  font-size: 11px; font-weight: 400; color: #909399;
  background: #f2f3f5; border-radius: 3px; padding: 2px 6px; margin-left: 8px;
}
body.yj-v35 .yj-v356-app-desc { font-size: 13px; color: #909399; margin-top: 8px; line-height: 1.6; }
body.yj-v35 .yj-v356-app-go { font-size: 13px; color: var(--yj-brand, #2f6bff); margin-top: 16px; }
body.yj-v35 .yj-v356-app-card.is-placeholder .yj-v356-app-go { color: #c0c4cc; }
@media (max-width: 1100px) {
  body.yj-v35 .yj-v356-apps { grid-template-columns: 1fr; }
}
