.list-table {
  min-width:980px;
  width:max(100%,var(--list-table-width,100%));
}

.list-table-head,
.list-row {
  grid-template-columns:var(--list-column-widths,minmax(220px,1.6fr) minmax(130px,.8fr) minmax(185px,1fr) minmax(190px,1.1fr) minmax(145px,.85fr));
}

.list-table-head>* {
  position:relative;
}

.list-column-resizer {
  position:absolute;
  z-index:5;
  top:-8px;
  right:-6px;
  width:12px;
  height:calc(100% + 16px);
  cursor:col-resize;
  touch-action:none;
}

.list-column-resizer::after {
  content:"";
  position:absolute;
  top:20%;
  right:5px;
  width:2px;
  height:60%;
  border-radius:2px;
  background:transparent;
  transition:background-color .15s ease;
}

.list-column-resizer:hover::after,
.resizing-list-column .list-column-resizer::after {
  background:var(--accent);
}

.resizing-list-column,
.resizing-list-column * {
  cursor:col-resize!important;
  user-select:none!important;
}

.list-table-head .list-custom-select-ready {
  position:relative;
}

.list-custom-select-ready>select {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  margin:-1px!important;
  padding:0!important;
  overflow:hidden!important;
  clip-path:inset(50%)!important;
  border:0!important;
}

.list-custom-select {
  position:relative;
  width:100%;
}

.list-custom-select>summary {
  box-sizing:border-box;
  width:100%;
  min-height:36px;
  padding:6px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper);
  color:var(--ink);
  cursor:pointer;
  list-style:none;
  transition:border-color .16s ease,background-color .16s ease;
}

.list-custom-select>summary::-webkit-details-marker { display:none; }
.list-custom-select>summary::marker { content:""; }
.list-custom-select>summary b { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px; }
.list-custom-select>summary svg { width:16px;height:16px;flex:0 0 16px;transition:transform .16s ease; }
.list-custom-select[open]>summary { border-color:var(--accent);background:color-mix(in srgb,var(--accent) 7%,var(--paper)); }
.list-custom-select[open]>summary svg { transform:rotate(180deg); }
.list-custom-select>summary:focus-visible { outline:2px solid color-mix(in srgb,var(--accent) 55%,transparent);outline-offset:2px; }

.list-custom-select-options {
  position:absolute;
  z-index:90;
  top:calc(100% + 5px);
  left:0;
  box-sizing:border-box;
  width:100%;
  min-width:180px;
  padding:6px;
  display:grid;
  gap:2px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  box-shadow:0 14px 32px rgba(0,0,0,.28);
}

.list-custom-select-options>button {
  width:100%;
  min-height:34px;
  padding:7px 9px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:11px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
}

.list-custom-select-options>button:hover,
.list-custom-select-options>button:focus-visible {
  outline:0;
  background:color-mix(in srgb,var(--accent) 10%,var(--paper));
  color:var(--accent);
}

.list-custom-select-options>button.active {
  background:color-mix(in srgb,var(--accent) 16%,var(--paper));
  color:var(--accent);
  box-shadow:inset 3px 0 var(--accent);
}

html[data-theme="dark"] .list-custom-select>summary,
html[data-theme="dark"] .list-custom-select-options {
  background:#20231f;
  color:#fff;
  border-color:#4a5046;
}
