/* 周例会（app/f_meeting.py）。颜色只用 tokens.css 里的变量；版面用 components.css 的 .td .card .sec .fold，这里只补顶上那条和几处小字 */

/* 页头右边：进入演播模式（老板、大刘） */
.fmt-go { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.fmt-go .btn { padding: 7px 16px; font-size: 13px; }
.fmt-go small { font-size: 12px; color: var(--mute); }

/* 这周的会：哪天、谁开的、开会的按钮 */
.fmt-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 12px 16px; margin: 0 0 4px; }
.fmt-bar > div { display: flex; gap: 4px 12px; align-items: baseline; flex-wrap: wrap; min-width: 0; }
.fmt-bar b { font-size: 15px; font-weight: 700; }
.fmt-bar span { font-size: 12px; color: var(--mute); }
.fmt-bar span a { color: var(--ink); text-decoration: underline; }
.fmt-bar + .fmt-draft { margin-top: 10px; }
.fmt-bar form { margin: 0; }
.fmt-bar .btn { padding: 6px 14px; font-size: 13px; }

/* 回看里「更早的」那一小段的标题 */
.fmt-sub { margin: 0; padding: 14px 0 2px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--mute); }

/* 员工看：和自己没关系的几栏并成一张小卡 */
.fmt-quiet p { margin: 0; padding: 7px 0; font-size: 12.5px; color: var(--mute); border-top: 1px solid var(--line); display: flex; gap: 12px; }
.fmt-quiet p:first-child { border-top: none; }
.fmt-quiet b { flex: 0 0 104px; color: var(--ink); font-weight: 600; }

/* 贴纪要：大一点的文本框；拆出来的每一条一行：勾、做什么、谁、哪天前，原话在下面一行 */
.fmt-ta { width: 100%; font-size: 13px; line-height: 1.6; padding: 8px 10px; resize: vertical; }
.fmt-draft { margin: 0 0 10px; scroll-margin-top: 72px; }
.fmt-dh { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.fmt-dh b { font-size: 14px; }
.fmt-dh span { font-size: 12px; color: var(--mute); }
.fmt-dr { display: grid; grid-template-columns: 18px minmax(0, 1fr) 120px 140px; gap: 6px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.fmt-dr .in { width: 100%; padding: 6px 8px; font-size: 13px; }
.fmt-dr .ck { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.fmt-dr small { grid-column: 2 / -1; font-size: 12px; color: var(--weak); overflow-wrap: anywhere; }
.fmt-dr .fmt-need { border-color: var(--pop); color: var(--pop-ink); }
.fmt-draft > .acts { margin-top: 10px; }

/* 记待办：下拉出来的小表，一行一样 */
.fmt details.cant form.closef { display: grid; gap: 6px; width: 300px; }
.fmt details.cant form.closef .in { width: 100%; }

/* 手机上：点开的小表不浮在上面（会伸出屏幕），就地往下展开，占满这一行 */
@container main (max-width: 640px) {
  .fmt-go { align-items: flex-start; }
  .fmt-dr { grid-template-columns: 18px minmax(0, 1fr) minmax(0, 1fr); }
  .fmt-dr > .in[type=text] { grid-column: 2 / -1; }
  .fmt-dr > select.in { grid-column: 2; }
  .fmt details.cant[open] { flex-basis: 100%; }
  .fmt details.cant form, .fmt details.cant form.closef { position: static; width: auto; margin-top: 6px; box-shadow: none; }
}

/* 空的那一栏只写一句，卡片别撑高 */
.fmt .card > .nothing { padding: 4px 0; }

/* 「怎么用」：顶上的长说明收起来（精简方案第 3 节「周例会」） */
.fmt-how { margin: 0 0 10px; }
.fmt-how .card p { margin: 0; font-size: 12.5px; color: var(--mute); line-height: 1.8; }

/* 上个月（每月第一次例会，搬家定稿第 73 条）：四样一样一行，大数在左、说明在右 */
.fmt-month { padding: 4px 16px; }
.fmt-mi { display: grid; grid-template-columns: 128px auto minmax(0, 1fr); gap: 4px 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.fmt-mi:first-child { border-top: none; }
.fmt-mi > b { font-size: 13px; font-weight: 600; }
.fmt-mi > small { font-size: 12px; color: var(--mute); line-height: 1.7; min-width: 0; overflow-wrap: anywhere; }
.fmt-mi > b + small { grid-column: 2 / -1; }
.fmt-mi > small a { color: var(--ink); text-decoration: underline; }
.fmt-mn { font-family: var(--num); font-size: 22px; font-weight: 700; letter-spacing: -.5px; white-space: nowrap; }
.fmt-mn.low { color: var(--red); }
.fmt-mt { border-top: 1px solid var(--line); }
.fmt-mnote { margin: 8px 4px 0; }
.fmt-mnote a { color: var(--ink); text-decoration: underline; margin-left: 4px; }

@container main (max-width: 640px) {
  .fmt-mi { grid-template-columns: minmax(0, 1fr) auto; }
  .fmt-mi > small, .fmt-mi > b + small { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .fmt-mi { grid-template-columns: minmax(0, 1fr) auto; }
  .fmt-mi > small, .fmt-mi > b + small { grid-column: 1 / -1; }
  .fmt details.cant[open] { flex-basis: 100%; }
  .fmt details.cant form, .fmt details.cant form.closef { position: static; width: auto; margin-top: 6px; box-shadow: none; }
}

/* 11/17 会前材料按平台（COOP.例会.2） */
.fmt-plats { gap: 12px; }
.fmt-plat { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--card); min-width: 0; }
.fmt-plat h4 { margin: 0 0 6px; font-size: 16px; }
.fmt-h { margin: 10px 0 4px; font-size: 13px; font-weight: 600; color: var(--mute); }
.fmt-ul { list-style: none; margin: 0; padding: 0; }
.fmt-ul li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fmt-ul li:last-child { border-bottom: 0; }
.fmt-ul li b { font-size: 13px; color: var(--pop-ink); font-weight: 600; }
.fmt-ul li a { color: var(--ink); text-decoration: none; }
.fmt-ul li a:hover { text-decoration: underline; }
.fmt-ul li.gap a { color: var(--weak); }
.fmt-none { margin: 0; font-size: 14px; color: var(--mute); }
