/*
*
RESET
*
*/

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

textarea {
  resize: vertical;
  font-family: inherit;
}

input {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

input[type='text'],
input[type='password'],
input[type='date'],
input[type='submit'],
input[type='reset'] {
  -webkit-appearance: none;
}

button {
  -webkit-appearance: none;
}

ul {
  list-style: none;
}

img.emoji {
  width: 15px !important;
  height: 15px !important;
}

/*
*
CONTAINER
*
*/

body {
  width: 100w;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #232327;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
}

#wrapper {
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 700px;
  border-radius: 30px;
  overflow: scroll;
  background-color: #f8f8f8;
}

.page-template-tpl-home #wrapper {
  background-color: white;
}

#scrollable {
  overflow: hidden;
  width: 100%;
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 450px) {
  body {
    min-height: 100vh;
    align-items: flex-start;
  }

  #wrapper,
  #scrollable {
    min-height: 100%;
    overflow: auto;
    max-height: none;
  }

  #wrapper {
    max-width: 100%;
    border-radius: 0;
  }
}

@media screen and (min-width: 450px) and (max-width: 1000px) and (orientation: landscape) {
  #wrapper {
    opacity: 0;
  }
}

/*
*
APP
*
*/

.app {
  height: 100%;
  flex-grow: 1;
}

.app__footer {
  flex-shrink: 1;
  padding: 0 20px 15px 20px;
  color: #4f4d4d;
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  align-self: center;
}

.app__footer a {
  text-decoration: underline;
}

.app__container-title {
  background-color: #f8f8f8;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  text-align: left;
  padding: 40px 20px;
  position: relative;
  margin-bottom: 40px;
}

.app__container-title--worksite {
  background-color: #00a54e;
  padding-bottom: 20px;
}

.app__container-title--legals {
  background-color: #00a54e;
}

.app__container-title--repair {
  background-color: #054a29;
}

.app__container-title--quotation {
  background-color: #bf928f;
}

.app__container-title--calendar {
  background-color: #885053;
}

.app__container-title--timesheet {
  background-color: #f19a3e;
  padding-bottom: 20px;
}

.app__title {
  color: #4f4d4d;
  font-size: 25px;
  font-weight: 300;
  line-height: 1.4;
}

.app__title--light {
  color: white;
}

.app__flux {
  padding: 0 20px;
}

.app__wysiwyg h1,
.app__wysiwyg h2,
.app__wysiwyg h3,
.app__wysiwyg h4,
.app__wysiwyg h5,
.app__wysiwyg h6 {
  color: #00a54e;
  margin-bottom: 20px;
  margin-top: 40px;
}

.app__wysiwyg p {
  margin-bottom: 20px;
}

.app__wysiwyg a {
  color: #00a54e;
  text-decoration: underline;
}

.app__wysiwyg ul,
.app__wysiwyg ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.app__wysiwyg ul li {
  list-style: initial;
}

/*
*
BACK
*
*/

.back {
  position: relative;
  top: -40px;
  width: 50px;
  height: 50px;
  border: solid 1px white;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.back__icon {
  width: 50%;
  height: 50%;
  transform: scaleX(-1) translateX(2px);
}

.back__icon path {
  fill: white;
}

/*
*
LOGIN
*
*/

.login {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.login__container-logo {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  background-color: #00a54e;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  position: relative;
}

.login__logo {
  width: 100px;
  height: 100px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.login__illustration {
  width: 30%;
  position: absolute;
  bottom: 0;
  right: 0;
  overflow: visible;
}

.form__error {
  color: #8a2c2c;
  background-color: #fcbdbd;
  padding: 10px 15px;
  border-radius: 10px;
}

/*
*
FORM
*
*/

.form__container {
  padding: 0 50px 50px;
  margin-top: 40px;
}

.form__container--large {
  padding: 0 20px 20px;
}

#loginform p,
.form__label {
  margin-top: 20px;
  font-weight: 400;
  display: block;
  color: #6e7572;
}

#loginform p label,
.form__label span {
  display: block;
  color: #6e7572;
}

#loginform p input[type='text'],
#loginform p input[type='password'],
.form__label input[type='text'],
.form__label input[type='date'],
.form__label input[type='number'],
.form__label textarea {
  border: solid 1px lightgrey;
  border-radius: 10px;
  padding: 15px 20px;
  width: 100%;
  font-weight: 300;
  margin-top: 5px;
  font-size: 16px;
  background-color: white;
  text-align: left;
  color: black;
}

.form__block input[type='file'] {
  margin-top: 20px;
  display: block;
}

#loginform p input[type='submit'],
.form button[type='submit'] {
  background-color: #e4ffe1;
  border: solid 0 transparent;
  padding: 15px 20px;
  border-radius: 10px;
  color: #00a54e;
  width: 100%;
  margin-top: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 16px;
}

.form button[type='reset'] {
  background-color: transparent;
  border: solid 0 transparent;
  text-decoration: underline;
  padding: 15px 20px;
  color: #6e7572;
  width: 100%;
  margin-top: 10px;
  font-weight: 400;
  letter-spacing: 0.5px;
  font-size: 16px;
}

.form__block {
  border-width: 0px;
  margin-top: 40px;
}

.form__block legend,
.quotation__cat,
.additionals__title,
.gallery__title,
.timesheet__title,
.notes__title {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  background-color: #6e7572;
  padding: 5px 10px;
  border-radius: 5px;
  width: 100%;
}

.form__input-align {
  display: flex;
  align-items: baseline;
}

.form__input-align--right span:first-child {
  flex-grow: 1;
}

.form__input-align--right input[type='number'] {
  text-align: right;
  width: 20%;
  flex-grow: 0;
}

.form__input-align input[type='number'] {
  flex-grow: 1;
  margin-right: 5px;
}

.form__input-align input[type='number']:nth-child(2) {
  margin-left: 20px;
}

.form__indication {
  font-style: oblique;
}

.form__label {
  display: flex;
  flex-direction: column-reverse;
}

.form__label *[required] ~ span::after {
  content: '*';
  margin-left: 5px;
  color: tomato;
  font-variant-position: super;
}

/*
*
HEADER CONNECTÉ
*
*/

.header {
  padding: 50px 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f8f8;
}

.post-type-archive-repair .header {
  background-color: #054a29;
}

.page-template-tpl-calendar .header {
  background-color: #885053;
}

.post-type-archive-quotation .header {
  background-color: #bf928f;
}

.post-type-archive-worksite .header,
.single-worksite .header,
.page-template-tpl-legals .header {
  background-color: #00a54e;
}

.post-type-archive-timesheet .header,
.single-timesheet .header {
  background-color: #f19a3e;
}

.header__logo {
  width: 50px;
  height: 50px;
}

.header__logout {
  color: #00a54e;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 5px 10px;
  font-weight: 400;
  background-color: #e4ffe1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header__logout svg {
  width: 25px;
  height: 25px;
  margin-left: 5px;
}

/*
*
HOME
*
*/

.homepage {
  background-color: white;
  display: flex;
  flex-direction: column;
}

.homepage__container-links {
  display: flex;
  flex-wrap: wrap;
  padding: 0 20px 30px;
  flex-grow: 1;
}

.homepage__link {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  border-radius: 20px;
  color: white;
  padding: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  position: relative;
  overflow: visible;
}

.homepage__link--worksite {
  background-color: #00a54e;
}

.homepage__link--repair {
  background-color: #054a29;
}

.homepage__link--quotation {
  background-color: #bf928f;
}

.homepage__link--calendar {
  background-color: #885053;
}

.homepage__link--timesheet {
  background-color: #f19a3e;
}

.homepage__svg {
  max-width: 25%;
  max-height: 80%;
  overflow: visible;
  position: absolute;
}

.homepage__link--repair .homepage__svg {
  bottom: 0;
  right: 0;
}

.homepage__link--worksite .homepage__svg {
  top: 0;
  left: 0;
}

.homepage__link--quotation .homepage__svg {
  bottom: 0;
  right: 15px;
  max-height: 90%;
}

.homepage__link--calendar .homepage__svg {
  top: 0;
  left: 15px;
  max-height: 65%;
}

.homepage__link--timesheet .homepage__svg {
  top: 0;
  left: 5%;
  max-height: 70%;
}

/*
*
LIST WORKSITE
*
*/

.list-worksite__content {
  padding-bottom: 20px;
}

/*
*
WORKSITE
*
*/

.worksite__flux {
  padding: 0 20px 50px;
}

.quotation__cat {
  margin: 40px 0 20px;
}

.quotation__check {
  margin-bottom: 15px;
  display: block;
}

.additionals__resume {
  width: 100%;
  padding: 20px 10px 0 0;
  color: black;
}

.additionals__item {
  line-height: 1.5;
}

.additionals__item:before {
  content: '•';
  display: inline-block;
}

.gallery__form {
  margin-bottom: 40px;
}

.gallery__title {
  margin-bottom: 20px;
}

.gallery__image {
  margin-bottom: 10px;
}

.gallery__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.notes__form {
  margin-bottom: 40px;
}

.notes__title {
  margin-bottom: 20px;
}

.notes__item {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  background-color: white;
  border: solid 1px lightgrey;
  padding: 10px;
  border-radius: 10px;
}

.notes__who {
  margin-bottom: 10px;
  color: #6e7572;
  text-align: right;
  width: 100%;
}

/*
*
NAV
*
*/

.container-nav {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.container-nav__tab {
  background-color: white;
  border: solid 0 transparent;
  padding: 10px 20px;
  border-radius: 10px;
  color: #6e7572;
  font-weight: 500;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.worksite .container-nav__tab.active {
  background-color: #e4ffe1;
  color: #00a54e;
}

.timesheet .container-nav__tab.active {
  background-color: #fce6cf;
  color: #ff890d;
}

/*
*
LIST CTA
*
*/

.list-cta {
  margin: 20px 0;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 20px;
  border-radius: 10px;
  color: #6e7572;
  box-shadow: 0px 0px 100px 29px rgba(110, 117, 114, 0.05);
}

.list-cta__arrow {
  width: 20px;
  flex-shrink: 0;
  margin-left: 50px;
}

.list-worksite .list-cta__arrow path {
  fill: #00a54e;
}

.list-timesheet .list-cta__arrow path {
  fill: #f19a3e;
}

/*
*
CALENDAR
*
*/

.calendar__iframe {
  width: 100%;
  height: 80vh;
  margin-bottom: 20px;
}

/*
*
TIMESHEET
*
*/

.timesheet__content {
  padding-bottom: 20px;
}

.timesheet__button {
  background-color: transparent;
  border-width: 0;
  text-align: left;
  color: #f19a3e;
  text-decoration: underline;
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 26px;
}

/*
*
POPUP
*
*/

.popup {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 20px;
}

.popup.active {
  display: flex;
}

.popup::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #232327;
  opacity: 0.8;
  z-index: 0;
}

.popup__message {
  position: relative;
  z-index: 1;
  text-align: center;
}
