* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f6fa;
  color: #182236;
  font:
    15px system-ui,
    sans-serif;
  display: flex;
  min-height: 100vh;
}
aside {
  width: 230px;
  background: #142239;
  color: white;
  padding: 32px 22px;
  position: fixed;
  height: 100vh;
}
h1 {
  font-size: 28px;
  margin: 0;
}
aside p {
  color: #b0bfd5;
}
nav {
  display: grid;
  gap: 8px;
  margin: 38px 0;
}
nav button {
  background: transparent;
  text-align: left;
  color: #c9d5e6;
  border: 0;
}
nav button.active {
  background: #304b70;
  color: white;
}
main {
  margin-left: 230px;
  padding: 35px;
  width: calc(100% - 230px);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h2 {
  font-size: 28px;
}
button {
  padding: 10px 16px;
  border: 1px solid #cbd3df;
  background: white;
  border-radius: 7px;
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
}
input,
select,
textarea {
  border: 1px solid #cbd3df;
  border-radius: 6px;
  padding: 10px;
  background: white;
  color: #182236;
}
input {
  min-width: 180px;
}
textarea {
  display: block;
  width: 100%;
  height: 140px;
  margin: 10px 0;
  font: 13px monospace;
}
label {
  display: block;
  margin: 12px 0 6px;
}
#cards {
  display: flex;
  gap: 18px;
  margin: 24px 0;
}
.card {
  background: white;
  border: 1px solid #e0e6ee;
  border-radius: 10px;
  padding: 24px;
  min-width: 190px;
}
.card strong {
  font-size: 32px;
  display: block;
  margin-top: 8px;
}
table {
  border-collapse: collapse;
  background: white;
  width: 100%;
  margin-top: 22px;
}
td,
th {
  text-align: left;
  padding: 13px;
  border-bottom: 1px solid #e4e9f0;
  max-width: 280px;
  overflow-wrap: anywhere;
}
th {
  background: #edf1f7;
  font-size: 13px;
}
#table {
  overflow: auto;
}
.notice {
  color: #68768c;
  line-height: 1.7;
}
#message {
  white-space: pre-wrap;
  color: #315c91;
}
#actions {
  margin-top: 20px;
}
#actions form {
  padding: 15px;
  background: #fff;
  border: 1px solid #e0e6ee;
}
#actions button {
  margin: 5px;
}
#login input {
  display: block;
  margin-bottom: 14px;
  width: 360px;
  max-width: 100%;
}
aside select {
  margin: 20px 0;
  display: block;
}
@media (max-width: 800px) {
  aside {
    width: 170px;
    padding: 20px 12px;
  }
  main {
    margin-left: 170px;
    width: calc(100% - 170px);
    padding: 20px;
  }
  #cards {
    flex-wrap: wrap;
  }
  .card {
    min-width: 140px;
  }
  h2 {
    font-size: 22px;
  }
}

[hidden] {
  display: none !important;
}

#cards {
  flex-wrap: wrap;
}
.card {
  flex: 1 1 185px;
  padding: 18px;
}
.card strong {
  font-size: 26px;
}
.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.row-actions button {
  padding: 7px 10px;
}
.local-account {
  min-width: 155px;
  overflow-wrap: anywhere;
}
.local-account small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #59687d;
}
.installation-search input {
  display: block;
  width: min(100%, 520px);
  margin-top: 8px;
}
.issue-detail article {
  background: #fff;
  border: 1px solid #dce3ee;
  margin: 12px 0;
  padding: 14px;
  border-radius: 8px;
}
.issue-detail pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
#table > p {
  color: #59687d;
  line-height: 1.6;
}
.alert-rules {
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 26px;
}
.alert-rules p,
.alert-rules li {
  line-height: 1.6;
  color: #59687d;
}
.alert-rules fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 20px;
  border: 1px solid #dce3ee;
  border-radius: 6px;
  margin: 18px 0 0;
  padding: 16px;
}
.alert-rules legend {
  font-weight: 600;
}
.alert-rules label {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.alert-rules input[type='number'] {
  width: 100%;
  min-width: 0;
}
.alert-rules input[type='checkbox'] {
  min-width: 0;
  width: 20px;
  height: 20px;
}
.alert-rules .row-actions {
  grid-column: 1 / -1;
}
#identity {
  font-size: 13px;
  overflow-wrap: anywhere;
}
#login {
  max-width: 620px;
}
#login select {
  margin-bottom: 12px;
  max-width: 100%;
}
.account-form,
.account-card {
  background: white;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  padding: 20px;
  margin: 16px 0;
}
.account-form p,
.account-card p {
  color: #59687d;
  line-height: 1.6;
}
.account-form input,
.account-form select,
.account-card input,
.account-card select {
  display: block;
  width: min(100%, 420px);
  margin: 8px 0 12px;
}
.account-card input[type='checkbox'] {
  min-width: 0;
  width: 20px;
  height: 20px;
}
.account-card form + form {
  border-top: 1px solid #e0e6ee;
  padding-top: 12px;
  margin-top: 16px;
}
aside {
  overflow-y: auto;
}
