/* ============================================================
   第一服务驾驶舱 · 日回款新鲜度说明「并入数据状态卡」（2026-11-04 v2）
   原状态条：body 顶部的 data-api-daily-freshness
   目标：仅 /daily，把这行说明压成「数据状态」卡内的一行小字：
         主句（正常态一行） + 右侧「明细 ▾」折叠（口径句与核对数据）。
   其他页面（含首页）没有日回款数据可对应，整条收起，不再占位。
   回滚：删掉 index.html 里引用本文件的两行即可，不涉及其他资源。
   ============================================================ */

/* --- 0. 非 /daily 页面：说明条整体收起 ---------------------------------- */
body > div[data-api-daily-freshness].fvs-suppressed {
  display: none !important;
}

/* --- 1. 条搬进卡片后：一行小字，主句与「明细」同排 ---------------------- */
body.aph2-theme main .r228-daily-summary .r228-source-card > div[data-api-daily-freshness] {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 0 8px !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  color: #5f6773 !important;
  white-space: normal !important;
  word-break: break-word !important;
}

/* hidden 态必须仍然隐藏：上面 display:flex !important 会压过浏览器默认的
   [hidden]{display:none}，不显式收回来，切到别的页会残留在卡片里。 */
body.aph2-theme main .r228-daily-summary .r228-source-card > div[data-api-daily-freshness][hidden] {
  display: none !important;
}

/* --- 2. 主句占满剩余宽度，明细靠右 -------------------------------------- */
body.aph2-theme main .fvs-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* --- 3. 「明细」折叠：收起时与主句同一行，展开时独占整行 ---------------- */
body.aph2-theme main details.fvs-more {
  flex: 0 0 auto !important;
}

body.aph2-theme main details.fvs-more > summary {
  cursor: pointer !important;
  color: #8a929c !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  list-style: none !important;
  user-select: none !important;
  white-space: nowrap !important;
  border-bottom: 1px dashed #c4cbd4 !important;
}

body.aph2-theme main details.fvs-more > summary::-webkit-details-marker {
  display: none !important;
}

body.aph2-theme main details.fvs-more > summary::after {
  content: " ▾";
  font-size: 9px;
}

body.aph2-theme main details.fvs-more[open] > summary::after {
  content: " ▴";
}

body.aph2-theme main details.fvs-more > summary:hover {
  color: #41464c !important;
}

body.aph2-theme main details.fvs-more[open] {
  flex-basis: 100% !important;
  margin-top: 4px !important;
}

body.aph2-theme main details.fvs-more > .fvs-detail {
  display: block !important;
  margin-top: 3px !important;
  color: #7b838d !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
}

/* --- 4. 窄屏：卡片转两列后宽度更小，字号再收一档 ------------------------ */
@media (max-width: 1023px) {
  body.aph2-theme main .r228-daily-summary .r228-source-card > div[data-api-daily-freshness] {
    font-size: 10.5px !important;
  }
}
