#connection-closed {
  display: none;
  position: fixed;
  z-index: 4096;
  background-color: rgba(0, 0, 0, 0.75);
  width: 100vw;
  height: 100vh;
}
#connection-closed .dialog {
  position: fixed;
  z-index: 8192;
  width: 640px;
  height: 240px;
  background: #c32e42;
  color: #fff;
  font-weight: bold;
  line-height: 240px;
  text-align: center;
  font-size: 32px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 5px 5px 3px 0px rgba(0, 0, 0, 0.25);
}
#layout {
  display: grid;
  position: relative;
  height: 100vh;
  grid-template-columns: min-content [entries] 500px 3px 1fr;
  grid-template-rows: 128px 0.5fr 0.5fr 70px;
  grid-template-areas: "header   header header header" "groups   log-entries resize-entries entry-data" "groups   log-entries resize-entries entry-backtrace" "sys-info log-entries resize-entries entry-info";
}
#layout.without-backtrace {
  grid-template-areas: "header   header header header" "groups   log-entries resize-entries entry-data" "groups   log-entries resize-entries entry-data" "sys-info log-entries resize-entries entry-info";
}
#header .notification {
  width: 12px;
  height: 12px;
  margin-right: 16px;
  background-color: inherit;
}
#groups {
  grid-area: groups;
  min-width: 128px;
  overflow-y: auto;
}
#system-info {
  grid-area: sys-info;
  border-top: 1px solid #000;
  font-family: monospace;
  padding: 16px;
  white-space: nowrap;
}
#system-info:before {
  content: "System ID";
  display: block;
  color: #8b333e;
  font-weight: bold;
  font-size: 10px;
  margin-bottom: 8px;
}
#entries {
  grid-area: log-entries;
  overflow-y: auto;
  overflow-x: auto;
  border-left: 3px solid #c32e42;
}
#entries #filter {
  width: calc(100% - 8px - 8px);
  border: none;
  border-bottom: 2px solid #c32e42;
  font-size: 16px;
  padding: 8px;
  outline: none;
}
#entries .log-entry {
  user-select: none;
}
#entries .log-entry.selected {
  background-color: #eeeae4;
}
#entries .log-entry.separator td {
  background-color: #800;
  height: 2px;
  padding: 0px !important;
}
#entries .log-entry.separator.selected td {
  background-color: #2ca089;
}
#entries .log-entry.important td:first-child:after {
  content: "❤";
  font-weight: bold;
  color: #a53337;
  margin-left: 8px;
}
#entries .log-entry.filtered {
  display: none;
}
#entry-data {
  grid-area: entry-data;
}
#entry-data:before {
  content: "Data";
  display: block;
  color: #8b333e;
  font-weight: bold;
  font-size: 10px;
  margin-bottom: 8px;
}
#entry-backtrace {
  grid-area: entry-backtrace;
  background: #f6f6f6;
  border-top: 1px solid #000;
}
#entry-backtrace:before {
  content: "Backtrace";
  display: block;
  color: #8b333e;
  font-weight: bold;
  font-size: 10px;
  margin-bottom: 8px;
}
#entry-info {
  grid-area: entry-info;
  border-top: 1px solid #000;
}
#entry-info:before {
  content: "Info";
  display: block;
  color: #8b333e;
  font-weight: bold;
  font-size: 10px;
  margin-bottom: 8px;
}
#entry-info .remote-host {
  color: #c32e42;
}
#entry-data,
#entry-backtrace,
#entry-info {
  white-space: pre;
  padding: 16px;
  font-family: monospace;
  font-size: 14px;
  overflow: auto;
}
table.entries {
  border-collapse: collapse;
  width: 100%;
}
table.entries th {
  color: #444;
  text-align: left;
  border-bottom: 1px solid #000 !important;
  background-color: #f6f6f6;
}
table.entries td,
table.entries th {
  padding: 8px 12px;
  border: 1px solid #ccc;
}
table.entries tr:first-child th {
  border-top: none;
}
table.entries td:first-child,
table.entries th:first-child {
  border-left: none;
}
table.entries td:last-child,
table.entries th:last-child {
  border-right: none;
}
table.entries tr.show {
  position: relative;
}
table.entries tr.show td:nth-child(4) {
  display: relative;
}
table.entries tr.show td:nth-child(4):before {
  content: url(../../images/arrow_right.svg);
  white-space: normal;
  height: 8px;
  margin-top: 1px;
  position: absolute;
  right: 8px;
}
table.entries tr.new td {
  color: #a53337;
  font-weight: bold;
}
table.entries th,
table.entries td {
  width: 10px;
  white-space: nowrap;
}
table.entries th:last-child,
table.entries td:last-child {
  width: 100%;
  text-overflow: ellipsis;
}
table.entries th:nth-child(2),
table.entries td:nth-child(2) {
  display: none;
}
table.entries.date th:nth-child(2),
table.entries.date td:nth-child(2) {
  display: table-cell;
}
.group {
  display: grid;
  align-items: center;
  white-space: nowrap;
  color: #827051;
  padding: 8px 8px 8px 8px;
  font-weight: bold;
  border-bottom: 1px solid #000;
  user-select: none;
}
.group .name {
  white-space: nowrap;
}
.system {
  display: grid;
  white-space: nowrap;
  padding: 8px 8px 8px 32px;
  user-select: none;
  grid-template-columns: 1fr min-content;
}
.system:last-child {
  border-bottom: 1px solid #ccc;
}
.system.selected {
  background-color: #eeeae4;
}
.system .name {
  grid-column: 1;
}
.system .unseen {
  grid-column: 2;
  min-width: 32px;
  font-weight: normal;
  color: #a53337;
  text-align: right;
}
.system + .system {
  border-top: 1px solid #ccc;
}
.system + .group {
  border-top: 1px solid #ccc;
  padding-top: 32px;
}
#entry-data-copy,
#entry-backtrace-copy {
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
}
#entry-data-copy {
  grid-area: entry-data;
}
#entry-backtrace-copy {
  grid-area: entry-backtrace;
}
#resize-entries {
  grid-area: resize-entries;
  background: #c32e42;
  cursor: col-resize;
}
#entry-data.hljs {
  background: none !important;
}
#entry-backtrace.hljs {
  background: #f6f6f6 !important;
}
