/* SmartTable (smart-table.js): every table of records in a frame — fifteen rows seen, the rest scroll inside;
   column widths and order set by the person. The look of every table on every screen. */
.st-frame { overflow: auto; border: 1px solid var(--line, #e2e5e0); border-radius: 10px; background: var(--surface, #fff);
  box-shadow: 0 1px 2px rgba(16, 24, 20, .04); }
.st-framed:focus-visible { outline: 2px solid var(--focus, #2e6bd9); outline-offset: 1px; }
.st-frame > table, .rt-frame > table { margin: 0; }
.st-framed thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2, #f9faf8);
  box-shadow: inset 0 -1px 0 var(--line-strong, #cdd2cb); }
table.st-table th.st-th { position: sticky; padding-inline-start: 22px; user-select: none; overflow: hidden; text-overflow: ellipsis; }
table.st-table td { overflow-wrap: anywhere; }
table.st-table[style*="fixed"] td { overflow: hidden; text-overflow: ellipsis; }
table.st-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2, #f9faf8) 60%, transparent); }
table.st-table tbody tr:hover td { background: var(--accent-soft, #e6f2ef); }
.st-grip { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 8px; cursor: col-resize; touch-action: none; }
.st-grip::after { content: ''; position: absolute; top: 25%; bottom: 25%; inset-inline-end: 3px; width: 2px; border-radius: 1px;
  background: var(--line-strong, #cdd2cb); opacity: .7; }
.st-grip:hover::after, .st-grip:focus-visible::after, th.st-resizing .st-grip::after { background: var(--accent, #1f6b5e); opacity: 1; }
.st-grip:focus-visible { outline: none; }
.st-move { position: absolute; inset-inline-start: 4px; top: 50%; transform: translateY(-50%); width: 14px; height: 22px; padding: 0;
  border: 0; border-radius: 4px; background: transparent; color: var(--ink-3, #5c6761); cursor: grab; opacity: .35; touch-action: none; }
.st-move::before { content: '⋮⋮'; font-size: 11px; letter-spacing: -3px; line-height: 22px; }
th.st-th:hover .st-move, .st-move:focus-visible { opacity: 1; }
.st-move:focus-visible { outline: 2px solid var(--focus, #2e6bd9); }
th.st-dragging { opacity: .55; }
th.st-over { box-shadow: inset 0 -3px 0 var(--accent, #1f6b5e) !important; }
.st-foot { display: flex; gap: 10px; align-items: center; min-height: 0; margin-top: 4px; }
.st-foot:has(.st-more[hidden]):has(.st-reset[hidden]) { display: none; }
@media print { .st-frame { max-height: none !important; overflow: visible; border: 0; box-shadow: none; } .st-move, .st-grip, .st-foot { display: none; } }
.st-foot [hidden] { display: none !important; }
table.st-table td.rt-actions, table.st-table td:last-child:has(> .btn) { vertical-align: middle; }

/* sort and search (the owner, 15 November) */
.st-sort { display: inline-block; width: 14px; margin-inline-start: 4px; cursor: pointer; opacity: .45; vertical-align: middle; }
.st-sort::after { content: '⇅'; font-size: 11px; }
th[aria-sort] .st-sort { opacity: 1; }
th[aria-sort="ascending"] .st-sort::after { content: '▲'; }
th[aria-sort="descending"] .st-sort::after { content: '▼'; }
.st-th { cursor: default; }
.st-find input { min-width: 180px; padding: 2px 8px; }
