body {
  font-family: sans-serif;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}

dialog {
  left: 50%;
  max-height: 70%;
  overflow-y: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 8rem);
}

dialog[open] {
  display: flex;
  flex-direction: column;
}

main {
  margin-top: auto;
  margin-bottom: auto;
}

header {
  margin-top: 1rem;
}

footer {
  border-top: none;
  margin-bottom: 1rem;
}

h2 + p {
  margin-top: 0;
}

h2 {
  margin: 0;
}

button:has(svg) {
  padding: 0;
}

input, button {
  margin-top: 1rem;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
}

.column {
  width: calc(100% - 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.row {
  width: calc(100% - 16px);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.row > label {
  width: 40%;
}

.row > input {
  width: 60%;
}

.row > select {
  width: 60%;
}

.auto-margin {
  margin: auto;
}

tbody > tr.list-item {
  border-bottom: solid 1px black;
}

tr.list-item > td, th {
  align-items: center;
  text-align: center;
  vertical-align: middle;
}

tr.list-item > td > button {
  width: 75%;
  aspect-ratio: 1;
}

.next-item {
  flex-direction: column;
  display: flex;
  margin-top: auto;
  margin-bottom: auto;
  overflow-y: auto;
}

.h-centre {
  display: flex;
  align-items: center;
  text-align: center;
}

.v-centre {
  display: flex;
  vertical-align: middle;
}

.u {
  text-decoration: underline;
}

.delete {
  color: red;
}

.complete {
  color: green;
}

.delay {
  color: orange;
}

.hidden {
  display: none;
}

.header {
  display: inline-flex;
  align-items: center;
}

.list-area {
  transition: max-height 0.3s ease-out;
  overflow-y: auto;
}

.list-area.hidden {
  max-height: 0;
  padding: 0;
  overflow: hidden;
}

.footer {
  padding: 10px;
  display: flex;
  justify-content: space-around;
}

.main-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex-shrink: 0;
  margin-top: 30%;
  overflow: hidden;
  width: 100%;
}

.open-button {
  background-color: var(--selection);
}

.open-button:hover {
  background-color: #135086;
}

.create {
  background-color: mediumseagreen;
}

.create:hover {
  background-color: aquamarine;
}

.yellow {
  background-color: khaki !important;
  color: black !important;
}

.yellow:hover {
  background-color: lemonchiffon !important;
}

.red {
  background-color: lightcoral !important;
  color: black !important;
}

.red:hover {
  background-color: lightsalmon !important;
}

.portrait-table-wrapper {
  width: 100%;
}

.portrait-table-wrapper > table {
  width: max-content;
}

.notes-cell {
  max-width: 50vw;
  word-wrap: break-word;
}

.action-icon {
  height: 48px;
  aspect-ratio: 1;
}
