/******************
    User custom CSS
    ---------------
    In this file you can add your own custom CSS
    It will be loaded last, so you can override any other property.
    Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/

  .table-bordered > thead > tr > th {
    border: 1px solid #dadada;
  }
  .table-bordered > thead > tr > td {
    border: 1px solid #dadada;
  }

  .ls-questionhelp {
    color: #E67F39;
  }

  @media (max-width: 700px) {
    .table thead {
      display: none;
    }
    .table tr {
      display: block;
      margin-bottom: 40px;
    }
    .table td {
      display: block;
      text-align: right;
    }
    .table td:before {
      content: attr(data-label);
      float: left;
      font-weight: bold;
    }
  }

/******************
    Politique de confidentialité
*/

  .card-header.bg-primary {
    background-color: #23446C !important;
    border-radius: 6px 6px 0 0 !important;
  }

  .card-header.bg-primary h4 {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: bold !important;
    margin: 0 !important;
  }

  .card.card-primary {
    border: 1px solid #D0DDE8 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    margin-top: 1rem !important;
  }

  .card.card-primary .card-body {
    background: #F4F7FA !important;
    color: #23446C !important;
  }

  .card.card-primary .card-footer {
    background: #F4F7FA !important;
    border-top: 1px solid #D0DDE8 !important;
  }

  .card.card-primary .btn-primary {
    background-color: #28598F !important;
    border-color: #23446C !important;
    color: #ffffff !important;
    border-radius: 6px !important;
  }

  .card.card-primary .btn-primary:hover {
    background-color: #23446C !important;
  }

  .card.card-primary .btn-outline-secondary {
    border-color: #D0DDE8 !important;
    color: #23446C !important;
    border-radius: 6px !important;
  }

  .card.card-primary .btn-outline-secondary:hover {
    background-color: #EAF2F8 !important;
  }

  .form-check-label a {
    color: #28598F !important;
    text-decoration: underline !important;
  }

  #datasecurity_accepted {
    accent-color: #28598F !important;
  }

/******************
    Boutons de navigation
*/

  .btn-primary,
  input[type="submit"].btn-primary,
  button.btn-primary {
    background-color: #28598F !important;
    border-color: #23446C !important;
    color: #ffffff !important;
    border-radius: 6px !important;
  }

  .btn-primary:hover,
  input[type="submit"].btn-primary:hover,
  button.btn-primary:hover {
    background-color: #23446C !important;
    border-color: #23446C !important;
  }

/******************
    Boutons de réponse sélectionnés
*/

  .btn-check:checked + .btn,
  .btn-check:checked + .btn-primary,
  .btn-check:checked + .ls-button-label,
  .ls-answers .btn-check:checked + .btn,
  .ls-answers .btn-check:checked + .btn-primary,
  .ls-answers .btn-check:checked + .ls-button-label,
  .answers-list .btn-check:checked + .btn,
  .answers-list .btn-check:checked + .btn-primary {
    background-color: #008573 !important;
    border-color: #02695A !important;
    color: #ffffff !important;
  }

  .btn-check:checked + .btn:hover,
  .btn-check:checked + .btn-primary:hover,
  .btn-check:checked + .ls-button-label:hover,
  .ls-answers .btn-check:checked + .btn:hover,
  .answers-list .btn-check:checked + .btn:hover {
    background-color: #02695A !important;
    border-color: #02695A !important;
  }

  .btn-check:focus + .btn,
  .btn-check:focus + .ls-button-label {
    box-shadow: 0 0 0 3px rgba(0, 133, 115, 0.35) !important;
  }

/******************
    Réduction espaces message de fin
*/

  .ls-end-message p:empty,
  .endpage p:empty {
    display: none;
  }

/******************
    Impression / PDF
*/

  @media print {

    .ls-container > .navbar,
    .ls-header,
    #ls-top-logo,
    .navbar-header,
    .navbar-brand,
    nav.navbar {
      display: none !important;
    }

    body {
      margin-top: 0 !important;
      padding-top: 0 !important;
    }

    .container,
    .ls-container,
    #outerframeContainer,
    #printview {
      margin-top: 0 !important;
      padding-top: 0 !important;
    }

    * {
      page-break-before: auto !important;
    }

    p, div {
      page-break-inside: avoid;
    }

    @page {
      margin-top: 10mm;
      margin-bottom: 10mm;
      margin-left: 10mm;
      margin-right: 10mm;
    }

  }