.invoice-sheet {
  width: 100%;
  max-width: 794px;
  min-height: 1123px;
  margin: 0 auto;
  padding: 48px 64px 40px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 22px;

  @media (max-width: 800px) {
    min-height: 0;
    padding: 24px 16px;
  }
}

.invoice-sheet__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--red);
}

.invoice-sheet__brand {
  display: flex;
  align-items: center;
  gap: 14px;

  img {
    width: 44px;
    height: 44px;
  }

  span {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.3rem;
    color: var(--navy);
  }
}

.invoice-sheet__title {
  text-align: right;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.3rem;
  color: var(--red);
}

.invoice-sheet__parties {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.invoice-sheet__recipient {
  white-space: pre-line;
}

.invoice-sheet__meta {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 16px;
  align-content: start;
  font-size: 13px;

  span {
    color: var(--muted);
  }
}

.invoice-sheet__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invoice-lines {
  th {
    font-size: 11px;
    color: var(--navy);
    padding: 7px 8px;
  }

  td {
    font-size: 12px;
    padding: 8px;
    white-space: normal;
  }

  .num {
    white-space: nowrap;
  }

  ul {
    margin: 3px 0 0;
    padding-left: 14px;
    color: var(--muted);
  }
}

.invoice-lines__band td {
  background: var(--sand);
  color: var(--navy);
  font-weight: 700;
  border: 0;

  div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
  }
}

.invoice-lines__total td {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  border: 0;
}

.invoice-sheet__footer {
  margin-top: auto;
  border-top: 2px solid var(--red);
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  line-height: 1.6;

  strong {
    color: var(--navy);
    letter-spacing: 0.2rem;
  }

  div:last-child {
    text-align: right;
  }
}

.invoice-sheet__tagline {
  font-weight: 700;
  color: var(--red);
}
