@font-face {
  font-family: Main;
  src: url("./fonts/main.eot"), url("./fonts/main.otf");
}
@font-face {
  font-family: Main;
  src: url("./fonts/main.eot"), url("./fonts/main.otf");
  font-weight: 900;
}
@font-face {
  font-family: Main;
  src: url("./fonts/italic.eot"), url("./fonts/italic.otf");
  font-style: italic;
}
@font-face {
  font-family: Main;
  src: url("./fonts/bold-italic.eot"), url("./fonts/bold-italic.otf");
  font-style: italic;
  font-weight: bold;
}
@font-face {
  font-family: H1;
  src: url("./fonts/h.eot"), url("./fonts/h.otf");
}
@font-face {
  font-family: Scribe;
  src: url("./fonts/scribe.eot"), url("./fonts/scribe.otf");
}
* {
  font-family: Main, Tahoma, Verdana, Arial important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Main, Tahoma, Verdana, Arial;
  /*color: rgb(200, 255, 245);*/
}

h1 {
  font-size: 20pt;
  margin: 20pt 0;
}

.mud-button-root:not(.mud-toggle-item), .mud-toggle-group {
  border-radius: 60vmax !important;
}

.mud-toggle-group .mud-toggle-item {
  margin: 0;
  border-radius: 0 !important;
}

.tab-header {
  background: transparent;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 9999;
}

.mud-card.mud-paper {
  border-radius: 20px !important;
}
.mud-card .mud-typography:not(.no-trim) {
  flex-grow: 1;
  flex-shrink: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.mud-card .mud-card-header-content .mud-typography-h6 {
  white-space: normal;
  line-height: 1.5em;
  max-height: 3em;
  word-break: break-word;
}
.mud-card .mud-card-content {
  overflow: hidden;
}
.mud-card .mud-list-item-text,
.mud-card .mud-card-content .mud-stack {
  min-width: 0;
}
.mud-card .mud-card-content .mud-table-root {
  table-layout: fixed;
}

.mud-toggle-item > .mud-button-label {
  min-height: auto;
}

.mud-input-number-control input.mud-input-slot {
  text-align: right;
  padding-right: 0.7rem;
}

.mud-input-number-control .mud-input-numeric-spin {
  opacity: 0.1;
}

.mud-input-number-control.mud-input-showspin .mud-input-underline:not(.mud-input-filled) .mud-input-adornment-end {
  margin-right: 35px;
}

.mud-input-underline:not(.mud-input-filled):before {
  opacity: 0.1;
}

.mud-input-number-control:hover .mud-input-numeric-spin, .mud-input-number-control:focus .mud-input-numeric-spin {
  opacity: 1;
}

.mud-input-control.center input.mud-input-slot {
  text-align: center;
}

.mud-input-underline:focus-within, .mud-input-underline:hover {
  background-color: var(--mud-palette-overlay-dark);
}

td.time {
  max-width: 60px;
  text-align: right;
}

td.icon {
  max-width: 40px;
  text-align: center;
}

.home-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.home-container .mud-button {
  min-width: 220px;
  height: 60px;
}

.device-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mud-grid-item {
  display: flex;
  flex-direction: column;
}
.mud-grid-item > .mud-card {
  flex: 1;
}
.mud-grid-item > .mud-link {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mud-grid-item > .mud-link > .mud-card {
  flex: 1;
}

.card-avatar {
  opacity: 0.3;
  width: 96px;
  height: 96px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
}

.tt {
  font-family: "Courier New", Courier, monospace;
  white-space: nowrap;
  font-variant: normal;
}

body {
  margin: 0;
  padding: 0;
  background: #121212;
  color: #fff;
  font-family: Main, "Roboto", sans-serif;
}

.key-value td {
  text-align: left;
}
.key-value td:first-child, .key-value td.key {
  text-align: right;
  opacity: 0.7;
  padding-right: 8px;
}
.key-value th {
  text-align: center;
  background-color: var(--mud-palette-overlay-dark);
  padding-top: 10px;
}
.key-value tr[right] > td, .key-value td[right] {
  text-align: right;
}
.key-value tr[left] > td, .key-value td[left] {
  text-align: left;
}
.key-value tr[center] > td, .key-value td[center] {
  text-align: center;
}

.dimmed {
  opacity: 0.7;
}

.x-dimmed, .dimmed-x {
  opacity: 0.5;
}

.xx-dimmed, .dimmed-xx {
  opacity: 0.3;
}
