/* One table surface for Administrator, workspace, editor and its popovers. */
.foundrio-table-container{container-type:inline-size;min-width:0;max-width:100%;margin:12px 0;border:1px solid var(--foundrio-line);border-radius:7px;background:var(--foundrio-chalk);color:var(--foundrio-canopy);font:12px/1.5 var(--foundrio-font);overflow:hidden}
.foundrio-table-scroll{width:100%;max-width:100%;overflow:auto;overscroll-behavior-x:contain}
.foundrio-table-scroll:focus-visible{outline:2px solid var(--foundrio-blueprint);outline-offset:-2px}
.foundrio-table-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 10px;min-height:46px;box-sizing:border-box;border-bottom:1px solid var(--foundrio-line);background:var(--foundrio-chalk)}
.foundrio-selection-count{font-size:11px;color:var(--foundrio-muted);margin-right:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.foundrio-table-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.foundrio-table-feedback{padding:8px 12px;margin:0;border-top:1px solid var(--foundrio-line);font-size:12px}
.foundrio-table-container [hidden]{display:none!important}
body .foundrio-table-container table.foundrio-record-table{width:100%;min-width:0;border-collapse:collapse;table-layout:auto;text-align:left;font:12px/1.5 var(--foundrio-font);color:var(--foundrio-canopy);background:var(--foundrio-chalk);margin:0}
body .foundrio-table-container table.foundrio-record-table :is(th,td){box-sizing:border-box;width:auto;padding:8px 10px;vertical-align:middle;border:0;border-bottom:1px solid var(--foundrio-line);text-align:left;line-height:1.5;overflow-wrap:anywhere}
body .foundrio-table-container table.foundrio-record-table th{color:var(--foundrio-muted);background:var(--foundrio-mist);font-size:11px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;white-space:normal;overflow-wrap:normal;word-break:normal}
body .foundrio-table-container table.foundrio-record-table td{background:var(--foundrio-chalk);font-size:12px}
body .foundrio-table-container table.foundrio-record-table tbody tr:last-child>td{border-bottom:0}
body .foundrio-table-container table.foundrio-record-table tbody tr:hover>td{background:var(--foundrio-mist)}
body .foundrio-table-container table.foundrio-record-table tr.foundrio-row-selected>td{background:var(--foundrio-mist);box-shadow:none}
body .foundrio-table-container table.foundrio-record-table tr.foundrio-row-selected>td:first-child{box-shadow:inset 3px 0 var(--foundrio-forest)}
body .foundrio-table-container table.foundrio-record-table .foundrio-select-cell{width:36px;min-width:36px;padding:6px 10px;text-align:center}
body .foundrio-table-container table.foundrio-record-table .foundrio-select-cell input{display:block;width:16px;height:16px;min-height:16px;margin:0;accent-color:var(--foundrio-forest);flex:none}
body .foundrio-table-container table.foundrio-record-table .foundrio-select-cell label{display:flex;align-items:center;justify-content:center;margin:0;min-height:26px}
body .foundrio-table-container table.foundrio-record-table button.foundrio-table-sort{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:30px;padding:0;border:0;border-radius:3px;background:transparent;color:inherit;text-align:left;font:inherit;letter-spacing:inherit;text-transform:inherit;white-space:normal;box-shadow:none}
.foundrio-sort-arrow{display:flex;flex:none;opacity:.4;transform:rotate(90deg)}
.foundrio-sort-arrow svg{width:13px;height:13px}
[aria-sort=ascending] .foundrio-sort-arrow{opacity:1;transform:rotate(-90deg)}
[aria-sort=descending] .foundrio-sort-arrow{opacity:1;transform:rotate(90deg)}
body .foundrio-table-container table.foundrio-record-table [aria-sort]:not([aria-sort=none]){color:var(--foundrio-forest)}
.foundrio-table-container .foundrio-action-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;min-width:30px;min-height:30px;padding:0;margin:0;border:1px solid var(--foundrio-border);border-radius:7px;background:var(--foundrio-chalk);color:var(--foundrio-forest);font:12px var(--foundrio-font);text-decoration:none}
.foundrio-table-container .foundrio-action-icon svg{width:17px;height:17px;flex:none}
.foundrio-table-container .foundrio-action-icon:hover{background:var(--foundrio-mist)}
.foundrio-table-container :is(button,a,input,select):focus-visible{outline:2px solid var(--foundrio-blueprint);outline-offset:2px}
.foundrio-table-container button:disabled{opacity:.45;cursor:default}
.foundrio-table-container .table-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.foundrio-table-mobile-sort{display:none;align-items:center;gap:6px;font-size:11px;color:var(--foundrio-muted);margin:0}
.foundrio-table-mobile-sort select{width:auto;max-width:160px;min-width:0;height:30px;min-height:30px;border:1px solid var(--foundrio-border);border-radius:7px;padding:4px 7px;background:var(--foundrio-chalk);color:var(--foundrio-canopy);font:12px var(--foundrio-font)}
.foundrio-table-mobile-sort button svg{transform:rotate(-90deg)}
.foundrio-table-mobile-sort button.descending svg{transform:rotate(90deg)}
/* Technical coordinate-input tables share the surface but keep their authored order. */
body table.foundrio-record-table[data-table-mode=form]{width:100%;border-collapse:collapse;border:1px solid var(--foundrio-line);background:var(--foundrio-chalk);color:var(--foundrio-canopy);font:12px/1.5 var(--foundrio-font)}
body table.foundrio-record-table[data-table-mode=form] :is(th,td){padding:8px 10px;border:0;border-bottom:1px solid var(--foundrio-line);text-align:left;vertical-align:middle;background:var(--foundrio-chalk)}
body table.foundrio-record-table[data-table-mode=form] th{background:var(--foundrio-mist);color:var(--foundrio-muted);font-size:11px;font-weight:600}
@media(pointer:coarse){.foundrio-table-container .foundrio-action-icon{width:44px;height:44px;min-width:44px;min-height:44px}.foundrio-table-mobile-sort select{height:44px;min-height:44px}body .foundrio-table-container table.foundrio-record-table .foundrio-select-cell{min-width:44px}body .foundrio-table-container table.foundrio-record-table .foundrio-select-cell label{min-height:32px}}
@container (max-width:640px){
 .foundrio-table-mobile-sort{display:flex}
 .foundrio-table-toolbar{gap:8px;padding:8px}
 .foundrio-table-actions{width:100%;justify-content:flex-end}
 .foundrio-table-actions:has(>button:not([hidden])){padding-top:2px}
 .foundrio-table-actions:not(:has(>button:not([hidden]))){display:none}
 /* Retain column relationships; only the table region scrolls on narrow surfaces. */
 body .foundrio-table-container table.foundrio-record-table{display:table;min-width:100%;width:max-content;border:0}
 body .foundrio-table-container table.foundrio-record-table>thead{display:table-header-group}
 body .foundrio-table-container table.foundrio-record-table>tbody{display:table-row-group}
 body .foundrio-table-container table.foundrio-record-table tr{display:table-row}
 body .foundrio-table-container table.foundrio-record-table :is(th,td){display:table-cell;max-width:280px}
 body .foundrio-table-container table.foundrio-record-table :is(th,td):not(.foundrio-select-cell){min-width:120px}
 body .foundrio-table-container table.foundrio-record-table th,body .foundrio-table-container table.foundrio-record-table button.foundrio-table-sort{white-space:nowrap}
 body .foundrio-table-container table.foundrio-record-table :is(th,td)::before{content:none}
 body .foundrio-table-container table.foundrio-record-table .foundrio-select-cell{position:sticky;left:0;z-index:1}
 body .foundrio-table-container table.foundrio-record-table th.foundrio-select-cell{z-index:2}
}
