/* my-gui table behaviour parts (wl-controls, wishlist 37): selection column, selected rows, selection bar,
   refresh button. The table itself is layout.css; behaviour: js/table.js. */

.m-table th.m-col-sel, .m-table td.m-col-sel { width: 36px; padding-inline: 12px 0; }
.m-table th.m-col-sel .m-checkbox, .m-table td.m-col-sel .m-checkbox { vertical-align: middle; }
.m-table tbody tr.is-sel td { background: var(--m-accent-wash); }
.m-table tbody tr.is-sel td:first-child { box-shadow: inset 2px 0 0 var(--m-accent); }
[dir="rtl"] .m-table tbody tr.is-sel td:first-child { box-shadow: inset -2px 0 0 var(--m-accent); }
.m-table tbody tr:not(.m-empty-row):hover td { background: rgba(var(--m-ink), .025); }
.m-table tbody tr.is-sel:hover td { background: rgba(var(--m-accent-rgb), .12); }

.m-selbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-block-end: 1px solid var(--m-line);
  background: var(--m-accent-wash);
  color: var(--m-text);
  font-size: 12.5px;
  font-weight: 700;
  animation: m-rise .26s var(--m-ease) both;
}
.m-selbar [data-m-selcount] { color: var(--m-accent); font-variant-numeric: tabular-nums; }
.m-selbar .m-spacer { flex: 1 1 0%; }

[data-m-refresh].is-busy .m-i { animation: m-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { [data-m-refresh].is-busy .m-i { animation: none; opacity: .4; } }
