@page {
  size: A4;
  margin: 20mm 15mm;
}

/* Layout */

#pdf {
  display: flex;
  flex-direction: column;
  display: -webkit-flex;
  -webkit-flex-direction: column;
  height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

#pdf main {
  height: 100%;
  width: 100%;
}

/* Margins and padding */

#pdf {
  margin: 0;
  padding: 1em;
}

#pdf section {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

#pdf article,
#pdf section,
#pdf header,
#pdf footer {
  padding: 1.5em;
}

/* Typography */

#pdf {
  font-family: "Roboto", "Helvetica Neue", Arial;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
}

#pdf strong {
  font-weight: bold;
}

#pdf small {
  font-size: 0.7em;
}

/* Layout helpers */

#pdf .box {
  display: -webkit-box;
}

#pdf .box-end {
  -webkit-box-pack: end;
}

#pdf .column {
  -webkit-box-flex: 1;
}

#pdf .column-auto {
  -webkit-box-flex: 0;
}

/* Text helpers */

#pdf .text-right {
  text-align: right;
}

#pdf .text-center {
  text-align: center;
}

/* Horizontal rule */

#pdf hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 20px 0;
}

/* Table */

#pdf .table {
  width: 100%;
  margin-top: 15px;
  border-collapse: collapse;
}

#pdf .table th,
#pdf .table td {
  padding: 0.75rem;
  vertical-align: center;
  border-top: 1px solid #ccc;
}

#pdf .table th {
  font-weight: bold;
  text-align: center;
  font-size: 12px;
  border-bottom: 2px solid #ccc;
}

#pdf .table-compact {
  width: 1%;
  white-space: nowrap;
}

#pdf .table-compact th,
#pdf .table-compact td {
  padding-left: 0.3rem;
  padding-right: 0.3rem;
}

/* Specific styles */

#pdf .invoice-table td {
  padding: 0.3rem;
  border: 1px solid #ccc;
}

#pdf .invoice-title {
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
}
