body {
  background: #1b1b1b;
  color: #e8e8e8;
  font-family: sans-serif;
  margin: 16px;
}

body:not(.dark-mode) {
  background: #fff;
  color: #000;
}

body.widget-mode {
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  text-align: left;
}

th {
  background: #eee;
}

#checksHeader th {
  text-align: center;
}

#controlsHeader {
  text-align: left;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#darkModeToggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

body.dark-mode th {
  background: #2b2b2b;
}

body.dark-mode th,
body.dark-mode td {
  border-color: #555;
}

col.timestamp-col {
  width: 15ch;
}

col.username-col {
  width: 25ch;
}

col.roles-col {
  width: auto;
}

col.compact-col {
  width: auto;
}

.timestamp-col {
  text-align: center;
}

.username-col {
  text-align: center;
}

.roles-col,
.compact-col {
  text-align: left;
}

label + label {
  margin-left: 12px;
}

td,
th {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
