:root {
  --fonts: "Atkinson Hyperlegible", "Atkinson Hyperlegible Mono", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", courier;

  font-size: 1em;
  line-height: 1.25;
  font-family: var( --fonts );
  box-sizing: border-box;
  outline-color: blue;
}

* {
  margin: 0; padding: 0; box-sizing: inherit;
  -webkit-text-size-adjust: 100%;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz', 16;
  font-variant-numeric: tabular-nums;
}

html, body { height: 100dvh; }

body {
  max-width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-rows: max-content max-content auto;
}

nav {
  padding-block: 0.25em;
  display: flex;
  flex-direction: row;
  overflow: scroll;
  flex-basis: content;

  a {
    color: #333; display: inline-block; padding: 0.25em;
    white-space: nowrap; text-decoration-color: blue;
    text-underline-offset: 3px;
  }
}

main {
  overflow: scroll;
  padding-inline: 0.5em;
}

pre {
  font-family: var( --mono );
  line-height: 1.5em;
  padding-block: 0.5em;

  i { color: blue; font-weight: bold; }
  b { color: red; display: inline-block; }
}


input { font: inherit; border: 1px solid #333; padding: 0.25em }
[type=file] { border: none; }
button { background: inital; padding-inline: 0.5em; font: inherit; }


details {
  margin-block: 0.5em;

  > :last-child { padding: 0.5em; }
  b { color: red; }
  strong { display: block; }
}

table[data-filter] {
  white-space: nowrap;
  border-collapse: collapse;
  margin-block: 0.5em;
  text-align: left;

  td { padding: 0.25em 0.5em; border: 0.5pt solid #333 }
  tr td:first-of-type { text-align: center; }

  &:has(data-show=1),
  &:has(data-show=2) {
    input[type=checkbox] { pointer-events: none; }
  }
}

#filterItems {
  position: sticky;
  top: 0;
  background: white;
  width: inherit;
  margin-block-end: 1em;
  text-align: left;
}

.grid {
  display: grid; gap: 0.5em;
  grid-template-columns: max-content 1em max-content 1em max-content;
  align-items: center;
  margin-block: 0.5em;
}
.action {
  display: flex;
  gap: 0.5em;
}

/* Styling for the duty log */
table {
  white-space: nowrap;
  max-width: fit-content;
  border-collapse: collapse;
  text-align: center;
  font: 0.9em/1lh var( --fonts );
  text-align: left;
  overflow: scroll;

  th { padding: 0.25em; font-weight: bold; text-align: center; }
  td {
    border: 1px solid #bbb; padding: 0.25em 1em; border-radius: 0;
  }
  td[colspan] { padding: 0.25em; border: none }
}

[data-contacts] {
  td { min-width: 14ch; }
}

.current {
  font-weight: bold;
  color: blue;
}