:root {
  background: #f2f4f3;
  color: #0b0d0c;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.sheet {
  background: #fff;
  margin: 0 auto;
  max-width: 540px;
  min-height: 100vh;
  padding: 8px;
}

.header {
  border: 1px solid #222;
  display: grid;
  grid-template-columns: 92px 1fr 96px;
  min-height: 74px;
}

.logo,
.title,
.meta {
  align-items: center;
  display: flex;
  justify-content: center;
}

.logo {
  border-right: 1px solid #222;
  padding: 8px;
}

.logo img {
  display: block;
  max-height: 58px;
  max-width: 100%;
  width: 100%;
}

.title {
  border-right: 1px solid #222;
  font-size: clamp(1.75rem, 10vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0;
}

.meta {
  align-items: stretch;
  flex-direction: column;
  font-size: 0.56rem;
  font-weight: 700;
  padding: 0;
  text-align: center;
}

.meta div {
  align-items: center;
  border-bottom: 1px solid #222;
  display: flex;
  flex: 1;
  justify-content: center;
  padding: 2px;
}

.meta div:last-child {
  border-bottom: 0;
}

.barTitle {
  border: 1px solid #222;
  border-top: 0;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 5px 4px;
}

.workGrid {
  border-left: 1px solid #222;
  border-right: 1px solid #222;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.workCell {
  align-items: center;
  border-bottom: 1px solid #222;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 13px;
  min-height: 40px;
  padding: 5px 4px;
}

.workCell label {
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.25;
}

.workCell.activeWork {
  background: #fff4c7;
}

.workCell.other {
  grid-template-columns: auto 1fr;
}

.tinyBox {
  appearance: none;
  background: #fff;
  border: 1px solid #222;
  height: 12px;
  margin: 0;
  width: 12px;
}

.tinyBox:checked {
  background:
    linear-gradient(45deg, transparent 42%, #111 42%, #111 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, #111 42%, #111 58%, transparent 58%),
    #fff;
}

.labor {
  align-items: center;
  border: 1px solid #222;
  border-top: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto auto;
  min-height: 31px;
  padding: 5px 4px;
}

.labor strong {
  font-size: 0.82rem;
}

.inlineCheck {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.dataGrid {
  border-left: 1px solid #222;
  border-top: 1px solid #222;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
}

.dataCell {
  border-bottom: 1px solid #222;
  border-right: 1px solid #222;
  min-height: 35px;
  padding: 4px;
}

.dataCell.full {
  grid-column: 1 / -1;
  min-height: 64px;
}

.dataCell label {
  display: block;
  font-size: 0.6rem;
  font-weight: 900;
  margin-bottom: 4px;
}

input.line,
textarea.line {
  border: 0;
  border-bottom: 1px solid #999;
  min-height: 18px;
  outline: none;
  padding: 0;
  width: 100%;
}

textarea.line {
  min-height: 38px;
  resize: vertical;
}

.sectionTitle {
  border: 1px solid #222;
  font-size: 1rem;
  font-weight: 900;
  margin: 9px 0 0;
  padding: 4px;
}

.checkList {
  border: 1px solid #222;
  border-top: 0;
  padding: 6px 4px;
}

.checkRow {
  align-items: flex-start;
  display: grid;
  gap: 6px;
  grid-template-columns: 13px 1fr;
  min-height: 28px;
  padding: 3px 0;
}

.checkRow span {
  font-size: 0.7rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.epiTable {
  border-left: 1px solid #222;
  border-top: 1px solid #222;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.epiHead,
.epiItem {
  border-bottom: 1px solid #222;
  border-right: 1px solid #222;
}

.epiHead {
  background: #bdbdbd;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 5px 4px;
  text-align: center;
}

.epiMerged {
  grid-column: 1 / -1;
}

.epiItem {
  align-items: flex-start;
  display: grid;
  gap: 5px;
  grid-template-columns: 13px 1fr;
  min-height: 25px;
  padding: 4px;
}

.epiItem span {
  font-size: 0.66rem;
  line-height: 1.2;
}

.otherHead {
  grid-column: 1 / -1;
}

.workers {
  border-left: 1px solid #222;
  border-top: 1px solid #222;
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1.2fr;
  margin-top: 10px;
}

.workerHead,
.workerCell {
  border-bottom: 1px solid #222;
  border-right: 1px solid #222;
  min-height: 28px;
}

.workerHead {
  align-items: center;
  display: flex;
  font-size: 0.64rem;
  font-weight: 900;
  justify-content: center;
  padding: 5px;
  text-align: center;
}

.workerCell {
  min-height: 38px;
  padding: 2px;
}

.workerCell input {
  border: 0;
  font: inherit;
  height: 100%;
  min-height: 32px;
  outline: none;
  padding: 3px;
  width: 100%;
}

@media (min-width: 460px) {
  .workGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}
