@font-face {
    font-family: "v-sans";
    font-weight: 400;
    src: url("/fonts/montserrat/regular.ttf");
}

@font-face {
    font-family: "v-sans";
    font-weight: 600;
    src: url("/fonts/montserrat/semibold.ttf");
}

.result {
    min-height: 29.7cm;
    max-width: 21cm;
    padding: 1cm 2cm;
    margin: 0 auto;
    border: 1px solid #f4f4f4;
    border-radius: 3px;

    color: #1f2225;
    font-family: "v-sans", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    text-align: justify;
}

.result .header .title {
    display: inline-block;
    padding-left: 2cm;
    margin-left: -2cm;
    padding-right: 18px;
    margin-top: 0;
    margin-bottom: 0;
    background-color: #30d175;
    border-top-right-radius: 9999px;
    border-bottom-right-radius: 9999px;
    color: #fff;

    font-size: 1.5em;
    font-weight: bold;
}

.result.result-mobile {
    padding: 0;
    border: 0;
}

.result.result-tablet {
    padding: 32px;
}

.result.result-mobile .title,
.result.result-tablet .title {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 15px!important;
}

.result.result-tablet .title {
    margin-left: -32px;
    padding-left: 32px;
}

.result.result-mobile .title {
    margin-left: 0;
    padding-left: 8px;
    width: 100%;
}

.result.result-mobile .header > table,
.result.result-mobile .header > table > tbody,
.result.result-mobile .header > table > tbody > tr,
.result.result-mobile .header > table > tbody > tr > td {
    display: block;
}

.result.result-mobile .header > table > tbody > tr > td {
    text-align: left;
}

.result.result-mobile .header > table > tbody > tr > td:first-child {
    margin-bottom: 16px;
}

.result.result-mobile .allergen-measured-value-levels-table,
.result.result-mobile .allergen-measured-value-levels-table > tbody,
.result.result-mobile .allergen-measured-value-levels-table > tbody > tr,
.result.result-mobile .allergen-measured-value-levels-table > tbody > tr > td {
    display: block;
}

.result.result-mobile .next-steps-table,
.result.result-mobile .next-steps-table > tbody,
.result.result-mobile .next-steps-table > tbody > tr,
.result.result-mobile .next-steps-table > tbody > tr > td {
    display: block;
}

.result.result-mobile .next-steps-table > tbody > tr > td:first-child {
    margin-bottom: 16px;
}

.result.result-mobile .next-steps-card {
    margin-left: 0;
    padding: 0;
    background-color: #fff;
}

.result.result-mobile .next-steps-card,
.result.result-mobile .next-steps-card .rich-content {
    margin-left: 0;
}

html.dark .result {
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.09);
}

html.dark .result .btn {
    color: #000;
}

html.dark .result .header .title {
    color: #000;
}

html.dark .result .header .title .icon {
    color: #000;
}

html.dark .result .card {
    background-color: #18181c;
}

html.dark .result .card.bordered {
    border-color: rgba(255, 255, 255, 0.09);
}

html.dark .result .card.embedded {
    background-color: #18181c;
}

@media print {
    .result {
        width: 100%;
        padding: 0 !important;
        margin-top: 0 !important;
        min-height: auto;
        border: none;
    }
}

.result strong {
    font-weight: 600;
}

.result .small {
    font-size: 12px;
}

.result .muted {
    color: #767c82;
}

.result .italic {
    font-style: italic;
}

.result img {
    object-fit: cover;
    max-width: 100%;
}

.result .picture {
    border-radius: 20px;
}

.result .btn {
    display: inline-block;
    padding: 12px 18px;
    background-color: #30d175;
    color: #fff;
    border: 1px solid #30d175;
    font-size: 14px;
    line-height: 1;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
}

.break-inside-avoid {
    break-inside: avoid;
}

.break-after-avoid {
    break-after: avoid;
}

@page {
    size: A4;
    margin: 10mm 17.5mm;
}

.result {
    color: #1f2225;
    font-family: "v-sans", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    text-align: justify;
}

.result a {
    color: #30d175;
}

.result img {
    display: inline-block;
    vertical-align: middle;
}

.result .icon {
    height: 24px;
    width: 24px;
    vertical-align: middle;
    color: #30d175;
}

.result .rich-content {
    display: block;
    margin: 1em 0;
}

.result li > .rich-content {
    margin: 0;
}

.result ol,
.result ul {
    padding: 0 0 0 1.15em;
    line-height: 1.75;
}

.result table {
    text-align: left;
}

.result table th,
.result table td {
    padding: 0;
    vertical-align: top;
}

.result .header {
    margin-bottom: 2em;
}

.result .header > table {
    width: 100%;
    border-spacing: 0;
}

.result .header > table > tbody > tr > td:last-child {
    text-align: right;
}

.result table {
    border-width: 0;
    border-style: none;
}

.result th {
    border-width: 0;
    border-style: none;
}

.result td {
    border-width: 0;
    border-style: none;
}

.result .header .title .icon {
    margin-top: -4px;
    color: #fff;
}

.result .title .icon {
    margin-right: 4px;
}

.result .title {
    font-size: 1.17em;
    font-weight: bold;
}

.result .logo {
    height: 28px;
}

.result .card {
    position: relative;
    padding: 19px 24px;
    margin: 1.5em 0;
    background-color: #fff;
    border-radius: 3px;
}

.result .card.bordered {
    border: 1px solid #efeff5;
}

.result .card.embedded {
    background-color: #fafafc;
}

.result .card.card-small {
    padding: 12px 16px;
    margin: 0.5em 0;
}

.result .card > *:first-child {
    margin-top: 0 !important;
}

.result .card > *:last-child {
    margin-bottom: 0 !important;
}

.result .header .card {
    margin: 0;
}

.result article > *:last-child {
    margin-bottom: 0;
}

.result article:not(:last-child) {
    margin-bottom: 4em;
}

/* Specific */
.result .top-allergen-image {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.result .top-allergen-name {
    vertical-align: middle;
}

.result .test-info-card,
.result .test-info-table {
    text-align: left;
    color: #30d175;
    font-size: 13px;
}

.result .allergen-measured-value-levels-card table > tbody > tr > td {
    vertical-align: middle;
}

.result .allergen-measured-value-levels-card table > tbody > tr > td:first-child {
    padding-right: 8px;
}

.result .measured-value-levels-legend-color-box {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.result .allergen-measured-value-levels-table {
    width: 100%;
}

.result .allergen-chart-card {
    text-align: center;
}

.result .allergen-chart-card .allergen-image {
    height: 18px;
    width: auto;
    margin-left: 8px;
}

.result .question {
    margin-bottom: 1em;
}

.result .next-steps-table {
    table-layout: fixed;
    width: 100%;
}

.result .next-steps-table td {
    vertical-align: middle;
}

.result .next-steps-picture {
    width: 100%;
}

.result .next-steps-card {
    border-radius: 20px;
    margin-left: -42px;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
}

.result .next-steps-card .rich-content {
    text-align: center;
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
}

.result .next-steps-card .btn {
    margin-top: 1em;
}

/*Rich content*/
.physikit-rich-content {
    display: block;
    margin: 1rem 0;
    /*white-space: break-spaces;*/
}

.physikit-rich-content:first-child {
    margin-top: 0;
}

.physikit-rich-content:last-child {
    margin-bottom: 0;
}

.small {
    font-size: 11px;
}