/* grid-tools.css v1.11 (2026-12-03, Joseph "go filter": --oms-filter-on, the one red of a filter that is on) v1.10 (2026-11-29, Joseph "go": open gutter, column edge grip, heading menu; see the v1.10 block at the end) v1.9 (2026-11-14, Joseph: every pager looks like Eligibility Opportunities: the Rows dropdown also in popups) v1.8 (2026-11-14, Joseph: the Rows dropdown wide enough for 3-digit numbers) v1.7 (2026-11-14, Joseph: Rows per page on the pager; its dropdown has the same text and size as the pager buttons) v1.6 (2026-11-06, Joseph: pager under grids with more than 50 rows) v1.5 (2026-11-05, Joseph: a grid whose rows end in buttons keeps that last column in view when it scrolls sideways) v1.2 (2026-10-26: filter in the title bar) v1.1: filter box, sortable headers and the resize bar for every grid (grid-tools.js). Colors come from the theme tokens in themes.css. */
:root{--oms-filter-on:#c62828}   /* v1.11: the same red as the number on the bell, in every theme */
.oms-grid-filter{display:flex;align-items:center;gap:12px;padding:8px 18px}
.oms-grid-filter label{display:flex;align-items:center;gap:6px;flex:0 1 320px;min-width:160px;border:1px solid var(--t-line,var(--line,#dce3ea));border-radius:4px;padding:0 8px;background:var(--t-input-bg,var(--t-surface,transparent));color:var(--t-muted,var(--muted,#6b7a89))}
.oms-grid-filter label:focus-within{border-color:var(--t-accent,#2a7fd4);box-shadow:0 0 0 2px color-mix(in srgb,var(--t-accent,#2a7fd4) 25%,transparent)}
.oms-grid-filter input[type=search]{flex:1;width:auto;min-width:0;margin:0;border:0;padding:7px 0;background:transparent;color:var(--t-text,inherit);outline:0;box-shadow:none;font-size:12px}
.oms-grid-filter input[type=search]::-webkit-search-cancel-button{display:none}
html:root .oms-grid-filter.oms-grid-filter-on:not(.oms-lookup *) label{border-color:var(--oms-filter-on);box-shadow:0 0 0 1px var(--oms-filter-on)}
.oms-grid-filter.oms-grid-filter-on:not(.oms-lookup *) label>span{background:var(--oms-filter-on);color:#fff;border-radius:50%;width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.oms-grid-clear{border:0;background:none;color:inherit;cursor:pointer;font-size:16px;line-height:1;padding:2px 4px}
.oms-grid-clear:hover{color:var(--t-text,inherit)}
.oms-grid-count{font-size:11px;color:var(--t-muted,var(--muted,#6b7a89));white-space:nowrap}
.oms-grid-empty{padding:14px 18px;font-size:12px;color:var(--t-muted,var(--muted,#6b7a89))}
th.oms-sortable{cursor:pointer;user-select:none;white-space:nowrap}
th.oms-sortable:hover,th.oms-sortable:focus-visible{color:var(--t-accent,#2a7fd4)}
th.oms-sortable::after{content:"↕";margin-left:5px;opacity:.35;font-size:.9em}
th.oms-sortable[data-sort-dir=asc]::after{content:"▲";opacity:1;color:var(--t-accent,#2a7fd4)}
th.oms-sortable[data-sort-dir=desc]::after{content:"▼";opacity:1;color:var(--t-accent,#2a7fd4)}
tr[hidden]{display:none}
/* v1.1 resize: the grid scrolls both ways inside its box, column headers stay put, drag bar underneath */
.oms-grid-box{overflow:auto}
.oms-grid-box thead th{position:sticky;top:0;z-index:2}
[data-theme^="minimal-"] .oms-grid-box thead th{background:var(--t-surface)}
[data-theme="minimal-moderate"] main .oms-grid-box thead th{background:#e3e9ed}
.oms-grid-sizer{height:9px;cursor:row-resize;touch-action:none;display:flex;align-items:center;justify-content:center;border-top:1px solid var(--t-border,var(--line,#e2e7ed))}
.oms-grid-sizer::before{content:"";width:34px;height:3px;border-radius:2px;background:var(--t-muted,#a7b2bd);opacity:.45}
.oms-grid-sizer:hover::before,.oms-grid-sizer:focus-visible::before,.oms-grid-resizing .oms-grid-sizer::before{opacity:1;background:var(--t-accent,#2a7fd4)}
.oms-grid-sizer:focus-visible{outline:2px solid var(--t-accent,#2a7fd4);outline-offset:-2px}
body.oms-grid-resizing{cursor:row-resize;user-select:none}
/* v1.2 the filter inside a grid's title bar: no row of its own, shrinks before the buttons do */
.toolbar .oms-grid-filter.oms-grid-filter-inbar{padding:0;flex:1 1 120px;max-width:340px;min-width:0;gap:8px}
.toolbar .oms-grid-filter-inbar label{flex:1 1 auto;min-width:70px}
.toolbar .oms-grid-filter-inbar input[type=search]{padding:4px 0}
/* v1.4 (Joseph 2026-10-27): filter box narrower only; height and text size as before */
.oms-grid-filter label{flex:0 1 220px;min-width:120px}
.toolbar .oms-grid-filter.oms-grid-filter-inbar{max-width:220px;flex:0 1 220px}
/* v1.5 (Joseph 2026-11-05): when the rows end in buttons (Snooze, Hand to, Edit...), that column is frozen at the right edge while the grid
   scrolls sideways. Any grid, no screen code: the table only needs a button in its last cells. The header cell above stays with it. */
.tablewrap table:has(tbody td:last-child button) :is(thead th,tbody td):last-child{position:sticky;right:0;z-index:1;background:var(--t-surface,#fff);box-shadow:-6px 0 6px -6px rgba(0,0,0,.25)}
.tablewrap table:has(tbody td:last-child button) thead th:last-child{z-index:3}
.tablewrap table:has(tbody td:last-child button) tbody tr:hover td:last-child{background:var(--t-raised,var(--t-surface,#fff))}
.tablewrap table:has(tbody td:last-child button) tbody tr.sel td:last-child{background:var(--t-selected,var(--t-raised,#fff))}

/* v1.6: pager (grid-tools.js v1.7) */
.oms-grid-pager{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:6px 0 2px;font-size:.92em}
.oms-grid-pager[hidden]{display:none}
.oms-grid-pager button{padding:2px 10px;min-height:26px}
.oms-grid-pager button:disabled{opacity:.45;cursor:default}
.oms-grid-pager .oms-pg-text{color:var(--t-muted,#888);padding:0 6px;white-space:nowrap}
/* v1.7: Rows per page (grid-tools.js v2.2, tool-screen.js): the words like the page text, the dropdown like the pager buttons (26px, 12px, 6px corners) */
.oms-grid-pager .oms-pg-size{display:inline-flex;align-items:center;gap:6px;margin:0 6px 0 0;color:var(--t-muted,#888);white-space:nowrap}
html:root:not([data-theme="lcars"]) :is(#content,dialog) .oms-grid-pager .oms-pg-size select:not(#pg1):not(#pg2):not(#pg3):not(#pg4):not(#pg5):not(#pg6):not(#pg7):not(#pg8):not(#pg9):not(#pg10){height:26px!important;min-height:26px!important;width:78px!important;min-width:0!important;max-width:none!important;flex:0 0 78px!important;padding:0 22px 0 10px!important;font:400 12px 'Segoe UI',Arial,sans-serif!important;line-height:24px!important;border:1px solid var(--t-border)!important;border-radius:6px!important;background-color:var(--t-button,var(--t-raised))!important;color:var(--t-button-text,var(--t-text))!important;box-sizing:border-box!important;box-shadow:none!important;margin:0!important;cursor:pointer}
/* v1.10 (2026-11-29, Joseph "go", grid-tools.js v2.18): ↗ open gutter, heading edge grip, heading menu. The frozen columns and widths are
   written per grid by grid-tools.js (a <style class="oms-cx-style"> per table). */
table[data-grid-open] > tbody > tr > td:first-child,table[data-grid-open] > thead > tr > th:first-child{padding-left:34px!important}
:where(table[data-grid-open] > tbody > tr > td:first-child){position:relative}
table[data-grid-open] > tbody > tr > td:first-child::before{content:"\2197";position:absolute;left:0;top:0;bottom:0;width:28px;display:flex;align-items:center;justify-content:center;
  font-size:13px;line-height:1;color:var(--t-accent,#2a7fd4);border-right:1px solid color-mix(in srgb,currentColor 18%,transparent);cursor:pointer;opacity:.85;box-sizing:border-box}
table[data-grid-open] > tbody > tr:hover > td:first-child::before{opacity:1;background:color-mix(in srgb,var(--t-accent,#2a7fd4) 12%,transparent)}
:where(th.oms-cx-host){position:relative}
.oms-cx-grip{position:absolute;top:0;right:0;bottom:0;width:7px;cursor:col-resize;touch-action:none;z-index:1}
.oms-cx-grip:hover,body.oms-cx-resizing .oms-cx-grip{background:color-mix(in srgb,var(--t-accent,#2a7fd4) 45%,transparent)}
body.oms-cx-resizing{cursor:col-resize;user-select:none}
table.oms-cx-measure > :is(thead,tbody) > tr > *{white-space:nowrap!important}
.oms-cx-menu{position:fixed;z-index:10001;min-width:180px;padding:4px 0;background:var(--o-surface,var(--t-surface,#fff));color:var(--o-text,var(--t-text,inherit));
  border:1px solid var(--o-line,var(--t-line,#ccc));border-radius:6px;box-shadow:0 8px 24px rgba(0,0,0,.22);font-size:13px}
.oms-cx-item{padding:7px 14px;cursor:pointer;white-space:nowrap;outline:0}
.oms-cx-item:hover,.oms-cx-item:focus-visible{background:color-mix(in srgb,var(--o-accent,var(--t-accent,#2a7fd4)) 16%,transparent)}
.oms-cx-item[aria-disabled="true"]{opacity:.45;cursor:default;background:none}
