.hotel-reservation-history__search form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: flex-end;
    grid-gap: 20px;
    border-top: 1px solid #c5c5c5;
    border-bottom: 1px solid #c5c5c5;
    padding: 20px 0;
    margin-bottom: 20px;
}

.hotel-reservation-history__search .search__input,
.hotel-reservation-history__search .search__select {
    height: 40px;
    font-size: 16px;
    padding: 0 20px;
    width: 100%;
    color: #353535;
    border: 1px solid #c5c5c5;
}

.hotel-reservation-history__search .search__select + .select2-container {
    border: 1px solid #c5c5c5;
}

.hotel-reservation-history__search .search__select {
    background-image: url(../../../img/arrow-down.png);
    background-repeat: no-repeat;
    background-position: 95% center;
    -webkit-appearance: none;
}

.hotel-reservation-history__search label {
    display: block;
    font-size: 14px;
}

.hotel-reservation-history__search button[type="submit"] {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    background: #ffc219 url(../../../img/tour/history/ico-zoom.png) no-repeat 7%;
    outline: none;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 20px;
}

.hotel-reservation-history__items {
    margin-bottom: 40px;
}

.hotel-reservation-history__item {
    margin-bottom: 20px;
}

.hotel-reservation-history__item-header {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr 3fr 2fr 1fr 3fr 2fr 50px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.hotel-reservation-history__item-header-col {
    border-left: 1px solid white;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    padding: 5px;
    position: relative;
}

.hotel-reservation-history__item-header-col [class^="messages-counter"] {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 8px;
    color: white;
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ff0000;
}

.hotel-reservation-history__item-header-col:first-child {
    border-left: none;
}

.hotel-reservation-history__item-header-col {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    min-height: 60px;
}

.hotel-reservation-history__item-header-col .documents {
    background: url(../../../img/tour/history/ico-document-inactive.png) center no-repeat;
    display: block;
    width: 16px;
    height: 22px;
}

.hotel-reservation-history__item-header-col .arrow {
    display: block;
    width: 11px;
    height: 6px;
    background: url(../../../img/arrow-white-down.png) center no-repeat;
}

.hotel-reservation-history__item-header-col .arrow.up {
    transform: rotate(180deg);
}

.hotel-reservation-history__item-header-col .documents.active {
    background-image: url(../../../img/tour/history/ico-document.png);
}

.hotel-reservation-history__item-body {
    border: 1px solid #c5c5c5;
    border-top: none;
    padding: 20px;
    background-color: #fafafa;
}

.hotel-reservation-history__item-body h2 {
    font-size: 22px;
    border-bottom: 1px solid #c5c5c5;
    padding-bottom: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.hotel-reservation-history__item-sub-header {
    border-bottom: 1px solid #c5c5c5;
    padding-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 10px 20px;
    margin-bottom: 10px;
}

.hotel-reservation-history__item-sub-header-col {
    display: flex;
    flex-direction: column;
}

.hotel-reservation-history__item-sub-header label {
    color: #616161;
    font-size: 14px;
    margin-bottom: 10px;
}

.hotel-reservation-history__item-sub-header span {
    color: #010101;
    font-size: 16px;
    font-weight: bold;
}

.hotel-reservation-history__item-info h3 {
    font-size: 18px;
    color: #05729b
}

.hotel-reservation-history__item-info-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid #c5c5c5;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.hotel-reservation-history__item-info-col {
    display: flex;
    flex-direction: column;
}

.hotel-reservation-history__item-info-col label {
    color: #5b5b5b;
    font-size: 14px;
    margin-bottom: 10px;
}

.hotel-reservation-history__item-info-col span {
    color: #353535;
    font-size: 18px;
    font-weight: 600;
    word-break: break-all;
}

.hotel-reservation-history__item-comment {
    font-size: 16px;
    color: black;
    font-weight: 600;
    border-bottom: 1px solid #c5c5c5;
    padding-bottom: 25px;
    margin-bottom: 20px;
}

.hotel-reservation-history__item-comment label {
    font-weight: normal;
    font-size: 14px;
    color: #5b5b5b;
    margin-bottom: 15px;
}

.hotel-reservation-history__item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hotel-reservation-history__item-footer > div {
    margin-left: 10px;
}

.hotel-reservation-history__item-footer > div:first-child {
    margin-left: 0;
}

.hotel-reservation-history__item-footer > div.hotel-reservation-history__item-update-history {
    margin-left: auto;
}

.hotel-reservation-history__item-documents {
    display: flex;
}

.hotel-reservation-history__item-documents:before {
    content: '';
    background: url(../../../img/tour/history/ico-document-gray.png) center no-repeat;
    width: 16px;
    height: 22px;
    margin-right: 10px;
}

.hotel-reservation-history__item-documents a {
    padding-right: 20px;
    color: #616161;
    font-size: 16px;
}

.hotel-reservation-history__item-footer a:hover {
    color: #ffc219;
}

.hotel-reservation-history__legend {
    display: flex;
    margin-top: 60px;
    flex-wrap: wrap;
}

.hotel-reservation-history__legend-item {
    display: flex;
    margin-bottom: 15px;
}

.hotel-reservation-history__legend-item span {
    width: 14px;
    height: 14px;
}

.hotel-reservation-history__legend-item label {
    padding: 0 20px 0 10px;
    font-size: 14px;
    color: #5b5b5b;
}

.hotel-reservation-history__totals td {
    border: 1px solid #c5c5c5;
    text-align: center;
    width: calc(100% / 8);
}

.hotel-reservation-history__totals thead td {
    background-color: #05729b;
    color: white;
    font-weight: bold;
}

.hotel-reservation-history__items .car-icon {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.hotel-reservation-history__items .car-icon label {
    margin-bottom: 0;
}

.hotel-reservation-history__fly-data {
    display: flex;
    margin-left: 30px;
    align-items: center;
}

.hotel-reservation-history__fly-data a {
    display: flex;
    align-items: center;
    color: #05729b;
    text-decoration: underline;
    font-size: 18px;
}

.hotel-reservation-history__fly-data a:before {
    content: '';
    width: 29px;
    height: 11px;
    display: block;
    background: url('../../../img/hotel/flight.svg') no-repeat;
    margin-right: 10px;
}

.hotel-reservation-history__items .car-icon:before {
    content: '';
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background: url(../../../img/transfer/car-icon.png) center no-repeat;
}

.hotel-reservation-history__item-dialog a.unread {
    color: #ef5858;
}

.hotel-reservation-history__item-info .copy-btn {
    margin-left: 10px;
}

@media (max-width: 1199px) {
    .hotel-reservation-history__search form,
    .hotel-reservation-history__item-sub-header,
    .hotel-reservation-history__item-info-row,
    .hotel-reservation-history__item-header {
        grid-template-columns: repeat(3, 1fr);
    }
    .hotel-reservation-history__item-header {
        grid-template-columns: repeat(4, 1fr);
    }
    .hotel-reservation-history__item-header-col:nth-child(4n + 1) {
        border-left: none;
    }
    .hotel-reservation-history__item-header-col {
        border-bottom: 1px solid white;
    }
}

@media (max-width: 767px) {

    .hotel-reservation-history__legend,
    .hotel-reservation-history__item-documents,
    .hotel-reservation-history__item-footer {
        flex-direction: column;
    }
    .hotel-reservation-history__item-documents:before {
        margin-bottom: 10px;
    }
    .hotel-reservation-history__item-documents:before,
    .hotel-reservation-history__item-documents a {
        padding: 0;
        margin: 0 0 10px 0;
        align-self: center;
    }
    .hotel-reservation-history__item-body {
        text-align: center;
    }
    .hotel-reservation-history__search button[type="submit"] {
        justify-self: center;
        max-width: 200px;
    }
    .hotel-reservation-history__item-header-col {
        border-left: none;
    }
    .hotel-reservation-history__item-footer {
        flex-direction: column;
    }
    .hotel-reservation-history__item-header-col {
        border-left: none;
    }
    .hotel-reservation-history__item-footer > div {
        margin-bottom: 10px;
    }
    .hotel-reservation-history__item-footer > div:not(:first-child) {
        margin-left: 0;
    }
    .hotel-reservation-history__item-header-col {
        min-height: 50px;
    }
    .hotel-reservation-history__item-body h2 {
        flex-direction: column;
        align-items: center;
    }
    .hotel-reservation-history__item-body h2 a {
        margin-top: 10px;
    }
}

@media (max-width: 575px) {
    .hotel-reservation-history__search form,
    .hotel-reservation-history__item-sub-header,
    .hotel-reservation-history__item-info-row,
    .hotel-reservation-history__item-header {
        grid-template-columns: 1fr;
    }
    .hotel-reservation-history__totals {
        display: flex;
    }
    .hotel-reservation-history__totals thead,
    .hotel-reservation-history__totals tbody {
        width: 50%;
    }
    .hotel-reservation-history__totals tr {
        display: block;
    }
    .hotel-reservation-history__totals td {
        display: block;
        width: 100%;
    }
    .hotel-reservation-history__item-sub-header,
    .hotel-reservation-history__item-info-row {
        grid-gap: 5px 20px;
        border-bottom: none;
    }
    .hotel-reservation-history__item-sub-header-col,
    .hotel-reservation-history__item-info-col,
    .hotel-reservation-history__item-comment {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: left;
        grid-column-gap: 10px;
        border-bottom: 1px solid #c5c5c5;
        padding-bottom: 5px;
        margin-bottom: 5px;
        align-items: center;
    }
    .hotel-reservation-history__item-body h2 {
        font-size: 18px;
    }
    .hotel-reservation-history__item-comment {
        padding-bottom: 10px;
    }
    .hotel-reservation-history__item-info h3 {
        margin-bottom: 10px;
    }
    .hotel-reservation-history__item-sub-header label {
        margin-bottom: 0;
    }
}
