.form {
    margin: 0 auto;
    max-width: 30rem;
    border: var(--border);
    font-size: 1.2rem;

    /* An explicit background is required here, as it's actually transparent by default, and we
         don't want to see the shadow element behind */
    background: var(--background-color);

    /* This shadow is separated from the edges by 0.75rem, and shrunk by 0.2rem on the
    top and bottom. */
    box-shadow: 0.75rem 0.75rem 0 -0.2rem var(--accent-colour);
}

.form__container {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
}

/* The following media queries allow for more padding inside the form as the window
   size increases */


@media screen and (max-width: 1024px) {
    .filters__results__div {
        flex-direction: column;
    }

    .filters__div {
        width: 100%;

    }

    .search__div {
        margin-left: 0;
    }

    .search__container {
        flex-direction: column;
        padding: 0 2.5rem;
    }

    .result__content__header {
        flex-direction: column;
        align-items: stretch;
    }

    .result__content__header--title {
        margin-right: 0;
    }
    .result__content__header--right {
        justify-content: space-between;
    }

    .form__field__search {
        margin-right: 0;
        margin-bottom: 10px;
    }



    .header {
        padding: 0;
    }

    .results__div {

        padding-left: 2.5rem;
        width: 100%;
    }

    .search__title h1 {
        text-align: center;
    }

    .button--search {
        margin: 0 0 10px 0;
        width: 100%;
        text-align: center;

    }
    svg {
        max-width: fit-content;
    }
}

@media screen and (min-width: 1025px) {
    .filters__div {
        width: 20%;

    }
    .search__div {
        margin-left: 20%;
    }
    .search__bar{
    display: flex;
}

    .result__content__header--title {
        margin-right: 10rem;
    }
    .result__content__header {

        align-items: center;
    }
    .form__field__search {
        margin-right: 25rem;
    }

    .results__div {
        width: 80%;
    }

    .button--search {
        margin: 0 0 0 2rem;
    }
}



.form__group {
    /* Surrounds the label and input fields, placing the label above the input */
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form__label {
    margin-bottom: 0.5rem;
}

.form__field {
    /* Removes the border and the outline highlight when the text field is in focus */
    outline: none;
    border: none;

    /* Re-adds a bottom border which will be replaces when the field is in focus. This
         is going to prevent any jumping when we add the border later */
    border-bottom: 3px solid #fff;

    /* We have to be explicit about our text fields inheriting font properties */
    font-size: inherit;
    font-family: inherit;

    padding: 0.75rem 0.5rem;
    background: var(--background-color);
}

/* When the field is in focus, we change the border colour at the bottom to the accent colour */
.form__field:focus {
    border-bottom: var(--border);
}

.form__small {
    font-size: 0.83rem;
    color: var(--text-muted);
}

.form__link {
    text-decoration: none;
    color: var(--accent-colour);
}

.form__link:hover {
    color: black;
}

.form__error {
    margin-top: 0.5rem;
}

.form__error,
.form__flash {
    display: block;
    padding: 0.5rem;
    color: var(--text);
}

.form__error,
.form__flash--danger {
    background: var(--accent-colour);
}

.form__flash {
    margin: 0.5rem;
}

.form__flash--success {
    background: var(--accent-colour-2);
}

/* Styles specific to the form buttons */
.button--form {


    border-radius: 2px;
    border: none;

    background: var(--background-color);
}

.button--form:hover {
    background: var(--background-color-hover);
}

.filters__and__results {
    display: flex;
    margin-top: 3rem;
}

.type {
    padding: 1rem;
    display: flex;
}

.checkbox__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search__result {
    margin: 0 2rem 0 7rem;

}

label {
    margin-left: 16px;
    white-space: nowrap;
}

.table {
    max-width: 50rem;
    width: 100%;
    margin: 0 auto;
    border-spacing: 0;
}

.table__cell {
    padding: 1.25rem 1rem;
}

.table__cell--header {
    text-align: left;
    padding: 0.5rem 1rem;
    border-bottom: var(--border);
}

.table__docTitle {
    font-weight: 600;
}

.table__docAuthor {
    font-size: 0.85em;
}

.table__link {
    color: inherit;
    text-decoration: none;
}

.table__link:hover {
    text-decoration: underline;
    text-decoration-color: var(--accent-colour);
}

.table__empty {
    display: block;
    text-align: center;
    font-size: 1.2rem;
}

.description_row {
    font-size: 3px;
}


.fixed-header-table-container {
    overflow-x: auto;
    max-height: 400px;
}

.fixed-header-table {
    width: 100%;
    border-collapse: collapse;
}

.fixed-header-table thead {
    position: sticky;
    top: 0;
    background-color: white;
}

.fixed-header-table th {
    text-align: left;

}


.dark-mode .table__header {
    background-color: #1c2023; /* Изменяем цвет фона при активации черной темы */; /* Изменяем цвет текста при активации черной темы */
    /* Другие стили для темной темы */
}

.dark-mode .highlighted {
    background-color: #908C71;
}