

.modal {
    filter: grayscale(70);
    background-color: rgba(0,0,0,0.4);
    height: 100vh;
}

td {
    text-align: center;
    vertical-align: middle;
    width: auto;
    min-width: 100px;
}

.tr-text:hover {
    outline: 1px solid black;
}

.container-lower {
    width: 100%;
    /*max-width: calc(100% - 2 * var(--header-width));
    margin-left: var(--header-width);
    margin-right: var(--header-width);*/
    box-sizing: border-box;
    padding-left: 0px;
    padding-right: 0px;
}

.search-box {
    transition: width 0.6s ease-in-out, border-radius 0.6s ease-in-out, background 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    background: rgb(235, 235, 235);
}

    .search-box + label {
        position: relative;
        display: flex;
        align-items: center; /* Центрируем иконки по вертикали */
    }

        .search-box + label .search-icon,
        .search-box + label .search-clear {
            position: absolute;
            top: 50%;
            transform: translateY(-50%); /* Выравниваем иконки по центру */
            cursor: pointer;
        }

        .search-box + label .search-icon {
            left: -28px; /* Расстояние от левого края */
            color: #808080;
        }

        .search-box + label .search-clear {
            left: -28px; /* Расстояние от левого края, чтобы крестик был в том же месте */
            color: #808080;
            display: none; /* Скрываем крестик по умолчанию */
        }

    .search-box:hover {
        color: white;
        background: rgb(200, 200, 200);
        box-shadow: none;
    }

        .search-box:hover + label .search-icon {
            color: white;
        }

    .search-box:focus {
        transition: width 0.6s cubic-bezier(0, 1.22, .66, 1.39), border-radius 0.6s, background 0.6s;
        border: none;
        outline: none;
        box-shadow: none;
        padding-left: 15px;
        cursor: text;
        width: 300px;
        background: rgb(235, 235, 235);
        color: black;
    }

        .search-box:focus + label .search-icon {
            color: #808080;
        }

    .search-box:not(:focus) {
        text-indent: -5000px;
    }

#search-submit {
    position: relative;
    left: -4000px;
}


.standardized-img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

.search-box::-webkit-search-cancel-button {
    display: none;
}

.bg-custom-green {
    background-color: #00a650;
}

.bg-custom-blue {
    background-color: #47b2de;
}

.bord-line {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card {
    height: 95%;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}


.card-img-top {
    max-height: 200px;
    object-fit: cover;
}


.card-body {
    flex-grow: 1;
}


.row {
    display: flex;
    flex-wrap: wrap;
}

.col-md-4 {
    display: flex;
    justify-content: center;
}

.card {
    transition: all 0.3s ease;
}


    .card:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transform: scale(1.05);
        border: 1px solid #007bff;
        cursor: pointer
    }


.card-title {
    transition: all 0.3s ease;
}

.card:hover .card-title {
    text-decoration: underline;
}



.table-text {
    max-width: 30vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.title-text {
    font-weight: bold;
    color: #007bff;
    font-size: 1.1rem;
}

.title-text {
    font-weight: bold;
    color: #007bff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}


    .title-text:hover {
        cursor: pointer;
        text-decoration: underline;
    }

.card {
    transition: transform 0.3s ease-in-out;
}

    .card:hover {
        transform: scale(1.05);
        cursor: pointer;
    }

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
}


body.modal-open {
    overflow: hidden;
}

.modal-content {
    z-index: 6;
}

.modal-backdrop {
    display: none !important;
}

#tableView {
    display: none;
}

a {
    color: rgb(255 255 255);
}

li.list-group-item span.badge.bg-custom-green.text-dark {
    float: right;
}

li.list-group-item span.badge.bg-custom-blue.text-dark {
    float: right;
}

@media (max-width: 680px) {
    .hide-text {
        display: none;
    }
}

form#search-form {
    margin-right: 5px;
}

@media (max-width: 540px) {
    .category-column {
        display: none;
    }
}

.description-note {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 5px;
    font-size: 12px;
    border-radius: 5px;
    display: none;
}


@media (max-width: 540px) {
    .category-column {
        display: none;
    }

    .table-text {
        position: relative;
    }

    .description-note {
        display: block;
    }
}

@media (max-width: 375px) {
    #search-form {
        width: 50%;
    }

    #search-box {
        width: calc(100% - 40px);
    }
}
