/* calendar wrapper */

.calendar-wrapper {
    width: 100%;
    border: 1px solid #aaa;
    background-color: #d6d6d6;
}

/* calendar side */

.calendar-side {
    position: absolute;
    width: 103px;
    z-index: 100;
}

/* calendar main */

.calendar-main-wrapper {
    width: calc(100% - 102px);
    margin-left: 102px;
    overflow-x: scroll;
}

.calendar-main {
    position: relative;
}

/* calendar table */

.table.calendar {
    background-color: #f0f0f0;
    margin: 0;
}

.table.calendar .table-header-group .table-cell {
    border-right: 1px solid rgba(255,255,255,.3);
    border-bottom: none;
}

.table.calendar .table-header-group {
    background-color: #41586E;
    color: white;
}

.table.calendar .table-header {
    background-color: #41586E;
    color: white;
}

.table.calendar .table-cell,
.table.calendar .table-header {
    padding: 0;
    text-align: center;
    vertical-align: middle;
}

.table.calendar .table-header {
    border-right: 1px solid #999;
}

.table.calendar .table-cell {
    border: 1px solid #ccc;
}

.table.calendar .table-header-group .table-header {
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.table.calendar .table-body-group .table-header {
    border-bottom: 1px solid rgba(255,255,255,.3);
}

.table.calendar .table-header-group .table-cell {
    border-top: none;
}

.table.calendar .table-body-group .table-row:first-child .table-cell {
    border-top: none;
}

.table.calendar .table-body-group .table-row:last-child .table-cell {
    border-bottom: none;
}

.table.calendar .table-body-group .table-cell:first-child,
.table.calendar .table-header-group .table-cell:first-child {
    border-left: none;
}

.table.calendar .table-body-group .table-cell:last-child,
.table.calendar .table-header-group .table-cell:last-child
{
    border-right: none;
}

.table.calendar .table-cell,
.table.calendar .table-header
{
    height: 81px;
}

.table.calendar .table-header {
    white-space: nowrap;
}

.table.calendar .table-header .table-cell-content {
    width: 101px;
}

.table.calendar .table-cell-content {
    width: 98px;
}

.table.calendar .table-body .table-cell {
    background-color: #e0e0e0;
}

/* horizontal month and day header format */

.calendar-header-month {
    text-transform: uppercase;
}

.day-of-week {
    text-transform: uppercase;
}

.calendar-header-date {
    cursor: pointer;
}

.calendar-header-today {
    background-color: #FF5555 !important;
    color: white;
}

.calendar-header-past-date {
    background-color: #a0a0a0 !important;
    color: white;
}

/* vertical listing header */

.calendar-listing {
    cursor: pointer;
}

.calendar-listing:hover {
    background-color: #c0c0c0 !important;
}

/* booking */

.calendar-week .table-body-group .table-cell-content {
    height: 80px;
}

.calendar-booking {
    position: relative;
    background-color: rgba(255,255,255,1);
    height: 70px;
    left: 30%;
    width: calc(100% + 1px);
    vertical-align: middle;
    border-color: rgba(0,0,0,.8);
    border-width: 1px;
    border-style: solid;
    border-left-style: none;
    border-right-style: none;
    overflow: visible;
    cursor: pointer;
    margin-top: 5px;
    margin-bottom: 5px;
    box-shadow: 0 1px 3px rgba(90,90,90,0.3);
}

.calendar-booking.calendar-booking-blocked {
    background: repeating-linear-gradient(-45deg, white, white 5px, #ffe9e9 5px, #ffe9e9 10px);
}

.calendar-booking.calendar-booking-blocked:hover {
    background: repeating-linear-gradient(-45deg, #f0f0f0, #f0f0f0 5px, #ffd9d9 5px, #ffd9d9 10px);
}

.calendar-week .calendar-booking {
    position: relative;
    height: 82px;
    left: 20%;
    width: calc(100% + 1px);
    border-color: rgba(0,0,0,.8);
    overflow: visible;
    margin-top: -1px;
    margin-bottom: 0;
}

.calendar-booking:hover {
    background-color: #f0f0f0;
}

.calendar-booking.calendar-booking-start {
    border-top-left-radius: 35px;
    border-bottom-left-radius: 35px;
    border-left-style: solid;
    left: calc(30% + 5px);
    width: calc(100% - 4px);
}

.calendar-week .calendar-booking.calendar-booking-start {
    border-left-width: 2px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    left: calc(20% + 5px);
    width: calc(100% - 4px);
}

.calendar-booking.calendar-booking-end {
    border-top-right-radius: 35px;
    border-bottom-right-radius: 35px;
    border-right-style: solid;
}

.calendar-week .calendar-booking.calendar-booking-end {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.table.calendar .table-body-group .table-row .table-cell:first-child .calendar-booking,
.calendar-week .table.calendar .table-body-group .table-row .table-cell:first-child .calendar-booking{
    left: 0;
    width: calc(130% + 1px);
}

.calendar-week .table.calendar .table-body-group .table-row .table-cell:first-child .calendar-booking {
    width: calc(120% + 1px);
}

.table.calendar .table-body-group .table-row .table-cell:last-child .calendar-booking {
    width: 70%;
    border-right-style: none;
}

.calendar-week .table.calendar .table-body-group .table-row .table-cell:last-child .calendar-booking {
    width: 80%;
}

.table.calendar .table-body-group .table-row .table-cell:first-child .calendar-booking.calendar-booking-start {
    left: calc(30% + 1px);
    width: 100%;
}

.calendar-week .table.calendar .table-body-group .table-row .table-cell:first-child .calendar-booking.calendar-booking-start {
    left: calc(20% + 1px);
}

.table.calendar .table-body-group .table-row .table-cell:last-child .calendar-booking.calendar-booking-start {
    width: calc(70% - 5px);
}

.calendar-week .table.calendar .table-body-group .table-row .table-cell:last-child .calendar-booking.calendar-booking-start {
    width: calc(80% - 5px);
}

.table.calendar .table-body-group .table-row .table-cell:last-child .calendar-booking.calendar-booking-end {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.calendar-booking-wrapper {
    width: 100%;
    height: 100%;
}

.calendar-week .calendar-booking-wrapper {
    display: table;
}

.calendar-booking-content {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 5px;
}

.calendar-week .calendar-booking-content {
    display: block;
    text-align: left;
    vertical-align: top;
    padding: 5px 10px 5px 10px;
}

/* calendar booking content */

.booking-listing-name {
    font-size: 1em;
    font-weight: 800;
    float: left;
}

.calendar-week .booking-listing-name {
    margin-right: 5px;
    margin-top: 2px;
}

.booking-customer {
    display: block;
    font-weight: 500;
}

.booking-customer p {
    margin-bottom: 0;
}

.calendar-month .booking-customer p {
    width: 100%;
    line-height: 1.2em;
    max-height: 2.4em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-week .booking-customer {
    font-size: 1.2em;
    float: left;
    font-weight: 500;
}

.booking-host {
    font-size: 0.8em;
    line-height: 2;
    float: right;
    margin-left: 5px;
}

.booking-host.booking-host-empty {
    background-color: #FF5A5A;
    color: white;
    padding: 0 3px;
    border-radius: 10px;
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: 600;
    line-height: 16px;
}

.booking-communication {
    float: right;
}

.booking-note {
    font-size: 0.9em;
}

.calendar-week {
    line-height: 1.2em;
}

.booking-arrival {
    position: absolute;
    margin-left: 10px;
    left: 0px;
    bottom: 5px;
}

.booking-arrival-transport {
    color: #AE84ED;
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: 600;
}

.booking-arrival-transport-taxi {
    /*color: #999;*/
}

.booking-arrival-transport-bus {
    /*color: #E8AC00;*/
}

.booking-arrival-transport-grab {
    /*color: #019E35;*/
}

.booking-arrival-transport-uber {
    /*color: #0E3643;*/
}

.booking-arrival-transport-waiting,
.booking-arrival-transport-empty
{
    color: white;
    padding: 0 3px;
    border-radius: 10px;
}

.booking-arrival-transport-waiting {
    background-color: gold;
}

.booking-arrival-transport-empty {
    background-color: #FF5A5A;
}

.booking-arrival-time,
.booking-departure-time {
    font-size: 0.9em;
    font-weight: 800;
}

.booking-arrival-time {
    color: #AE84ED;
}

.booking-arrival-time.booking-arrival-time-empty {
    background-color: #FF5A5A;
    color: white;
    padding: 0 3px;
    border-radius: 10px;
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: 600;
}

.booking-departure {
    position: absolute;
    margin-right: 10px;
    right: 0px;
    bottom: 5px;
}

.booking-departure-time {
    color: #FF5A5F;
}

.calendar-week .booking-departure-time {
    margin-left: 5px;
}

.calendar-booking.calendar-booking-completed {
    box-shadow: none;
    border-color: rgba(0,0,0,.3);
    background-color: #f5f5f5;
}

.calendar-booking-arrived::before {
    content: '\2798';
    color: #AE84ED;
    position: absolute;
    display: block;
    font-weight: 800;
    font-size: 2em;
    top: 15px;
    left: -4px;
}

.calendar-week .calendar-booking-arrived::before {
    top: 35px;
}

.calendar-booking-departed::after {
    content: '\279A';
    color: #FF5A5F;
    position: absolute;
    display: block;
    font-weight: 800;
    font-size: 2em;
    top: 15px;
    right: -4px;
}

.calendar-week .calendar-booking-departed::after {
    top: 35px;
}

.calendar-booking-content-with-note::before {
    position: absolute;
    left: 5px;
    content: '\25CF';
    color: #FF5A5F;
    margin-right: 3px;
    font-size: 0.75em;
}

.calendar-booking-content-with-review {
    color: #FFB400;
}

.calendar-week .calendar-booking-content-with-review {
    float: left;
    margin-left: 5px;
}

/* DAILY CALENDAR */

.calendar-week .table.calendar .table-cell-content {
    width: 300px;
}

.calendar-week .table.calendar .table-header .table-cell-content {
    width: 98px;
}

.calendar-week .calendar-main-wrapper {
    width: 100%;
    margin-left: 0px;
}

/* \DAILY CALENDAR */

/* SEARCH */

.customer-highlight {
    background-color: yellow;
}

/* \SEARCH */

/* NAVIGATION BUTTON */

.nav-button {
    position: fixed;
    bottom: 10px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 70px;
    text-align: center;
    cursor: pointer;
    z-index: 1020;
}

.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.nav-button.prev {
    left: 10px;
}

.nav-button.next {
    right: 10px;
}

/* \NAVIGATION BUTTON */

/* BOOKING FORM */
.important-note {
    color: white;
    background-color: #FF5A5F;
    padding: 6px 12px 6px 12px;
}

.review-textarea {
    background-color: #FFE4C0;
}

/* \BOOKING FORM */

/* place holders */
.placeholder {
    background-color: #f0f0f0;
    height: 20px;
    width: 100%;
    margin-bottom: 10px;
}

.placeholder:last-child {
    width: 80%;
}

/* MOBILE */

@media screen and (max-width: 737px) {
    .calendar-wrapper {
        border: none;
        margin-left: -20px;
        position: absolute;
    }
    
    .table.calendar .table-header-group .table-cell,
    .table.calendar .table-header-group .table-header {
        height: 60px;
    }
    
    .calendar-side {
        width: 60px;
        overflow: hidden;
    }
    
    .calendar-main-wrapper {
        margin-left: 60px;
        width: calc(100% - 60px);
    }
    
    .table.calendar .table-header .table-cell-content {
        width: 60px;
    }
    
    .calendar-booking-content {
        padding: 5px;
    }
}

/* \\\MOBILE */

/* PRINT */

@media print {
    .main-container {
        padding: 0px;
    }
    
    .calendar-wrapper {
        margin-top: 30px;
        border: 2px solid black;
    }
    
    .calendar-booking {
        background-color: rgba(255,255,255,.9) !important;
        border-color: black;
    }
    
    .calendar-booking.calendar-booking-blocked {
        background: repeating-linear-gradient(-45deg, white, white 5px, #ffd9d9 5px, #ffd9d9 10px) !important;
    }
    
    .calendar-booking-content-arrived::before {
        display: none;
    }
    
    .calendar-booking-content-with-note::before {
        display: none;
    }
    
    .calendar-booking-content-with-review::before {
        display: none;
    }
    
    .table.calendar .table-cell,
    .table.calendar .table-header {
        background-color: transparent !important;
        border: 1px solid black !important;
    }
    
    .table.calendar .table-header-group .table-cell {
        border-bottom: 1px solid black;
    }
    
    ::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
    
    .calendar-booking-departed::after,
    .calendar-booking-arrived::before {
        display: none !important;
    }
}

/* \\\PRINT */