.billboards {
    width:100%;
    height:100%;
    padding:27px 22px 0 30px
}
.billboards_child {
    padding:0
}
.billboards_child .billboards__data table thead {
    z-index:3
}
.billboards_child .billboards__data table thead th {
    background-color:#fcfcfc
}
.billboards_child .billboards__data table thead th.action::before {
    background:linear-gradient(270deg,#fcfcfc 70.83%,rgba(252,252,252,0) 113.26%)
}
.billboards_sublist {
    margin-top:-4px;
    padding:23px 0 10px 32px;
    background-color:#edeff1
}
.billboards_sublist .billboards__data table thead {
    z-index: 1;
}
.billboards_sublist .billboards__data table thead th {
    background-color:#edeff1;
}
.billboards_modal {
    padding:0
}
.billboards_modal .billboards__data table thead {
    /*display:none*/
}
.billboards__header {
    display:flex;
    justify-content:space-between;
    align-items:center
}
.billboards__actions {
    display:flex;
    align-items: center;
    column-gap: 13px;
}
.billboards__btn {
    padding:9px 33px;
    display:flex;
    align-items:center;
    border:none;
    border-radius:2px;
    font-size:12px;
    line-height:14px;
    font-weight:500;
    cursor:pointer;
    text-decoration:none;
    color:#fff;
    background-color: var(--main-button-color);
    transition:all .3s ease
}
.billboards__btn:hover {
    background-color:#37abff
}
.billboards__btn[disabled],
.billboards__btn:disabled {
    cursor: not-allowed;
    background-color:#e1e4ec;
    color: #fff;
}
.billboards__btn[disabled]:hover,
.billboards__btn:disabled:hover {
    background-color:#838f9e;
    color: #fff;
}
.billboards__btn:not(:first-child) {
    /*margin-left:13px*/
}
.billboards__btn_groups {
    background-color:#44537a
}
.billboards__btn_groups:hover {
    background-color:#5263d0
}
.billboards__btn_address {
    color:var(--text-color);
    background-color:#d6ebff
}
.billboards__btn_address:hover {
    background-color:#47b6f4;
    color:#fff
}
.billboards__btn_address:hover .billboards__btn-icon {
    fill:#fff
}
.billboards__btn_address .billboards__btn-icon {
    fill:var(--text-color)
}
.billboards__btn-icon {
    margin-left:7px;
    fill:#fff;
    transition:all .3s ease
}
.billboards__selected,
.billboards__selected>span {
    color:#838f9e;
    font-size:12px;
    line-height:14px;
    font-weight:500
}
.billboards .dataTables_wrapper {
    width:100%;
    height:100%;
    overflow:auto;
    overflow-anchor: none; /* отключить автоматическую прокрутку при подзагрузке в хроме*/
    position:relative
}
.billboards__data {
    height:100%
}
.billboards__data_catalog {
    padding-top:20px;
    height:calc(100% - 32px)
}
.billboards__data_addresses {
    padding-top:20px;
    height:calc(100% - 32px - 11px)
}
.billboards__data_rim {
    padding-top:24px;
    height:calc(100% - 32px)
}
.billboards__data_rim-groups {
    margin-top:24px;
    margin-bottom: 24px;
    padding:0 45px 0 0;
    max-height:435px
}
.billboards__data_rim-new-group {
    margin-top:24px;
    padding:0 45px 0 0;
    height:335px
}
.billboards__data_rotations {
    padding-top:20px;
    height:calc(100% - 32px)
}
.billboards__data_rotations-sublist {
    padding-top:20px;
    height:450px
}
.billboards__data_rotations-modal {
    padding-top:30px;
    height:380px
}
.billboards__data_photo {
    padding-top:24px;
    height:calc(100% - 32px)
}
.billboards__data_format {
    padding-top: 24px;
}
.unit-body {
    .billboards__data {
        table {
            & .action_1 {
                --n-actions: 1;
                --n-action: 1;
            }
            & .action_2 {
                --n-actions: 2;
                &:nth-child(1 of .action_2){
                    --n-action: 1;
                }
                &:nth-child(2 of .action_2){
                    --n-action: 2;
                }
            }
            & thead {
                position:-webkit-sticky;
                position:sticky;
                top:0;
                left:0;
                z-index:4;
                th {

                    &.last{
                        padding-right: 60px;
                    }
                    &.cbx {
                        min-width: 53px;
                        width: 53px;
                        position: -webkit-sticky;
                        position: sticky;
                        left: 0;
                        & + th {
                            padding-left: 20px;
                        }
                    }
                    &.num {
                        text-align:center;
                        padding-left: 30px;
                    }
                    &.number {
                        padding-left:20px
                    }
                    &.statuses {
                        width: 175px;
                    }
                    &.sorting {
                        cursor: pointer;
                        & .sort-trigger {
                            display: inline;
                            margin-left: 9px;
                            & svg {
                                position: relative;
                                top: 3px;
                                height: 13px;
                                width: 9px;
                                transform: rotateX(180deg);
                            }
                        }
                    }
                    & span {
                        font-size:13px;
                        font-weight:500
                    }
                    & .th-flex {
                        display:flex;
                        justify-content:space-between;
                        align-items:center
                    }
                    & .th-flex .billboards__more-btn {
                        margin-right: 15px;
                        margin-left: 10px;
                    }
                    &.action {
                        min-width: 53px;
                        position:-webkit-sticky;
                        position:sticky;
                        right:0;
                        right: calc((var(--n-actions) - var(--n-action)) * 53px);
                        &.action_0 {
                            width: 0;
                            min-width: 0;
                        }
                        &.action_0 .billboards__more-btn {
                            position: absolute;
                            top: 0;
                            right: 0;
                        }
                        &.action_2 {
                            right: 53px;
                        }
                        &.action_2:last-child {
                            right: 0;
                        }
                    }
                    &.action_blur::before {
                        content:"";
                        position:absolute;
                        top:0;
                        left:0;
                        transform:translateX(-100%);
                        width:30px;
                        height:100%;
                        background:linear-gradient(270deg,#f7f7f8 70.83%,rgba(247,247,248,0) 113.26%)
                    }
                    &.action_0.action_blur::before {
                        width: 60px;
                    }
                    &.price,
                    &.count {
                        text-align: right;
                    }
                }
            }
            & tbody {
                & td[colspan] {
                    border:none;
                    border-radius:unset;
                    height:-webkit-fit-content;
                    height:-moz-fit-content;
                    height:fit-content;
                    padding:0
                }
                & td.cbx {
                    padding:0;
                    min-width:53px;
                    width: 53px;
                    position: -webkit-sticky;
                    position: sticky;
                    left: 0;
                    border-right: 2px solid #eceef4;
                }
                & td.cbx + td {
                    padding-left: 20px;
                }
                & td.cbx .checkbox {
                    margin:0 auto
                }
                & td.cbx .checkbox__icon {
                    margin:0
                }
                & td.num {
                    padding:0;
                    min-width:53px;
                    text-align:center;
                    width: 53px;
                }
                & td .rim-icon {
                    width: 37px;
                    max-height: 130px
                }
                & td .rim-icon>img {
                    /*border-radius:4px;*/
                    /*border-right:1px solid #eceef4*/
                }
                & td.number {
                    padding-left:20px
                }
                & td.number .number__link {
                    font-weight:500;
                    color:var(--text-color);
                    text-decoration:none;
                    cursor: pointer;
                }
                & td.number .number__link:hover {
                    text-decoration:underline
                }
                & td.address {
                    min-width:155px;
                    max-width:155px;
                    white-space:normal
                }
                & td.period {
                    text-decoration:underline
                }
                & td.photo-report {
                    padding:0
                }
                & td.photo-report .photo-report-icon {
                    margin:0 0 0 auto;
                    width:50px;
                    height:53px;
                    text-align: center;
                    display: inline;
                    vertical-align: middle;
                    & > img {
                        border-radius:3px;
                        cursor: pointer;
                    }
                    & > video {
                        width:100%;
                        height:100%;
                        cursor: pointer;
                    }
                }
                & td.statuses .status {
                    display:block;
                    width:144px;
                    border-radius:2px;
                    font-weight:500;
                    line-height:32px;
                    text-align:center;
                    text-decoration:none;
                    color:var(--text-color)
                }
                & td.statuses .status_accepted {
                    background-color:#d8f5e7
                }
                & td.statuses .status_review {
                    background-color:#fdf4dc
                }
                & td.statuses .status_rejected {
                    background-color:#f1d9d9
                }
                & td.format .format__wrap {
                    display:flex;
                    align-items:center;
                    justify-content: space-between;
                    font-weight:500
                }
                & td.format .format__wrap .alert {
                    display:none;
                    margin-left:24px
                }
                & td.format .format__wrap .alert_show {
                    display:flex
                }
                & td.addresses {
                    width: 115px;
                    min-width: 115px;
                    text-align: center;
                    position: relative;
                }
                & td.addresses .expand-addresses {
                    width:85px;
                    height:22px;
                    display:flex;
                    justify-content:center;
                    align-items:center;
                    position:absolute;
                    left:0;
                    bottom:0;
                    border:none;
                    cursor:pointer;
                    background-color:#fafafa;
                    transition:all .3s ease
                }
                & td.addresses .expand-addresses:hover {
                    background-color:#37abff;
                }
                & td.addresses .expand-addresses:hover .expand-addresses__icon {
                    fill:#fff
                }
                & td.addresses .expand-addresses_active {
                    background-color:var(--selected-color)
                }
                & td.addresses .expand-addresses_active .expand-addresses__icon {
                    transform:rotate(270deg);
                    fill:#fff
                }
                & td.addresses .expand-addresses__icon {
                    transform:rotate(90deg);
                    fill:#000;
                    transition:all .3s ease
                }
                & td.action {
                    padding:0;
                    min-width:53px;
                    border-left:2px solid #eceef4;
                    text-align:center;
                    position:-webkit-sticky;
                    position:sticky;
                    width: 53px;
                    right: calc((var(--n-actions) - var(--n-action)) * 53px);
                }
                & td.action_blur::before {
                    content: "";
                    position: absolute;
                    top: 0;
                    left: -32px;
                    width: 30px;
                    height: 100%;
                    background: linear-gradient(270deg,#fff 70.83%,rgba(255,255,255,0) 113.26%);
                }
                & td.action_1 {
                    right:0
                }
                & td.action_2 {
                    right:53px
                }
                & td.action_left {
                    left:0;
                    border-left: none;
                }
                & td.action_2:last-child {
                    right:0
                }
                & td.action .act {
                    fill:var(--icon-color);
                    cursor:pointer;
                    height: 15px;
                    width: 15px;
                    &.act-map {
                        height: 20px;
                    }
                }
                & td.action .act.icon-active {
                    fill: var(--icon-active);
                }
                & td.action .act.icon-passive {
                    fill: var(--icon-passive);
                    cursor: auto;
                }
                & td.action .act_buy {
                    transform:rotateY(180deg)
                }
                & td.action .act_buy.act_partial {
                    fill: #ff8500;
                }
                & td.action .act_close {
                    fill:var(--icon-active);
                    height: 30px;
                    width: 30px;
                }
                & td.action .act_revert {
                    fill:var(--revert-color);
                }
                & td.action .act_map-chosen {
                    fill:var(--icon-active)
                }
                & td.action .act_disabled {
                    cursor: not-allowed;
                    fill:#eceef4
                }
                & td.active,
                & td.active .number__link {
                    color:var(--selected-color)
                }
                & td.active2 {
                    color:var(--selected-color);
                    text-decoration:underline
                }
                & td.active2.statuses {
                    text-decoration:none
                }
                & td.unactive {
                    color:var(--cell-text-passive)
                }
                & td.overdue {
                    color:red
                }
                & td.selected {
                    background-color:#d6ebff
                }
                & td.empty {
                    padding: 0;
                }
                & td.price,
                & td.count {
                    white-space: nowrap;
                    text-align: right;
                }
                & .more td {
                    height: 0;
                }
            }

        }
    }
}
.billboards__more-btn {
    margin:0 auto 4px auto;
    width:35px;
    height:28px;
    border:1px solid var(--input-border-color);
    border-radius:2px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    transition:all .3s ease;
    background-color:#fff
}
.billboards__more-btn:hover {
    background-color:var(--selected-color)!important
}
.billboards__more-btn:hover span {
    background-color:#fff!important
}
.billboards__more-btn span {
    display:block;
    width:3px;
    height:3px;
    border-radius:50%;
    background-color:#93a2b4;
    transition:all .3s ease
}
.billboards__more-btn span:not(:first-child) {
    margin-top:2px
}
.billboards__data .btn-icon-photo-add {
    background: url(../images/add-photo.png) no-repeat;
    background-size: 24px auto;
    height: 24px;
    width: 24px;
    padding: 0;
    display: inline-block;
    position: relative;
    top: 2px;
}
.billboards__sort-btn {
    position: relative;
    top: 2px;
    width: 35px;
    height: 28px;
    border: 1px solid var(--input-border-color);
    border-radius: 2px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all .3s ease;
}
.billboards__sort-btn svg {
    opacity: 0;
}
.billboards__sort-btn.inc svg {
    opacity: 1;
    transform: rotate(180deg);
}
.billboards__sort-btn.desc svg {
    opacity: 1;
}
@media(max-width: 1200px){
    .billboards {
        height: unset;
    }
    .billboards__data {
        height: unset;
    }
    .billboards .dataTables_wrapper {
        height: unset;
        max-height: 80vh;
    }
}
.billboards__data table tbody tr.get-more td {
    background-color: #f7f7f8;
}
.get-more__text {
    text-align: center;
    margin: 6px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
}
.get-more .cssload-clock {
    height: 22px;
    width: 22px;
    margin-bottom: 10px;
}
.get-more .cssload-clock:before {
    height: 20px;
    width: 20px;
    top: 1px;
    left: 1px;
    background-color: #f7f7f8;
}
.get-more .cssload-clock:after {
    left: 20px;
    top: 10px;
    height: 0.1px;
    width: 0.1px;
}
