:root {
  /* default status colors */
  --pto-clr-new: #6f6f6f;
  --pto-clr-pending: #d8ae24;
  --pto-clr-approved: #019a57;
  --pto-clr-denied: #cc4962;
  --pto-clr-canceled: #1c8abd;

  --pto-clr-new_light: #6f6f6f1a;
  --pto-clr-pending_light: #d8ae241a;
  --pto-clr-approved_light: #019a571a;
  --pto-clr-denied_light: #cc49621a;
  --pto-clr-canceled_light: #1c8abd1a;

  --pto_gray: #6f6f6f;
  --pto_orange: #ef4b32;
}

.hidden {
  display: none !important;
}

.flex-column {
  flex-direction: column;
}

.form-wrapper {
  max-width: 1420px !important;
}

#add_pto.pto-request-form {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 80px;
}

#add_pto.pto-request-form .form__item {
  width: 33%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.form__item-wrapper {
  width: 100%;
}

#add_pto.pto-request-form .form__label {
  display: block;
  color: #959595;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 15px;
  max-width: 400px;
  height: 44px;
  display: flex;
  align-items: end;
  line-height: 1.25;
}

.form__radio-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  color: #6f6f6f;
  font-weight: 600;
}

#add_pto.pto-request-form .form__input {
  width: 100%;
  height: 58px;
  margin-bottom: 24px;
  line-height: 58px;
  border-radius: 12px;
  background-color: #f5f5f5 !important;
  color: #6f6f6f !important;
  border: none;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 600;
}

#add_pto.pto-request-form .form__input[type="radio"] {
  width: 20px !important;
  height: 30px !important;
  line-height: 30px;
  margin-bottom: 4px;
}

.form__radio-container {
  display: flex;
  column-gap: 16px;
}

.select__item {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.select__title {
  height: 58px;
  line-height: 58px;
  color: #000;
  background-color: #f5f5f5;
  cursor: pointer;
  border-radius: 12px;
  border: none;
  color: #6f6f6f;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.select__value {
  display: flex;
  font-size: 16px;
  height: 58px;
  padding: 0px 10px;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
}

.select__value::before {
  content: "";
  display: inline-block;
  transition: all 0.3s ease 0s;
  width: 11px;
  height: 7px;
  background: url(../../img/select.svg) center / 100% no-repeat;
}

.select._active .select__value::before {
  transform: rotate(-180deg);
}

.select__options {
  color: #000;
  display: none;
  position: absolute;
  top: 49px;
  border-radius: 0 0 4px 4px;
  min-width: 100%;
  left: 0;
  color: #6f6f6f;
  background-color: #f5f5f5;
  border-top: 0;
  font-size: 16px;
  padding: 0px 0px 5px 0px;
}

.select__option {
  cursor: pointer;
  padding: 5px 20px;
}

.select__option:hover {
  background-color: rgba(111, 111, 111, 0.15);
}

#form__item-substitute {
  visibility: hidden;
}

#add_pto input[type="submit"] {
  margin-top: 60px;
  height: 50px;
  border-radius: 12px;
  border: none;
  width: 100%;
  font-weight: 600;
  font-size: 18px;
  background-color: #d6a917;
  color: #fff;
  cursor: pointer;
}

#add_pto.pto-request-form textarea {
  max-width: 100%;
  padding: 20px;
  border-radius: 12px;
}

.pto-back-to-user-profile {
  display: block;
  text-decoration: none;
  margin: 20px 0;
}

/* PTO USER PROFILE START */

.pto-user-profile li {
  margin-left: 0 !important;
}

.pto-user-profile__header {
  display: flex;
  justify-content: space-between;
  padding: 24px 12px;
}

.pto-user-profile__body {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding: 8px;
}

.pto-user-profile__body--left {
  width: 75%;
  padding: 8px;
}

.pto-user-profile__body--right {
  width: 25%;
  padding: 8px;
}

.pto-user-profile__statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  cursor: pointer;
}

.pto-user-profile .btn-pto_status {
  font-size: 18px;
  padding: 0.5em 1.5em;
  border-radius: 10px;
  color: #f75840;
  background-color: #f758401a;
}

.pto-user-profile .btn-pto_status:hover {
  color: #fff;
  background-color: #f75840;
}

.pto-user-profile .btn-pto_status--active {
  color: #fff;
  background-color: #f75840;
  pointer-events: none;
  cursor: unset;
}

.pto-user-profile .pto-request-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
}

.pto-user-profile .pto-request-item__date {
  text-align: center;
  width: 10%;
}

.pto-user-profile .pto-request-item__body {
  width: 85%;
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

.pto-user-profile .pto-request-item__body p {
  color: var(--pto_gray);
  margin: 0.5em 0;
}

.pto-user-profile .pto-request-item__body-left {
  width: 60%;
}

.pto-user-profile .pto-request-item__body-right {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: end;
  margin-right: 8px;
}

.pto-user-profile .pto-decision-title {
  text-align: right;
  font-size: 18px;
  margin-bottom: 18px;
  padding-top: 8px;
}

.pto-user-profile .pto-decision-text {
  color: var(--pto_gray);
  font-size: 16px;
}

.pto-user-profile .pto_stage-period {
  font-size: 75%;
  opacity: 0.6;
}

.pto-user-profile .pto-decision-read-more-btn {
  display: block;
  margin: 8px 4px 12px 0;
  text-align: right;
}

.pto-user-profile .cancel-pto-btn {
  text-decoration: none;
  cursor: pointer;
  margin-top: 16px;
  background: #a3a3a3;
  color: #fff;
  padding: 0.4em 0.75em;
  border-radius: 4px;
}

.cancel-pto-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 99; /* Sit on top */
  padding: 40px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.cancel-pto-modal .modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 40px;
  max-width: 600px;
  border-radius: 20px;
  color: var(--pto-gray);
}

.cancel-pto-modal .cancel-pto-desc {
  font-weight: 500;
}

.cancel-pto-modal .cancel-pto-note {
  min-height: 140px;
  width: 100%;
}

/* The Close Button */
.cancel-pto-modal .close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin-top: -24px;
}

.cancel-pto-modal .close:hover,
.cancel-pto-modal .close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.cancel-pto-modal .cancel-pto-update {
  display: none;
}

.cancel-pto-modal .cancel-pto-submit {
  display: flex;
}

.cancel-pto-modal .cancel-pto-submit,
.cancel-pto-modal .cancel-pto-update {
  margin-left: auto;
  margin-top: 24px;
  justify-content: center;
  width: 100px;
  text-decoration: none;
  background-color: gray;
  color: #fff;
  padding: 0.4em 0.75em;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  text-transform: lowercase;
}

.cancel-pto-modal .cancel-pto-submit:hover,
.cancel-pto-modal .cancel-pto-submit:focus {
  background-color: green;
}

.pto_btn-back-to-profile {
  margin: 48px 0;
}

.pto-admin-note-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 999; /* Sit on top */
  padding: 40px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.pto-admin-note-modal .modal-content {
  background-color: #fefefe;
  margin: auto;
  margin-top: 10%;
  padding: 40px;
  max-width: 600px;
  border-radius: 12px;
  color: var(--pto-gray);
}

.pto-admin-note-modal .close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin-top: -30px;
  margin-right: -16px;
}

.pto-admin-note-modal .close:hover,
.pto-admin-note-modal .close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.pto-user-profile .pto-request-item__btn {
  width: 170px;
  height: 40px;
  line-height: 40px;
  padding: 0 2em;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  cursor: pointer;
}

.pto-user-profile .pto-request-item__btn:hover {
  color: #fff;
}

.pto-user-profile .pto-request_decision-by {
  font-size: 14px;
  font-style: italic;
  margin: 8px 0 0 0 !important;
}

.pto-allowed-attachments {
  color: gray;
  font-size: 14px;
  margin: -12px 0 0 12px;
}

.pto-login {
  margin-top: 24px;
}

/* AJAX login form */

.login_button {
  text-decoration: underline;
}

form#pto-login {
  display: none;
  background-color: #ffffff;
  position: fixed;
  top: 200px;
  padding: 25px;
  width: 350px;
  z-index: 999;
  left: 50%;
  margin-left: -200px;
  border-radius: 12px;
  color: gray;
}

form#pto-login p.status {
  display: none;
}

form#pto-login input {
  width: 100%;
  height: 48px;
}

.form#pto-login .submit_button {
  cursor: pointer;
}

.pto-lost-psw {
  display: block;
  margin-top: 8px;
  color: gray;
  text-decoration: underline;
}

form#pto-login label {
  margin: 8px 0;
  display: block;
}

.login_overlay {
  height: 100%;
  width: 100%;
  background-color: #f6f6f6;
  opacity: 0.9;
  position: fixed;
  z-index: 998;
}

.pto-login-close {
  display: flex;
  justify-content: end;
  color: gray;
  text-decoration: none;
  font-size: 20px;
  height: 12px;
}

/* END AJAX login form */

/* new */
.pto-request-item.pto-status__new .pto-request-item__body {
  border-left: 5px var(--pto-clr-new) solid;
  background-color: var(--pto-clr-new_light);
}

.pto-request-item.pto-status__new .pto_title {
  color: var(--pto-clr-new);
}

.pto-request-item.pto-status__new .pto-request-item__btn {
  color: #fff;
  background-color: var(--pto-clr-new);
}

/* approved  */
.pto-request-item.pto-status__approved .pto-request-item__body {
  border-left: 5px var(--pto-clr-approved) solid;
  background-color: var(--pto-clr-approved_light);
}

.pto-request-item.pto-status__approved .pto_title {
  color: var(--pto-clr-approved);
}

.pto-request-item.pto-status__approved .pto-request-item__btn,
.approve-btn,
.pto-modal .pto-request-item__btn.approve-btn {
  background-color: var(--pto-clr-approved);
  color: #fff;
}

.pto-request-item.pto-status__approved .pto-request_decision-by,
.pto-request-item.pto-status__approved .pto-decision-title {
  color: var(--pto-clr-approved);
}

/* denied */
.pto-request-item.pto-status__denied .pto-request-item__body {
  border-left: 5px var(--pto-clr-denied) solid;
  background-color: var(--pto-clr-denied_light);
}

.pto-request-item.pto-status__denied .pto_title {
  color: var(--pto-clr-denied);
}

.pto-request-item.pto-status__denied .pto-request-item__btn,
.deny-btn,
.pto-modal .request-item__btn.deny-btn {
  background-color: var(--pto-clr-denied);
  color: #fff;
}

.pto-request-item.pto-status__denied .pto-request_decision-by,
.pto-request-item.pto-status__denied .pto-decision-title {
  color: var(--pto-clr-denied);
}

/* pending */
.pto-request-item.pto-status__pending .pto-request-item__body {
  border-left: 5px var(--pto-clr-pending) solid;
  background-color: var(--pto-clr-pending_light);
}

.pto-request-item.pto-status__pending .pto_title {
  color: var(--pto-clr-pending);
}

.pto-request-item.pto-status__pending .pto-request-item__btn,
.pending-btn,
.pto-modal .request-item__btn.pending-btn {
  background-color: var(--pto-clr-pending);
  color: #fff;
}

.pto-request-item.pto-status__pending .pto-request_decision-by,
.pto-request-item.pto-status__pending .pto-decision-title {
  color: var(--pto-clr-pending);
}

/* canceled */
.pto-request-item.pto-status__canceled .pto-request-item__body {
  border-left: 5px var(--pto-clr-canceled) solid;
  background-color: var(--pto-clr-canceled_light);
}

.pto-request-item.pto-status__canceled .pto_title {
  color: var(--pto-clr-canceled);
}

.pto-request-item.pto-status__canceled .pto-request-item__btn,
.canceled-btn,
.pto-modal .request-item__btn.canceled-btn {
  background-color: var(--pto-clr-canceled);
  color: #fff;
}

.pto-request-item.pto-status__canceled .pto-request_decision-by,
.pto-request-item.pto-status__canceled .pto-decision-title {
  color: var(--pto-clr-canceled);
}

body .pto-user-profile {
  width: 100%;
  max-width: 1200px;
}

.pto-user-profile .pto-days {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0px 1px 3px #00000029;
  margin-top: 68px;
}

.pto-user-profile .pto-days__title {
  font-size: 24px;
  text-align: center;
  color: #959595;
  margin-bottom: 32px;
}

.pto-user-profile .pto-days__remining {
  font-size: 70px;
  font-weight: 700;
  color: var(--pto_gray);
}

.pto-user-profile .pto-days__remining--negative {
  color: var(--pto_orange);
}

.pto-user-profile .pto-days__in-stage {
  font-size: 30px;
  color: #c7c7c7;
}

.pto-user-profile .pto_request-hide {
  display: none;
}

.pto-user-profile .pto_request-show {
  display: flex;
}

.pto-user-profile .pto-request-btn {
  display: block;
  margin-top: 32px;
  padding: 1em 2em;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  color: #fff;
  background-color: gray;
  transition: 0.3s;
  text-align: center;
}

.pto-user-profile .pto-request-btn:hover {
  background-color: var(--pto-clr-approved);
  transform: scale(1.05);
  color: #fff;
}

.pto-user-profile .pto-request-item__date-day {
  font-size: 24px;
  font-weight: 600;
}

.pto-user-profile .pto-request-item__date-week {
  font-size: 20px;
}

.pto-user-profile .pto-request-subtitle {
  font-size: 18px;
  font-weight: 600;
}

.pto-user-profile .pto-request-text {
  font-size: 18px;
  font-weight: 400;
}

.pto-user-profile p {
  padding: 0 !important;
  margin: 0;
  line-height: 1;
  text-align: left;
}

.pto-user-profile p {
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1;
  text-align: left;
  line-height: 1.75;
  font-size: unset;
}

.pto-user-profile .pto-days__count {
  padding: 24px;
}

.pto-admin-note-modal .admin-note-modal-text p {
  margin: 1em 0;
}

/* PTO USER PROFILE END */

/* HOLIDAYS */

body .pto-holidays {
  width: 100%;
  max-width: 1200px;
}
.pto-holidays__filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pto-holidays__select-year select {
  width: 100px;
  height: 40px;
  font-size: 18px;
  padding: 10px;
}
.pto-holidays-list {
  font-size: 16px;
}
.pto-holidays-list > li {
  display: flex;
}

.pto-holidays-list > li:first-child {
  color: #fff;
  background-color: var(--pto_gray);
}

.pto-holidays-list > li > div {
  flex: 0 1 200px;
  padding: 16px;
  border: 1px solid var(--pto-clr-new_light);
}

.pto-holiday-name {
  font-weight: 600;
}

.ui-datepicker td.holiday a,
.ui-datepicker td.holiday a:hover {
  color: #fff;
  background: none #ff7561;
  border: 1px solid #bf5a0c;
}

.pto-holidays-url {
  margin-top: 20px;
}

/* SELECT STYLE */

/* END SELECT STYLE */

@media (max-width: 1280px) {
  #add_pto.pto-request-form .form__input {
    height: 48px;
    line-height: 48px !important;
    padding: 0px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  #add_pto.pto-request-form .select__title {
    height: 42px !important;
    line-height: 42px !important;
  }

  #add_pto.pto-request-form .select__value {
    height: 42px !important;
  }

  #add_pto.pto-request-form .select__options {
    top: 34px !important;
  }

  #add_pto.pto-request-form .custom-a11yselect-container i.custom-a11yselect-icon {
    top: 18px;
  }

  #add_pto.pto-request-form .custom-a11yselect-container .custom-a11yselect-btn {
    height: 48px;
    min-width: unset;
  }
}

@media (max-width: 912px) {
  #add_pto .form__label {
    max-width: 200px !important;
  }

  #add_pto.pto-request-form .select__item {
    max-width: 200px !important;
  }

  .pto-user-profile__body {
    gap: 0 !important;
  }
}

@media (max-width: 767px) {
  #add_pto.pto-request-form .form__item {
    width: 50% !important;
  }
  #add_pto.pto-request-form .form__item-wrapper {
    width: 40vw !important;
  }

  #add_pto.pto-request-form .form__input {
    width: 40vw !important;
    height: 52px !important;
    line-height: 52px !important;
    padding: 0px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  #add_pto .form__label {
    max-width: 40vw;
  }

  #add_pto.pto-request-form .select__item {
    max-width: 40vw;
  }

  #add_pto.pto-request-form .select__title {
    height: 52px !important;
    line-height: 52px !important;
  }

  #add_pto.pto-request-form .select__value {
    height: 52px !important;
  }

  #add_pto.pto-request-form .select__options {
    top: 34px !important;
  }

  #add_pto.pto-request-form textarea {
    max-width: 40vw;
  }

  #add_pto input[type="submit"] {
    max-width: 40vw;
  }

  .custom-a11yselect-container .custom-a11yselect-btn {
    width: 40vw !important;
    height: 52px !important;
    line-height: 52px !important;
  }

  .custom-a11yselect-container i.custom-a11yselect-icon {
    top: 22px !important;
  }

  .pto-data-select-box {
    width: 40vw !important;
  }

  .custom-a11yselect-container {
    width: 40vw;
  }

  .pto-user-profile__body {
    flex-direction: column-reverse;
  }

  .pto-user-profile ul {
    margin: 0;
    padding: 0;
  }

  .pto-user-profile__header {
    padding: 12px;
  }

  .pto-user-profile .custom-a11yselect-container {
    margin-bottom: 8px;
  }

  .pto-user-profile__body--left {
    width: 100%;
  }
  .pto-user-profile__body--right {
    width: 100%;
    margin-bottom: 12px;
  }

  .pto-user-profile .pto-days {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 12px 20px;
  }

  .pto-user-profile .pto-days .pto-days__title {
    font-size: 22px;
    margin-bottom: 0;
    line-height: 1.5;
  }

  .pto-user-profile .pto-days .pto-days__count {
    display: flex;
    justify-content: center;
    align-items: baseline;
  }

  .pto-user-profile .pto-request-btn {
    margin-top: 0;
    padding: 0.5em 1em;
  }

  .pto-user-profile .btn-pto_status {
    font-size: 16px;
    padding: 0.3em 1.2em;
  }

  .pto-user-profile .pto-days__remining {
    font-size: 38px;
  }

  .pto-user-profile .pto-days__in-stage {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  #add_pto.pto-request-form {
    row-gap: 20px !important;
  }

  #add_pto.pto-request-form .form__item {
    width: 100% !important;
  }
  #add_pto.pto-request-form .form__item-wrapper {
    width: 90vw !important;
  }

  #add_pto.pto-request-form .form__input {
    width: 90vw !important;
    height: 52px !important;
    line-height: 52px !important;
    padding: 0px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  #add_pto.pto-request-form .form__label {
    max-width: 90vw !important;
    height: unset;
  }

  #add_pto.pto-request-form .select__item {
    max-width: 90vw !important;
  }

  #add_pto.pto-request-form .select__title {
    height: 52px !important;
    line-height: 52px !important;
  }

  #add_pto.pto-request-form .select__value {
    height: 52px !important;
  }

  #add_pto.pto-request-form .select__options {
    top: 34px !important;
  }

  #add_pto.pto-request-form textarea {
    max-width: 90vw !important;
  }

  #add_pto.pto-request-form #form__item-substitute {
    visibility: visible;
    display: none;
  }

  #add_pto input[type="submit"] {
    width: 100%;
    max-width: 100%;
  }

  .pto-data-select-box,
  .custom-a11yselect-container,
  .custom-a11yselect-container .custom-a11yselect-btn {
    width: 90vw !important;
  }

  .custom-a11yselect-container {
    height: 52px !important;
  }

  .pto-user-profile__header {
    flex-direction: column;
    gap: 24px;
  }

  .pto-user-profile .custom-a11yselect-container .custom-a11yselect-btn {
    min-width: 260px;
  }

  .pto-user-profile .pto-days .pto-days__title {
    width: 100px;
    font-size: 16px;
    text-align: center;
  }

  .pto-user-profile .pto-days__count {
    padding: 16px;
  }

  .pto-user-profile .pto-days__remining {
    font-size: 38px;
  }

  .pto-user-profile .pto-request-btn {
    padding: 0.75em 1.25em;
    font-size: 16px;
  }

  .pto-user-profile__statuses {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pto-user-profile .pto-request-item {
    margin-top: 32px;
  }

  .pto-user-profile .pto-request-item__date {
    display: none;
  }

  .pto-user-profile .pto-request-item__body {
    width: 100%;
  }

  .pto-user-profile .pto-requests-list {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .pto-user-profile .pto-user-profile__header {
    flex-direction: column;
  }

  .pto-user-profile .pto-days {
    display: grid !important;
    gap: 20px;
    grid-template:
      "a b"
      "a c" !important;
  }

  .pto-user-profile .pto-days__title {
    width: 100% !important;
    grid-area: a !important;
  }

  .pto-user-profile .pto-days__count {
    grid-area: b !important;
    text-align: center !important;
    padding: 12px 0 0 0 !important;
  }

  .pto-user-profile .pto_request_btn_container {
    grid-area: c !important;
  }

  .pto-user-profile .pto-request-btn {
    padding: 0.25em 1em;
    font-size: 14px;
  }
}
