html.removed-color .site-table tr.open td:first-child {
    -webkit-box-shadow: inset 2px 0 0 0 #000;
    -moz-box-shadow: inset 2px 0 0 0 #000;
    box-shadow: inset 2px 0 0 0 #000;
}

html[data-contrast="high"] .site-table tr.open td:first-child {
    -webkit-box-shadow: inset 2px 0 0 0 #ff0;
    -moz-box-shadow: inset 2px 0 0 0 #ff0;
    box-shadow: inset 2px 0 0 0 #ff0;
}

html[data-contrast="inverted"] .site-table tr.open td:first-child {
    -webkit-box-shadow: inset 2px 0 0 0 #fff;
    -moz-box-shadow: inset 2px 0 0 0 #fff;
    box-shadow: inset 2px 0 0 0 #fff;
}

.main-content {
    position: relative;
}

.advert-actions {
    position: absolute;
    top: 59px;
    right: 20px;
    display: flex;
    justify-content: right;
    column-gap: 15px;
}

.site-filters .filter-row {
    grid-template-columns: 7fr 3fr 1fr;
}

.site-table thead th:first-child {
    width: 100%;
}

.site-table tbody tr.main-row {
    cursor: pointer;
}

.site-table tr.open td:first-child {
    -webkit-box-shadow: inset 2px 0 0 0 #0072ce;
    -moz-box-shadow: inset 2px 0 0 0 #0072ce;
    box-shadow: inset 2px 0 0 0 #0072ce;
}

.site-table tbody tr.main-row td:not(:first-child):not(.institution-logo) {
    white-space: nowrap;
}

.site-table tr:nth-child(even) td,
.site-table tr:hover td {
    background: unset;
}

.site-table tr:nth-child(4n-1) td,
.site-table tr:nth-child(4n) td {
    background: #f2f2f2;
}

.site-table td {
    padding-block: 10px;
}

.site-table .top {
    vertical-align: top;
}

.site-table .edit-record-button {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 6px;
    padding: 8px 12px;
    color: #000;
    white-space: nowrap;
}

.site-table .record-title-container {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}

.site-table .record-side-title {
    color: #8c8c8c;
    font-size: 0.75rem;
}

.site-table .record-main-title {
    font-weight: 500;
}

.site-table .institution-logo {
    text-align: center;
    padding-block: 0;
}

.site-table .institution-logo img {
    height: 50px;
}

.site-table .advert-additional-info {
    display: flex;
    flex-direction: column;
}

.site-table .advert-additional-info > p {
    white-space: pre-line;
}

.site-table .advert-additional-info .contacts {
    display: flex;
    column-gap: 30px;
    margin: 8px 0;
}

.site-table .advert-additional-info .contacts a {
    color: #000;
}

.site-table .advert-additional-info .open-advert-button {
    width: max-content;
}

.site-table td.top {
    padding-block-start: 21px;
}

.main-content {
    padding-bottom: 60px;

    .site-section-toggle ~ .site-table-wrapper {
        margin-bottom: 0;
    }
}

@media all and (max-width: 1200px) {
    .info-section {
        grid-template-columns: 1fr;
        grid-row-gap: 20px;
    }
}

@media all and (max-width: 1200px) {
    .advert-actions {
        top: 31px;
    }
}

@media all and (max-width: 768px) {
    .advert-actions {
        top: 17px;
    }

    .site-filters .filter-row {
        grid-template-columns: auto;
        grid-row-gap: 8px;
    }

    .site-filters .actions {
        justify-content: center;
    }
}

@media all and (max-width: 576px) {
    .title {
        margin-bottom: 106px;
    }

    .advert-actions {
        top: 63px;
        right: unset;
        flex-direction: column;
        row-gap: 10px;
    }
}
