/* 總表頁專用樣式；共用元件見 /styles.css。 */
.master-table { width: 100%; border-collapse: collapse; }
.master-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 9px 18px; border-bottom: 1px solid var(--line); background: var(--soft); }
.master-table td { padding: 11px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.master-table tbody tr:last-child td { border-bottom: 0; }
.master-row { cursor: pointer; }
.master-row:hover { background: var(--soft); }
.master-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.master-table .m-place { font-weight: 700; width: 22%; }
.master-table .m-case { width: 24%; }
.master-table .m-time { white-space: nowrap; font-variant-numeric: tabular-nums; width: 1%; }
.master-table .m-item .pill { margin-left: 6px; }
.master-group { display: none; }

@media (max-width: 899px) {
  .master-table, .master-table tbody { display: block; }
  .master-table thead { display: none; }
  .master-table tr { display: block; }
  .master-group { display: block; }
  .master-group td { display: block; padding: 10px 16px 6px; font-size: 13px; font-weight: 700; color: var(--accent-d); background: var(--soft); border-bottom: 1px solid var(--line); }
  .master-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
  .master-table .master-row td { display: block; padding: 0; border: 0; width: auto; }
  .master-table .master-row .m-place { display: none; }
  .master-table .m-item { grid-column: 1; grid-row: 1; font-weight: 700; }
  .master-table .m-time { grid-column: 2; grid-row: 1; color: var(--muted); font-size: 13px; }
  .master-table .m-case { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: 13px; }
}
