/* ══════════════════════════════════════════════════════════════════════════
   105-table-ux.css  logos, column resizing and motion for any table.mpt-t
   (2026-11-17), .tux-* only. Behaviour: static/js/lib/table-ux.js
   (window.MPTableUX). A table opts in with one MPTableUX.attach call.
   APPENDED LAST: it owns only .tux-*; a rule that touches a shared .mpt
   class always names a .tux class in the same selector. tokens.css colours
   only; no rings, no boxes, no stripes.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Company logo: a fixed slot before the symbol ───────────────────────
   Cataphract's treatment (100-chat-worksheet.css .cws-logo / .cws-tile): a
   square with a small curve, the logo drawn whole (contain, no crop, no
   plate), and for a company with no logo the first letter on a quiet tile
   with a hairline ring. About 16px in a table row (1.2em of the row's font).
   The slot is the same box whether the image loads, fails or there is no
   symbol, so a column's text never moves. */
.tux-lg{
  display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
  width:1.2em;height:1.2em;margin-right:0.45em;flex:none;
  border-radius:3px;overflow:hidden;
  /* middle centres the slot on the text's x height whatever the slot holds;
     the nudge lifts it to the capitals' centre (tickers are capitals). */
  vertical-align:middle;position:relative;top:-0.09em;
  font-size:inherit;line-height:1;
}
.tux-lg img{display:block;width:100%;height:100%;object-fit:contain;}
.tux-lg.tux-lg-fb{
  color:var(--text-secondary);background:var(--bg-elevated);
  box-shadow:inset 0 0 0 1px var(--border-default);
}
/* The letter is drawn by CSS (data-i): the cell's text stays the symbol. */
.tux-lg.tux-lg-fb::before{content:attr(data-i);font-size:0.54em;font-weight:600;}

/* A quiet divider marks the right edge of each real header cell. */
.tux-fill-table thead th > .tux-h{
  position:absolute;top:0;right:0;bottom:0;width:8px;z-index:3;
  cursor:col-resize;touch-action:none;outline:0;
}
.tux-fill-table thead .tux-divided::after{
  content:"";position:absolute;top:22%;bottom:22%;right:0;width:1px;
  background:var(--border-strong);opacity:.45;pointer-events:none;
}
.tux-fill-table thead tr:hover .tux-divided::after{opacity:.72;}
.tux-fill-table thead .tux-divided:has(> .tux-h:hover)::after,
.tux-fill-table thead .tux-divided:has(> .tux-h:focus-visible)::after,
.tux-fill-table thead .tux-divided:has(> .tux-h.tux-on)::after{
  width:2px;background:var(--accent);opacity:1;
}
.tux-fill-table.tux-sized{max-width:none;}
.tux-fill-table:not(.tux-sized) col.tux-fill{width:0;}
.tux-fill-table th.tux-fill, .tux-fill-table td.tux-fill{padding:0;border-inline:0;pointer-events:none;}
.tux-guide{position:fixed;width:1px;z-index:1000;background:var(--accent);pointer-events:none;}
:root.tux-dragging,:root.tux-dragging *{cursor:col-resize!important;user-select:none!important;}

.tux-date-pop{min-width:210px;}
.tux-date-presets{list-style:none;margin:0;padding:0;}
/* An empty line that carries the held span wraps on a phone instead of
   cutting "Older history is not loaded yet" (tux-held, set by the page). */
@media (max-width:600px){.mpt-empty.tux-held{white-space:normal;height:auto;line-height:1.4;padding-top:6px;padding-bottom:6px;}}
.tux-date-held{margin:4px 6px 0;color:var(--text-muted);max-width:220px;line-height:1.35;}
.tux-date-form{
  display:grid;gap:6px;padding:8px 6px 4px;margin-top:4px;
  border-top:1px solid var(--border-default);
}
.tux-date-form label{display:grid;grid-template-columns:3em 1fr;align-items:center;gap:4px;color:var(--text-secondary);}
.tux-date-form input{
  font:inherit;color:var(--text-primary);background:var(--bg-secondary);
  border:1px solid var(--border-default);border-radius:3px;padding:3px;
}
:root[data-theme="dark"] .tux-date-form input{color-scheme:dark;}
.tux-date-form button{justify-self:end;}
.mpt-t .tux-sentinel td{
  height:28px;color:var(--text-muted);white-space:normal;position:relative;
}
.mpt-t .tux-sentinel td > span{position:sticky;left:8px;}
.tux-page-button{
  color:var(--text-secondary);background:transparent;border:0;cursor:pointer;font:inherit;
}
.tux-page-button:hover,.tux-page-button:focus-visible{color:var(--text-primary);}
.tux-page-fallback:not(:focus){
  position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}

/* "Reset widths" under the Columns menu's checkboxes. */
.mpt-pop .tux-reset{
  display:block;width:100%;margin-top:4px;text-align:left;
  box-shadow:inset 0 1px 0 var(--border-default);
}

/* ── Motion: transform, opacity and colour only, ease out, short ───────── */
.tux-motion:not(.tux-still) .mpt-seg-b,
.tux-motion:not(.tux-still) .mpt-btn,
.tux-motion:not(.tux-still) .mpt-dd-btn{
  transition:background-color 160ms cubic-bezier(0.2,0.7,0.2,1), color 160ms cubic-bezier(0.2,0.7,0.2,1);
}
.tux-motion:not(.tux-still) .mpt-t > tbody > tr.mpt-r > td{
  transition:background-color 140ms cubic-bezier(0.2,0.7,0.2,1), box-shadow 160ms cubic-bezier(0.2,0.7,0.2,1);
}
.tux-motion:not(.tux-still) .tux-fill-table thead .tux-divided::after{transition:opacity 120ms ease-out;}
/* New rows loading: the old ones stay, dimmed, and take no clicks. */
.mpt-t.tux-busy > tbody{opacity:0.4;pointer-events:none;}
.tux-motion:not(.tux-still) .mpt-t.tux-busy > tbody{transition:opacity 120ms ease-out;}
@media (prefers-reduced-motion: reduce){
  .tux-motion .mpt-seg-b,.tux-motion .mpt-btn,.tux-motion .mpt-dd-btn,
  .tux-motion .mpt-t > tbody > tr.mpt-r > td,.tux-motion .mpt-t.tux-busy > tbody{transition:none!important;}
}

.tux-lg.tux-lg-watch{width:1.25rem;height:1.25rem;font-size:1.041667rem;top:0;margin:0 0 0 calc(var(--snv-ico) / 2 - 0.625rem);border-radius:3px;}
.tux-lg.tux-lg-search{width:1.75rem;height:1.75rem;font-size:1.458333rem;top:0;margin:0;border-radius:0.4375rem;}
