.title-top {
  text-align: center;
  padding-bottom: 5px;
}

.totals-table {
  display: grid;
  grid-template-columns: 2.7fr 0.8fr 1fr 0.7fr 1fr 0.7fr 0.8fr 0.9fr 0.7fr 0.7fr 1fr 0.8fr;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid gray;
  border-bottom: none;
  border-right: none;
  overflow: auto;
}

.money-totals-table {
  max-width: 900px;
  grid-template-columns: 2.2fr repeat(4, 1fr);
}

.scrap-totals-table {
  max-width: 1300px;
  grid-template-columns: 2.2fr repeat(2, 0.8fr) 1.3fr repeat(2, 0.8fr) 1.3fr repeat(2, 0.8fr) 1.3fr;
}

.prices-table {
  max-width: 900px;
  grid-template-columns: 2.2fr repeat(3, 1fr);
}

.income-table {
  max-width: 900px;
  grid-template-columns: 2.2fr repeat({{ totals|length }}, 1fr);
}

.accounts-table {
  max-width: 1050px;
}

.totals-table div {
  align-self: center;
  text-align: center;
  padding: 5px 10px;
  height: 100%;
  justify-content: center;
}

.totals-table .title {
  text-align: left;
}

.totals-table .span-row-2 {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.totals-table .span-column-2 {
  grid-column: span 2;
}

.totals-table .span-column-3 {
  grid-column: span 3;
}

.totals-table div {
  border-bottom: 1px solid gray;
  border-right: 1px solid gray;
}

.level-0 {
  font-size: 1.5rem;
}

.level-1 {
  font-size: 1.3rem;
  background-color: cadetblue;
}

.level-2 {
  font-size: 1.1rem;
}

.totals-row {
  font-size: 1.3rem;
}

.scrap, .margin {
  font-style: italic;
}

.file-download, .file-upload {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.file-download .file-download-icon .icon {
  height: 2.2rem;
  width: 2.2rem;
}

.file-download-text {
  margin-left: 0.5rem;
}

.reference-field {
  font-style: italic;
  color: #aaa;
}

.center {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

form input[type="submit"] {
  padding: .5rem 1rem;
  border-radius: 0.1875rem;
}

@media screen and (max-width: 767px) {
  .center {
    flex-direction: column;
  }
}

.buttons-panel {
  margin-bottom: 1rem;
}

.report-table  {
  margin: auto;
  display: block;
  overflow-x: auto;
}

.report-table, .report-table thead {
  border: 1px solid;
}

.report-table th, .report-table td {
  border: 1px dotted;
  padding: 0.3em 10px;
}

.report-table .number {
  text-align: right;
}

.report-table .date-text {
  width: 170px;
}
