/* 後台「會員細節」視窗裡的券逐張清單與下方可收合區塊(public/member-detail-sections.js)。
 * 只用 .mds- 開頭的 class(外加單號連結 .md-cpn-order)。商米舊 WebView 守則同 app.css:橫排用 margin 隔開、不靠 flex gap;
 * 不用 inset、:has()、:is()、min()、clamp()。 */
.mds-cpns { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.mds-list { list-style: none; margin: 6px 0 0; padding: 0; }
.mds-empty { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.mds-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.mds-btn { min-height: 44px; margin: 8px 0 0; padding: 6px 14px; font-size: 14px; }
.mds-sub { margin-top: 10px; font-weight: 700; color: var(--muted); }

/* 一張券一個小卡 */
.mds-cpn { margin: 0 0 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mds-cpn-used, .mds-cpn-expired, .mds-cpn-revoked { background: #f8f9fa; color: #6b7385; }
.mds-c1 { display: block; overflow: hidden; }
.mds-ct { float: left; max-width: 70%; overflow-wrap: anywhere; font-size: 14.5px; }
.mds-st { float: right; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #e7f5ff; color: #1864ab; }
.mds-st-used { background: #ebfbee; color: #1b6e2e; }
.mds-st-expired, .mds-st-revoked { background: #f1f3f5; color: #6b7385; }
.mds-c2, .mds-c3 { clear: both; margin-top: 2px; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.mds-c3 { color: var(--ink); }
.mds-cpn-used .mds-c3, .mds-cpn-expired .mds-c3 { color: #6b7385; }
/* 「用在哪張單 ›」:手機上觸控區至少 44px 高;桌機維持行內小連結 */
.md-cpn-order { vertical-align: baseline; }
@media (max-width: 760px) { .md-cpn-order { display: inline-flex; align-items: center; min-height: 44px; margin-top: -12px; margin-bottom: -12px; } }

.mds-more { margin-top: 6px; }
.mds-more > summary, .mds-sec > summary { display: block; min-height: 44px; box-sizing: border-box; padding: 10px 0; font-size: 14px; font-weight: 700; color: var(--accent); cursor: pointer; }
.mds-more > summary:focus, .mds-sec > summary:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 可收合區塊:一格一行,預設收起 */
.mds-secs { margin-top: 10px; border-top: 1px solid var(--line); }
.mds-sec { border-bottom: 1px solid var(--line); }
.mds-sec > summary { color: var(--ink); }
.mds-sec-t { font-weight: 800; }
.mds-sec-h { margin-left: 10px; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.mds-body { padding: 0 0 10px; font-size: 14px; line-height: 1.7; }
.mds-ln { margin: 2px 0; overflow-wrap: anywhere; }

/* 點數 / 集點 / 事件紀錄:一筆一行(時間、種類、增減、備註) */
.mds-pt { margin: 0; padding: 6px 0; border-bottom: 1px solid #f1f3f5; font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.mds-pt[hidden] { display: none; }
.mds-pt-t { display: inline-block; min-width: 92px; margin-right: 6px; color: var(--muted); }
.mds-pt-k { margin-right: 8px; font-weight: 700; }
.mds-pt-d { margin-right: 8px; font-variant-numeric: tabular-nums; color: #1b6e2e; }
.mds-pt-d.neg { color: #c92a2a; }
.mds-pt-n { margin-right: 8px; color: var(--muted); }
