/* friction table page: μ columns wide enough for a full range ("0.07–0.15", "≥ 0.45"); a mark where a bar runs past μ = 1 */
.frt col.fv { width: 84px; } .frt col.fp { width: 23%; } .frt col.fc { width: 22%; } .frt col.fstd { width: 15%; }
.frt td.mv { font-variant-numeric: tabular-nums; }
/* never cut a description or a source with an ellipsis: they wrap inside their column (the table keeps its width) */
.frt td.fp, .frt td.fc, .frt td.fstd { white-space: normal; overflow: visible; text-overflow: clip; }
.frt td.fp b, .frt td.fc span, .frt td.fstd small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.frt td.fc .flube { margin-top: 1px; }
.frbar { position: relative; }
.frbar .fb-over { position: absolute; right: -7px; top: 50%; transform: translateY(-52%); font-style: normal; font-size: 12px; line-height: 1; color: var(--text-2); }
.frt .fcm { display: none; }

/* reserved heights: the count line and the chip row are filled by script */
#frCount { min-height: 1.45em; }
.mat-tools { flex-wrap: wrap; min-width: 0; max-width: 100%; }
.fr-cond { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.fr-cond select { border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 10px; font: inherit; font-size: 13px; color: var(--text); background: var(--surface); max-width: 190px; }
/* category chips: one line that scrolls inside itself, the edge with more chips fades */
.fr-cats { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; min-height: 26px; padding: 1px 0; }
.fr-cats .chip { flex: none; white-space: nowrap; }
.fr-cats.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.fr-cats.fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px); mask-image: linear-gradient(to right, transparent, #000 40px); }
.fr-cats.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.fr .mat-detail { min-height: 300px; }
@media (max-width: 1100px) { .fr .mat-detail { min-height: 0; } }

/* phones: every row is a two-line card, the answer (μ and its bar) on the second line */
@media (max-width: 640px) {
  .mat-head { flex-wrap: wrap; }
  .mat-tools { width: 100%; }
  .mat-tools input { flex: 1 1 100%; width: auto; min-width: 0; }
  .fr-cond { flex: 1 1 100%; } .fr-cond select { flex: 1; max-width: none; }
  .mat-legend { gap: 4px 12px; font-size: 11.5px; }
  table.frt, .frt tbody { display: block; min-width: 0; width: 100%; }
  .frt colgroup, .frt thead { display: none; }
  .frt tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 8px 12px; border-bottom: 1px solid var(--fill-1); cursor: pointer; }
  .frt tr.sel { background: var(--sel-bg); }
  .frt tr:hover td, .frt tr.sel td { background: none; }
  .frt td { display: block; height: auto; padding: 0; border: 0; white-space: normal; overflow: visible; }
  .frt td.fp { flex: 1 1 100%; }
  .frt td.fp b { display: inline; white-space: normal; overflow: visible; font-size: 13px; }
  .frt .fcm { display: inline; font-weight: 400; color: var(--text-2); }
  .frt td.fp small.fcat { display: inline; margin-left: 6px; white-space: nowrap; }
  .frt td.fc, .frt td.fsrc { display: none; }
  .frt td.mv { flex: none; font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; min-width: 6.6em; max-width: none; }
  .frt td.mv:empty { display: none; }
  .frt td.mv::before { content: attr(data-l) " "; font-weight: 400; color: var(--text-3); font-size: 12px; }
  .frt td.fbar { flex: 0 0 76px; padding: 0; }
  .frt td.fstd { flex: 1 1 0; min-width: 0; font-size: 11.5px; color: var(--text-3); white-space: normal; overflow: visible; overflow-wrap: anywhere; }
  .frt td.fstd small { display: none; }
}

/* .mat-sheet .table-wrap fades out at the bottom while there are more rows below (fadeBoxes in the page script; the sticky header stays) */
.mat-sheet .table-wrap.fade-b { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent); }
/* the sheet scrolls and fades inside its card (as in material/): the card no longer clips it, the scroll box keeps the corners */
.mat-sheet { overflow: visible; }
.mat-sheet .table-wrap { border-radius: inherit; }
