/* 经营总览「过往可能有问题的数据」（2026-10-11 老板「帮我标一下过往可能出了问题的数据……就在我的总览那里帮我列出来」）。
   只经营总览一页用（static/mgmt/doubts.js）。颜色只用 tokens.css 变量（UI 门禁）；红橙是状态色，旁边都写着字。 */
#s-doubt { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px 16px 14px; gap: 10px; }
#s-doubt > h2.sqv-h { margin: 12px 0 0; }

/* 五组格子：点一下只看那组 */
.dq-groups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.dq-g { display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; color: var(--text-primary); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.dq-g:hover { border-color: var(--accent); }
.dq-g.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft-bg); }
.dq-g-h { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.dq-g-h .sqv-ico { color: var(--text-secondary); }
.dq-g-n { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.dq-g-n b { font-size: 22px; line-height: 1.1; }
.dq-g-n small { font-size: 12px; color: var(--text-secondary); margin-right: 8px; }
.dq-g-n small.dq-mute { color: var(--text-muted); margin-right: 0; }
.dq-bad { color: var(--danger-fg); }
.dq-warn { color: var(--warning-fg); }
.dq-g .sqv-stack { height: 8px; }
.dq-g-none { font-size: 12px; color: var(--success-fg); }
.dq-g-a { font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.dq-g-t { font-size: 12px; color: var(--text-muted); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* 色块用色板的 600 那一档（红 r-600、琥珀 a-600）：700 那档是给字用的，铺成色块发褐；字照旧用 danger-fg / warning-fg */
#s-doubt .sqv-cbad { background: var(--r-600); }
#s-doubt .sqv-cwarn { background: var(--a-600); }

/* 按月柱子：矮一点，点得动 */
.dq-strip .mg-cols { height: 96px; }
.dq-strip .mg-col { cursor: pointer; }
.dq-strip .mg-col.cur .mg-col-bar { background: var(--accent-soft-bg); }
.dq-strip .mg-col.cur .mg-col-bar > i { opacity: 1; }
.dq-note { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.6; }

/* 筛选条 */
.dq-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.dq-bar input[type=search] { margin-left: auto; min-width: 200px; height: 32px; box-sizing: border-box; padding: 0 10px; font: inherit; font-size: 13px;
  border: 1px solid var(--border-control); border-radius: 8px; background: var(--surface); color: var(--text-primary); }
.dq-chip { border: 1px solid var(--accent-soft-border); background: var(--accent-soft-bg); color: var(--accent-soft-fg); border-radius: var(--radius-full);
  padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }

/* 清单 */
.dq-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.dq-it { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 10px 4px;
  border-bottom: 1px solid var(--border-subtle); }
.dq-it:last-child { border-bottom: 0; }
.dq-it.bad { box-shadow: inset 3px 0 0 var(--danger-fg); padding-left: 10px; }
.dq-it.warn { box-shadow: inset 3px 0 0 var(--warning-fg); padding-left: 10px; }
.dq-lv { padding-top: 1px; }
.dq-t { min-width: 0; font-size: 13px; line-height: 1.6; }
.dq-t > b { font-weight: 600; word-break: break-word; }
.dq-t > small { display: block; color: var(--text-secondary); font-size: 12px; word-break: break-word; }
.dq-meta { display: flex; flex-wrap: wrap; gap: 2px 6px; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.dq-meta i { font-style: normal; color: var(--text-disabled); }
.dq-meta span[data-viz-tip] { cursor: help; }
.dq-acts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 12px; }
.dq-acts a { color: var(--accent); text-decoration: none; }
.dq-acts a:hover { text-decoration: underline; }
.dq-done { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.dq-v { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; color: var(--text-primary); padding-top: 1px; }

/* 「去核对 · 备注附图 →」：去利润核对「全部要核对」打开这一条（10-11 第二轮） */
.dq-acts a.dq-check { font-weight: 600; }

.dq-foot { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
.dq-more { font: inherit; font-size: 13px; padding: 6px 16px; border-radius: var(--radius-full); cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--accent); }
.dq-more.ghost { color: var(--text-secondary); }
.dq-more:hover { border-color: var(--accent); }

@media (max-width: 1100px) { .dq-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  #s-doubt { padding: 2px 12px 12px; }
  .dq-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dq-g-n b { font-size: 18px; }
  .dq-strip .mg-cols { height: 72px; }
  .dq-bar input[type=search] { margin-left: 0; width: 100%; font-size: 16px; }
  .dq-bar .mg-seg { max-width: 100%; overflow-x: auto; }
  .dq-it { grid-template-columns: minmax(0, 1fr) auto; }
  .dq-lv { grid-column: 1 / -1; }
}
