.gsm-form .form-field {
    padding: 1em;
    float: left;
    width: 50%;
}

.gsm-form .form-field.full-width {
    padding: 1em;
    float: left;
    width: 100%;
}

.gsm-form .form-field.no-padding {
    padding-top: 0em;
    padding-bottom: 0em;
}

.gsm-form input[type=text], 
.gsm-form input[type=password], 
.gsm-form input[type=email], 
.gsm-form input[type=tel], 
.gsm-form input[type=date], 
.gsm-form select {
    height: 2.75em;
}

.gsm-form input[type=text], 
.gsm-form input[type=password], 
.gsm-form input[type=email], 
.gsm-form input[type=tel], 
.gsm-form input[type=date], 
.gsm-form select, 
.gsm-form textarea {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background: rgba(160, 160, 160, 0.075);
    border: none;
    border: solid 1px rgba(160, 160, 160, 0.3);
    border-radius: 0;
    color: inherit;
    display: block;
    outline: 0;
    padding: 0 1em;
    text-decoration: none;
    width: 100%;
}

@media only screen and (max-width: 600px) {
    .gsm-form .form-field {
        width: 100%;
    }
}

.gmm-form .form-field {
    padding: 1em;
}

.post > header .meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.post > header .meta .score {
  color: #3c3b3b;
  display: block;
  font-family: "Raleway", Helvetica, sans-serif;
  font-size: 1.9em;
  font-weight: 800;
  margin-top: -5px;
  text-transform: uppercase;
  white-space: nowrap;
}


@media (min-width: 320px) {
    .title-flex {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: start;
    }
    .box-subtitle {
      margin-top: 6px;
    }
  }
  
  @media (min-width: 460px) {
    .title-flex {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: start;
    }
    .box-subtitle {
      margin-top: 6px;
    }
  }
  
  @media (min-width: 640px) {
    .box {
      flex-basis: calc(50% - 12px);
    }
    .title-flex {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: start;
    }
    .box-subtitle {
      margin-top: 6px;
    }
  }
  
  @media (min-width: 840px) {
    .title-flex {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: start;
    }
    .box-subtitle {
      margin-top: 6px;
    }
  }
  
  @media (min-width: 1024px) {
    .box {
      flex-basis: calc(33.3% - 16px);
    }
    .title-flex {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: start;
    }
    .box-subtitle {
      margin-top: 6px;
    }
  }
  
  @media (min-width: 1100px) {
    .box {
      flex-basis: calc(25% - 18px);
    }
  }



  /** Onboarding cards */

  .onboarding-items :not(script):not(style) {
    display: grid;
  } 
  
  .onboarding-items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    grid-gap: 2em;
    grid-template-columns: repeat(auto-fit, Min(100%, 15rem));
    place-content: center;
    padding: 2rem;
    /* font: 900 1.25em/1.25 sans-serif; */
    text-align: center;
  }

  @media (max-width: 840px) {
    .onboarding-items {
      flex-direction: column;
    }
  }

  @media (min-width: 840px) {
    .onboarding-items:not(.onboarding-children-multi) article {
      max-width: 420px;
    }

    .onboarding-items.onboarding-children-multi article {
      flex: 1 1 15rem;
      min-width: 15rem;
      max-width: none;
    }
  }

  
  .onboarding-items article {
    --m: calc(.5*(var(--n) - 1));
    --abs: Max(calc(var(--i) - var(--m)), calc(var(--m) - var(--i)));
    --val: -1; /* calc(var(--abs)*(1 + .5*var(--i))/var(--n)); */
    --dt0: calc(var(--val)*1s);
    --dt1: calc((var(--val) + 1)*1s);
    --dt2: calc((var(--val) + 1.5)*1s);
    --dt3: calc((var(--val) + 2)*1s);
    --dt4: calc((var(--val) + 2.5)*1s);
    --dt5: calc((var(--val) + 3)*1s);
    overflow: hidden;
    padding-bottom: 1rem;
    backface-visibility: hidden;
    transform: perspective(25em);
    background: #fff content-box;
    filter: drop-shadow(0px 0px 24px #D0D0D0);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    /* animation: card 1s ease-out var(--dt0) backwards, cost 1s var(--dt4) backwards; */
  }
  .onboarding-items article ::before, 
  .onboarding-items article ::after, 
  .onboarding-items article a {
    --j: 1;
    --sgn-j: calc(2*var(--j) - 1);
    --not-j: calc(1 - var(--j));
    --mask:
      linear-gradient(calc(var(--sgn-j)*90deg),
          red 33.333%, transparent 66.667%) calc(var(--not-j)*100%)/ 300%;
  }
  
  @keyframes card {
    0% {
      transform: perspective(25em) rotatey(0.5turn);
    }
  }
  .onboarding-items header {
    grid-gap: 1rem;
    padding: 2rem 1.5em 1rem;
    transform-origin: 100% 100%;
    background-color: var(--grad);
    color: #fff;
    counter-reset: cost var(--cost);
    animation: head 1s ease-out var(--dt1) backwards;
  }
  .onboarding-items header::before {
    place-self: center;
    place-content: center;
    border: solid 4px currentcolor;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    animation: ring 1s ease-out var(--dt3) backwards;
    content: counter(cost) "%";
  }
  .onboarding-items article.is-validated header::before {
    content: "\2713";
  }
  .onboarding-items header::after {
    height: 4px;
    background: currentcolor;
    clip-path: inset(0 round 4px);
    animation: line 1s ease-out var(--dt2) backwards;
    content: "";
  }
  .onboarding-items h3 {
    font: 900 1.25em/1.25 sans-serif;
    text-transform: uppercase;
    color: #ffffff;
  }
  
  @keyframes head {
    0% {
      transform: translate(-100%) skewx(35deg);
    }
  }
  @keyframes ring {
    0% {
      transform: scale(0);
      opacity: 0;
    }
  }
  @keyframes line {
    0% {
      clip-path: inset(0 50% round 4px);
    }
  }
  .onboarding-items h3::before, .onboarding-items h3::after {
    place-self: center;
    mask: var(--mask);
    animation: text 1s ease-out var(--dt5) backwards;
  }
  .onboarding-items h3::before {
    --j: 0;
    animation-name: text, move;
    content: attr(data-name);
  }
  .onboarding-items h3::after {
    font-size: 0.6em;
    font-weight: 100;
  }
  
  @keyframes move {
    0% {
      transform: translate(50%);
    }
  }
  .onboarding-items section {
    margin-bottom: -1rem;
    border-bottom: solid 1rem transparent;
    background-color: inherit;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1rem), 50% 100%, 0 calc(100% - 1rem));
  }
  
  .onboarding-items a {
    place-content: center;
    font: 900 1.25em/1.25 sans-serif;
    line-height: 3;
    mask: var(--mask);
    cursor: pointer;
    animation: text 1s ease-out var(--dt2) backwards;
    border: none;
    text-transform: uppercase;
  }

  .onboarding-items article a:hover {
    color: var(--grad) !important;
  }
  
  @keyframes text {
    0% {
      mask-position: calc(var(--j)*100%);
    }
  }

/** Messages */

.items-list, .items-list :not(script),
.notebook-test, .notebook-test :not(script) {
  /* display: grid; */
} 

.items-list {    
  --m: calc(.5*(var(--n) - 1));
  --abs: Max(calc(var(--i) - var(--m)), calc(var(--m) - var(--i)));
  --val: -1; /* calc(var(--abs)*(1 + .5*var(--i))/var(--n)); */
  --dt0: calc(var(--val)*1s);
  --dt1: calc((var(--val) + 1)*1s);
  --dt2: calc((var(--val) + 1.5)*1s);
  --dt3: calc((var(--val) + 2)*1s);
  --dt4: calc((var(--val) + 2.5)*1s);
  --dt5: calc((var(--val) + 3)*1s);
}

.items-list article {
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  margin-bottom: 1rem;
  backface-visibility: hidden;
  transform: perspective(25em);
  background: #fff content-box;
  filter: drop-shadow(0px 0px 24px #D0D0D0);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  width: 100%;
  /* animation: card 1s ease-out var(--dt0) backwards, cost 1s var(--dt4) backwards; */
}
@media screen and (max-width: 736px) {
 .items-list article {
    flex-direction: column;
  }
}

.items-list article ::before, 
.items-list article ::after, 
.items-list article a {
  --j: 1;
  --sgn-j: calc(2*var(--j) - 1);
  --not-j: calc(1 - var(--j));
  --mask:
    linear-gradient(calc(var(--sgn-j)*90deg),
        red 33.333%, transparent 66.667%) calc(var(--not-j)*100%)/ 300%;
}

.items-list header {
  flex: 1 0 10px;
  grid-gap: 1rem;
  padding: 2rem 1rem 1rem 1.5rem;
  transform-origin: 100% 100%;
  background-color: var(--grad);
  color: #fff;
  counter-reset: cost var(--cost);
  animation: head 1s ease-out var(--dt1) backwards;
}
.items-list header::before {
  place-self: center;
  place-content: center;
  border: solid 4px currentcolor;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  animation: ring 1s ease-out var(--dt3) backwards;
  left: 10px;
  top: 15px;
  position: absolute;
  text-align: center;
}
.items-list header .meta {
  display: flex;
  justify-content: space-between;
}
.items-list header .meta .published {
  padding-top: 20px;
}
.items-list header .meta span {
  place-self: center;
  place-content: center;
  border: solid 4px currentcolor;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  animation: ring 1s ease-out var(--dt3) backwards;
  left: 10px;
  top: 15px;
  text-align: center;
}
.items-list h3 {
  font: 900 1.25em/1.25 sans-serif;
  text-transform: uppercase;
  color: #ffffff;
}
.items-list h3::before, 
.items-list h3::after {
  place-self: center;
  mask: var(--mask);
  animation: text 1s ease-out var(--dt5) backwards;
}
.items-list h3::before {
  --j: 0;
  animation-name: text, move;
  content: attr(data-name);
}
.items-list h3::after {
  font-size: 0.6em;
  font-weight: 100;
}
.items-list section {
  flex: 3 0 10px;
  border-bottom: solid 1rem transparent;
  background-color: inherit;
  padding: 10px 25px;
  animation: head 1s ease-out var(--dt1) backwards;
}
.items-list a {
  cursor: pointer;
  animation: text 1s ease-out var(--dt2) backwards;
  text-transform: uppercase;
}
.items-list ul.actions {
  padding-left: 1rem;
  padding-right: 1rem;
  margin-top: 1rem;
  display: -moz-flex;
}
.items-list ul.actions li {
  display: inline-block;
}
.items-list ul.stats {
  display: flex;
  justify-content: flex-end;
  list-style: none;
}
.items-list ul.stats a {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-flex-direction: row;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -moz-align-items: center;
  -webkit-align-items: center;
  -ms-align-items: center;
  align-items: center;
  -moz-justify-content: -moz-flex-end;
  -webkit-justify-content: -webkit-flex-end;
  -ms-justify-content: -ms-flex-end;
  justify-content: flex-end;
  border-bottom: 0;
  font-family: "Raleway", Helvetica, sans-serif;
  font-size: 0.6em;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  white-space: wrap;
}
.items-list ul.stats a span {
  -moz-transition: border-bottom-color 0.2s ease;
  -webkit-transition: border-bottom-color 0.2s ease;
  -ms-transition: border-bottom-color 0.2s ease;
  transition: border-bottom-color 0.2s ease;
  border-bottom: dotted 1px rgba(160, 160, 160, 0.65);
  display: block;
  margin: 0 1.5em 0 0;
}
.items-list article footer {
  background-color: #F0F0F0;
}

@media screen and (min-width: 736px) {
  .items-list article footer {
    animation: footer 1s ease-out var(--dt1) backwards;
  }
}

.items-list article footer .actions a,
.items-list .button {
  background-color: #F0F0F0;
  border-radius: 30px;
  box-shadow: 8px 8px 15px #bebebe, -8px -8px 15px #ffffff;
  border: none;
  margin-left: 5px;
  margin-right: 5px;
}

/* Accordeon */

.items-list details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  margin-bottom: 1rem;
  backface-visibility: hidden;
  transform: perspective(25em);
  background: #fff content-box;
  filter: drop-shadow(0px 0px 24px #D0D0D0);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  width: 100%;
  padding-bottom: 1rem;
}

.items-list details > div {
  padding-bottom: 1.5em;
  display: flex;
  flex-direction: column;
  margin-left: 2em;
}
.items-list summary + div {
  margin-top: 2em;
  margin-bottom: -1rem;
  border-bottom: solid 2rem transparent;
  background-color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1rem), 50% 100%, 0 calc(100% - 1rem));
}
.items-list details h2,
.items-list details h4 {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  text-align: center;
}
.items-list details .small {
  font-size: 1rem;
  padding: 0 .5rem;
}
.items-list details div ul.actions {
  justify-content: center;
  flex-wrap: wrap;
}
.items-list details div ul.actions button {
  background-color: #F0F0F0;
  border-radius: 30px;
  box-shadow: 8px 8px 15px #bebebe, -8px -8px 15px #ffffff;
  border: none;
  margin-left: 5px;
  margin-right: 5px;
}
.items-list details a {
  place-content: center;
  text-transform: none;
  font-size: .6rem;
}
.items-list details + details {
	margin-top: .5rem;
}

.items-list summary {
	list-style: none;
}

.items-list summary::-webkit-details-marker {
	display: none;
}

.items-list summary {
	padding: .75em 1em;
	cursor: pointer;
	position: relative;
  margin-bottom: -1rem;
  border-bottom: solid 1rem transparent;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1rem), 50% 100%, 0 calc(100% - 1rem));
}

.items-list summary h3,
.items-list summary header {
	color: #030303;
  display: flex;
  justify-content: space-between;
  padding-right: 40px;
}

.items-list summary:after {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: .75rem;
	content: "↓";
	width: 1.75rem;
	height: 1.75rem;
	background-color: #FFF;
	color: #030303;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
}

.items-list details[open] summary {
	background-color: #2BB17A;
}

.items-list details[open] summary header, 
.items-list details[open] summary h3 {
  color: #FFF;
}

.items-list details[open] summary:after {
	content: "↑";
	background-color: #2BB17A;
	color: #FFF;
}

.items-list input[type="radio"][disabled]:not(:checked)+label{ color: #D5D5D5; }

/** simple confirmation popup */
.items-list .confirm-container {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

.confirm-parent {
  text-align: center;
}

.confirm-hidden {
    display: none;
}

.confirm-parent:hover 
.confirm-hidden {
    color: blue;
    display: block;
    margin: auto;
    height: 50px;
    width: 200px;
    border: 1px solid green;
    border-radius: 5px;
}

.confirm-button {
  margin: 2em 1em;
  cursor: pointer;
  background-color: #ED2C23;
  color: white;
  text-decoration: none;
  height: 32px;
  display: inline-flex;
  align-items: center;
  overflow:hidden;
  width: auto;
  max-width: 32px;
  display: flex;
  flex-direction: row-reverse;
  border-radius: 30px;
  box-shadow: 8px 8px 15px #bebebe, -8px -8px 15px #ffffff;
}

.confirm-button a:hover {
  color: #fff !important;
  opacity: .5;
}

.confirm-button .icon {
  padding: 0 10px;
}

.confirm-button .text {
  margin: 0;
  padding-left: 1em;
  display: none;
}

.confirm-button:hover {
  max-width: 100%;
}

.confirm-button:hover
.text {
  -webkit-transition: max-width 0.5s;
  transition: max-width 0.5s;
  display: block;
}

.item-badges {
  display: flex;
}
.item-badge {
  border-radius: 50%;
  height: 20px;
  width: 20px;
  margin-left: 5px;
  border: 1px solid white;
}

.item-badge--type0 {
  background-color: #34BEE8;
}
.item-badge--type1 {
  background-color: #2BB17A;
}
.item-badge--type2 {
  background-color: #F7941C;
}
.item-badge--type3 {
  background-color: #ED2C23;
}


/** Notebook */
.notebook {
  margin-right: 2em;
}
/* lists */
.notebook .nb-row ul {
  flex-grow: 2;
  display: flex;
  margin: 0;
  padding: 0;
}

.notebook .nb-row ul li {
  margin: 0;
  font-size: 16px;
  font-weight: normal;
  list-style: none;
  display: inline-block;
  box-sizing: border-box;
  flex-grow: 1;
}
@media only screen and (max-width: 767px) and (min-width: 480px) {
  .notebook .nb-row ul li {
    font-size: 13px;
  }
}
@media only screen and (max-width: 479px) {
  .notebook .nb-row ul li {
    font-size: 13px;
  }
}

.notebook .title ul li {
  padding: 15px 13px;
}

.notebook .nb-row ul li {
  padding: 5px 10px;
}

/* rows */
.notebook .nb-row {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  height: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease-out;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.notebook .nb-row div {
  flex-grow: 2;
}

.notebook .nb-row:hover {
  height: 65px;
}
@media only screen and (max-width: 767px) {
  .notebook .nb-row:hover {
    height: 85px;
  }
}
@media only screen and (max-width: 359px) {
  .notebook .nb-row:hover {
    height: 105px;
  }
}

.notebook .title {
  padding: 25px 0 5px 0;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 3px solid rgba(255, 255, 255, 0.1);
}

.notebook .title:hover {
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 3px solid rgba(255, 255, 255, 0.1);
}

@media only screen and (max-width: 767px) {
  .notebook .title-hide {
    display: none;
  }
}

/* more content */
.notebook .nb-row .more-content li {
  position: relative;
  top: 22px;
  font-size: 13px;
  margin: 0;
  padding: 10px 13px;
  display: block;
  height: 50px;
  width: 100%;
  color: rgba(128, 128, 128, 0.9);
}
@media only screen and (max-width: 767px) {
  .notebook .nb-row ul.more-content li {
    font-size: 11px;
  }
}
/** End of Notebook **/

/** Unjustified absences alert **/

.absences-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

@media (max-width: 900px) {
  .absences-layout {
    flex-direction: column;
  }
}

.absences-items {
  display: flex;
  flex: 1 1 60%;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2em;
  grid-template-columns: repeat(auto-fit, Min(100%, 18rem));
  place-content: center;
  padding: 2rem;
  text-align: left;
}

@media (max-width: 840px) {
  .absences-items {
    flex-direction: column;
  }
}

.absences-items article {
  flex: 1 1 18rem;
  max-width: 22rem;
  overflow: hidden;
  background: #fff content-box;
  filter: drop-shadow(0px 0px 24px #D0D0D0);
  border-radius: 10px;
}

.absences-items header {
  padding: 1rem 1.5em;
  background-color: #F7941C;
  color: #fff;
}

.absences-items h3 {
  font: 900 1.1em/1.25 sans-serif;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.absences-items header div {
  font-size: 0.9em;
  opacity: 0.9;
}

.absences-items section {
  padding: 1rem 1.5em;
}

.absences-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.absences-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 0.4em 0;
  border-bottom: 1px solid rgba(160, 160, 160, 0.2);
  font-size: 0.95em;
}

.absences-list li:last-child {
  border-bottom: none;
}

.absences-list .absence-date {
  font-weight: 700;
}

.absences-list .absence-period {
  color: rgba(60, 59, 59, 0.7);
  flex: 1;
}

.absences-list .absence-justify-trigger {
  font-size: 0.65em;
  line-height: 1.8em;
  letter-spacing: 0.05em;
  padding: 0 1em;
  white-space: nowrap;
}

.justify-absence-form-wrapper {
  flex: 1 1 320px;
  max-width: 380px;
  margin: 2rem 2rem 2rem 0;
  padding: 1.5rem;
  background: rgba(160, 160, 160, 0.075);
  border-radius: 10px;
}

@media (max-width: 900px) {
  .justify-absence-form-wrapper {
    max-width: 100%;
    margin: 0 2rem 2rem;
  }
}

.justify-absence-form-wrapper .form-field {
  width: 100%;
  float: none;
}

.justify-absence-form-wrapper h4 {
  margin-top: 0;
}
/** End of unjustified absences alert **/