* {
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body {
  margin: 0;
  color: #111111;
  background: #ffffff;
  font-family: "Merriweather", serif;
  font-weight: 300;
}

.page {
  width: 100%;
  margin: 0;
  padding: 0;
}

h1 {
  margin: 0.83em 16px;
  color: #ff0000;
  text-align: center;
  font-family: "Merriweather", serif;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}

.okvir {
  margin: 40px;
  padding: 35px;
  overflow: hidden;
  background-color: #fff8dc;
  border-radius: 6px;
  box-shadow: 5px 10px 30px #888888;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 800px;
  max-width: 1100px;
  margin: 0 auto;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
  line-height: 1.5;
}

col.col-number {
  width: 8%;
}

col.col-title {
  width: 44%;
}

col.col-link {
  width: 16%;
}

col.col-link-j {
  width: 16%;
}

th,
td {
  padding: 10px 8px;
  vertical-align: middle;
}

th {
  background: transparent;
  border-bottom: 2px solid #111111;
  font-weight: 700;
  text-align: center;
}

th:first-child {
  text-align: left;
}

td {
  border-bottom: 1px solid rgba(136, 136, 136, 0.3);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  text-align: center;
}

td:nth-child(2) {
  text-align: left;
}

tbody td:nth-child(2) {
  color: #ff0000;
}

.subitem-row td:nth-child(2) {
  padding-left: 32px;
}

td:nth-child(3),
td:nth-child(4),
td:nth-child(5) {
  text-align: left;
}

.pdf-link {
  display: inline-block;
  max-width: 100%;
  padding: 2px 7px;
  color: #111111;
  background: #f0f0f0;
  border: 1px solid #767676;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.pdf-link:hover,
.pdf-link:focus {
  background: #e4e4e4;
  border-color: #4f4f4f;
}

.pdf-link:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.pdf-link:active {
  background: #d5d5d5;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.legend {
  max-width: 1100px;
  margin: 36px auto 0;
  padding-top: 28px;
  border-top: 2px solid #111111;
}

.legend h2 {
  margin: 0 0 24px;
  color: #ff0000;
  text-align: center;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
}

.legend-group + .legend-group {
  margin-top: 26px;
}

.legend h3 {
  margin: 0 0 12px;
  color: #111111;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.legend-list {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(9, auto);
  gap: 9px 40px;
  margin: 0;
}

.legend-list-hours {
  grid-auto-flow: row;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
}

.legend-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  min-width: 0;
  line-height: 1.45;
}

.legend-item dt {
  color: #ff0000;
  font-weight: 700;
  white-space: nowrap;
}

.legend-item dt::after {
  content: " –";
  color: #111111;
  font-weight: 300;
}

.legend-item dd {
  min-width: 0;
  margin: 0;
}

.back-button {
  margin: 0 0 16px 8px;
}

@media print {
  body {
    font-weight: 400;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .okvir {
    margin: 0;
    padding: 0;
    overflow: visible;
    box-shadow: none;
  }

  .table-wrap {
    overflow: visible;
  }

  table {
    min-width: 0;
    font-size: 12px;
  }

  .back-button {
    display: none;
  }
}

@media (max-width: 700px) {
  h1 {
    margin: 24px 12px;
  }

  .okvir {
    margin: 16px 12px 24px;
    padding: 20px 16px;
  }

  .legend {
    margin-top: 28px;
    padding-top: 22px;
  }

  .legend-list {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .legend-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .back-button {
    margin-left: 12px;
  }
}
