@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

:root {
    --paper: #ffffff;
    --bg: #ffffff;
    --ink: #1f1f1f;
    --muted: #808080;
    --brand: #ea592c;
    --brand-soft: #fdf3ee;
    --gray-light: #d0d0d0;
    --line: #d0d0d0;
    --radius-soft: 8px;
    --green: #1fb643;
    --yellow: #ffbf00;
    --red: #e02b1f;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
    background: #f3f3f3;
}

body {
    margin: 1rem auto;
    max-width: 900px;
    padding: 3rem 4rem;
    color: var(--ink);
    background: var(--bg);
    font-family: "Open Sans", -apple-system, "Segoe UI", sans-serif;
    font-weight: 400;
    line-height: 1.65;
    border: 2px solid var(--gray-light);
    border-radius: 14px;
}

body > * {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

h1,
h2,
h3 {
    font-family: "Open Sans", -apple-system, "Segoe UI", sans-serif;
    font-weight: 800;
    color: #000000;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

h1 {
    margin-top: 0;
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--gray-light);
    font-size: 2.2rem;
}

h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
}

h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1f1f1f;
    letter-spacing: 0.03em;
}

p {
    margin: 0.4rem auto 0.85rem;
    text-align: justify;
}

ul,
ol {
    margin-top: 0.4rem;
    margin-bottom: 1rem;
    padding-left: 1.4rem;
}

li {
    margin-bottom: 0.35rem;
    text-align: justify;
}

blockquote {
    margin: 1rem auto;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-soft);
}

blockquote.green {
    border-left: 10px solid var(--green);
}

blockquote.yellow {
    border-left: 10px solid var(--yellow);
}

blockquote.red {
    border-left: 10px solid var(--red);
}

blockquote p:last-child {
    margin-bottom: 0;
}

img {
    display: block;
    width: 100%;
    max-width: 980px;
    height: auto;
    margin: 1rem auto 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-soft);
}

img.logo {
    width: 25%;
    max-width: 25%;
    height: auto;
    margin: 0;
    margin-top: 1rem;
    margin-bottom: 3.5rem;
    border: none;
    border-radius: 0;
}

.score-meter-wrapper {
    position: relative;
    width: 100%;
    margin: 1rem auto 1.3rem;
    background: #f0f0f0;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-soft);
    height: 2.5rem;
    overflow: hidden;
}

.score-meter-fill {
    height: 100%;
    border-radius: calc(var(--radius-soft) - 2px);
}

.score-meter-fill--green {
    background: var(--green);
}

.score-meter-fill--yellow {
    background: var(--yellow);
}

.score-meter-fill--red {
    background: var(--red);
}

.score-meter-value {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 700;
    color: #000000;
    pointer-events: none;
}

table {
    width: 100%;
    margin: 1rem auto 1.3rem;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    border-radius: 0;
    overflow: visible;
    background: var(--paper);
    font-size: 0.92rem;
    page-break-inside: auto;
}

thead th {
    background: transparent;
    color: #000000;
    font-family: "Open Sans", -apple-system, "Segoe UI", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    text-align: center;
    vertical-align: bottom;
    border: none;
    padding: 0 0.6rem 0.35rem;
}

th,
td {
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--line);
    text-align: center;
    vertical-align: top;
}

tbody th,
tbody td {
    border: 1px solid var(--line);
}

th.vertical,
td.vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    transform-origin: center;
    white-space: nowrap;
    text-align: left;
    vertical-align: middle;
    padding: 0.45rem 0.3rem;
}

tbody tr:first-child td,
tbody tr:first-child th {
    border-top: 2px solid var(--gray-light);
}

tbody td:first-child,
tbody th:first-child {
    border-left: 2px solid var(--gray-light);
}

tbody tr.green td:first-child,
tbody tr.green th:first-child {
    border-left: 10px solid #1fb643;
}

tbody tr.yellow td:first-child,
tbody tr.yellow th:first-child {
    border-left: 10px solid #ffbf00;
}

tbody tr.red td:first-child,
tbody tr.red th:first-child {
    border-left: 10px solid #e02b1f;
}

tbody tr:first-child td:first-child,
tbody tr:first-child th:first-child {
    border-top-left-radius: calc(var(--radius-soft) - 1px);
}

tbody tr:first-child td:last-child,
tbody tr:first-child th:last-child {
    border-top-right-radius: calc(var(--radius-soft) - 1px);
}

tbody td:last-child,
tbody th:last-child {
    border-right: 2px solid var(--gray-light);
}

tbody tr:last-child td,
tbody tr:last-child th {
    border-bottom: 2px solid var(--gray-light);
}

tbody tr:last-child td:first-child,
tbody tr:last-child th:first-child {
    border-bottom-left-radius: calc(var(--radius-soft) - 1px);
}

tbody tr:last-child td:last-child,
tbody tr:last-child th:last-child {
    border-bottom-right-radius: calc(var(--radius-soft) - 1px);
}

tbody tr:nth-child(even) {
    background: #f8f8f8;
}

tr,
th,
td {
    page-break-inside: avoid;
}

strong {
    font-weight: 700;
    color: #000000;
}

em {
    font-style: italic;
    color: var(--muted);
}

@page {
    size: A4;
    margin: 16mm 14mm;
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    body {
        max-width: none;
        margin: 0.5rem;
        padding: 1.25rem 1rem;
    }

    table {
        display: block;
        width: max-content;
        min-width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    th,
    td {
        white-space: nowrap;
    }
}

@media print {
    html {
        font-size: 12px;
    }

    html,
    body {
        background: #ffffff !important;
        padding: 0;
        margin: 0;
        color: #000000;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body {
        border: none !important;
        border-radius: 0 !important;
    }

    * {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body > * {
        max-width: none;
    }

    table {
        display: table !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        /*table-layout: fixed; */
        border-collapse: separate !important;
        border-spacing: 0 !important;
        overflow: visible !important;
        border: none !important;
        border-radius: 0 !important;
    }

    h1,
    h2,
    h3,
    p {
        break-after: avoid-page;
        break-after: avoid;
        page-break-after: avoid;
    }

    h1 + table,
    h2 + table,
    h3 + table,
    h1 + blockquote,
    h2 + blockquote,
    h3 + blockquote {
        break-before: avoid-page;
        break-before: avoid;
        page-break-before: avoid;
        margin-top: 0.2rem;
    }

    :is(h1, h2, h3, p) + :is(table, blockquote, img) {
        break-before: avoid-page;
        break-before: avoid;
        page-break-before: avoid;
        margin-top: 0.2rem;
    }

    img {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    table,
    blockquote {
        break-inside: avoid-page;
        break-inside: avoid;
        page-break-inside: avoid;
    } /*lámání přes stránku*/

    .keep-together {
        break-inside: avoid-page !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .keep-with-next {
        break-after: avoid-page !important;
        break-after: avoid !important;
        page-break-after: avoid !important;
    }

    .keep-with-prev {
        break-before: avoid-page !important;
        break-before: avoid !important;
        page-break-before: avoid !important;
    }

    blockquote {
        border: 2px solid #b5b5b5 !important;
        border-radius: var(--radius-soft) !important;
    }

    th,
    td {
        white-space: normal !important;
        word-break: break-word;
    }

    tbody td,
    tbody th {
        text-align: center !important;
        vertical-align: middle !important;
    }

    th.vertical,
    td.vertical {
        white-space: nowrap !important;
    }

    h1 {
        color: #000000;
        /*border-bottom-color: var(--brand);*/
    }

    h2 {
        color: #000000;
    }

    h3,
    strong {
        color: #1f1f1f;
    }

    thead th {
        background: transparent !important;
        color: #000000 !important;
        border: none !important;
    }

    tbody tr:first-child td,
    tbody tr:first-child th {
        border-top: 2px solid #b5b5b5 !important;
    }

    tbody td:first-child,
    tbody th:first-child {
        border-left: 2px solid #b5b5b5 !important;
    }

    tbody tr.green td:first-child,
    tbody tr.green th:first-child {
        border-left: 10px solid #1fb643 !important;
    }

    tbody tr.yellow td:first-child,
    tbody tr.yellow th:first-child {
        border-left: 10px solid #ffbf00 !important;
    }

    tbody tr.red td:first-child,
    tbody tr.red th:first-child {
        border-left: 10px solid #e02b1f !important;
    }

    tbody td:last-child,
    tbody th:last-child {
        border-right: 2px solid #b5b5b5 !important;
    }

    tbody tr:last-child td,
    tbody tr:last-child th {
        border-bottom: 2px solid #b5b5b5 !important;
    }

    tbody tr:nth-child(even) {
        background: #f8f8f8 !important;
    }

    blockquote.green {
        border-left: 10px solid #1fb643 !important;
    }

    blockquote.yellow {
        border-left: 10px solid #ffbf00 !important;
    }

    blockquote.red {
        border-left: 10px solid #e02b1f !important;
    }

    h1,
    h2,
    h3 {
        break-after: avoid;
    }

    h2,
    h3,
    p,
    li {
        break-inside: avoid;
    }
}
