/* Style of data-table.js. Everything is scoped to `.dt-root` (the host element) and themed with CSS variables; the defaults are a dark theme. */
.dt-root{
  --dt-fg:var(--fg,#eee);--dt-dim:var(--dim,#9a9a9a);--dt-line:var(--line,#3a3a3a);--dt-accent:var(--accent,#ff9600);--dt-card:var(--card,#262626);
  --dt-bg:#161616;--dt-head:#1b1b1b;--dt-hover:#222;--dt-danger:#e55;--dt-row-line:#262626;--dt-clear:#3a3a3a;
  color:var(--dt-fg);
  display:flex;flex-direction:column;                 /* a host that has its own height (CSS) gives what the toolbar and the pager leave to the frame */
}
.dt-root .dt-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px;color:var(--dt-dim);font-size:.8rem;min-height:34px}   /* as high as the tallest thing it ever holds, so that the table does not move when the reset button appears */
.dt-root .dt-reset-all{min-height:30px;padding:2px 10px;font:inherit;font-size:.8rem;color:var(--dt-fg);background:var(--dt-card);border:1px solid var(--dt-line);border-radius:10px;cursor:pointer}
.dt-root .dt-reset-all[hidden]{display:none}
/* The scroll frame: rows scroll inside it and the two header rows stay at its top */
.dt-root .dt-frame{flex:1 1 auto;min-height:0;overflow:auto;border:1px solid var(--dt-line);border-radius:12px;background:var(--dt-bg);overscroll-behavior:contain}
.dt-root .dt-frame:focus-visible{outline:2px solid var(--dt-accent);outline-offset:-2px}
.dt-root table{width:100%;min-width:60em;table-layout:fixed;border-collapse:collapse;font-size:.85rem}
.dt-root th,.dt-root td{padding:7px 10px;text-align:left;vertical-align:middle;border-bottom:1px solid var(--dt-row-line);overflow-wrap:anywhere}
.dt-root thead th{position:sticky;top:0;z-index:3;background:var(--dt-head);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:0;box-shadow:inset 0 -1px 0 var(--dt-row-line)}   /* a border would stay behind when the header sticks (collapsed borders): the line is a shadow */
.dt-root thead tr:first-child th{padding-bottom:2px;box-shadow:none}
.dt-root .dt-filters th{top:var(--dt-head1,0px);padding-top:2px}
.dt-root th .sort{background:none;border:0;min-height:0;padding:2px 0;color:var(--dt-fg);font:inherit;font-weight:700;cursor:pointer}
.dt-root th.sorted .sort{color:var(--dt-accent)}
.dt-root .dt-filter{position:relative;display:flex;align-items:center;gap:4px}
/* the browser's own «×» of a search field: the table has its own */
.dt-root .dt-filter input[type=search]::-webkit-search-cancel-button,.dt-root .dt-filter input[type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
.dt-root .dt-filter input,.dt-root .dt-filter select{font:inherit;font-size:.8rem;color:var(--dt-fg);background:var(--dt-card);border:1px solid var(--dt-line);border-radius:8px;padding:4px 6px;min-width:0;width:100%;min-height:30px}
.dt-root .dt-filter input.invalid{border-color:var(--dt-danger)}
.dt-root .dt-filter .dt-clear{display:none;position:absolute;right:4px;top:50%;transform:translateY(-50%);min-height:0;width:20px;height:20px;padding:0;border:0;border-radius:50%;font:inherit;font-size:.95rem;line-height:1;color:var(--dt-fg);background:var(--dt-clear);cursor:pointer}
.dt-root .dt-filter.active .dt-clear{display:inline-block}
.dt-root .dt-filter.active input,.dt-root .dt-filter.active .dt-multi{padding-right:26px}
.dt-root .dt-filter select{min-width:0}
.dt-root .dt-filter.active input,.dt-root .dt-filter.active select,.dt-root .dt-filter.active .dt-multi{border-color:var(--dt-accent)}
.dt-root .dt-credit-menu{position:relative;flex:none;margin-left:auto}
.dt-root .dt-credit{display:inline-grid;place-items:center;width:34px;height:34px;border:1px solid var(--dt-line);border-radius:8px;cursor:pointer;list-style:none}
.dt-root .dt-credit::-webkit-details-marker{display:none}
.dt-root .dt-credit:hover,.dt-root .dt-credit-menu[open]>.dt-credit{background:var(--dt-card)}
.dt-root .dt-credit:focus-visible{outline:2px solid var(--dt-accent)}
.dt-root .dt-credit img,.dt-root .dt-credit-text img{width:18px;height:18px}
.dt-root .dt-menu{position:absolute;z-index:6;top:calc(100% + 4px);inset-inline-end:0;display:grid;gap:8px;width:max-content;max-width:min(22rem,85vw);padding:10px 12px;background:var(--dt-card);color:var(--dt-fg);border:1px solid var(--dt-line);border-radius:10px;box-shadow:0 8px 24px rgb(0 0 0 / .25)}
.dt-root .dt-menu .dt-minitems{margin:0;flex-wrap:wrap}
.dt-root .dt-credit-text{display:inline-flex;align-items:center;gap:6px;min-height:30px;color:var(--dt-dim);font-size:.8rem;text-decoration:none}
.dt-root .dt-credit-text:hover{color:var(--dt-fg)}
.dt-root .dt-cbte>.dt-credit-text{display:flex;width:max-content;margin-top:16px;padding-top:10px;border-top:1px solid var(--dt-line)}
.dt-root .dt-minitems{display:inline-flex;align-items:center;gap:6px;margin-left:auto;font-size:.8rem}
.dt-root .dt-minitems input{width:4.2em;min-height:30px;padding:2px 6px;font:inherit;font-size:.8rem;color:var(--dt-fg);background:var(--dt-card);border:1px solid var(--dt-line);border-radius:8px}
.dt-root .dt-minitems input.invalid{border-color:var(--dt-danger)}

/* The multi-select combo (column option `multiple`): a button in the filter row and a popup out of the flow (position:fixed, so the table does not move or clip it) */
.dt-root .dt-multi{display:block;box-sizing:border-box;width:100%;min-height:30px;padding:4px 6px;font:inherit;font-size:.8rem;text-align:left;color:var(--dt-fg);background:var(--dt-card);border:1px solid var(--dt-line);border-radius:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.dt-root .dt-multi-popup{position:fixed;z-index:20;box-sizing:border-box;max-width:min(24em,calc(100vw - 8px));padding:6px;background:var(--dt-card);border:1px solid var(--dt-accent);border-radius:10px;box-shadow:0 6px 20px rgba(0,0,0,.45)}
.dt-root .dt-multi-popup[hidden]{display:none}
.dt-root .dt-multi-popup>input{margin-bottom:4px}
.dt-root .dt-multi-list{overflow-y:auto}
.dt-root .dt-multi-item{display:flex;align-items:center;gap:8px;padding:5px 4px;border-radius:6px;font-size:.8rem;font-weight:400;white-space:normal;cursor:pointer}
.dt-root .dt-multi-item:hover,.dt-root .dt-multi-item:focus-within{background:var(--dt-hover)}
.dt-root .dt-multi-item input{width:auto;min-height:0;flex:none}
.dt-root .dt-actions{white-space:nowrap}
.dt-root.dt-stream tbody td.dt-actions{text-overflow:clip}
.dt-root .icon-button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:0;padding:0;margin-right:4px;border-radius:8px;border:1px solid var(--dt-line);background:var(--dt-card);color:var(--dt-fg);text-decoration:none;cursor:pointer}
.dt-root .icon-button:last-child{margin-right:0}
.dt-root .icon-button:hover{border-color:var(--dt-accent);color:var(--dt-accent)}
.dt-root tr.clickable{cursor:pointer}
.dt-root tr.clickable:hover,.dt-root tr.on{background:var(--dt-hover)}
.dt-root tr.on td:nth-child(2){box-shadow:inset 3px 0 var(--dt-accent)}
/* Streaming: every row is one line of the same height (the windowing counts on it); the text that does not fit is cut, and its whole is the tooltip */
.dt-root.dt-stream tbody td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dt-root.dt-stream tbody tr.dt-row{height:var(--dt-row-h,auto)}
.dt-root .dt-spacer td{padding:0;border:0}
.dt-root.dt-stream tbody td.empty{white-space:normal;overflow:visible}
.dt-root td.empty{text-align:center;color:var(--dt-dim);padding:18px}

/* The CBTE panel (option `cbte`): it lives in the body of the table, in the row that says nothing matches, so the layout never moves */
.dt-root .dt-cbte{position:sticky;left:12px;box-sizing:border-box;width:min(100%,56em);max-width:calc(100vw - 48px);margin:10px 0 4px;text-align:start;color:var(--dt-fg);font-size:.85rem}
.dt-root .dt-cbte[dir=rtl]{letter-spacing:normal}
.dt-root .dt-cbte[lang=ar],.dt-root .dt-cbte[lang=zh],.dt-root .dt-cbte[lang=ja]{line-height:1.6}
.dt-root .dt-cbte-title{margin:12px 0 6px;font-weight:700}
.dt-root .dt-cbte-title:first-child{margin-top:0}
.dt-root .dt-chips{display:flex;flex-wrap:wrap;gap:6px}
.dt-root .dt-chip{max-width:100%;overflow-wrap:anywhere;text-align:start;min-height:30px;padding:3px 12px;font:inherit;font-size:.8rem;color:var(--dt-fg);background:var(--dt-card);border:1px solid var(--dt-accent);border-radius:15px;cursor:pointer}
.dt-root .dt-chip{position:relative}
.dt-root .dt-count{font-size:.9em;opacity:.8;white-space:nowrap}
.dt-root .dt-undo{display:inline-flex;align-items:center;gap:8px;font-size:.8rem;color:var(--dt-dim)}
.dt-root .dt-undo:empty{display:none}
.dt-root .dt-undo-button{padding:2px 4px;font:inherit;color:var(--dt-accent);background:none;border:0;cursor:pointer;text-decoration:underline}
.dt-root .dt-preview{outline:2px solid var(--dt-accent);outline-offset:-2px;transition:outline-color .15s}
.dt-root .dt-filter.dt-preview{outline-offset:1px;border-radius:8px}
@media (prefers-reduced-motion:reduce){.dt-root .dt-preview{transition:none}}
.dt-root .dt-was{font-size:.9em;opacity:.75}
.dt-root .dt-tip{display:none;position:absolute;inset-inline-start:0;bottom:calc(100% + 4px);z-index:2;white-space:nowrap;padding:2px 8px;font-size:.75rem;border-radius:4px;color:var(--dt-bg);background:var(--dt-fg);pointer-events:none}
.dt-root .dt-chip:focus-visible .dt-tip{display:block}
.dt-root .dt-cbte-toggle{margin:12px 0 0;padding:2px 0;text-align:start;font:inherit;font-weight:700;color:var(--dt-accent);background:none;border:0;cursor:pointer;text-decoration:underline}
.dt-root .dt-cbte-toggle::after{content:" ▸"}
.dt-root .dt-cbte-toggle.open::after{content:" ▾"}
.dt-root .dt-cbte[dir=rtl] .dt-cbte-toggle::after{content:" ◂"}
.dt-root .dt-cbte[dir=rtl] .dt-cbte-toggle.open::after{content:" ▾"}
.dt-root .dt-cbte-why[hidden]{display:none}
.dt-root .dt-chip:hover,.dt-root .dt-chip:focus-visible{color:var(--dt-bg);background:var(--dt-accent)}
.dt-root .dt-cbte-why{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.dt-root .dt-cbte-why li{display:grid;gap:5px}
.dt-root .dt-cbte-conflict{color:var(--dt-dim)}
.dt-root .dt-more{align-self:center;color:var(--dt-dim);font-size:.8rem}

/* The pager of the paginated mode */
.dt-root .dt-pager{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin-top:8px;font-size:.8rem;color:var(--dt-dim)}
.dt-root .dt-page-button{min-width:34px;min-height:30px;padding:2px 8px;font:inherit;font-size:.95rem;color:var(--dt-fg);background:var(--dt-card);border:1px solid var(--dt-line);border-radius:8px;cursor:pointer}
.dt-root .dt-page-button:disabled{opacity:.4;cursor:default}
.dt-root .dt-page-input{width:4.5em;min-height:30px;padding:2px 6px;font:inherit;font-size:.8rem;color:var(--dt-fg);background:var(--dt-card);border:1px solid var(--dt-line);border-radius:8px}
.dt-root .dt-page-size{min-height:30px;margin-left:10px;padding:2px 6px;font:inherit;font-size:.8rem;color:var(--dt-fg);background:var(--dt-card);border:1px solid var(--dt-line);border-radius:8px}
