/* 表格列、摘要卡片整列 / 整張點得下去的樣子(public/row-actions.js)。
 * 只用 data-row-act 屬性與 .rowact- 開頭的 class,不動各頁原本的樣式。商米舊 WebView 守則同 report-drill.css:
 * 不靠 flex gap;不用 inset、:has()、:is()、min()、clamp()。 */
[data-row-act] { cursor: pointer; -webkit-tap-highlight-color: rgba(var(--primary-rgb), .15); }
/* 表格列:滑過整列換底色;最後一格右邊一個「›」表示點得下去;鍵盤停在這一列時整列框起來 */
tr[data-row-act] > td, tr[data-row-act] > th { transition: background-color .12s; }
tr[data-row-act]:hover > td, tr[data-row-act]:hover > th { background: #fff7ed; }
tr[data-row-act]:active > td, tr[data-row-act]:active > th { background: #ffe8d1; }
tr[data-row-act]:focus { outline: 2px solid var(--accent, #1971c2); outline-offset: -2px; }
/* 「›」浮在最後一格右緣、不佔版面(格子裡常有按鈕或下拉,佔位會把列撐高);只在滑過或鍵盤停在這一列時出現 */
tr[data-row-act] > td:last-child { position: relative; }
tr[data-row-act] > td:last-child::after { content: '\203A'; position: absolute; right: 3px; top: 50%; margin-top: -11px; line-height: 22px; color: var(--accent, #1971c2); font-weight: 800; pointer-events: none; opacity: 0; transition: opacity .12s; }
tr[data-row-act]:hover > td:last-child::after, tr[data-row-act]:focus > td:last-child::after { opacity: 1; }
/* 卡片 / 清單列:滑過有框線與陰影、按下去有底色 */
[data-row-act]:not(tr) { transition: border-color .12s, box-shadow .12s, background-color .12s; }
[data-row-act]:not(tr):hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
[data-row-act]:not(tr):active { background-color: #fff3e8; }
[data-row-act]:not(tr):focus { outline: 2px solid var(--accent, #1971c2); outline-offset: 2px; }
.rowact-hint { display: block; margin-top: 6px; text-align: right; font-size: 12px; font-weight: 700; color: var(--accent, #1971c2); line-height: 1.3; white-space: nowrap; }
.rowact-hint.inl { display: inline; margin: 0 0 0 6px; }
/* 細節彈窗的內容 */
.rowact-dt-lead { margin: 0 0 8px; color: var(--muted, #6b7385); font-size: 14px; line-height: 1.6; }
.rowact-dl { margin: 0 0 8px; padding: 0; }
.rowact-dl dt { margin: 8px 0 0; font-size: 12.5px; font-weight: 700; color: var(--muted, #6b7385); }
.rowact-dl dd { margin: 2px 0 0; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; }
.rowact-acts button { min-height: 44px; }
/* 沒有共用視窗的獨立頁面(例:經銷商入口)用這裡的視窗 */
.rowact-ov { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 90; background: rgba(20, 24, 36, .45); overflow: auto; -webkit-overflow-scrolling: touch; }
.rowact-box { box-sizing: border-box; width: 520px; max-width: 94%; margin: 8vh auto 24px; padding: 18px 18px 14px; border-radius: 12px; background: #fff; color: #1c2333; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.rowact-box h3 { margin: 0 0 10px; font-size: 18px; }
.rowact-box .rowact-acts { margin-top: 12px; text-align: right; }
.rowact-box .rowact-acts button { margin-left: 8px; padding: 8px 14px; border-radius: 8px; border: 1px solid #cbd2dc; background: #fff; font: inherit; cursor: pointer; }
.rowact-box .rowact-acts button.primary { border-color: var(--primary); background: var(--primary); color: #fff; }
