/* Copyright 2018 The Chromium Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

body {
  margin: 0;
  padding: 20px;
}

h1 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
  margin-top: 0;
}

.status {
  font-family: monospace;
  font-size: 14px;
  white-space: pre-wrap;
}

cr-tab-box {
  width: inherit;
  --tabs-background-color: white;
}

div[slot='tab'] {
  border-radius: 8px 8px 0 0;
  font-size: 15px;
  padding: 10px 16px;
}

div[slot='panel'] {
  padding-top: 10px;
  padding-bottom: 10px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

th {
  background-color: var(--google-grey-100, #f1f3f4);
  color: var(--google-grey-700, #5f6368);
  font-weight: 500;
  text-align: left;
  padding: 10px 8px;
  border-bottom: 2px solid var(--google-grey-300, #dadce0);
  white-space: nowrap;
}

td {
  padding: 8px;
  border-bottom: 1px solid var(--google-grey-200, #e8eaed);
  color: var(--google-grey-900, #202124);
  word-break: break-word;
}

tr:hover {
  background-color: var(--google-grey-50, #f8f9fa);
}

tr.log-row-warning:hover,
.log-row-warning {
  background-color: var(--google-yellow-100, #fef7e0);
  color: var(--google-yellow-900, #e37400);
}

tr.log-row-error:hover,
.log-row-error {
  background-color: var(--google-red-100, #fad2cf);
  color: var(--google-red-900, #b31412);
  font-weight: bold;
}

#button-container {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

cr-button {
  font-size: 11px;
}

/* Fixes a wrapping annoyance ("Discovery" is wrapped to "Discover" and "y"). */
th:nth-child(6),
td:nth-child(6) {
  min-width: 85px;
}

.full-width-section {
  margin-bottom: 20px;
}

#dashboard-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

#dashboard-container section {
  flex: 1 1 250px;
  min-width: 250px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.stat-card {
  background-color: var(--google-grey-50, #f8f9fa);
  border: 1px solid var(--google-grey-300, #dadce0);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30),
      0 1px 3px 1px rgba(60, 64, 67, .15);
}

.stat-label {
  color: var(--google-grey-700, #5f6368);
  font-size: 12px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.stat-value {
  font-size: 24px;
  font-weight: 500;
  color: var(--google-grey-900, #202124);
  margin-bottom: 10px;
}

.stat-card-alert {
  background-color: var(--google-red-50, #fce8e6);
  border-color: var(--google-red-300, #f28b82);
}

.sparkline {
  height: 40px;
  width: 100%;
  stroke: var(--google-blue-500, #1a73e8);
  stroke-width: 2;
  fill: none;
}

.sparkline-alert {
  stroke: var(--google-red-500, #ea4335);
}

cr-expand-button {
  margin-top: 10px;
  --cr-section-padding: 0;
}

#mirroring-stats-div {
  margin-top: 10px;
  padding: 10px;
  background-color: var(--google-grey-100, #f1f3f4);
  border-radius: 4px;
  overflow: auto;
}
