/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.hide{
    display: none !important;
}

.bookingSubHeader {
    font-size: calc(1.325rem + .9vw);
}

.fc .fc-toolbar-title{
    font-size: inherit;
}

.fc .fc-col-header-cell-cushion::before{
    display: none;
}

.fc-bg-event.annual_leave.bank_holiday {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #323b50;
    color: white;
    opacity: 1;
    z-index: 1;
}

.fc-bg-event.annual_leave.bank_holiday .fc-event-title{
    font-style:normal;
    color:#fff;
}

.fc .fc-day-other .fc-daygrid-day-top{
    opacity: 1;
}

.bankHolidayDay{
    color: #ffffff !important;
}

.fc-event-half {
    width: 50% !important;
    white-space: normal;
}

#officeCalendar a:before {
    display:none!important;
}

.fc .fc-daygrid-day-top {
    flex-direction: row;
    justify-content: center;
    margin-bottom: 10px;
    position: absolute;
    width: 100%;
    left: 0;
    top: 10px;
    z-index: 2;
}

table.fc-col-header {
    margin-bottom: 0;
    background: linear-gradient(45deg, #8b3d5c 0, #ff1f7a 100%);
}

.event-title-custom{
    display:block;
}

.fc-day-other .fc-daygrid-day-number,
.fc-day-past .fc-daygrid-day-number {
    color: rgb(195 195 195)!important;
}

.event-title-custom.bank-hol{
    text-align:center;
    margin-bottom:5px;
    color:#fff;
}

.modal-body button{
    color: #fff!important;
    line-height: normal!important;
    padding: 0.6em 1.5em!important;
    border-radius: 0!important;
    border: none!important;
    cursor:pointer;
}
#requestConfirmBtn{
    background-color:#90c25c;
    margin:0 10px;
}

#requestCancelBtn{
    background-color:#B33A3A;
    margin:0 10px;
}

#officeCalendar .fc-day-future{
    cursor:pointer;
}

table.fc-col-header a{
    font-weight:bold;
    color:#fff;
    text-decoration: none;
}

td.fc-daygrid-day.fc-day,
td.fc-daygrid-day.fc-day.fc-day-today {
    background-color: #eeeeee;
}

.fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    color: #fff;
    background-color: #323b50;
    border-radius: 100%;
    text-align: center;
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.fc .fc-daygrid-day-frame {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

table.fc-scrollgrid-sync-table {
    margin-bottom: 0;
}

th.fc-col-header-cell.fc-day {
    border: none!important;
    padding: 15px;
}

.fc .fc-daygrid-day-number{
    color: #373d43;
    font-family: 'Helvetica LT W01 Light',Helvetica,Arial,sans-serif;
    font-weight: 100;
}

.fc .fc-daygrid-day-number::before{
    display: none;
}

.fc-theme-standard td:first-child {
    border-left: 1px dashed #000;
}

.fc-theme-standard td, .fc-theme-standard th{
    border: 1px dashed #000;
    /*border: 1px dashed var(--fc-border-color,#000);*/
}

/*.fc-theme-standard td:last-child {
    border-right: none;
    border-bottom: none;
}

.fc-theme-standard th:last-child,
.fc-scrollgrid-section-header td,
.fc-theme-standard .fc-scrollgrid,
.fc .fc-scrollgrid-section-liquid>td,
.fc .fc-scrollgrid-section{
    border: none;
}*/

/**
 * Firefox specific rule
 */
@-moz-document url-prefix() {
    
    td.fc-daygrid-day.fc-day{
        background-color: transparent;
    }       
    
}

.tabs{
    margin-top: 0px;
    float: right;
    margin-right: -50px;
    width: calc(100% + 50px);
}

.tab {
    box-sizing: border-box;
    padding: 15px 20px;
    cursor: pointer;
}

.tab.active {
    background-color: #ffffff;
}

.tab:not(.active):nth-child(1n+1){
    background-color: #e9e9e9;
}

.tab:not(.active):nth-child(2n+1){
    background-color: #eeeeee;
}

.tab:hover span{
    font-family: 'Helvetica Neue LT W01_75 Bold',Helvetica,arial,sans-serif;
    cursor:pointer;
}
.tab.active span{
    font-family: 'Helvetica Neue LT W01_75 Bold',Helvetica,arial,sans-serif;
}
.tabContent{
    display:none;
    transition:1s;
}
.tabContent.active{
    display:block;
}
.annual_leave {
    padding: 5px 10px;
}
.fc-event-title{
    font-weight:600;
}
.annual_leave .fc-event-title:after{
    content:'';
    display:block;
    font-style:italic;
    font-weight:300;
    font-size:12px;
}


a.annual_leave.approved {
    background-color: #3f54af!important;
}

a.annual_leave.rejected {
    background-color:#B33A3A!important;
}

#officeCalendar a.fc-daygrid-event{
    position:relative;
    top:10px;
    border:none;
}

#officeCalendar .fc-event-title,
.fc-event-title,
.fc-event{
    font-size: 14px;
    line-height: 17px;
}

.calendarIndexItem{
    margin-right:20px; display:inline-block; color:#778496;
}

.calendarIndexItem .colorIndicator{
    display:inline-block;vertical-align:top; margin-right:10px;
}

.calendarIndexItem .colorIndicator span{
    width:22px; height:22px; background-color:#3f54af; border-radius:100%; display:block;
}

.calendarIndexItem .textIndicator{
    display:inline-block;vertical-align:top;
}

.in-office {
    background-color: #90c25c!important;
}

.fc-event-main *{
    font-family: 'Helvetica LT W01 Light',Helvetica,Arial,sans-serif;
}

.fc-event-main strong{
    font-family: 'Helvetica Neue LT W01_75 Bold',Helvetica,arial,sans-serif!important;
}

.fc .fc-daygrid-day-number {
    font-family: 'Helvetica LT W01 Light',Helvetica,Arial,sans-serif!important;
    font-size: 16px;
}

.fc-daygrid-event{
    margin:10px 0;
    display:block;
}
.fc-daygrid-event .fc-event-main-frame *{
    color:#fff;
}
.fc-daygrid-day-events .fc-daygrid-event-harness:last-child a {
    margin-bottom: 0;
}
a.fc-daygrid-event{
    width: 100%;
    white-space: normal;
}

#officeCalendar .fc--button {
    display: none!important;
}

#officeCalendar .fc-direction-ltr .fc-button-group>.fc-button:not(:last-child) {
    border-top-right-radius: unset!important;
    border-bottom-right-radius: unset!important;
}

#officeCalendar button.fc-button.fc-button-primary {
    color: #778496;
    background-color: transparent;
    border: none;
}

#officeCalendar .fc-button.active{
    color: #85b450!important;
    border-top: 7px solid #85b450!important;
    border-radius: 0!important;
    font-weight:bold!important;
}

#holidaySubmitForm input {
    display: inline-block;
    width: 185px;
    border: 1px solid #323b50;
    background-image: url(/wp-content/plugins/office_bookings/public/img/icon_calendar.png);
    background-repeat: no-repeat;
    background-size: 37px 38px;
    background-position: left 10px center;
    padding: 15px 10px 15px 70px;
    outline: 0;
}

#submitHolidayRequestBtn{
    border-radius:0;
    line-height:initial!important;
    box-sizing:border-box;
}

.submitHolidayContainer .rightCol{
    width:calc(50% - 15px);
    position:relative;
}

.submitHolidayContainer .leftCol{
    width:calc(50% - 15px);
}

.submitHolidayContainer{
    display:flex;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
}

.loading{
    width:40px;
    height:40px;
    display:block;
    background-image:url('../img/icon_loading.gif');
    background-size:contain;
    background-position:center;
    margin:0 auto;
}

@media screen and (max-width: 1190px){
    
    .tabs {
        margin-top: 10px;
        float: right;
        margin-right: 0px;
        width: calc(100%);
    }
    
}

/************************
*   OFFICE BOOKING STYLES
************************/

#officeCalendar.fc .fc-button-primary{                
    background-color: transparent !important;
    border-color: transparent !important;
    padding: 0;
    margin: 0;
}

.fc .fc-button-primary:focus,
.fc .fc-button:focus{
    box-shadow: none !important;
}

#officeCalendar.fc-daygrid-event-dot {
    display: none;
}
    
#officeCalendar.fc .fc-daygrid-day-frame{
    justify-content: normal;
}

#officeCalendar.fc .fc-daygrid-day-top{
    display: none;
}

#officeCalendar.fc .fc-daygrid-event-harness{
    float: none;
    display: inline-block;
    vertical-align: top;
    width: calc(33.33% - 2px);
    margin-right: 2px;
}

#officeCalendar.fc-theme-standard td:first-child {
    border-left: 1px dashed #000;
}

#officeCalendar.fc-theme-standard td{
    /*border: none;*/
    border-right: 1px dashed #000;
}

#officeCalendar.fc-theme-standard .fc-scrollgrid{
    border: none;
}

.fc-event-obooking-img {
    background-position: center center;
    background-size: cover;
    border-radius: 100%;
}

/**
 * Firefox specific rule
 */
@-moz-document url-prefix() {
    
    #officeCalendar td.fc-daygrid-day.fc-day{
        background-color: transparent;
    }
    
    #officeCalendar.fc-theme-standard td{
        /*border: none;*/
        border-right: 1px dashed #000;
    }
    
}

#officeCalendar.fc-theme-standard td:last-child{
    /*border: none;*/
}

.bookingPanelContainer{
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: block;
    font-size: 12px;
    color: #000;
    text-align: center;
}

.bookingPanelContainer form{
    margin: 0;
}

.bookingPanelTitle{
    font-family: 'Helvetica Neue LT W01_75 Bold',Helvetica,arial,sans-serif;
    color: #373d43;
    font-size: 18px;
    line-height: 22px;
}

.bookingPanelEmployeeCount {
    font-size: 14px;
    line-height: 18px;
}

.bookingPanelButton {
    position: relative;
    margin-top: 15px;
}

a.obooking {
    border: none;
    padding-bottom: 0;
    margin-top: 0;
    background-color: transparent;
}

a.obooking::before{
    display: none;
}

a.bookMeIn.bookingButtonPlus{
    background-color: #f6c244;
    box-sizing: border-box;
    border-radius: 100%;
    padding: 12px 8px;
    margin-top: 10px;
}

a.bookMeOut.bookingButtonMinus{
    background-color: #90c25c;
    box-sizing: border-box;
    border-radius: 100%;
    padding: 12px 8px;
    margin-top: 10px;
}

a.bookMeOut:hover {
    background-color: red;
}

a.bookingButtonLocked{
    background-color: #323b50;
    box-sizing: border-box;
    border-radius: 20px;
    padding: 8px;
    margin-top: 10px;
    cursor: default;
}

a.bookMeIn.bookingButtonPlus::before,
a.bookMeOut.bookingButtonMinus::before,
a.bookingButtonLocked::before{
    display: none;
}

a.bookMeIn.bookingButtonPlus img,
a.bookMeOut.bookingButtonMinus img,
a.bookingButtonLocked img{
    display: inline-block;
}

.fc-event-obooking-img img {
    display: block;
    /*max-width: 50px;*/
    width: 100%;
    height: auto;
    border-radius: 35px;
}

.obooking-user-initials {
    background-color: #ff1f7a;
    display: inline-block;
    width: 50px;
    height: 50px;
    box-sizing: border-box;
    border-radius: 35px;
    text-align: center;
    padding-top: 17px;
    color: #ffffff;
    letter-spacing: 1px;
}

.bank_holiday .obooking-user-initials {
    width: auto;
    border-radius: 0px;
    background-color: transparent;
    padding-top: 0;
    height: auto;
}

form .error{
    border:1px solid red !important;
}

#formOfficeBookingRequest {
    margin: 0;
    padding: 0;
}

#formOfficeBookingRequest fieldset,
#holidaySubmitForm fieldset {
    border: 0;
    margin: 0 0 15px 0;
    padding: 0;
}

#formOfficeBookingRequest label,
#holidaySubmitForm label{
    display: inline-block;
    width: 50px;
    text-align: right;
    padding-right: 5px;
}

#formOfficeBookingRequest input[type="text"],
#holidaySubmitForm input[type="text"] {
    display: inline-block;
    width: 170px;
    border: 1px solid #323b50;
    background-image: url('/wp-content/plugins/office_bookings/public/img/icon_calendar.png');
    background-repeat: no-repeat;
    background-size: 37px 38px;
    background-position: left 10px center;
    padding: 15px 10px 15px 70px;
    outline: 0;
}

#holidaySubmitForm fieldset:last-child {
    margin: 0;
}

.obookingOverlay {
    background-color: rgb(238,238,238, 0.8);
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    z-index: 2;
    opacity: 1;
    justify-content: center;
}

.obookingLoader {
    position: relative;
    width: 50px;
    height: 50px;
    align-self: center;
}

.obookingRequestContainer {
    display: flex;
    margin-top: 40px;
    align-items: end;
}

.obookingRequestColOne{
    flex: 1 1 45%;
    align-self: flex-start;
    box-sizing: border-box;
    padding-right: 30px;
}

.obookingRequestColTwo{
    flex: 1 1 30%;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.obookingRequestColThree{
    position: relative;
    flex: 1 1 25%;
}

.obookingRequestColThree input[type=submit] {
    top: 0px;
    bottom: 0;
    outline: 0;
    cursor: pointer;
    margin-left: auto;
    display: block;
}

#setOBookingTitleDateRange,
#setSummaryTeam{
    font-family: 'Helvetica Neue LT W01_75 Bold',Helvetica,arial,sans-serif;
}

div#weekNavigation,
div#monthNavigation{
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    width: 90%;
    box-sizing: border-box;
    padding: 0 10px;
}

div#monthNavigation{
    margin: 40px auto -35px auto;
}

div#teamNavigation {
    display: flex;
    margin: 40px auto 20px auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0px;
}

.teamSummary{
    margin: 20px 0px 20px 0;;
}

.teamSummary h2{
    font-size: 30px;
    line-height: 34px;
}

.obookingNav.gotoWeek,
.teamNav.teamFilter,
.mycalendarNav.gotoMonth{
    color: #373d43;
    font-weight: 100;
    font-family: 'Helvetica LT W01 Light',Helvetica,Arial,sans-serif;
    font-size: 24px;
    line-height: 28px;
    padding: 0 2px;
    box-sizing: border-box;
    outline: 0;
}

.teamNav.teamFilter{
    display: inline-block;
    margin-right: 20px;
}

.obookingNav.gotoWeek::before,
.teamNav.teamFilter::before,
.mycalendarNav.gotoMonth::before{
    display: block;
    border-top: 8px solid #ff1f7a;
    width: 100%;
    height: 8px;
    top: -20px;
    opacity: 0;
    transition: all 0.4s;
}

.obookingNav.gotoWeek.active,
.obookingNav.gotoWeek.active:hover,
.teamNav.teamFilter.active,
.teamNav.teamFilter.active:hover,
.mycalendarNav.gotoMonth.active,
.mycalendarNav.gotoMonth.active:hover{
    font-size: 24px;
    line-height: 28px;
    font-weight: 600;
    font-family: 'Helvetica Neue LT W01_75 Bold',Helvetica,arial,sans-serif;
    color: #ff1f7a;  
    opacity: 1;
}

.obookingNav.gotoWeek:hover,
.teamNav.teamFilter:hover,
.mycalendarNav.gotoMonth:hover{
    font-size: 24px;
    line-height: 28px;
    font-weight: 100;
    font-family: 'Helvetica LT W01 Light',Helvetica,Arial,sans-serif;
    color: #ff1f7a;  
    opacity: 1;
}

.obookingNav.gotoWeek.active::before,
.obookingNav.gotoWeek:hover::before,
.teamNav.teamFilter.active::before,
.teamNav.teamFilter:hover::before,
.mycalendarNav.gotoMonth.active::before,
.mycalendarNav.gotoMonth:hover::before{
    display: block;
    border-top: 8px solid #ff1f7a;
    width: 100%;
    height: 8px;
    top: -20px;
    opacity: 1;
}

@media screen and (max-width: 954px){
    
    .obookingRequestContainer{
        flex-direction: column;
    }
    
    .obookingRequestColOne{
        flex: 1 1 100%;
    }
    
    .obookingRequestColTwo{
        margin: 15px 0px 10px 0;
        width: 100%;
    }

    .obookingRequestColThree {
        width: 100%;
    }
    
    .obookingRequestColThree input[type=submit] {       
        position: relative !important;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    #formOfficeBookingRequest input[type="text"], #holidaySubmitForm input[type="text"] {
        width: 90%;
    }
    
    #oBookingRequestSubmit {
        width: 100%;
    }
    
}

@media screen and (max-width: 767px){
    
    #officeCalendar.fc .fc-daygrid-event-harness{
        width: calc(50% - 2px);
        margin-right: 2px;
    }
    
    .bookingPanelTitle{
        display: none;
    }
    
    .bookingPanelEmployeeCount{
        font-size: 12px;
        line-height: 16px;
    }
    
    .bookingPanelContainer{
        bottom: 10px;
    }
    
    .fc-event-obooking-img img{
        /*max-width: 30px;*/
    }
    
    .obooking-user-initials {
        width: 30px;
        height: 30px;
        font-size: 12px;
        line-height: 16px;
        padding-top: 7px;
    }
    
    .obookingRequestContainer {
        align-items: start;
    }

    .obookingRequestColTwo{
        justify-content: flex-start;
    }
    
    .obookingNav.gotoWeek,
    .obookingNav.gotoWeek.active,
    .obookingNav.gotoWeek.active:hover,
    .teamNav.teamFilter,
    .teamNav.teamFilter.active,
    .teamNav.teamFilter.active:hover,
    .mycalendarNav.gotoMonth,
    .mycalendarNav.gotoMonth.active,
    .mycalendarNav.gotoMonth.active:hover{
        font-size: 16px !important;
        line-height: 20px;
    }
    
    .weekPast3,
    .weekPast2,
    .weekFuture2,
    .weekFuture3{
        display: none !important;
    }
    
    #teamCalendar .fc-daygrid-event{
        font-size: 14px;
        white-space: normal;
    }
    
    .teamSummary h2{
        font-size: 21px;
        line-height: 25px;
    }
    
}

@media screen and (max-width: 581px) {
    #formOfficeBookingRequest input[type="text"], #holidaySubmitForm input[type="text"] {
        width: 100%;
    }
}

/***************************
*   TEAMS (IN & OUT) STYLES
***************************/
#teamCalendar.fc .fc-daygrid-day-top {
    flex-direction: row;
    justify-content: center;
    margin-bottom: 5px;
    position: relative;
    width: 100%;
    left: 0;
    top: 0px;
}

#teamCalendar.fc .fc-daygrid-day-frame {
    padding: 10px;
    display: block;
    flex-direction: column;
    justify-content: center;
}

#teamCalendar.fc .fc-button-primary{                
    background-color: transparent !important;
    border-color: transparent !important;
    padding: 0;
    margin: 0;
}

#teamCalendar .fc-event-title.fc-sticky {
    background-color: transparent;
    box-sizing: border-box;
    padding: 2px 5px;
    width: 100%;    
}

#teamCalendar .fc-daygrid-event{
    background-color: #323b50;
    border: 1px solid #dedede;
    border-radius: 0px;
    margin: 2px 0px;
    padding: 0 2px;
}

#teamCalendar .fc-daygrid-event::before{
    display: none;
}

.modale:before {
    content: "";
    display: none;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
  }
  .opened:before {
    display: block;
  }
  .opened .modal-dialog {
    -webkit-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    top: 20%;
  }
  .modal-dialog {
    background: #fefefe;
    border: #333333 solid 0px;
    border-radius: 5px;
    text-align:center;
    position: fixed;
    left: 50%;
    top: -100%;
    z-index: 11;
    width: 40%;
    box-shadow:0 5px 10px rgba(0,0,0,0.3);
    -webkit-transform: translate(-50%, -500%);
    -ms-transform: translate(-50%, -500%);
    transform: translate(-50%, -500%);
    -webkit-transition: -webkit-transform 0.3s ease-out;
    -moz-transition: -moz-transform 0.3s ease-out;
    -o-transition: -o-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-body input{
    width:200px;
    padding:8px;
    border:1px solid #ddd;
    color:#888;
    outline:0;
    font-size:14px;
    font-weight:bold
  }
  .modal-header,
  .modal-footer {
    padding: 10px 20px;
  }
  .modal-header {
    border-bottom: #eeeeee solid 1px;
  }
  .modal-header h2 {
    font-size: 20px;
  }
