:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #233e35;
  background: #f4f3ed;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
header {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0 4vw;
  border-bottom: 1px solid #dce1d7;
  background: #fffefa;
}
a {
  color: #285442;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font:
    bold italic 30px Georgia,
    serif;
  text-decoration: none;
}
.brand span {
  font:
    600 22px "Segoe UI",
    sans-serif;
}
.header-caption {
  color: #768076;
  font-size: 13px;
  flex: 1;
}
header > a:last-child {
  font-size: 13px;
}
#notice {
  margin: 20px 4vw 0;
  min-height: 24px;
  font-size: 14px;
  line-height: 1.6;
}
#notice.error {
  color: #9b402f;
}
.access-actions {
  display: flex;
  gap: 20px;
  padding: 0 4vw;
}
.access-actions button {
  width: auto;
}
main {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 30px;
  margin: 22px 4vw 50px;
  align-items: start;
}
aside {
  padding: 20px 0;
}
h1 {
  font:
    normal 34px/1.15 Georgia,
    serif;
  letter-spacing: -1px;
  margin: 14px 0 32px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  color: #738171;
  font-weight: 650;
}
label {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  margin: 18px 0;
  color: #50665a;
}
select,
input,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px;
  border: 1px solid #cad3c5;
  border-radius: 6px;
  background: #fffefa;
  font:
    14px "Segoe UI",
    sans-serif;
  color: #233e35;
}
input[type="checkbox"] {
  width: auto;
  display: inline;
  margin-right: 9px;
}
button {
  font:
    500 13px "Segoe UI",
    sans-serif;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #cad3c5;
  border-radius: 6px;
  color: #2e5142;
  background: #fffefa;
  cursor: pointer;
}
button:hover {
  background: #eaf0e5;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.primary {
  background: #2b5445;
  color: white;
  border-color: #2b5445;
}
.primary:hover {
  background: #1d4033;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #c49348;
  outline-offset: 3px;
}
#reload {
  width: 100%;
}
.directory-actions {
  display: flex;
  gap: 7px;
  margin-top: 24px;
}
.directory-actions button {
  flex: 1;
  font-size: 12px;
  padding: 8px;
}
.aside-note {
  font-size: 12px;
  color: #7a8579;
  line-height: 1.7;
  margin-top: 24px;
}
.sheet {
  background: #fffefa;
  border: 1px solid #dce1d7;
  border-radius: 13px;
  padding: 28px;
  min-height: 570px;
  box-shadow: 0 8px 26px #28422e05;
}
.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.sheet-heading h2 {
  font-size: 26px;
  font-weight: 550;
  margin: 6px 0;
}
.sheet-heading > span {
  font-size: 14px;
  color: #6d7c6a;
}
.metrics {
  display: flex;
  gap: 50px;
  padding: 22px 0;
  border-bottom: 1px solid #e4e7de;
  margin-bottom: 22px;
}
.metrics > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.metrics strong {
  font:
    28px Georgia,
    serif;
}
.metrics span {
  font-size: 12px;
  color: #7a8579;
}
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hint {
  font-size: 12px;
  color: #71806d;
  line-height: 1.65;
  margin: 18px 0;
}
.table-scroll {
  overflow: auto;
  max-height: 65vh;
  border: 1px solid #e0e5da;
  border-radius: 6px;
}
table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  font-size: 13px;
}
th,
td {
  text-align: center;
  border-bottom: 1px solid #e5e9df;
  border-right: 1px solid #e5e9df;
  padding: 8px;
  min-width: 75px;
}
thead th {
  background: #edf1e7;
  position: sticky;
  top: 0;
  z-index: 2;
  font-weight: 500;
}
th:first-child,
td:first-child {
  text-align: left;
  min-width: 180px;
  position: sticky;
  left: 0;
  background: #fffefa;
  z-index: 1;
}
thead th:first-child {
  z-index: 3;
  background: #edf1e7;
}
td:first-child > button {
  display: block;
  border: 0;
  padding: 3px 0;
  text-align: left;
  min-height: 27px;
}
.person-actions {
  display: flex;
  gap: 7px;
}
.person-actions button {
  font-size: 11px;
  min-height: 25px;
  padding: 2px 5px;
}
td button.visit {
  border: 0;
  width: 100%;
  min-width: 40px;
  background: transparent;
}
td.present {
  background: #ecf4e9;
}
td.staff {
  background: #eef0f7;
}
td.cancelled {
  background: #f1f0eb;
  color: #969c92;
}
td.quota {
  font-size: 12px;
  white-space: nowrap;
  text-align: left;
  min-width: 155px;
}
td.review {
  color: #a45429;
  background: #fff4e5;
}
th button {
  border: 0;
  background: transparent;
  white-space: pre-line;
  font-size: 12px;
}
#empty {
  padding: 25px;
  line-height: 1.7;
  color: #70806a;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 11px;
  color: #6c7c66;
  margin-top: 22px;
}
dialog {
  border: 1px solid #d4dccd;
  border-radius: 14px;
  padding: 30px;
  background: #fffefa;
  width: min(500px, 92vw);
  max-height: 90vh;
  overflow: auto;
  color: #233e35;
}
dialog::backdrop {
  background: #20392e77;
}
dialog h2 {
  font-size: 22px;
  font-weight: 550;
  margin: 0 0 20px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}
#form-error {
  color: #9b402f;
  font-size: 13px;
  line-height: 1.6;
}
.checklist {
  max-height: 220px;
  overflow: auto;
}
.checklist label {
  margin: 10px 0;
}
footer {
  padding: 15px 4vw 30px;
  font-size: 11px;
  color: #84907e;
}
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0;
  }
  aside h1 {
    font-size: 28px;
    margin: 0;
    grid-column: 1/-1;
  }
  aside .eyebrow,
  aside .aside-note {
    display: none;
  }
  aside label {
    margin: 5px 0;
  }
  .directory-actions {
    margin: 0;
  }
  #reload {
    align-self: end;
  }
  .sheet {
    padding: 18px;
  }
  .metrics {
    gap: 24px;
  }
  .header-caption {
    display: none;
  }
  header > a:last-child {
    margin-left: auto;
  }
  .sheet-heading {
    align-items: start;
  }
  .sheet-heading h2 {
    font-size: 22px;
  }
}
@media (max-width: 480px) {
  main {
    margin-inline: 12px;
  }
  .sheet-heading {
    display: block;
  }
  .metrics {
    gap: 17px;
  }
  .metrics > div {
    display: block;
  }
  .metrics span {
    display: block;
    margin-top: 5px;
  }
  th:first-child,
  td:first-child {
    min-width: 140px;
    max-width: 170px;
  }
  .toolbar button {
    flex: 1;
  }
  .sheet {
    padding: 12px;
  }
  header {
    padding: 0 16px;
  }
  .directory-actions {
    grid-column: 1/-1;
  }
}

main > *,
aside label,
select,
.sheet {
  min-width: 0;
}
@media (max-width: 900px) {
  main {
    grid-template-columns: minmax(0, 1fr);
  }
  aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
