@page {
  size: A4;
}


.sheet {
  width: 210mm;
  height: 296mm; /* 1mm余裕をもたせる */
  page-break-after: always;
  padding: 5mm;
}


div#header {
  float: left;
}

table,
th,
td {
  border-collapse: collapse;
  border-spacing: 0;
}

table {
  width: 90%;
  margin: 10px 10px 20px 10px;
  padding: 5px;
  border: 1px solid black;
}
table th,
table td {
  padding: 3px;
  font-size: 0.5rem !important;
}
table th {
  border-bottom: 1px solid black;
  border-left: 1px dotted black;
}
table td {
  border: 1px dotted black;
}
.table-date {
  width:100px !important;
}
.table-text {
  text-align: left !important;
}
.table-money {
  width:100px !important;
}

/* プレビュー用のスタイル */
@media screen {
  body {
    background: #eee;
  }
  .sheet {
    background: white; /* 背景を白く */
    box-shadow: 0 .5mm 2mm rgba(0,0,0,.3); /* ドロップシャドウ */
    margin: 5mm;
    padding: 5mm;
  }

  section h3 {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  table,
  th,
  td {
    border-collapse: collapse;
    border-spacing: 0;
  }

  table {
    width: 90%;
    margin: 10px 10px 20px 10px;
    padding: 5px;
    border: 1px solid black;
  }
  table th,
  table td {
    padding: 3px;
    font-size: 90%;
  }
  table th {
    border-bottom: 1px solid black;
    border-left: 1px dotted black;
  }
  table td {
    border: 1px dotted black;
  }
  .table-date {
    width:100px !important;
  }
  .table-text {
    text-align: left !important;
  }
  .table-money {
    width:100px !important;
  }

}


