:root {
  --color-orange: #f7941e;
  --color-gris: #6e6e71;
  --color-gris-fonce: #3d3f41;
  --color-gris-clair: #f3f4f5;
  --color-green: #379b5d;
}

body.designupdate {
  font-family: "Calibri", sans-serif;
  font-size: 13px;
  color: var(--color-gris-fonce);

  &:has(#AISummaryProcessing.active) {
    overflow: hidden;
  }

  .h1,
  .h2,
  .h3,
  .h4,
  .h5,
  .h6,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: "Calibri", sans-serif;
    text-shadow: none;
    color: var(--color-gris-fonce);
  }

  b,
  strong {
    font-weight: 600;
  }

  a {
    color: var(--color-gris);
    &:hover,
    &:active {
      color: var(--color-orange);
    }
  }

  a.label {
    transition: all ease-in-out 0.3s;
    &.label-default {
      &:hover {
        color: #000;
      }
    }
    &.label-primary,
    &.label-success,
    &.label-warning,
    &.label-info,
    &.label-danger {
      &:hover {
        color: #fff;
      }
    }
  }

  dl {
    &.ai-summary {
      dd {
        h1,
        h2,
        h3 {
          font-size: clamp(1rem, 1vw, 2rem);
          margin-bottom: 0.5rem;
        }
        p:empty {
          display: none;
        }
        ul {
          list-style-position: inside;
          padding: 0;
        }
      }

      &:has(dd > h2:first-child, dd > h1:first-child) {
        dt {
          position: relative;
          top: 3px;
        }
      }
    }
  }

  .text-lg {
    font-size: 2rem;
  }

  .overviewModal {
    button {
      &.close {
        background: #3d3f41;
        color: #fff;
        font-size: 4rem;
        width: 45px;
        height: 45px;
        position: fixed;
        top: 0;
        right: 0;
      }
    }
    .modal-content {
      border-radius: 0;
      background: #fff !important;

      .content {
        & > strong {
          display: block;
          font-size: 14px;
          margin-bottom: 5px;
        }
        ul {
          & {
            padding-left: 3rem;
          }
          li::marker {
            color: var(--color-orange);
            font-size: 16px;
            display: block;
            line-height: 1.5;
            position: relative;
            top: 3px;
          }
        }
      }
    }
    .modal-footer {
      border-top: 1px solid #e0e0e0;
      padding: 2rem;
      text-align: center;
    }
  }

  .icon,
  .fa {
    &.md-power,
    &.fa-download,
    &.fa-car,
    &.fa-truck,
    &.fa-question-circle,
    &.fa-mobile,
    &.md-search,
    &.fa-search,
    &.fa-home {
      &::before {
        display: inline-block;
        font-family: bootstrap-icons !important;
        font-style: normal;
        font-weight: 400 !important;
        font-variant: normal;
        text-transform: none;
        line-height: 1;
        vertical-align: -0.125em;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        content: "\F1C3";
        font-size: 1.5rem;
      }
    }

    &.md-search,
    &.fa-search {
      &::before {
        content: "\f52a";
      }
    }

    &.fa-download {
      &::before {
        content: "\F1BC";
      }
    }

    &.fa-car {
      &::before {
        content: "\f7e1";
      }
    }

    &.fa-truck {
      &::before {
        content: "\f821";
      }
    }

    &.fa-question-circle {
      &::before {
        content: "\f505";
      }
    }

    &.fa-mobile {
      &::before {
        content: "\f4e7";
      }
    }

    &.fa-home {
      &::before {
        content: "\f425";
      }
    }
  }

  .alert-alt {
    &.alert-danger {
      background: #ffe1df;
      color: #b61b17;
    }
  }

  .select2 {
    max-width: 100%;
    min-width: 320px;
    .select2-selection__choice {
      border-radius: 30px;
      line-height: 2rem;
      padding: 3px 10px 2px;
      background-color: var(--color-gris-clair);
    }
  }

  .site-navbar {
    .navbar-toolbar {
      li {
        & > a,
        & > span {
          height: 75px;
          padding-top: 28px;
        }
      }
      .icon {
        &.md-power {
          position: relative;
          top: -3px;
          /* font-size: 2rem; */

          &::before {
            font-size: 2.5rem;
          }
        }
        &.md-search {
          &::before {
            font-size: 2.5rem !important;
          }
        }
      }
    }

    #site-navbar-search {
      input[name="q"] {
        height: 75px !important;
      }
    }
  }
  .site-menubar {
    height: 100vh;
    top: 0;
    z-index: 1600;

    .site-menubar-logo {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      width: 100%;
      padding: 1.5rem 1rem;
      border-bottom: 1px solid var(--color-gris);

      img {
        display: block;
        width: 90%;
        height: auto;
      }
      span {
        font-size: 14px;
        font-weight: bold;
        color: var(--color-gris);
      }
    }

    .site-menu {
      .site-menu-item {
        border-bottom: 1px solid rgb(110 110 113 / 20%);
        border-top: 1px solid rgb(110 110 113 / 20%);
        background: #fff;
        margin-bottom: -1px;

        a {
          color: var(--color-gris-fonce);
          padding: 0 2rem;
          height: 40px;
          line-height: 36px;
          display: block;

          i {
            margin-right: 0.5rem;

            &::before {
              position: relative;
              top: 1px;
              font-size: 1.5rem;
            }
          }
        }

        &.active > a {
          border-bottom: 1px solid rgb(110 110 113 / 20%);
        }

        .site-menu-sub {
          padding: 0;
          .site-menu-item {
            .site-menu-sub {
              .site-menu-item {
                border: none;
                & > a {
                  border: none;
                  padding-left: 3.5rem;
                }
              }
            }

            &.active {
              & > a {
                /* background-color: var(--color-orange); */
                /* color: #fff; */
                & > i {
                  color: var(--color-orange);
                }
              }
            }

            &.has-sub {
              &:not(.open) > a {
                .site-menu-arrow {
                  -webkit-transform: rotate(90deg);
                  -ms-transform: rotate(90deg);
                  -o-transform: rotate(90deg);
                  transform: rotate(90deg);
                }
              }

              &.open > a {
                .site-menu-arrow {
                  -webkit-transform: rotate(-90deg);
                  -ms-transform: rotate(-90deg);
                  -o-transform: rotate(-90deg);
                  transform: rotate(-90deg);
                }
              }

              &.active {
                margin-top: -1px;
                li.active {
                  & > a {
                    background-color: var(--color-orange);
                    border-color: var(--color-orange);
                    color: #fff;
                    height: 40px;

                    & > i {
                      color: #fff;
                    }
                  }
                }
              }
            }
          }
        }

        &.menu-home {
          & > .site-menu-sub {
            & > li {
              & > a {
                font-weight: 500;
                font-size: 14px;
              }
            }
          }
        }
      }
    }
  }

  .btn {
    border-radius: 30px;
    border-color: #e0e0e0;
    box-shadow: none;
    text-decoration: none;
    padding: 8px 20px 6px;

    .input-group-btn:last-child & {
      border-radius: 3px;
      height: 36px;
      padding-top: 7px;
    }

    &.btn-xs {
      line-height: 2rem;
      padding: 0.3rem 1rem 0.25rem;
      font-size: 1.25rem !important;
    }
    &.btn-primary {
      /* font-size: 1.65rem; */
      font-weight: 400;
      /* border-radius: 15px; */
      color: #fff;
      border-color: var(--color-orange);
    }
    &.btn-default {
      background: #fff;
      &.btn-primary {
        background: var(--color-orange);
      }
      &:has(.flag-icon) {
        padding-left: 1rem;
        padding-right: 1rem;
      }
    }

    &.btn-icon {
      min-width: 30px;
      height: 30px;
      line-height: 2.6rem;
    }

    &.btn-danger {
      color: #fff;
      border: none;
      background-color: #f44336;
    }

    &.btn-dark {
      color: #fff;
      &.letter {
        max-width: 38px;
        text-align: center;
        padding: 0;
        height: auto;
        background: transparent;
        color: var(--color-gris-fonce);
        border-color: var(--color-gris);
        margin-right: 5px;
        aspect-ratio: 1/1;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        &:hover {
          background: var(--color-orange);
          border-color: var(--color-orange);
          color: #fff;
        }
      }
    }

    &.select-options {
      &.btn-dark {
        background: transparent;
        color: var(--color-gris-fonce);
        border-color: var(--color-orange);
      }
    }

    &.dropdown-toggle {
      border-radius: 3px;
    }
  }

  img.file-type-icon {
    border: none;
    border-radius: 50%;
  }

  .panel {
    box-shadow: none;
    border-radius: 4px;

    .panel-heading {
      border-bottom-color: #e0e0e0;
      transition: all ease-in-out 0.3s;
      .panel-title {
        padding: 1.5rem 2rem;
        font-weight: 600;
        font-size: 18px;
        text-shadow: none;
        color: var(--color-gris-fonce);
      }
    }

    .panel-body {
      padding: 1rem 2rem;
    }
  }

  .table-responsive {
    .table {
      min-width: 100%;
    }
  }

  .form-material {
    .form-control {
      &,
      &.focus,
      &:focus {
        background-image: -webkit-gradient(
            linear,
            left top,
            left bottom,
            from(#f79520),
            to(#f79520)
          ),
          -webkit-gradient(linear, left top, left bottom, from(var(--color-gris-fonce)), to(var(--color-gris-fonce)));
        background-image: -webkit-linear-gradient(#f79520, #f79520),
          -webkit-linear-gradient(var(--color-gris-fonce), var(--color-gris-fonce));
        background-image: -o-linear-gradient(#f79520, #f79520),
          -o-linear-gradient(var(--color-gris-fonce), var(--color-gris-fonce));
        background-image: linear-gradient(#f79520, #f79520),
          linear-gradient(var(--color-gris-fonce), var(--color-gris-fonce));
      }
    }
  }

  .dataTables_wrapper {
    .dataTables_length select {
      margin: 0 0.5rem;
    }
  }
  table.table {
    thead {
      tr {
        th {
          font-size: 12px;
          font-weight: 600;
          color: var(--color-gris-fonce);
        }
      }
    }

    &.table-striped {
      tbody {
        tr:nth-of-type(odd) {
          background-color: var(--color-gris-clair);
          transition: all ease-in-out 0.3s;

          &:hover {
            background-color: #ddd;
          }
        }

        tr {
          td {
            color: var(--color-gris);
            vertical-align: middle;
            & > a:not(.btn) {
              color: var(--color-gris);
              &:hover {
                color: var(--color-orange);
              }
            }
          }
        }

        tr {
          td.active {
            font-size: 12px;
            font-weight: 600 !important;
            color: var(--color-gris-fonce);
          }
        }
      }
    }
  }

  &:not(.page-login) {
    & > .page {
      margin-top: 2.75rem;
      background: #eee;

      .page-header {
        margin-bottom: 0.5rem;

        .breadcrumb {
          margin: 0;

          li {
            font-size: 14px;
            color: var(--color-gris-fonce);
            font-weight: 100;
          }
        }

        .page-header-actions {
          & > .btn {
            background: #fff;
            box-shadow: none;
            border: none;
            color: var(--color-gris-fonce);
            font-size: 14px;
            font-weight: 100;
            padding: 0.65rem 1.5rem;
            border-radius: 30px;
          }
          select {
            margin: 0 0.5rem;
          }
        }
      }

      & > .page-content {
        .col-md-6.col-md-offset-3,
        .col-lg-6.col-lg-offset-3,
        .col-lg-8.col-lg-offset-2,
        .col-md-10.col-md-offset-1,
        .col-lg-10.col-lg-offset-1 {
          margin: 0;
          width: 100%;
        }

        & > .panel-transparent.panel-primary {
          .panel-heading {
            background: transparent;
            h3 {
              padding: 1rem 0;
              font-size: 20px;
              color: var(--color-gris-fonce);
            }
          }

          & + div {
            margin-bottom: 2rem;
            & > .panel {
              margin: 0 0 15px !important;

              .panel-heading {
                position: relative;
                border-radius: 0;
                .panel-actions {
                  right: 3rem;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  margin-right: 2rem;
                  & > a {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                  }
                  img.file-type-icon {
                    width: 30px;
                    height: 30px;
                  }
                  .fa-download,
                  .fa-eye {
                    display: inline-flex;
                    width: 30px;
                    height: 30px;
                    background: #fff;
                    margin-left: 0.5rem;
                    border: 1px solid var(--color-gris);
                    align-items: center;
                    justify-content: center;
                    border-radius: 50%;
                    color: var(--color-gris-fonce);
                    font-size: 2rem;
                    &::before {
                      position: relative;
                      top: -2px;
                    }
                  }
                }
                &::after {
                  position: absolute;
                  display: inline-block;
                  font-family: Material-Design-Iconic-Font;
                  font-style: normal;
                  font-weight: 400;
                  -webkit-transition: -webkit-transform 0.15s;
                  -o-transition: -o-transform 0.15s;
                  transition: transform 0.15s;
                  transform: rotate(90deg);
                  text-rendering: auto;
                  speak: none;
                  -webkit-font-smoothing: antialiased;
                  -moz-osx-font-smoothing: grayscale;
                  content: "\f2fb";
                  color: var(--color-gris-fonce);
                  width: 50px;
                  height: 50px;
                  top: 0;
                  right: 0;
                  font-size: 3rem;
                  text-align: center;
                }
              }

              &:has(.panel-collapse.collapse.in) {
                .panel-heading {
                  background: var(--color-gris);
                  border-bottom: 1px solid #eee;
                  h3,
                  a {
                    color: #fff;
                  }
                  &::after {
                    transform: rotate(-90deg);
                  }
                }
              }

              .list-group {
                .list-group-item {
                  padding: 0.75rem 2.75rem;
                  transition: all ease-in-out 0.3s;
                  &:hover {
                    background: #eee;
                    color: var(--color-orange);
                    text-decoration: underline;
                  }
                }

                &.list-group-bordered {
                  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.12);
                  .list-group-item {
                    border: none;
                  }
                }

                &:has(.active.font-size-14) {
                  .list-group-item {
                    &.active {
                      background: no-repeat;
                      color: var(--color-gris-fonce);
                      border-bottom: 1px solid rgb(110 110 113 / 20%);
                      padding: 1rem 1.5rem 0.5rem;
                      line-height: 3rem;

                      b {
                        font-size: 16px;
                        font-weight: 600;
                      }

                      .pull-right {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        margin-right: -1rem;

                        & > a {
                          display: flex;
                          align-items: center;
                          justify-content: center;
                          border: none;
                        }
                        img.file-type-icon {
                          width: 30px;
                          height: 30px;
                        }
                        .fa-download {
                          display: inline-flex;
                          width: 30px;
                          height: 30px;
                          background: #fff;
                          margin-left: 0.5rem;
                          border: 1px solid var(--color-gris);
                          align-items: center;
                          justify-content: center;
                          border-radius: 50%;
                          color: var(--color-gris-fonce);
                          font-size: 2rem;
                          &::before {
                            position: relative;
                            top: -2px;
                          }
                        }
                      }
                    }
                  }
                }
              }

              .panel-body {
                .dl-horizontal {
                  margin: 1rem 0;

                  dt {
                    font-weight: 600;
                    font-size: 12px;
                  }

                  &:has(a[href*="download"], a.other-version) {
                    dt {
                      padding-top: 0.65rem;
                    }
                  }
                }

                a[href*="download"],
                a[href*="view"],
                a.other-version {
                  transition: all ease-in-out 0.3s;
                  display: inline-flex;
                  align-items: center;
                  border: 1px solid var(--color-gris);
                  border-radius: 30px;
                  padding: 0rem 1.5rem 0rem 0.5rem;
                  height: 30px;
                  line-height: 1rem;
                  color: var(--color-gris);
                  max-width: 100%;
                  overflow: hidden;
                  text-overflow: ellipsis;

                  &:hover,
                  &:active {
                    color: #fff;
                    border-color: var(--color-orange);
                    background-color: var(--color-orange);
                    text-decoration: none;
                  }

                  .file-type-icon,
                  i.flag-icon,
                  i.fa.fa-eye {
                    width: 16px;
                    height: 16px;
                    border-radius: 50%;
                    margin: 0 0.5rem 0 0;
                    border: none;
                    position: relative;
                    top: 0px;
                  }
                }

                a.other-version {
                  margin: 0 2px 5px 0;
                }
              }
            }

            .panel-heading {
              background: #fff;
              & > h3,
              & > a {
                padding: 1.4rem 1.5rem;
                font-size: 16px;
                color: var(--color-gris-fonce);
                display: block;
                line-height: 22px;
                &::before,
                &::after {
                  display: none;
                }
              }
            }
          }
        }

        & > .row {
          &.key-figure {
            & > .col-md-6.col-md-offset-3 {
              & > .panel-transparent.panel-primary {
                .panel-heading {
                  background: transparent;
                  h3 {
                    padding: 1rem 0;
                    font-size: 20px;
                    color: var(--color-gris-fonce);
                  }
                }

                & + div {
                  margin-bottom: 2rem;
                  & > .panel {
                    margin: 0 0 1px !important;
                    .panel-heading {
                      position: relative;
                      border-radius: 0;
                      &::after {
                        position: absolute;
                        display: inline-block;
                        font-family: Material-Design-Iconic-Font;
                        font-style: normal;
                        font-weight: 400;
                        -webkit-transition: -webkit-transform 0.15s;
                        -o-transition: -o-transform 0.15s;
                        transition: transform 0.15s;
                        transform: rotate(90deg);
                        text-rendering: auto;
                        speak: none;
                        -webkit-font-smoothing: antialiased;
                        -moz-osx-font-smoothing: grayscale;
                        content: "\f2fb";
                        color: var(--color-gris-fonce);
                        width: 40px;
                        height: 40px;
                        top: 0;
                        right: 0;
                        font-size: 3rem;
                        text-align: center;
                      }
                    }

                    &:has(.panel-collapse.collapse.in) {
                      .panel-heading {
                        background: var(--color-gris);
                        border-bottom: 1px solid #eee;
                        h3,
                        a {
                          color: #fff;
                        }
                        &::after {
                          transform: rotate(-90deg);
                        }
                      }
                    }

                    .list-group {
                      .list-group-item {
                        padding: 0.75rem 2.75rem;
                        transition: all ease-in-out 0.3s;
                        text-decoration: underline;
                        &:hover {
                          background: #eee;
                          color: var(--color-orange);
                          text-decoration: underline;
                        }
                      }
                    }
                  }

                  .panel-heading {
                    background: #fff;
                    h3,
                    a {
                      padding: 1rem 1.5rem;
                      font-size: 14px;
                      color: var(--color-gris-fonce);
                      display: block;
                      line-height: 22px;
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }

  &.page-login {
    .page-content {
      color: var(--color-gris-fonce);
      background: #fff;
      border-radius: 10px;
      padding: 30px 30px 20px;
      gap: 10px;
      box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
      width: 90vw;
      max-width: 450px;

      .brand {
        img {
          max-width: 300px;
          width: 100%;
        }
      }

      p {
        font-weight: 600;
        font-size: 20px;
      }

      .text {
        margin: 0;
        width: 100%;
      }

      &:has(#mfa-form) {
        p.text {
          line-height: 1.25;
          margin-bottom: 1rem;
          font-weight: 400;
        }
      }

      form {
        margin: 0 auto;
        width: 90%;

        label {
          color: var(--color-gris-fonce);
          display: flex;
          align-items: flex-start;
          gap: 1rem;

          &:has(input:checked) {
            font-weight: 600;
          }

          a {
            color: var(--color-gris-fonce) !important;
          }
        }

        #submitButton {
          margin: 1rem 0;
        }

        &#mfa-form {
          .otp-group {
            & {
              display: flex;
              align-items: center;
              gap: 10px;
              max-width: 260px;
              margin: auto;
            }

            input {
              border: none;
              border-bottom: 2px solid var(--color-gris);
              border-radius: 0;
              color: var(--color-gris);
            }
          }

          .form-text {
            font-size: 1.25rem;
            line-height: 1.5;
            margin-top: 2rem;
            display: block;

            a {
              /* display: block; */
              margin: 0;
            }
          }

          #backup-mode {
            input {
              margin-bottom: 1rem;
              text-align: center;
            }
          }

          #otp-mode {
            & + button {
              margin-top: 1rem;
              width: 100%;
              font-size: 18px;
            }
          }
        }
      }

      .page-copyright {
        margin: 0 auto;
        color: var(--color-gris-fonce);
        width: 90%;

        a {
          color: var(--color-gris-fonce);
          text-decoration: underline;
        }

        p {
          font-size: 12px;
        }
      }
    }
  }

  &.home {
    .site-menu {
      .site-menu-item {
        &.active {
          a {
            border: none;
          }
        }
      }
    }
  }

  #searchResults {
    border: 3px solid var(--color-orange);
    border-radius: 7px;

    .heading {
      text-align: center;
      margin: 2rem 0 3rem;

      h3 {
        font-size: 24px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;

        i {
          color: var(--color-orange);
          font-size: 3rem;
        }
      }

      p {
        font-size: 18px;
        font-weight: 600;
        color: var(--color-orange);

        span {
          color: var(--color-gris-fonce);
        }
      }
    }
    tbody {
      tr {
        td {
          vertical-align: middle;

          .search-preview:not(.text) {
            display: flex;
            width: 30px;
            height: 30px;
            border: 1px solid var(--color-gris);
            border-radius: 50%;
            align-items: center;
            justify-content: center;
            line-height: 1rem;
            color: var(--color-gris-fonce);
          }
        }
      }
    }
  }

  #extendedSearch {
    margin: 2rem 0;
    text-align: center;

    #extendSearch {
      border-radius: 30px;
      padding: 1rem 2rem 0.75rem;

      i {
        margin-right: 0.5rem;
      }
    }
  }

  .pell-editor,
  .fullscreen-pell-editor {
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 120px;
  }
  .pell-actionbar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 0 8px;
    box-shadow: 0px 8px 8px -4px #222f3e12;
  }
  .pell-button {
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    color: #333;
    cursor: pointer;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    height: 30px;
    line-height: 20px;
    margin: 0 2px;
    padding: 5px 8px;
    text-align: center;
    vertical-align: middle;
    width: auto;
  }
  .pell-button:hover {
    background-color: #e6e6e6;
    border-color: #adadad;
  }
  .pell-button-selected {
    background-color: #337ab7;
    border-color: #2e6da4;
    color: white;
  }
  .pell-content {
    min-height: 80px;
    outline: none;
    padding: 10px;
    overflow-y: auto;
    height: 100px;
    h1 {
      font-size: 24px;
      margin: 0.75rem 0;
    }
    h2 {
      font-size: 20px;
      margin: 0.5rem 0;
    }
    h3 {
      font-size: 16px;
    }
  }
  .pell-content:focus {
    outline: none;
  }

  #AISummaryProcessing {
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background: #3d3f41de;
    color: #fff;
    text-align: center;
    backdrop-filter: blur(15px);
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;

    &.active {
      visibility: visible;
      opacity: 1;
    }

    .aiProgress {
      width: 32px;
      height: 32px;
    }
    .aiLabel {
      font-size: 30px;
      font-weight: 600;
      color: var(--color-orange);
      i {
        color: #fff;
        font-size: 2rem;
        position: relative;
        top: -3px;
      }
    }
  }

  .pell-editor-container {
    position: relative;

    .pell-fullscreen-btn {
      position: absolute;
      top: 1px;
      right: 1px;
      z-index: 10;
      padding: 4px 7px 1px;
      font-size: 11px;
      opacity: 0.7;
      transition: opacity 0.2s ease;
      border: none;
      width: 31px;
      height: 31px;
      background: transparent;

      &:hover {
        opacity: 1;
      }
    }
  }

  #aiSummaryEditorModal {
    .modal-dialog {
      max-width: 90%;
      width: 900px;
      margin-left: auto;
      margin-right: auto;
    }

    .modal-body {
      max-height: 80vh;
      max-height: 80dvh;
      height: 80vh;
      height: 80dvh;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;

      .fullscreen-editor-section {
        width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;

        .fullscreen-label {
          font-weight: 700;
          margin: 0rem 0 0.5rem;
          flex-shrink: 0;
          font-size: 1.5rem;
        }

        .fullscreen-pell-editor {
          flex: 1;
          min-height: 0;
          height: auto;
          flex: 1;
          display: flex;
          flex-direction: column;
          max-height: calc(80dvh - 40px - 24px - 0.5rem);

          .pell-content {
            height: auto;
            min-height: 100px;
            overflow-y: auto;
            max-height: 100%;
            flex: 1;
          }
        }
      }
    }

    .fullscreen-header {
      background: rgba(0, 0, 0, 0.3);
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);

      .fullscreen-title {
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--color-orange);

        i {
          margin-right: 8px;
        }
      }

      .fullscreen-close-btn {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;

        &:hover {
          background: rgba(255, 255, 255, 0.2);
          color: #fff;
        }
      }
    }

    .fullscreen-content {
      flex: 1;
      padding: 30px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 30px;

      .fullscreen-editor-section {
        .fullscreen-label {
          display: block;
          font-size: 1.1rem;
          font-weight: 600;
          margin-bottom: 10px;
          color: var(--color-orange);
        }

        .fullscreen-pell-editor {
          min-height: 200px;
          background: rgba(255, 255, 255, 0.95);
          border-radius: 8px;
          color: #333;

          .pell-content {
            min-height: 180px;
            padding: 15px;
            font-size: 14px;
            line-height: 1.6;
          }

          .pell-actionbar {
            background: rgba(0, 0, 0, 0.05);
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            padding: 8px 12px;

            .pell-button {
              margin-right: 5px;
            }
          }
        }
      }
    }

    .fullscreen-footer {
      background: rgba(0, 0, 0, 0.3);
      padding: 15px 20px;
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);

      .btn {
        min-width: 120px;
      }

      .fullscreen-save-btn {
        background: var(--color-orange);
        border-color: var(--color-orange);

        &:hover {
          background: darken(var(--color-orange), 10%);
          border-color: darken(var(--color-orange), 10%);
        }
      }
    }
  }

  .btn-pulse {
    animation: pulse-glow 1.5s infinite;
    box-shadow: 0 0 0 0 rgba(92, 184, 92, 0.7);
  }

  @keyframes pulse-glow {
    0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(92, 184, 92, 0.7);
    }
    50% {
      transform: scale(1.02);
      box-shadow: 0 0 0 8px rgba(92, 184, 92, 0);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(92, 184, 92, 0);
    }
  }

  @media screen and (min-width: 1100px) {
    &.site-menubar-unfold {
      .site-navbar {
        display: flex;
        align-items: center;
        background-color: #fff;

        .navbar-container {
          margin: 0;
          flex: 1;
          display: flex;
        }
      }
    }

    #site-navbar-collapse {
      display: flex !important;
      width: calc(100% - 260px);
      align-items: center;
      justify-content: space-between;
      max-width: initial;
      flex: 1;
      .navbar-toolbar {
        float: none !important;
        margin-right: auto;

        &:first-child {
          flex: 1;
        }
        &:last-child {
          margin-left: auto;
          margin-right: initial;
        }
      }
    }
  }
}

body.isClient {
  &.aisearch {
    .site-menu-item.menu-home {
      & > ul {
        display: block;
      }
    }
  }
}

#reportingFilter {
  & > .row{
    flex-wrap: wrap;
  }
  .form-group {
    & > .input.select,
    & > .input.text {
      & > div:first-child,
      & > label:first-child {
        min-height: 25px;
      }

      & > label:first-child {
        padding-top: 0.5rem;
      }
    }

    .select2{
      min-width: 100%;
    }
  }
}

#mfaPage {
  & > .tab-content{

  }

  #backup-codes-box {
    ul {
      column-count: 5;
      margin-bottom: 1rem !important;
      list-style: none;
      padding: 0;

      li {
        margin: 0px 0 5px;
      }
    }
  }

  .panel {
    &.hasCounter {
      .panel-title {
        & {
          display: flex;
          align-items: flex-start;
          gap: 1rem;
        }
        &::before {
          content: "Step " counter(mfasection) " - ";
          counter-increment: mfasection;
          color: var(--color-orange);
          display: block;
          white-space: nowrap;
        }
        #setup &::before{
          content: "Step 2 - ";
        }
      }
    }
  }

  .mfaSetupScreen {
    .setupContent {
      p {
        max-width: 600px;
      }
    }
  }

  #setupGuide {
    & {
      width: 100%;
      gap: 2rem;
      margin-top: 1rem;
    }

    & > div {
      background: #e0e0e04d;
      padding: 1.5rem;
      flex: 1;

      & > div {
        &:first-child {
          gap: 1.5rem;
          margin-bottom: 2rem;

          p {
            font-size: 18px;
            font-weight: 700;
            line-height: 1;
            margin: 0 !important;

            small {
              font-size: 1rem;
              font-weight: 100;
            }
          }
        }
      }
    }
  }

  #mfaQrSection {
    & {
      /* width: 100%; */
      gap: 2rem;
    }

    & > div {
      & {
        flex: 1;
      }
      &:first-child {
        flex: 0 0 240px;
      }
    }

    & + form {
      .input-group {
        max-width: 250px;
      }
    }
  }

  .alert-mfa-enabled {
    & {
      background: #fff;
      border: 1px solid var(--color-orange);
      display: flex;
      align-items: flex-start;
      font-size: 18px;
      font-weight: 700;
      color: var(--color-gris-fonce);
      justify-content: center;
      padding: 0.5rem 1rem 0.25rem;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    i {
      color: var(--color-green);
      font-size: 3rem;
    }

    h5 {
      font-size: 18px;
      margin: 1rem 0;
      font-weight: 600;
    }

    p {
      font-size: 13px;
      font-weight: 100;
      max-width: 600px;

      a {
        color: var(--color-orange);
      }
    }
  }

  #backup-codes-box {
    & {
      background: linear-gradient(
          0deg,
          rgba(238, 238, 238, 0.3),
          rgba(238, 238, 238, 0.3)
        ),
        #ffffff;
      border: 1px solid var(--color-orange);
    }
    h3 {
      font-size: 2rem;
      font-weight: 700;
      color: var(--color-orange);
    }
  }
}

.letterFilter {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 767px) {
  body.designupdate {
    &.page-login {
      .page-content {
        width: 100%;
        border-radius: 0;
        max-width: 100%;
        padding: 2rem 1rem;
      }
    }

    &.site-menubar-open {
      .site-navbar {
        transform: translateX(260px);
      }
    }

    .site-navbar {
      background: #fff;
      box-shadow: 0 2px 4px hsl(0deg 0% 0% / 20%);
      transition: all ease-in-out 0.3s;

      .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 70px;
        padding: 0 10px;
        position: relative;

        & > button,
        & > a {
          position: relative;
          z-index: 10;
        }

        .navbar-toggle-left {
          order: 0;
          padding: 0;
          width: 44px;
          height: 44px;
          margin: auto auto auto 0;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          position: relative;
          z-index: 10;

          &::before,
          &::after,
          .hamburger-bar {
            background: var(--color-gris-fonce);
            width: 20px;
            height: 3px;
            transform-origin: 5%;
          }
        }

        .mobileLogout {
          top: 2px;

          i {
            &::before {
              font-size: 2.25rem;
              color: #000;
            }
          }
        }

        .search-btn {
          margin: 0;

          i {
            &::before {
              font-size: 2.25rem;
              color: #000;
            }
          }
        }

        .navbar-brand {
          position: absolute;
          width: 100%;
          left: 0;
          top: 0;
          transform: none;
          height: 70px;
          display: flex;
          align-items: center;
          justify-content: center;
          padding-right: 2rem;

          .logo-vertical {
            display: none;
          }

          .logo-horizontal {
            display: block;
          }
        }
      }

      #site-navbar-collapse {
        .navbar-toolbar-right {
          display: none;
        }

        .navbar-toolbar {
          width: 100%;
        }
      }
    }

    #mfaPage {
      #backup-codes-box {
        ul {
          column-count: 2;
        }
      }
    }

    &:has(#searchBox.small.results) {
      #site-navbar-collapse {
        display: none !important;
      }
    }

    &:not(.page-login) {
      & > .page {
        margin-top: 0;
      }
    }
  }

  .d-flex {
    flex-direction: column;

    & > div {
      width: 100%;
      flex: 0 0 100% !important;
    }
  }
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
  body.designupdate {
    &.site-menubar-open {
      .site-menubar {
        -webkit-transform: translate3d(0, 0, 0);
        -ms-transform: translate(0, 0);
        -ms-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
      }
    }

    .site-menubar {
      top: 0;
      /* height: -webkit-calc(100% - 66px); */
      /* height: calc(100% - 66px); */
      -webkit-transform: translate3d(-260px, 0, 0);
      -ms-transform: translate(-260px, 0);
      -ms-transform: translate3d(-260px, 0, 0);
      transform: translate3d(-260px, 0, 0);
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      -webkit-perspective: 1000;
      perspective: 1000;
      -webkit-transition: -webkit-transform 0.25s, top 0.35s, height 0.35s;
      -o-transition: -o-transform 0.25s, top 0.35s, height 0.35s;
      transition: transform 0.25s, top 0.35s, height 0.35s;
    }

    .site-menubar-unfold .page,
    .site-menubar-unfold .site-footer {
      margin-left: auto;
    }

    .site-menubar-open .page,
    .site-menubar-open .site-footer {
      -webkit-transform: translate3d(260px, 0, 0);
      -ms-transform: translate(260px, 0);
      -ms-transform: translate3d(260px, 0, 0);
      transform: translate3d(260px, 0, 0);
    }

    .site-menubar-changing {
      overflow: hidden;
    }

    .site-menubar-changing .page,
    .site-menubar-changing .site-footer {
      -webkit-transition: -webkit-transform 0.25s;
      -o-transition: -o-transform 0.25s;
      transition: transform 0.25s;
    }

    .site-gridmenu {
      width: 100% !important;
      background: rgba(33, 33, 33, 0.9);
    }

    .site-menubar-hide .site-menubar,
    .site-menubar-open .site-menubar {
      -webkit-transition: -webkit-transform 0.25s, top 0.35s, height 0.35s;
      -o-transition: -o-transform 0.25s, top 0.35s, height 0.35s;
      transition: transform 0.25s, top 0.35s, height 0.35s;
    }

    .site-menubar-open .site-menubar {
      -webkit-transform: translate3d(0, 0, 0);
      -ms-transform: translate(0, 0);
      -ms-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
    }

    &.page-login {
      .page-content {
        width: 100%;
        /* border-radius: 0; */
        width: 450px;
        max-width: 90%;
        padding: 2rem 1rem;
      }
    }

    &.site-menubar-open {
      .site-navbar {
        transform: translateX(260px);
      }
    }

    .site-menubar-unfold .site-navbar .navbar-container {
    }

    .site-navbar {
      background: #fff;
      box-shadow: 0 2px 4px hsl(0deg 0% 0% / 20%);
      transition: all ease-in-out 0.3s;

      .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 70px;
        padding: 0 10px;
        position: relative;
        overflow: hidden;
        width: 120px;
        & > button,
        & > a {
          position: relative;
          z-index: 10;
        }

        .navbar-toggle-left {
          order: 0;
          padding: 0;
          width: 44px;
          height: 44px;
          margin: auto auto auto 0;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          position: relative;
          z-index: 10;

          &::before,
          &::after,
          .hamburger-bar {
            background: var(--color-gris-fonce);
            width: 20px;
            height: 3px;
            transform-origin: 5%;
          }
        }

        .mobileLogout {
          top: 2px;
          display: none;

          i {
            &::before {
              font-size: 2.25rem;
              color: #000;
            }
          }
        }

        .search-btn {
          margin: 0;

          i {
            &::before {
              font-size: 2.25rem;
              color: #000;
            }
          }
        }

        .navbar-brand {
          position: absolute;
          width: 90px;
          left: 5rem;
          top: 0;
          transform: none;
          height: 70px;
          display: flex;
          align-items: center;
          justify-content: flex-start;
          padding-right: 2rem;

          .logo-vertical {
            display: none;
          }

          .logo-horizontal {
            display: block;
            position: relative;
            left: 10px;
          }
        }
      }

      #site-navbar-collapse {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        .navbar-toolbar-right {
          /* display: none; */
        }

        .navbar-toolbar {
          width: auto;
          float: none;
          margin: 0;

          &:first-child {
            margin-right: auto;
            flex: 1;
            padding-right: 5rem;
          }
        }
      }
    }

    #searchBoxTop {
      width: 100%;
      height: 50px;
      border: 2px solid var(--color-orange) !important;

      &#searchBoxTop {
        width: 100%;
        margin: 1rem 0 !important;
        padding: 0.75rem;

        form {
          margin-left: 1rem !important;
          .searchBoxField {
            i {
              top: 3px;
            }
          }
        }
      }

      .aiLabel {
        width: 31px;
        height: 31px;
        overflow: hidden;
        font-size: 0;
        position: relative;
        top: 0px;

        i {
          position: relative;
          left: 3px;
          font-size: 1.75rem;
        }
      }

      form {
        input[type="text"] {
          padding: 0 5rem 0 1rem;
        }
        #AISearchButton {
          height: 50px;
          width: 50px;
        }
      }
    }

    &:has(#searchBox.small.results) {
      #site-navbar-collapse {
        display: none !important;
      }
    }

    &:not(.page-login) {
      & > .page {
        margin-top: 0;
        transition: all ease 0.3s;
        margin: 0;
        position: relative;
      }
      &.site-menubar-hide {
        & > .page {
          left: 0;
        }
      }
      &.site-menubar-open {
        overflow: hidden;
        & > .page {
          left: 260px;
        }
      }
    }
  }
}

.mfaSetupScreen {
  & {
    width: 100%;
  }

  .setupContent {
    & {
      display: flex;
      gap: 1rem;
      background: linear-gradient(
          0deg,
          rgba(238, 238, 238, 0.3),
          rgba(238, 238, 238, 0.3)
        ),
        #ffffff;
      padding: 1.5rem 1rem;
      margin-bottom: 1rem;
      justify-content: center;
    }

    i {
      color: #4dc2cf;
      font-size: 3rem;
      position: relative;
      top: -10px;
    }

    p {
      text-align: left;
      font-size: 13px !important;
      font-weight: 100 !important;
      font-style: italic;
      margin-bottom: 0;
    }

    b {
    }
  }

  a.btn-primary {
    font-weight: 700 !important;
    font-size: 18px !important;
  }
}
