:root {
  --bgDark: #ddd;
  --bgLight: #fff;
  --headerHeight: 40px;
}

.mainFrame {
  text-align: center;
}

.mt1 {
  margin-top: 1em;
}

.hidden {
  display: none !important;
}

.mainError {
  text-align: center;
  margin: 0;
  padding: 0.5em 0;
  font-weight: 400;
  color: white;
  font-size: 1.2em;
  background-color: red;
}

.mainError:empty {
  padding: 0;
}

header {
  margin: 0;
  padding: 5px;
  background-color: var(--bgDark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--headerHeight);
}

header a:first-child {
  font-size: 1.5em;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

header a:not(:first-child) {
  display: block;
  margin: 0 0.5em;
  padding: 0.2em 1em;
  text-decoration: none;
  color: inherit;
  background-color: #eee;
  border: 1px solid #999;
}

header a:not(:first-child):hover {
  background-color: #ccc;
}

.itemListTable {
  margin: 0 auto;
  width: 90%;
  max-width: 600px;
}

.itemListTable tr:nth-child(2n) {
  background-color: #ddd;
}

.itemListTable tr:not(:first-child):hover {
  cursor: pointer;
  background-color: #ede;
}

.itemListTable tr td {
  padding: 0.3em 0.5em;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

dialog {
  margin: auto;
  padding: 0.5em;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  background-color: var(--bgLight);
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
}

h1 {
  display: block;
  width: 100%;
  padding: 0em 0 1em;
  text-align: center;
  background: linear-gradient(var(--bgDark), var(--bgLight));
}

.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4em auto;
  background-color: blue;
  animation: test infinite alternate-reverse 2s ease-in-out;
  border: 2px solid blue;
  border-radius: 1em;
  opacity: 1.0;
  white-space: nowrap;
  overflow: hidden;
  color: white;
  font-weight: 600;
}

.loader.hide {
  opacity: 0;
}

@keyframes test {
  0% {
    width: 100px;
    height: 30px;
    transform: rotate(0deg);
  }
  10% {
    width: 100px;
    height: 30px;
    transform: rotate(0deg);
  }
  50% {
    width: 140px;
    height: 5px;
  }
  90% {
    width: 100px;
    height: 30px;
    transform: rotate(360deg);
  }
  100% {
    width: 100px;
    height: 30px;
    transform: rotate(360deg);
  }
}

.outerFrame {
  width: 100vw;
  height: calc(100vh - var(--headerHeight));
  display: flex;
  align-items: center;
  justify-content: center;
}

.outerFrame .loginFrame {
  position: relative;
  top: -10%;
  font-size: 1.1em;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  width: 300px;
  height: max-content;
  background-color: #ddd;
  border: 1px solid #555;
  padding: 5px 10px;
  display: flex;
  flex-direction: column;
}

.outerFrame .loginFrame .inputGroup {
  display: flex;
  flex-direction: column;
  margin: 10px 0;
}

.outerFrame .loginFrame .inputGroup .row {
  display: flex;
}

.outerFrame .loginFrame label {
  text-align: center;
  margin-bottom: 0.2em;
}

.outerFrame .loginFrame input {
  font-size: inherit;
  font-family: inherit;
  padding: 0.2em 1em;
  min-width: 0;
  text-align: center;
}

.outerFrame .loginFrame button {
  font-size: inherit;
  font-family: inherit;
  padding: 0.2em 1em;
  user-select: none;
}

.buttonTopList {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 1.5em;
}

.configFrame {
  overflow-x: auto;
}

form {
  padding: 0.5em;
}

form h2 {
  margin-bottom: 0.5em;
}

form .inputGroup {
  display: flex;
  flex-direction: column;
  padding-bottom: 1em;
}

form label {
  align-self: flex-start;
  padding-bottom: 0.2em;
}

form input {
  font: inherit;
  font-size: inherit;
  padding: 0.1em 0.5em;
}

form input[type="checkbox"] {
  align-self: flex-start;
}

form .buttonGroupDialogRoot {
  padding-top: 0.5em;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5em;
}

form .error,
form #error {
  padding-top: 0.2em;
  color: red;
}

button {
  padding: 0.2em 1em;
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  background-color: #eee;
  border: 1px solid #999;
}

button:hover {
  background-color: #ccc;
}
