* { box-sizing: border-box; }

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Times New Roman", Times, serif;
  background: #fefafa;
  color: #222;
  line-height: 1.5;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 20px;
  background: #470000;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
}

.toolbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.toolbar a:hover { text-decoration: underline; }

.toolbar .title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}

.doc-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 48px;
  background: #fff;
  overflow-x: hidden;
}

.doc-content table,
.doc-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  table-layout: fixed;
}

.doc-content th,
.doc-content td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  vertical-align: top;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.label-full {
  display: inline;
}

.label-short {
  display: none;
}

.doc-content th {
  background: #f3ecec;
}

.doc-content h1,
.doc-content h2 {
  color: #470000;
  font-family: Montserrat, Arial, sans-serif;
}

/* v=4 — mobile rental tables */
@media (max-width: 640px) {
  .doc-content .label-full,
  main .label-full {
    display: none !important;
  }

  .doc-content .label-short,
  main .label-short {
    display: inline !important;
  }

  table.table-rental {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    table-layout: auto;
    box-shadow: none;
    border: 1px solid #ccc;
    margin-bottom: 16px;
  }

  table.table-rental thead {
    display: block;
    background: #f3ecec;
    border-bottom: 1px solid #ccc;
  }

  table.table-rental thead tr,
  table.table-rental tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(4.75rem, 30%);
    width: 100%;
    max-width: 100%;
  }

  table.table-rental thead th,
  table.table-rental tbody td {
    display: block;
    min-width: 0;
    border: none;
    border-right: 1px solid #ddd;
    padding: 8px 6px;
    font-size: 12px;
    line-height: 1.35;
  }

  table.table-rental thead th:last-child,
  table.table-rental tbody td.price {
    border-right: none;
    text-align: right;
  }

  table.table-rental tbody {
    display: block;
  }

  table.table-rental tbody tr {
    border-bottom: 1px solid #eee;
  }

  table.table-rental tbody tr:last-child {
    border-bottom: none;
  }

  table.table-rental tbody td.price {
    white-space: nowrap;
    font-weight: 600;
  }
}

@media (max-width: 640px) {
  .toolbar {
    padding: 10px 12px;
    gap: 8px 10px;
    font-size: 12px;
  }

  .toolbar .title {
    flex: 1 1 100%;
    order: -1;
    font-size: 15px;
    text-align: center;
  }

  .toolbar a {
    font-size: 12px;
    white-space: nowrap;
  }

  .doc-content {
    padding: 16px 10px 28px;
  }

  .doc-content table,
  .doc-table {
    font-size: 11px;
    margin: 12px 0;
  }

  .doc-content th,
  .doc-content td {
    padding: 5px 4px;
    line-height: 1.35;
    hyphens: auto;
  }

  .doc-content th.price,
  .doc-content td.price,
  td.price,
  th.price {
    white-space: normal !important;
    width: auto !important;
    text-align: right;
    font-size: 10px;
  }
}
