/* VACATION */
#vac-popup {
    z-index: 999;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: rgba(37, 36, 36, 0.75)
}
#vac-popup.hidden {
    display: none;
}

#vac-popup-box {
    width: 33.5rem;
    padding: 1.688rem 2rem 2rem 2rem;
    border-radius: 0.5rem;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
}

#vac-popup-header {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#vac-title-wrapper {
    margin-bottom: 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
}
#vac-title {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 700;
    color: #363636;
}
.icons-calendar {
    background-color: #5B5FC7;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 1.563rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-right: 1px;
    border-radius: 3px;
    margin-right: 0.875rem;
}

#vac-popup-close {
    margin-top: -0.188rem;
    margin-right: -0.5rem;
    height: 2rem;
    width: 2rem;
    border-radius: 0.25rem;
    background-color: unset;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
#vac-popup-close svg {
    color: #0F0F0F;
}
#vac-popup-close svg path:last-child {
    display: none;
}
#vac-popup-close:hover svg {
    color: #5B5FC7;
}
#vac-popup-close:hover svg path:first-child {
    display: none;
}
#vac-popup-close:hover svg path:last-child {
    display: inline;
}

/*FORM*/
#vac-popup-form {
    display: flex;
    flex-direction: column;
}
#vac-name, #vac-duration {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.875rem;
    align-items: center;
}

#vac-full_name-button, #vac-start_date, #vac-end_date {
    flex: 1;
    -webkit-appearance: none;
    box-shadow: none !important;
    outline: none;
    border: none;
    background-color: #F5F5F5;
    border-radius: 0.25rem;
    border-color: transparent!important;
    border-bottom: 2px solid transparent!important;
    padding: 0 0.75rem;
    color: #616161;
    font-size: 0.875rem;
    cursor: pointer;
}
#vac-full_name-button:hover, #vac-start_date:hover, #vac-end_date:hover {
    outline: 1px solid #616161;
}
#vac-full_name-button:focus, #vac-start_date:focus, #vac-end_date:focus {
    border-bottom-color: #5B5FC7!important;
}

#vac-full_name-button {
    display: flex;
    align-items: center;
    height: 2.125rem;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221.3em%22%20height%3D%221.3em%22%20fill%3D%22%23616161%22%20viewBox%3D%220%200%2020%2020%22%20class%3D%22icons-chevron-down%22%3E%3Cpath%20d%3D%22M15.85%207.65c.2.2.2.5%200%20.7l-5.46%205.49a.55.55%200%200%201-.78%200L4.15%208.35a.5.5%200%201%201%20.7-.7L10%2012.8l5.15-5.16c.2-.2.5-.2.7%200Z%22%20fill%3D%22%23616161%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    padding-right: 2.4rem;
    background-position: center right 0.625rem;
    background-size: 1.15rem 1.15rem;
}
#vac-full_name-button .ui-icon {
    display: none;
}
.ui-selectmenu-menu {
    z-index: 9999;
}
#vac-full_name-menu {
    padding: 0.5rem 0;
    border: 0 none;
    border-radius: 0.25rem;
    color: #616161;
    font-size: 0.875rem;
    font-weight: 400;
    box-shadow: rgba(0, 0, 0, 0.11) 0px 1.2px 3.6px, rgba(0, 0, 0, 0.13) 0px 6.4px 14.4px;
}
#vac-full_name-menu .ui-menu-item:not(.ui-state-disabled) {
    height: 2rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}
#vac-full_name-menu .ui-menu-item .ui-menu-item-wrapper {
    border: 0 none;
    padding: 0;
}
#vac-full_name-menu .ui-menu-item .ui-state-active {
    margin: unset;
    background: unset;
    font-weight: 400;
    color: #616161;
}
#vac-full_name-menu .ui-menu-item:has(.ui-state-active) {
    background-color: #E6E6E6;
}

#vac-start_date, #vac-end_date {
    height: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221.15em%22%20height%3D%221.15em%22%20fill%3D%22%23616161%22%20viewBox%3D%220%200%2020%2020%22%20class%3D%22icons-date-picker%22%3E%3Cpath%20d%3D%22M14.5%203A2.5%202.5%200%200%201%2017%205.5v9a2.5%202.5%200%200%201-2.5%202.5h-9A2.5%202.5%200%200%201%203%2014.5v-9A2.5%202.5%200%200%201%205.5%203h9Zm0%201h-9C4.67%204%204%204.67%204%205.5v9c0%20.83.67%201.5%201.5%201.5h9c.83%200%201.5-.67%201.5-1.5v-9c0-.83-.67-1.5-1.5-1.5ZM7%2011a1%201%200%201%201%200%202%201%201%200%200%201%200-2Zm3%200a1%201%200%201%201%200%202%201%201%200%200%201%200-2ZM7%207a1%201%200%201%201%200%202%201%201%200%200%201%200-2Zm3%200a1%201%200%201%201%200%202%201%201%200%200%201%200-2Zm3%200a1%201%200%201%201%200%202%201%201%200%200%201%200-2Z%22%20fill%3D%22%23616161%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    padding-right: 2.4rem;
    background-position: center right 0.625rem;
    background-size: 1.15rem 1.15rem;
}

.vac-icon, .vac-icon-arrow {
    display: flex;
    width: 2rem;
}
.vac-icon {
    padding-right: 0.625rem;
}
.vac-icon path, .vac-icon-arrow path, .icons-date-picker path {
    fill: #616161;
}
.icons-date-picker {
    align-self: center;
}

#vac-form-buttons {
    margin-top: 1.25rem;
    display: flex;
    justify-content: end;
    gap: 0.5rem;
}

#vac-btn-save, #vac-btn-remove, #vac-btn-confirm, #vac-btn-cancel {
    height: 2rem;
    padding: 0.313rem 0.75rem;
    border: 1px solid!important;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}
#vac-btn-save {
    width: 6rem;
    background-color: #5B5FC7;
    border-color: #5B5FC7!important;
    color: #FFFFFF;
}
#vac-btn-save:hover {
    background-color: #4348A3;
    border-color: #4348A3!important;
}
#vac-btn-remove, #vac-btn-cancel {
    color: #616161;
    background-color: #FFFFFF;
    border-color: #D1D1D1!important;
}
#vac-btn-remove:hover, #vac-btn-cancel:hover {
    background-color: #F8F8F8;
    border-color: #D1D1D1!important;
}
#vac-btn-remove {
    display: none;
}

/* Invalid input */
#vac-full_name.invalid + #vac-full_name-button, #vac-start_date.invalid, #vac-end_date.invalid {
    outline: 0.125rem solid #C41F2B;
}

/*CONFIRMATION*/
#vac-form-confirmation {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#vac-msg-confirm {
    flex: 1;
    color: #616161;
    font-size: 0.875rem;
    font-weight: 400;
}
#vac-btn-confirm {
    color: #FFFFFF;
    background-color: #C41F2B;
    border-color: #C41F2B!important;
}
#vac-btn-confirm:hover {
    background-color: #611317;
    border-color: #611317!important;
}

#vac-form-buttons.hidden, #vac-form-confirmation.hidden {
    display: none;
}

/* RESPONSIVITY - MOBILE */
body.mobile-device .btnDate-datepicker {
    top: 3.3rem!important;
}

body.mobile-device #vac-popup-box {
    width: 80vw;
}

body.mobile-device #vac-start_date {
    flex-basis: 69%;
}

body.mobile-device .vac-icon-arrow {
    padding-right: 0.625rem;
    margin-top: 0.875rem;
}

body.mobile-device #vac-end_date {
    margin-top: 0.875rem;
}

body.mobile-device .rd-vacations svg {
    display: none;
}