/* The shared table's widths and Columns menu (public/office-table.js), over office.css's .otable rules.
   Without saved widths the browser fits each column to its content and the table fills the width:
   short columns (numbers, dates, a status) stay narrow, names and addresses take the rest. Once a
   person drags an edge (.sized) every width is fixed in pixels and the box scrolls if they add up
   to more than the page. A header wraps onto two or three lines, so it never makes a column wider than
   its data. The action buttons (td.act) stay pinned at the right edge while the box scrolls
   (Roger, 31.10.2026), and wrap two to a line instead of stretching the row. */
.otable-wrap{overflow-x:auto}
.otable{table-layout:auto}
.otable.sized{table-layout:fixed;min-width:100%}
.otable:not(.sized) td{overflow-wrap:break-word}
.otable:not(.sized) .fit{width:1%;white-space:nowrap}
.otable th{position:relative;white-space:normal;overflow-wrap:normal;hyphens:none}
.otable th .sortbtn{white-space:normal}
.otable th.movable{user-select:none;-webkit-user-select:none;touch-action:none;cursor:grab}
.otable th.moving{z-index:4;opacity:.85;cursor:grabbing;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.otable th.drop-before{box-shadow:inset 3px 0 0 var(--accent)}
.otable th.drop-after{box-shadow:inset -3px 0 0 var(--accent)}
.otable .act{position:sticky;right:0;z-index:1;background:var(--sheet);box-shadow:inset 1px 0 0 var(--line)}
.otable th.act{background:var(--fill);z-index:3}
.otable tbody tr:hover td.act{background:linear-gradient(color-mix(in srgb,var(--fill) 60%,transparent),color-mix(in srgb,var(--fill) 60%,transparent)),var(--sheet)}
.otable tr.on td.act,.otable tr.kcur td.act{background:var(--fill)}
.otable tr.bk-on td.act{background:var(--accent-tint)}
.otable:not(.sized) td.act.fit{white-space:normal}
.otable td.act>:has(>:nth-child(3)){min-width:15em}
.otable td.act :has(>select){flex:1 1 100%;min-width:0}
.otable td.act select{width:100%}
.otable.probe{position:absolute;left:-9999px;top:0;visibility:hidden;width:auto!important;table-layout:auto}
.otable td.num{white-space:nowrap}
.otable:not(.sized) th.fit{white-space:normal}
.otable td.none{color:var(--muted)}
.otable .grip{position:absolute;top:0;right:-4px;width:9px;height:100%;cursor:col-resize;z-index:2;touch-action:none}
.otable .grip::after{content:"";position:absolute;top:25%;bottom:25%;left:4px;width:1px;background:var(--line)}
.otable th:hover .grip::after,.otable th.sizing .grip::after{background:var(--accent);width:2px}
.otable th:last-child .grip{right:0}
.colrow{display:flex;align-items:center;gap:2px}
.colrow label{flex:1}
.colmove{border:0;background:none;color:var(--ink);font-weight:800;width:28px;height:28px;border-radius:6px;cursor:pointer}
.colmove:hover:not(:disabled){background:var(--fill)}
.colmove:disabled{opacity:.25;cursor:default}
.colmenu{max-height:min(70vh,520px);overflow-y:auto}
@media (max-width:799px){
  .otable,.otable.sized{width:100%!important;min-width:0}
  .otable .grip{display:none}
  .otable .act{position:static;box-shadow:none;background:none}
  .otable th.movable{touch-action:auto;cursor:default}
  .otable .fit{width:100%!important;white-space:normal!important}
}
