﻿table.elegant {
  font-size: 70%;
  width: 100%
}

table.elegant th,
table.elegant td {
  font-weight: normal;
}

table.elegant th {
  padding: 12px 16px;
  text-transform: uppercase;
}

table.elegant td {
  padding: 8px 16px;
  border-bottom: 1px solid #fff3;
}




.filter-grid {
  margin-top: 2em;
  box-shadow: hsl(from var(--color-base) h s 30%) 0px 0px 15px 0px;
  border-radius: .5em;
  background-color: hsl(from var(--color-base) h s calc(l - 5));
}

.filter-grid .filter {
  display: flex;
  gap: .4em;
  padding: 4px;
}

.filter-grid .filter .editor {
  flex-grow: 1;
  padding-right: 1em;
}

.filter-grid .grid-icon {
  margin: .9em .2em;
}


#resultsGrid {
  max-height: 60vh;
  max-width: 160ch;
  border-radius: 0 0 .6em .6em;
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
  /* thumb track */
  overflow: auto;
}


table.plain {
  font-family: var(--font-table);
  border: 1px solid #fff2;
  color: rgb(from var(--color-field-content) r g b / 0.7);
  -webkit-font-smoothing: antialiased;
}

.plain-bar,
table.plain {
  float: left;
  margin: 0;
  padding: 0;
  min-width: 600px;
  font-size: .86em;
}

table.plain th {
  color: var(--color-text);
  background-color: hsl(from var(--color-base) h s calc(l - 5));
  overflow: hidden;
  border: 1px solid #ccc;
  border-width: 1px 0 1px 1px;
  padding: 0.5em 0.6em 0.4em 0.6em;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}


.grid-icon {
  cursor: pointer;
  font-size: 1.1em;
  color: hsl(from var(--color-text) h s calc(l + 30) / 0.3);
  margin-left: 12px;
}

.grid-icon:hover {
  color: hsl(from var(--color-accent) h s calc(l + 30));
}

.plain-bar {
  background-color: hsl(from var(--color-base) h s 96%);
  border: 1px solid #999;
  padding: 0.2em;
  padding-left: 8px;
  font-size: 13px !important;
  border-radius: 7px 7px 0 0;
}

table.plain th:first-child,
table.plain td:first-child {
  border-left: 0px solid #999;
}

table.plain td {
  background-color: hsl(from var(--color-base) h s 97%);
  border: 1px solid #ccc;
  border-width: 0 0 0 1px;
  padding: 0.1em 0.6em;
  overflow: hidden;
  line-height: 2.2em;
  vertical-align: middle;
  text-overflow: ellipsis;
  display: table-cell;
  white-space: nowrap;
}

table.plain tr:nth-child(2n)>td {
  background-color: hsl(from var(--color-base) h s 100%);
}