/* table */
.table {
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 14px;
    color: var(--text-color-main);
    vertical-align: top;
    border: #dee2e6;
    /* table-layout: fixed; */
}

.table > thead {
    vertical-align: bottom;
    font-size: 14px;
    color: var(--text-color-main);
    border: 1px solid #FFF;
}

.entrance-groups-detail__table.table th {
    vertical-align: middle;

}

.entrance-groups-detail__table.table thead th {
    font-weight: 500;
    border-bottom: none;
    border-top: 1px solid #fff;
}

.table td {
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

/* .table>:not(caption)>*>* {
    padding: 0.5rem 0.5rem;
} */

.table > tbody {
    vertical-align: inherit;
}


.table > tbody tr:last-child {
    border-bottom: 1px solid #dee2e6;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: #dee2e6;
}

.table img {
    width: 20px;
    margin-right: 5px;
}

.table a {
    color: var(--accent-color);
}

/*----------------------------------------------------*/

#entrance_groups_map {
    height: calc(100vh - 174px);
    width: 100%;
}

.disabled {
    pointer-events: none;
    background-color: #e9ecef;
}

.entrance-groups__modal label {
    margin-bottom: 0;
    line-height: 1;
}

.form-group.flex {
    align-items: end;
    gap: 3px;
}

.custom-file-input ~ .custom-file-label::after {
    content: "Добавить";
}

.entrance-groups__modal_btn-add {
    height: calc(1.5em + .75rem + 2px);
}

.entrance-groups__modal_photos-mkd,
.entrance-groups__modal_photos-business,
.entrance-groups__modal_photos-dep,
.entrance-groups__modal_add-row,
.entrance-groups__modal .entrance-groups__modal_btn[type=submit] {
    display: none;
}

.entrance-groups__modal_photos-mkd > label,
.entrance-groups__modal_photos-business > label,
.entrance-groups__modal_photos-dep > label {
    font-weight: 500;
}

.entrance-groups__modal_photos-mkd > .input-group,
.entrance-groups__modal_photos-business > .input-group,
.entrance-groups__modal_photos-dep > .input-group {
    gap: 15px;
}

.entrance-groups__modal_photos input[type=checkbox] {
    width: calc(1.5em + .75rem + 2px);
}

.entrance-groups__modal_photos p {
    margin: 0;
}

.entrance-groups__modal_add-row {
    margin-bottom: 10px;
    font-weight: 500;
    color: #007bff;
    cursor: pointer;
}

#entrance_groups_map .ymaps-2-1-79-balloon {
    min-width: 300px;
}

.statistics__title {
    margin-bottom: 24px;
}

table.statistics__table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    height: auto;
}

table.statistics__table, table.statistics__table td, table.statistics__table th {
    border: 1px solid #595959;
}

table.statistics__table td, table.statistics__table th {
    padding: 3px;
    width: 30px;
    height: 35px;
}

table.statistics__table th {
    background: #4e6982;
    color: #fff;
    font-weight: normal;
}


.statistics__table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    font-family: Arial, sans-serif;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.statistics__table th,
.statistics__table td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.statistics__table thead {
    background-color: #f8f9fa;
}

.statistics__table thead th {
    background-color: #e9ecef;
    font-weight: 600;
    color: #495057;
}

.group-header {
    background-color: #d1ecf1;
    color: #0c5460;
}

.realty-header {
    background-color: #d4edda;
    color: #155724;
}

.category-cell {
    background-color: #f8f9fa;
    font-weight: 600;
    width: 120px;
}

.row-header {
    font-weight: 600;
    background-color: #f8f9fa;
    text-align: left;
}

.sub-header {
    background-color: #e2e3e5;
    color: #383d41;
    font-weight: 500;
}

.violation-cell {
    background-color: #f9e1e4;
    color: #721c24;
    font-weight: 500;
}

.is-emergency-cell {
    background-color: #ededed;
    color: #555555;
    font-weight: 500;
}

.no-violation-cell {
    background-color: #dbe7f3;
    color: #151d57;
    font-weight: 500;
}

.in-part-cell {
    background-color: #f9f8e1;
    color: #615817;
    font-weight: 500;
}

.is-correct-cell {
    background-color: #ddede1;
    color: #155724;
    font-weight: 500;
}

.total-cell {
    font-weight: 600;
}

.violation-row {
    background-color: #f8d7da20;
}

.no-violation-row {
    background-color: #d4edda20;
}

.statistics-table-wrapper {
    margin-bottom: 20px;
    overflow-x: auto;
    border-radius: 8px;
}

.statistics-btn__wrapper {
    white-space: nowrap;
    gap: 15px;
    position: absolute;
    right: 350px;
    top: 14px;
}

@media (max-width: 1149px) {

    #entrance_groups_map {
        height: calc(100vh - 65px);
    }

    .statistics-btn__wrapper {
        top: 64px;
        right: 215px;
    }

    .name_realty {
        margin-top: 60px;
    }
}


/* realty-detail */
.entrance-groups-detail__wrapper {
    gap: 15px;
}

.entrance-groups-detail__left,
.entrance-groups-detail__right {
    width: calc((100% - 15px) / 2);
}

.entrance-groups-detail__add-inspection-btn {
    margin-bottom: 25px;
}

.entrance-groups-detail__add-inspection-modal_type {
    margin-bottom: 5px;
    font-weight: 600;
}

.entrance-groups-detail__add-inspection-modal .text-success {
    margin: 0;
}

.entrance-groups-detail__add-inspection-modal .input-group {
    gap: 15px;
}

.entrance-groups-detail__add-inspection-modal input[type=checkbox] {
    width: calc(1.5em + .75rem + 2px);
}

.entrance-groups-detail__info {
    margin-left: 20px;
    color: #007bff;
    cursor: pointer;
}

.entrance-groups-detail__info:hover {
    text-decoration: underline;
}

.entrance-groups-detail__year-inspection-wrapper {
    justify-content: start;
    gap: 25px;
}

.entrance-groups-detail__year-inspection-wrapper p {
    margin: 0;
    font-weight: 600;
    cursor: pointer;
}

.entrance-groups-detail__year-inspection-wrapper p:not(:first-child) {
    padding: 0 6px;
    background-color: #dee2e6;
}

.entrance-groups-detail__year-inspection-wrapper p:not(:first-child):hover {
    text-decoration: underline;
}

.entrance-groups-detail__year-inspection_active {
    border: 2px solid #007bff;
    pointer-events: none;
}

.entrance-groups-detail__photos-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.entrance-groups-detail__photos_title {
    margin-top: 15px;
    margin-bottom: 5px;
    padding: 0;
}

.entrance-groups-detail__photo {
    position: relative;
    width: 200px;
    height: 150px;
}

.entrance-groups-detail__photo img {
    height: 100%;
    width: 100%;
    max-height: 100px;
    object-fit: cover;
}

.entrance-groups-detail__photo_num {
    position: absolute;
    left: 5px;
    top: 5px;
    padding: 0 3px;
    font-weight: 500;
    background-color: #fff;
}

.entrance-groups-detail__photo_violation {
    position: absolute;
    bottom: 5px;
    right: 5px;
    padding: 0 3px;
    font-weight: 500;
    background-color: #fff;
}

.entrance-groups-detail__table {
    margin-top: 20px;
}

.entrance-groups-detail__table_2025 {
    display: none;
}

.entrance-groups-detail__table thead {
    background-color: #dee2e6;
}

.entrance-groups-detail__table thead tr:first-child th:first-child {
    width: 55px;
}

.entrance-groups-detail__table_grouper {
    font-weight: 500;
    background-color: #F4F4F4;
}

.entrance-groups-detail__link {
    display: flex;
    gap: 10px;
    justify-content: center;
    font-weight: 500;
    cursor: pointer;
}

.entrance-groups-detail__link:hover {
    text-decoration: underline;
}

.entrance-groups-detail__link svg {
    align-self: center;
}

.is_violation {
    color: #dc3545;
}

.not_is_violation {
    color: #009445;
}

.entrance-groups-detail__table input[type=file] {
    cursor: pointer;
}

.entrance-groups-detail__table .custom-file-label {
    text-align: left;
}

.entrance-groups-detail__photo-wrapper {
    position: relative;
}

.entrance-groups-detail__photo_del {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    background-color: #fff;
    border-radius: 100%;
    border: 1px solid;
    cursor: pointer;
}

.entrance-groups-detail__modal .modal-content {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.entrance-groups-detail__modal img {
    width: 125px;
}

.entrance-groups-detail__modal p {
    font-size: 18px;
    font-weight: 500;
}

.entrance-groups-detail__modal_btn-wrapper {
    gap: 40px;
}

.entrance-groups__filter {
    top: 50px;
}

.entrance-groups__filter_header {
    text-align: center !important;
    color: #fff;
    background-color: #007bff;
}


@media (max-width: 767px) {
    .entrance-groups-detail__left, .entrance-groups-detail__right {
        width: 100%;
    }

    .entrance-groups-detail__wrapper {
        flex-direction: column;
    }

    .entrance-groups__filter {
        top: 50px;
    }

    table.statistics__table {
        font-size: 11px;
    }

}

@media (max-width: 576px) {
    #entrance_groups_map {
        margin-top: 55px;
        height: calc(100vh - 120px);
    }

    #entrance_groups_map .ymaps-2-1-79-balloon__content {
        font-size: 12px;
    }


    .statistics-btn__wrapper {
        right: 5px;
        top: 11px;
    }

    .entrance-groups__filter_status {
        top: 50px;
    }

}