﻿:root {
  --couleur-primaire: #009ab1;
  --height-bannière-logged-in: 29vh;
  --width-sidebars: 250px;
}

/* Commun */

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1.5em;
}

html, body {
  height: 100%;
}

#browsers-msg, #cookies-msg, #cookiesga-msg {
  display: none;
  margin-bottom: 0;
  z-index: 1000
}

#cookies-msg, #cookiesga-msg {
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  text-align: center;
}

#cookies-msg.opened, #cookiesga-msg.opened, .ielt10 #browsers-msg {
  display: block
}

.btn-primary {
  background-color: var(--couleur-primaire);
  border-color: #008498;

  &:hover, &:active, &:focus {
    background-color: #006e7e;
    border-color: #004f5a;
  }
}

.btn-reset {
  background: 0;
  border: 0;
  padding: 0
}

.btn {
  font-weight: 600;

  &.btn-icon {
    display: flex;
    align-items: center;
    justify-content: space-between;

    span[class*="icon-"] {
      margin-left: 10px;
    }

    &.btn-prev {
      span[class*="icon-"] {
        margin-left: 0;
        margin-right: 10px;
      }
    }
  }

  &:not(.show-password) {
    min-width: 150px;
    padding: 15px 20px;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 1;
    border-width: 0;
  }

  &:focus, &:hover {
    text-decoration: none;
  }

  &[disabled], &[disabled]:focus, &[disabled]:hover {
    background: #c7c7c7;
    opacity: 1;
  }
}

.input-group-btn {
  .btn {
    padding: 6px 12px;
    border-width: 1px;
    height: 34px;
  }

}

.section-header {
  text-align: center;
  padding: 80px 0 60px;
}

.form-btn {
  margin-top: 40px;
  text-align: center;

  .btn-prev {
    float: left;
  }

  .btn-next {
    float: right;
  }
}

.help-block {
  font-size: 12px;
}

.form-control {
  background-repeat: no-repeat;
  background-position: calc(100% - 5px) 6px;

  &.form-control.valid {
    background-image: url(/Content/images/icons/tick.png);

    &.form-datepicker, &.no-validation-state {
      background-image: none;
    }
  }

  &.input-validation-error {
    background-image: url(/Content/images/icons/cross.png);
    border-color: #cf3905;

    &.form-datepicker, &.no-validation-state {
      background-image: none;
    }
  }

  &.form-datepicker {
  }
}

.control-label .spec {
  font-weight: 400;
  font-style: italic;
  font-size: 12px;
}

.form-datepicker-wrapper {
  width: 160px;
  position: relative;

  &:after {

    content: "\EA01";
    position: absolute;
    right: 10px;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    top: 50%;
    color: var(--couleur-primaire);
    pointer-events: none;
  }
}


.field-validation-error {
  color: #cf3905;
  font-weight: 700;
}

a {
  background-color: transparent;
  color: var(--couleur-primaire);
}

input[type="radio"] {
  accent-color: var(--couleur-primaire);
}

span.mandatory {
  color: #cf3905;
}

.checkbox {
  display: flex;
  gap: 0.5em;
  font-weight: 400;

  &:disabled {
    color: #959495;
    cursor: not-allowed;
  }

  input[type="checkbox"] {
    margin: 2px 0 0;
    position: relative;
  }
}

input[type="checkbox"] {
  flex-shrink: 0;
  flex-grow: 0;
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  margin: 2px 0 0;
  position: relative;
  align-self: flex-start;

  font: inherit;
  color: currentColor;
  width: 1.15em;
  height: 1.15em;
  border: 1px solid currentColor;
  border-radius: 0.15em;
  transform: translateY(-0.075em);

  display: grid;
  place-content: center;

  &::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transform-origin: bottom left;
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--couleur-primaire);
    /* Windows High Contrast Mode */
    background-color: CanvasText;
  }

  &:checked::before {
    transform: scale(1);
  }

  &:focus {
    outline: max(2px, 0.15em) solid currentColor;
    outline-offset: max(2px, 0.15em);
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  &.input-validation-error {
    border-color: #cf3905;
  }
}

.checkbox + .checkbox {
  margin-top: 1em;
}

.custom-checkbox {
  border-radius: 3px;
}

.checkboxes-long .checkbox, .radios-long .radio {
  margin-top: 30px;
}

.selected .custom-checkbox:before {
  display: block;
  content: "\EA10";
  font-size: 14px;
}

.custom-checkbox, .custom-radio {
  cursor: pointer;
  display: inline-block;
  width: 16px;
  height: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid #a1a1a1;
  background: #fafafa;

  &:before {
    content: '';
    display: none;
    color: var(--couleur-primaire);
    position: absolute;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
  }
}

footer {
  padding: 40px 0;
  background-color: var(--couleur-primaire);
  color: #fff;
  text-align: center;

  ul {
    list-style: none;
    margin: 0;
    padding: 0;

    li {
      display: inline;
    }

    li + li:before {
      content: '|';
      margin: 0 10px 0 7px;
    }
  }

  a, a:hover, a:focus {
    color: inherit;
  }

  p {
    margin: 10px 0 0;
  }
}

::-webkit-scrollbar {
  width: 10px
}

::-webkit-scrollbar-track {
  background: #ededed;
  border-radius: 10px
}

::-webkit-scrollbar-thumb {
  background: #4a4c53;
  border-radius: 10px
}

.access-block {
  background: #f5f5f5;
  border-radius: 3px;
  color: inherit;
  margin: 10px 0;
  text-align: center;

  a {
    display: block;
    color: inherit;
    padding: 40px;

    &:focus, &:hover {
      text-decoration: none;
    }
  }

  .block-icon {
    color: var(--couleur-primaire);

    &:before {
      font-size: 30px;
      margin: 0 0 20px;
    }
  }

  &:hover {
    background: var(--couleur-primaire);
    color: #fff;

    .block-icon {
      color: #fff;
    }
  }
}

.content-block .block-title:after, .section-title:after {
  border-top: solid var(--couleur-primaire);
  border-top-width: 4px;
  width: 55px;
  margin: 20px auto 0;
  content: '';
  display: block;
}

.section-title {
  font-size: 28px;
}

.form-group-highlight {
  background: #ededed;
  border-radius: 3px;
  padding: 10px;
}

.required-fields-notice {
  font-weight: 400;
  font-style: italic;
  color: #cf3905;
  font-size: 12px;
  margin: 20px 0;
}

.files-uploader {
  border: 1px solid #ddd;
  border-radius: 3px;
  margin: 0 0 40px;
  padding: 20px;

  .files-uploader-msg {
    display: none;
  }
}

.jFiler-items {

  .jFiler-items-list {
    list-style: none;
    margin: 0;
    padding: 0;

    .jFiler-item {
      background: #ededed;
      border-radius: 3px;
      margin-top: 20px;
      padding: 10px;

      display: grid;
      grid-template-columns: 20px 1fr 40px;
      grid-column-gap: 10px;

      .illustration-fichier {
        grid-column: 1;
        grid-row: span 2;
        align-self: center;
      }

      .jFiler-item-title {
        color: var(--couleur-primaire);
        display: block;
        grid-column: 2;
        grid-row: 1;
      }

      .jFiler-item-infos {
        font-size: 12px;
        grid-column: 2;
        grid-row: 2;
      }

      .jFiler-item-actions {
        grid-column: 3;
        grid-row: span 2;
      }
    }
  }
}

#attached-files-list .panel-body h3 {
  font-size: 18px;
}

#attached-files-list .panel-body, .multiple-steps-form .step-recap .table .group-title, .multiple-steps-form .step-recap .table .title, .multiple-steps-form .step-recap .table thead th {
  font-size: 12px;
}

label strong {
  color: var(--couleur-primaire);
}

/* Layout connecté */

.header.not-authenticated {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logged-in {
  .page {
    height: 100%;
    display: grid;
    grid-template-rows: 105px 1fr 140px;
  }

  .content {
    display: grid;
    grid-template-rows: var(--height-bannière-logged-in) 1fr;
    grid-row-gap: 20px;
    height: 100%;
    padding-bottom: 40px;

    .container {
      display: flex;
      flex-direction: column;
    }

    .container-fluid {
      width: 100%;
      padding: 0 20px;

      .grille {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 20px;

        > * {
          height: 100%;
        }
      }
    }

    .intro {
      margin-bottom: 40px;
    }
  }

  #banner-image {
    height: 100%;
    margin-left: 20px;
    margin-right: 20px;
    background-image: url(/Content/images/bg/bg_banner_actionsociale.jpg)
  }

  header#header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;

    .header-left {
      display: flex;
      column-gap: 20px;
    }

    #user-actions {
      display: flex;
      flex-direction: column;
      align-items: flex-end;

      .icon-user {
        margin-right: 20px;
      }
    }
  }

  #logo {
    @media (max-width: 992px) {
      padding-left: 20px;
      border-left: 1px solid #a1a1a1;
    }

    img {
      width: 90px;
    }
  }

  main {
    display: grid;
    position: relative;
    grid-template-columns: var(--width-sidebars) 1fr var(--width-sidebars);

    @media (max-width: 1200px) {
      grid-template-columns: var(--width-sidebars) 1fr;
    }

    @media (max-width: 992px) {
      grid-template-columns:  1fr ;
    }
  }

  &.navigation-opened {
    nav#navigation {
      width: var(--width-sidebars);
    }

    #btn-show-navigation {
      .top {
        -ms-transform: translateY(8px) translateX(0) rotate(45deg);
        transform: translateY(8px) translateX(0) rotate(45deg);
      }

      .middle {
        display: none;
      }

      .bottom {
        -ms-transform: translateY(-8px) translateX(0) rotate(-45deg);
        transform: translateY(-8px) translateX(0) rotate(-45deg);
      }
    }
  }

  &.user-sidebar-opened {
    aside#user-sidebar {
      width: var(--width-sidebars);
    }
  }

  #btn-show-navigation {
    .bars {
      width: 25px;
      height: 18px;
      position: relative;
      display: inline-block;
      vertical-align: middle;

      span {
        position: absolute;
        top: 0;
        left: 0;
        background: #009ab1;
        cursor: pointer;
        display: block;
        height: 2px;
        width: 100%;
        transition: all .35s ease;

        &.middle {
          top: 8px;
        }

        &.bottom {
          top: 16px;
        }
      }
    }

    .text {
      text-transform: uppercase;
      font-weight: 700;
      font-size: 12px;
      margin-left: 5px;
      vertical-align: middle;
    }
  }

  footer {
    background-color: #ededed;
    color: #4a4c53;
  }
}

nav#navigation {
  font-weight: 600;
  background-color: var(--couleur-primaire);
  color: #fff;
  transition: width .4s cubic-bezier(.16, .68, .43, .99);

  @media (max-width: 992px) {
    width: 0;
    position: absolute;
    overflow: hidden;
    z-index: 10;
    top: 0;
    bottom: 0;
  }

  #navigation-accordion {
    position: sticky;
    top: 0;
  }

  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  li {
    border-bottom: 1px solid #006574;


    &.active {
      background-color: #007283;
    }

    a {
      padding: 15px 10px 15px 15px;
      text-transform: uppercase;
      color: inherit;
      display: grid;
      grid-template-columns: 20px 1fr 20px;
      grid-gap: 15px;
      align-items: center;
      text-decoration: none;

      .icone {
        grid-column: 1;
      }

      .titre {
        grid-column: 2;
      }

      .fleche {
        grid-column: 3;
      }

      &[data-toggle="collapse"] {
        &:after {
          content: "\EA0D";
        }

        &.collapsed:after {
          content: "\EA04";
        }
      }

      &:hover, &:focus {
        text-decoration: none;
      }
    }
  }

  .panel-body {
    padding: 0;
    font-size: 12px;

    li {
      border-bottom: none;

      &.active {
        background-color: #005765;
      }

      a {
        padding: 5px 10px 5px 55px;
        text-transform: none;
        grid-template-columns: 1fr 20px;

      }
    }
  }
}

aside#user-sidebar {
  padding-right: 10px;
  transition: width .4s cubic-bezier(.16, .68, .43, .99);

  @media (max-width: 1200px) {
    padding: 0;
    width: 0;
    position: absolute;
    overflow: hidden;
    z-index: 10;
    top: 0;
    bottom: 0;
    right: 0;
  }

  #user-infos {
    background-color: var(--couleur-primaire);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    min-height: var(--height-bannière-logged-in);

    [class*="icon-"] {
      margin: 0 0 10px;

      &:before {
        font-size: 30px;
      }
    }

    .fullname {
      font-weight: 600;
      line-height: 1.6;
    }

    .fullname, .matricule {
      font-size: 14px;
    }

    .btn {
      margin-top: 10px;
      height: 42px;

      &:after {
        content: "\EA2F";
        font-size: 20px;
        font-family: iconfont;
        speak: none;
        font-style: normal;
        font-weight: 400;
        font-variant: normal;
        text-transform: none;
        line-height: 1;
      }
    }
  }

  .sidebar-block {
    font-size: 12px;
    margin: 20px 0 0;
    padding: 20px 15px;
    border-radius: 3px;

    .block-title {
      font-size: 18px;
      margin: 0 0 20px;
      text-align: center;

      &:after {
        content: '';
        display: block;
        border-top: 2px solid #fff;
        width: 45px;
        margin: 10px auto 0;
      }
    }
  }

  .sidebar-block-dark {
    background-color: #4a4c53;
    color: #fff;
  }

  .sidebar-agenda {
    background-color: #ededed;

    .prev, .next {
      visibility: hidden !important;
    }

    .today-date {
      display: flex;
      flex-direction: column;
      border-radius: 3px;
      font-size: 18px;
      padding: 5px;
      line-height: 1.33333;
      margin: 0 0 20px;
      text-transform: uppercase;
      background: var(--couleur-primaire);
      color: #fff;
      text-align: center;

      .day {
        font-size: 36px;
      }
    }
  }
}

.datepicker {
  border-radius: 3px;
  background-color: #fff;
  border: 1px solid #ddd;
  width: auto;
  direction: ltr;

  .datepicker-switch, .next, .prev, tfoot tr th {
    cursor: pointer;
  }

  .datepicker-switch {
    width: 145px;
  }

  .prev.disabled, .next.disabled {
    visibility: hidden;
  }

  table tr {
    th {
      text-align: center;
      width: 30px;
      height: 30px;
      border-radius: 4px;
      border: none;
    }

    td {
      text-align: center;
      width: 30px;
      height: 30px;
      border-radius: 4px;
      border: none;

      span {
        display: block;
        width: 23%;
        height: 54px;
        line-height: 54px;
        float: left;
        margin: 1%;
        cursor: pointer;
        border-radius: 4px;

        &.focused, &:hover {
          background: #ededed;
        }

        &.old {
          color: #a1a1a1;
        }

        &.disabled {
          background: 0 0;
          color: #a1a1a1;
          cursor: not-allowed;
        }
      }

      &.day:hover {
        background: #ededed;
        cursor: pointer;
      }

      &.active {
        color: #fff;
        background-color: #006e7e;
        border-color: #004f5a;
      }

      &.new, &.old {
        color: #a1a1a1;
      }

      &.disabled {
        background: #ededed;
        color: #a1a1a1;
        cursor: not-allowed;
        border-radius: 0;
      }
    }
  }
}

.content {
  #page-title {
    text-align: center;
    display: flex;
    flex-direction: column;

    &:before {
      color: var(--couleur-primaire);
      font-size: 40px;
      margin: 0 0 10px;
    }
  }
}

/* Page /Account/Edit */

.nav-tabs {
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--couleur-primaire);

  a {
    color: #4a4c53;
    text-decoration: none;

    &:focus, &:hover {
      background: #009ab1;
      color: #fff;
    }
  }

  > li.active > a, > li.active > a:hover, > li.active > a:focus {
    color: var(--couleur-primaire);
    background-color: #fff;
    border: 1px solid var(--couleur-primaire);
    border-bottom-color: transparent;
  }

  > li > a {
    margin-right: 2px;
    line-height: 1.6;
    border: 1px solid transparent;
    border-radius: 3px 3px 0 0;

    &:hover, &:focus {
      border-color: #ededed #ededed var(--couleur-primaire);
      text-decoration: none;
      background-color: #009ab1;
    }
  }
}

.tab-content {
  border: 1px solid var(--couleur-primaire);
  border-top: 0;
  background: #fff;
}

.tab-pane {
  .row {
    display: flex;
    align-items: stretch;

    .demi-panneau {
      padding: 0 40px;
    }

    .séparateur {
      background-color: #ddd;
      width: 1px;
    }
  }
}


.edit-account-tab {
  padding: 40px 20px;

  h2 {
    font-size: 18px;
    margin: 0 0 40px;
    text-align: center;
  }

  h2:after {
    width: 45px;
    content: '';
    display: block;
    border-top: 2px solid var(--couleur-primaire);
    margin: 10px auto 0;
  }
}

.footnote {
  font-size: 12px;
  margin: 40px 0 0;
  font-weight: 400;
  font-style: italic;
}

/* Page /Documents/Attestations */

.downloading .data-table {
  opacity: .5
}

.data-table-msg, .dataTables_processing {
  background: #4a4c53;
  color: #fff;
  padding: 10px;
  position: absolute;
  left: 50%
}

.dataTables_length label {
  margin-bottom: 0
}

.dataTables_paginate {
  text-align: right
}

.dataTables_processing {
  border: 0;
  border-radius: 3px;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  top: 50%
}

.data-table-btn {
  float: right;
}

.data-table-msg {
  border-radius: 3px;
  display: none;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  top: 50%
}

.downloading .data-table-msg {
  display: inline-block
}

.data-table {
  margin: 20px 0;

  th {
    background: #4a4c53;
    text-align: center;
    cursor: pointer;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;

    &:after, &:before {
      width: 0;
      height: 0;
      border-style: solid;
      content: '';
      display: inline-block;
      position: absolute;
      right: 10px;
      top: 50%;
    }

    &:before {
      border-color: transparent transparent #fff;
      border-width: 0 5px 5px;
      margin-top: -5px
    }

    &:after {
      border-width: 5px 5px 0;
      border-color: #fff transparent transparent;
      margin-top: 5px
    }


    &.sorting_asc, &.sorting_desc {
      background: #323338;
    }

    &.sorting_asc:after, &.sorting_desc:before {
      opacity: .2
    }


    &.no-sort {
      cursor: default;

      &:after, &:before {
        display: none
      }
    }
  }

  td {
    border-bottom: 1px solid #fff;
    align-content: center;
  }

  td + td, th + th {
    border-left: 1px solid #fff;
  }

  tr {
    &:nth-child(even) {
      background-color: #e0e0e0;
    }
  }

  .new {
    td, th {
      font-weight: 700;
    }

    .name {
      display: flex;
      flex-direction: column;

      &:before {
        content: 'Nouveau';
        color: #cf3905;
        font-size: 8px;
        text-transform: uppercase;
      }
    }
  }

  .date, .radio, .selection, .button {
    text-align: center;
  }

  .button, .date, .period {
    width: 140px;
  }

  .selection {
    width: 40px;
  }
}

.data-table-container {
  .pagination {
    display: inline-block;
    padding-left: 0;
    border-radius: 3px
  }

  .pagination > li {
    display: inline
  }

  .pagination > li > a, .pagination > li > span {
    position: relative;
    float: left;
    padding: 6px 12px;
    line-height: 1.6;
    text-decoration: none;
    color: var(--couleur-primaire);
    background-color: #fff;
    border: 1px solid #ddd;
    margin-left: -1px
  }

  .pagination-lg > li:first-child > a, .pagination-lg > li:first-child > span, .pagination-sm > li:first-child > a, .pagination-sm > li:first-child > span {
    border-bottom-left-radius: 3px;
    border-top-left-radius: 3px
  }

  .pagination-lg > li:last-child > a, .pagination-lg > li:last-child > span, .pagination-sm > li:last-child > a, .pagination-sm > li:last-child > span, .pagination > li:last-child > a, .pagination > li:last-child > span {
    border-bottom-right-radius: 3px;
    border-top-right-radius: 3px
  }

  .pagination > li:first-child > a, .pagination > li:first-child > span {
    margin-left: 0;
    border-bottom-left-radius: 3px;
    border-top-left-radius: 3px
  }

  .pagination > li > a:focus, .pagination > li > a:hover, .pagination > li > span:focus, .pagination > li > span:hover {
    z-index: 2;
    color: #006e7f;
    background-color: #ededed;
    border-color: #ddd
  }

  .pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover, .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover {
    z-index: 3;
    color: #fff;
    background-color: var(--couleur-primaire);
    border-color: var(--couleur-primaire);
    cursor: default
  }

  .pagination > .disabled > a, .pagination > .disabled > a:focus, .pagination > .disabled > a:hover, .pagination > .disabled > span, .pagination > .disabled > span:focus, .pagination > .disabled > span:hover {
    color: #a1a1a1;
    background-color: #fff;
    border-color: #ddd;
    cursor: not-allowed
  }

  .pagination-lg > li > a, .pagination-lg > li > span {
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.33333
  }

  .pagination-sm > li > a, .pagination-sm > li > span {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5
  }

  #styleguide .table-contents a:before, #user-infos:before, .arrow-list a:after, .btn:after, .check-list li:after, .custom-checkbox:before, .dates-list li:after, .documents-list .text:after, .files-list a:after, .form-datepicker-wrapper:after, .forms-list .text:after, .icon:before, .jFiler-item:before, .link-main:after, .pager .first > :before, .pager .last > :after, .pager .next > :after, .pager .prev > :before, .pager .previous > :before, .pagination .first > :before, .pagination .last > :after, .pagination .next > :after, .pagination .prev > :before, .pagination .previous > :before, .panel .panel-title a:after, [class*=" icon-"]:before, [class^=icon-]:before {
    font-size: 20px;
    font-family: iconfont;
    speak: none;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
  }

  .pager li > a, .pager li > span, .pagination li > a, .pagination li > span {
    position: relative
  }

  .pager .first > :before, .pager .last > :after, .pager .next > :after, .pager .prev > :before, .pager .previous > :before, .pagination .first > :before, .pagination .last > :after, .pagination .next > :after, .pagination .prev > :before, .pagination .previous > :before {
    position: absolute;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    top: 50%;
    vertical-align: middle
  }

  .alert, .pagination-block {
    position: relative
  }

  .pager .first > *, .pager .prev > *, .pager .previous > *, .pagination .first > *, .pagination .prev > *, .pagination .previous > * {
    padding-left: 27px
  }

  .pager .first > :before, .pager .prev > :before, .pager .previous > :before, .pagination .first > :before, .pagination .prev > :before, .pagination .previous > :before {
    left: 5px
  }

  .pager .last > *, .pager .next > *, .pagination .last > *, .pagination .next > * {
    padding-right: 27px
  }

  .pager .last > :after, .pager .next > :after, .pagination .last > :after, .pagination .next > :after {
    right: 5px
  }

  .pager .first > :before, .pagination .first > :before {
    content: "\EA05"
  }

  .pager .prev > :before, .pager .previous > :before, .pagination .prev > :before, .pagination .previous > :before {
    content: "\EA07"
  }

  .pager .next > :after, .pagination .next > :after {
    content: "\EA0A"
  }

  .pager .last > :after, .pagination .last > :after {
    content: "\EA08"
  }

  .pager .active a span, .pagination .active a span {
    display: none
  }

  .pagination-block {
    text-align: center
  }

  .pagination {
    margin: 0
  }

  .pagination .prev > *, .pagination .previous > * {
    float: left
  }

  .pagination .pager-ellipsis {
    opacity: 1;
    display: inline
  }

  @media (max-width: 767px) {
    .pagination {
      display: table;
      width: 100%
    }

    .pagination li {
      display: none;
      text-align: center
    }

    .pagination li > * {
      display: block;
      float: none !important;
      margin: 0
    }

    .pagination .active, .pagination .first, .pagination .last, .pagination .next, .pagination .prev, .pagination .previous {
      display: table-cell;
      width: 20%
    }

    .pagination .active > *, .pagination .first > *, .pagination .last > *, .pagination .next > *, .pagination .prev > *, .pagination .previous > * {
      padding-left: 5px;
      padding-right: 5px
    }

    .pagination .active > :after, .pagination .active > :before, .pagination .first > :after, .pagination .first > :before, .pagination .last > :after, .pagination .last > :before, .pagination .next > :after, .pagination .next > :before, .pagination .prev > :after, .pagination .prev > :before, .pagination .previous > :after, .pagination .previous > :before {
      display: none
    }

    .pagination .active > span span {
      display: inline
    }

    .pager li a {
      width: calc(50% - 10px)
    }
  }

  .paginate_button a:focus {
    outline: none;
  }

  &.no-pager .dataTables_paginate {
    display: none;
  }
}

/* Formulaires action sociale */
.table {
  thead tr th {
    background: #4a4c53;
    text-align: center;
    border-bottom: none;
  }

  .group-title {
    th {
      background: var(--couleur-primaire);
    }
  }

  .field {
    width: 220px;
  }

  th {
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    vertical-align: middle !important;
  }

  td {
    background: #ededed;
    border-bottom: 1px solid #fff;

    &.title {
      font-weight: 700;
    }
  }

  th, td {
    padding: 12px;
  }

  td + td, th + th {
    border-left: 1px solid #fff;
  }

  .form-datepicker-wrapper {
    width: 100%;
  }

  .radio {
    text-align: center;

    label {
      padding-left: 0;
    }
  }
}

.repeatable-fields .form-group {
  padding: 0 10px;
  margin-bottom: 30px;
}

.repeatable-group {
  padding-top: 10px;

  .form-datepicker-wrapper {
    width: 100%;
  }
}

.repeatable-group + .repeatable-group {
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.conditional-field {
  display: none;

  &.condition-success {
    display: block;
  }
}

/* Page /Forms */

.panel-group .panel + .panel {
  margin-top: 10px;
}

.multiple-steps-form {
  counter-reset: step;

  .section-header {
    &:first-of-type {
      padding-top: 0;
    }
  }

  .step-recap {
    counter-increment: step;

    .panel-title {
      font-size: 18px;

      &:before {
        content: counter(step);
        display: inline-block;
        width: 22px;
        height: 22px;
        border-radius: 50px;
        background: #fff;
        color: var(--couleur-primaire);
        line-height: 22px;
        margin: 0 10px 0 0;
        text-align: center;
      }
    }
  }
}

.panel {
  .panel-title, .panel-footer {
    background-color: var(--couleur-primaire);
    border-color: var(--couleur-primaire);
    color: #fff;
    font-size: 14px;
    padding: 10px 15px;
  }

  .panel-footer {
    display: flex;
    justify-content: flex-end;
  }

  .panel-body {
    & > :first-child {
      margin-top: 0;
    }

    & > :last-child {
      margin-bottom: 0;
    }
  }

}

.documents-list, .forms-list {
  list-style: none;
  padding: 0;

  li {
    display: grid;
    align-items: center;
    grid-template-columns: 25px 1fr 200px;
    column-gap: 10px;
    height: 82px;
    border-bottom: 1px solid #ddd;

    &:last-child {
      border-bottom: none;
    }

    &.has-draft {
      .title:after {
        content: ' *';
        display: inline;
        color: #cf3905;
      }
    }

    .title, .type {
      display: block;
    }

    .title {
      font-size: 14px;
    }

    .type {
      color: #a1a1a1;
      font-size: 12px;
    }

    .boutons {
      display: flex;
      align-items: center;
      justify-content: end;

      .btn {
        height: 42px;
      }

      .btn-help {
        margin-right: 10px;
      }
    }
  }
}

/* Page /Account/Login */

#preregister-form form, .jFiler-item .jFiler-item-infos .jFiler-item-status {
  display: none
}

#preregister-form.profile-displayed-0 #form-preregister-enterprise, #preregister-form.profile-displayed-1 #form-preregister-enterprise, #preregister-form.profile-displayed-2 #form-preregister-employee, #preregister-form.profile-displayed-3 #form-preregister-retired {
  display: block
}

#banner-image {
  background: 50% 50% no-repeat;
  background-size: cover;
  margin: 0 0 20px
}

.not-logged-in #banner-image {
  background-image: url(/Content/images/bg/bg_banner_generic.jpg);
  height: 250px
}

.header {
  .not-authenticated {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
  }
}

.breadcrumb {
  background-color: transparent;
  color: #a1a1a1;
  margin: 0;
  padding: 0 0 40px;

  a {
    color: inherit;
  }

  .active {
    font-weight: 600;
    color: var(--couleur-primaire);
  }
}

.content-block {
  background-color: #ededed;
  border-radius: 3px;
  padding: 40px 20px 20px;

  .block-title {
    font-size: 22px;
    margin: 0 0 40px;
    text-align: center;
  }
}

.content-block.content-block-primary {
  background-color: var(--couleur-primaire);
  color: #fff;

  .block-title:after {
    border-top: solid #fff;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }

  .btn-help {
    background: #fff;
    color: var(--couleur-primaire);
  }
}

.support_aide {
  font-size: 12px;
}

ul {
  padding-left: 20px;
}

.not-logged-in {
  .page {
    height: 100%;
    display: grid;
    grid-template-rows: 140px 1fr 140px;
  }

  .content {
    display: grid;
    grid-template-rows: 250px 1fr;
    grid-row-gap: 20px;
    height: 100%;

    .container {
      display: flex;
      flex-direction: column;
    }
  }

  #banner-image {
    background-image: url(/Content/images/bg/bg_banner_generic.jpg);
  }

  footer {
    background-color: var(--couleur-primaire);
    color: #fff;
    margin-top: 20px;
  }
}

.login-register {
  display: grid;
  grid-template-columns: 2fr 1fr;
  column-gap: 20px;
  height: 100%;
}

.preregister-form {
  display: flex;
  flex-direction: column;

  .row {
    height: 100%;
  }

  .preregister-description {
    @media (min-width: 992px) {
      height: 100%;
    }
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    .intro {
      @media (min-width: 992px) {
        border-right: 1px solid #FFFFFF7F;
        padding: 0 20px 0 0;
      }

      @media (max-width: 992px) {
        border-bottom: 1px solid #FFFFFF7F;
        margin: 0 0 20px;
        padding: 0 0 20px;
      }
    }
  }

  .form-datepicker-wrapper {
    width: 180px;
  }

  .form-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.btn-help {
  padding: 0;
  font-weight: 600;
  background: var(--couleur-primaire);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  width: 30px;
  height: 30px;
  border: 0;
  line-height: 1;
}

.btn-icon {
  border-radius: 3px;
  display: inline-block;
  padding: 5px 10px;
  position: relative;
  border: 0;
  line-height: 1;
  transition: all .4s;

  [class*="icon-"]:before {
    font-size: 16px;
  }
}

.btn-success {
  color: #fff;
  background-color: #00b160;
  border-color: #009852;
}

.btn-cancel {
  background: #ededed;
  border-color: #4a4c53;
  color: #4a4c53;
}

.form-control-help {
  display: grid;
  grid-template-columns: 1fr 30px;
  column-gap: 10px;
}

.form-recap-fields {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;

  li {
    display: grid;
    grid-template-columns: 2fr 3fr;
    column-gap: 10px;
    padding: 10px 0;
    align-items: center;

    .key {
      text-align: right;
    }

    .spec {
      font-weight: 400;
      font-style: italic;
      font-size: 12px;
    }
  }
}

.form-recap-field {
  margin-bottom: 20px;
}

#login-form {
  .form-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .forgot-pwd {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
  }
}
