.print-page {
  width: 100%;
  height: 100%;
  position: relative;
  box-sizing: border-box;
  padding: 1cm;
}

// A4 大小 210 * 279
@width: 190mm; // 210 - 20
@height: 277mm;  // 279 - 20

@minWidth: calc(@width / 8);

.print-table {
  table-layout: fixed;
  width: @width;
  height: @height;
  margin: auto;
  font-size: 16px;
  overflow-x: hidden;

  col {
    width: @minWidth;
  }

  th {
    font-weight: 400;
  }

  thead {
    tr {
      border: none !important;
    }
  }

  @border: 1.5px solid #333;

  tbody {
    border: @border;
  }
  
  tr {
    & + tr {
      border-top: @border;
    }
  }

  td {
    padding: 0 .5em;
    overflow: hidden;
    text-overflow: ellipsis;
    div {
      min-width: @minWidth;
      min-height: 10mm;
      line-height: 10mm;
    }

    & + td {
      border-left: @border;
    }
  }

  .cell-lg {
    div {
      width: auto;
      min-height: 70mm;
      line-height: 1.6em;
    }
  }

  .title {
    font-size: 2em;
  }

  .sub-title {
    // font-size: 12px;
  }

  .bd-left {
    border-left: @border;
  }
}

@media screen {
  .print-btn {
    text-align: center;
    padding: 64px 0;
  }

  .print-table {
    padding: 5mm 5mm 5mm 10mm;
  }
}

@media print {
  .print-table {
    padding: 0;
  }

  .print-btn {
    display: none;
  }
}

@page {
  size: A4;
  margin: 0;
}