body {
  font-family: var(--font-family);
  color: var(--text-color-primary);
  padding: 0;
  margin: -6px 0 0 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--grey-color-light);
  font-size: 14px;

  a {
    text-decoration: none;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  b {
    font-family: var(--font-family);
    font-weight: bold;
  }

  a,
  p,
  label,
  li span,
  input,
  td,
  tr,
  th,
  button {
    font-family: var(--font-family);
  }

  h1 {
    font-size: var(--text-h1);
  }

  h2 {
    font-size: var(--text-h2);
  }

  h3 {
    font-size: var(--text-h3);
  }

  h4 {
    font-size: var(--text-h4);
  }

  h5 {
    font-size: var(--text-h5);
  }

  h6 {
    font-size: var(--text-h6);
  }

  p {
    font-size: var(--text-sm);
  }
}

.container {
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;

  @media only screen and (min-width: $md-screen) {
    max-width: 100%;
  }

  @media only screen and (min-width: $lg-screen) {
    max-width: 980px;
  }

  @media only screen and (min-width: $xl-screen) {
    max-width: 1140px;
  }

  @media only screen and (min-width: $xxl-screen) {
    max-width: 1400px;
  }

  @media only screen and (min-width: $xxxl-screen) {
    max-width: 1600px;
  }
}

/*#region btn&link */
.acf-primary-button {
  cursor: pointer;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 1px solid var(--primary-color);
  padding: .8rem 2.25rem;
  font-weight: 600;
  font-size: var(--size-btn);
}

.acf-secondary-button {
  cursor: pointer;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: .8rem 2.25rem;
  font-weight: 600;
  font-size: var(--size-btn);
}

.acf-primary-link {
  cursor: pointer;
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: bold;
}

.acf-secondary-link {
  cursor: pointer;
  color: var(--secondary-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: initial;
}

/*#endregion */
/*#region text */
.primary-text {
  color: var(--primary-color);
}

.secondary-text {
  color: var(--base-color);
  font-family: var(--font-family);
  font-weight: bold;
}

.acf-text-xs {
  color: var(--grey-color-dark);
  font-size: var(--text-xs);
  line-height: 1.5rem;
}

.acf-text-sm {
  color: var(--grey-color-dark);
  font-size: var(--text-sm);
  line-height: 1.5rem;
}

.acf-text-md {
  font-family: var(--font-family);
  font-weight: bold;
  padding-top: 8px;
  font-size: var(--text-md);
}

.acf-text-lg {
  font-family: var(--font-family);
  font-weight: bold;
  padding-top: 8px;
  font-size: var(--text-lg);
}

.acf-text-xl {
  font-family: var(--font-family);
  font-weight: bold;
  padding-top: 8px;
  font-size: var(--text-xl);
}

.acf-text-xxl {
  font-family: var(--font-family);
  font-weight: bold;
  padding-top: 8px;
  font-size: var(--text-xxl);
}

.acf-text-xxxl {
  font-family: var(--font-family);
  font-weight: bold;
  padding-top: 8px;
  font-size: var(--text-xxxl);
}

.acf-title {
  color: var(--text-color-primary);
  font-weight: bold;
  font-size: 16px;
}

/*#region map */
.map-container {
  width: 100% !important;
  height: 100% !important;
  height: 550px !important;
  border-radius: var(--border-raduis-card);
}

/*#endregion */

/*#endregion */
/*#region inputs */
.acf-input-text-label {
  display: block;
  width: 100%;
  font-weight: 700;
  font-size: 14px;
}

.acf-input-text {
  width: 100%;
}

.acf-input-prefix {
  width: 48px;
  margin-right: 6px;
  text-align: center;

}

.acf-dropdown {
  width: 100%;
}

//TODO
.acf-input {
  font-family: var(--font-family);
  background: #ffffff;
  padding: 0.5rem 0.5rem;
  border-radius: 0px;
}

.acf-input-disabled {
  background-color: var(--disabled-text-bg);
  font-family: var(--font-family);
  font-size: 1rem;
  padding: 0.5rem 0.5rem;
  border-radius: 0px;
}



/*#endregion */
/*#region inputs errors */
.acf-invalid-feedback {
  // text danger
  color: var(--text-danger);
  font-size: 13px;
  margin-top: 4px;
}

.acf-invalid-input {
  // input danger
  border-color: var(--danger-color-border) !important;
  box-shadow: 0 0 0 0.2rem var(--danger-color-shadow) !important;
}

.acf-invalid-inputmask {
  border-color: var(--danger-color-border) !important;
  box-shadow: 0 0 0 0.2rem var(--danger-color-shadow) !important;
}

.required-input:after {
  content: " *";
  color: var(--danger-color-border);
}

.p-inputtext.ng-dirty.ng-invalid {
  // red input when dirty and errors
  border-color: var(--danger-color-border) !important;

  &:focus {
    box-shadow: 0 0 0 0.2rem var(--danger-color-shadow) !important;
  }

  &:hover {
    box-shadow: 0 0 0 0.2rem var(--danger-color-shadow) !important;
  }
}


.acf-invalid-dropdown {
  border-color: var(--text-danger) !important;

  & .p-dropdown {
    border-color: var(--danger-color-border) !important;
    box-shadow: 0 0 0 0.2rem var(--danger-color-shadow) !important;

    & .p-dropdown-trigger {
      color: var(--danger-color-border);
    }

    &:hover {
      box-shadow: 0 0 0 0.2rem var(--danger-color-shadow) !important;
    }

    &:focus-within {
      box-shadow: 0 0 0 0.2rem var(--danger-color-shadow) !important;
    }
  }
}

.acf-invalid-checkbox {
  .p-checkbox .p-checkbox-box {
    border-color: var(--danger-color-border) !important;
    box-shadow: 0 0 0 0.2rem var(--danger-color-shadow) !important;
  }
}

.acf-invalid-date {
  .p-calendar {
    input {
      border-color: var(--danger-color-border) !important;
      box-shadow: 0 0 0 0.2rem var(--danger-color-shadow) !important;
    }
  }
}

.acf-invalid-autocomplete {
  .p-inputtext {
    border-color: var(--danger-color-border) !important;
    box-shadow: 0 0 0 0.2rem var(--danger-color-shadow) !important;
  }
}

/*#endregion */
/*#region footer */
.acf-footer {
  width: 100%;
  display: flex;
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: 100% 11%;

  @media only screen and (max-width: $md-screen) {
    bottom: auto;
    background-size: 100% 0%;
    margin-top: 3rem;
  }

  .acf-link-footer {
    bottom: 0;
    justify-content: center;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    margin: 6px 0;
    font-family: var(--font-family);

    @media only screen and (max-width: $md-screen) {
      display: block;
      background-color: #007bc014;
    }

    li {
      list-style-type: none;
      display: flex;

      @media only screen and (max-width: $md-screen) {
        display: block;
        padding-bottom: 10px;
        font-size: 14px;
        font-family: var(--font-family);
      }
    }

    a {
      text-decoration: none;
      color: var(--base-color);
      font-size: 14px;
    }

    .vertical-bar {
      margin: 0 10px;

      @media only screen and (max-width: $md-screen) {
        display: none;
      }
    }
  }

  @media only screen and (max-width: $md-screen) {
    position: inherit;
    background-color: var(--primary-color-light);
    bottom: inherit;
  }
}

/*#endregion */
/*#region card */
.acf-card-title {
  background: var(--grey-bg);
  color: var(--text-color-primary);
  font-weight: bold;
  font-size: var(--text-md);
  padding: 1px 20px;
}

.acf-card {
  background-color: var(--card-bg);
  color: var(--text-color-primary);
  border-radius: var(--border-raduis-card);
  padding: 10px 20px;
  border: 1px solid var(--card-border);
}

.acf-card-success {
  background-color: var(--succes-color-bg);
  border: 1px solid var(--succes-color-bg);
  color: var(--primary-color);
  padding: 10px 20px;
  font-weight: 700;
  padding: 5px 20px;
  border-radius: 6px;
}

.acf-card-danger {
  background-color: var(--danger-color-bg);
  border: 1px solid var(--danger-color-bg);
  color: var(--text-danger);
  font-weight: 700;
  padding: 5px 20px;
  border-radius: 6px;
}

.acf-card-info {
  background-color: var(--info-color-bg);
  border: 1px solid var(--info-color-bg);
  color: var(--info-color);
  font-weight: 700;
  padding: 5px 20px;
  border-radius: 6px;
}

.acf-card-warning {
  background-color: #FCE1C1;
  border: 1px solid var(--warning-color-bg);
  color: var(--primary-color);
  padding: 10px 20px;
  font-weight: 700;
  padding: 5px 20px;
  border-radius: 6px;
}

/*#endregion */
/*#region header */
/*#region layout */
.banner-img {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1001;
  height: 8px;

}

.guest-header-logo {
  margin-top: 8px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 1001;

  // .logo-container {
  //  width: 280px;
  // }

  .title-header-right {
    font-family: var(--font-family-bold);
    font-weight: 600;
    font-size: 14px;

  }


}

.guest {
  &-header {
    z-index: 1001;
    position: fixed;
    width: 100%;
    background: white;
    top: 0px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  &-content {
    margin: 0 4rem;

    @media only screen and (max-width: 768px) {
      margin: 0 !important;

    }
  }

  &-body {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 94px);
    position: absolute;
    margin-top: 94px;
  }

  &-title {
    background-color: rgba(246, 247, 248, 1);
    padding: .5rem 1.25rem;
    font-weight: 600;
    font-size: 18px;
  }

  &-action {
    text-align: right;
    // max-width: 1100px;
    margin: 1rem auto;

    @media only screen and (max-width: 768px) {
      margin: 1rem auto;
      display: flex;
      justify-content: flex-end;
    }
  }


  &-footer {
    margin-top: auto;

  }

  .stepper-wrapper {
    display: flex;
    justify-content: space-around;
    width: 80%;
    margin: 30px auto;

    @media only screen and (max-width: 768px) {
      width: auto;
      margin: 10px;
    }
  }

  .stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;

    @media (max-width: 768px) {
      font-size: 12px;
    }
  }

  .stepper-item::before {
    position: absolute;
    content: "";
    border-bottom: 1px solid #C4C4C4;
    width: 100%;
    top: 25px;
    left: -50%;
    z-index: 2;
  }

  .stepper-item::after {
    position: absolute;
    content: "";
    border-bottom: 1px solid #C4C4C4;
    width: 100%;
    top: 25px;
    left: 50%;
    z-index: 2;
  }

  .stepper-item .step-counter {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(165, 177, 191, 1);
    margin-bottom: 6px;
    color: white;
    font-size: 16px;
    font-weight: bold;
  }

  .stepper-item.active {
    font-weight: 700;

  }

  .stepper-item.active .step-counter {
    background-color: var(--primary-color);
  }

  .stepper-item.completed .step-counter {
    background-color: var(--primary-color);
    color: white;
  }

  .stepper-item.completed::after {
    position: absolute;
    content: "";
    border-bottom: 3px solid var(--primary-color);
    width: 100%;
    top: 25px;
    left: 50%;
    z-index: 3;
  }

  .stepper-item:first-child::before {
    content: none;
  }

  .stepper-item:last-child::after {
    content: none;
  }

  .stepper-item .step-name {
    font-size: 15px;

    @media only screen and (max-width: 769px) {
      display: none;
    }
  }

}

.connected-header-logo {
  margin-top: 8px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 1001;

  .logo-container {
    width: 280px;
    // margin-left: 30px; no margins necessary
  }

  .title-header-right {
    font-family: var(--font-family-bold);
    font-weight: 600;
    font-size: 14px;

  }

}

.connected {
  &-header {
    z-index: 1001;
    position: fixed;
    width: 100%;
    background: white;
    top: 0px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  &-layout {
    display: flex;
    flex-direction: column;

    &-body {
      display: flex;
      flex-direction: column;
      min-height: calc(100vh - 94px);
      margin-left: 280px;
      width: calc(100% - 280px);
      overflow-y: auto;
      // padding: 1rem;
      position: absolute;
      margin-top: 94px;

      .title {
        font-size: 20px;
        font-weight: 600;
      }

      &-md-screen {
        margin-left: 80px;
        width: calc(100% - 80px);

      }
    }

    &-footer {
      margin-top: auto;

    }
  }

  .stepper-wrapper {
    display: flex;
    justify-content: space-around;
    width: 75%;
    margin: 0px auto 40px auto;

    @media only screen and (max-width: 768px) {
      width: auto;
    }
  }

  .stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;

    @media (max-width: 768px) {
      font-size: 12px;
    }
  }

  .stepper-item::before {
    position: absolute;
    content: "";
    border-bottom: 1px solid #C4C4C4;
    width: 100%;
    top: 25px;
    left: -50%;
    z-index: 2;
  }

  .stepper-item::after {
    position: absolute;
    content: "";
    border-bottom: 1px solid #C4C4C4;
    width: 100%;
    top: 25px;
    left: 50%;
    z-index: 2;
  }

  .stepper-item .step-counter {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(165, 177, 191, 1);
    margin-bottom: 6px;
    color: white;
    font-size: 16px;
    font-weight: bold;
  }

  .stepper-item.active {
    font-weight: 700;

  }

  .stepper-item.active .step-counter {
    background-color: var(--primary-color);
  }

  .stepper-item.completed .step-counter {
    background-color: var(--primary-color);
    color: white;
  }

  .stepper-item.completed::after {
    position: absolute;
    content: "";
    border-bottom: 3px solid var(--primary-color);
    width: 100%;
    top: 25px;
    left: 50%;
    z-index: 3;
  }

  .stepper-item:first-child::before {
    content: none;
  }

  .stepper-item:last-child::after {
    content: none;
  }

  .stepper-item .step-name {
    font-size: 14px;

    @media only screen and (max-width: 769px) {
      display: none;
    }
  }
}

/*#endregion */

.acf-breadcrumb {
  background: var(--grey-bg);
  // padding: 10px 30px;

  .actif {
    color: var(--primary-color);
  }

  .incatif {
    color: var(--text-color-primary);
  }
}

.acf-popup {
  padding: 20px;

  .close {
    background-color: var(--grey-color-dark);
    border-radius: 100px;
  }
}

.acf-bg-page {
  background-color: var(--sidbar-color);
}

.acf-box-shadow {
  box-shadow: rgb(0 0 0 / 9%) 0px 3px 12px;
  background-color: var(--white-color);
}

.acf-box {
  width: $lg-screen;

  @media only screen and (max-width: $xl-screen) {
    width: auto !important;
  }
}

.acf-guidelines {
  width: 100%;
  height: 7px;
}

.pi-times {
  color: var(--danger-color-border);
}

.pi-check {
  color: var(--succes-color);
}




/* Scroll Bar Styles */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #a4afb735;
}

::-webkit-scrollbar-thumb {
  background: #a4afb763;

  &:hover {
    background: #a4afb7a3;
  }
}



/* Grid Device Chart */
.chart-container {
  position: relative;
  display: inline-block;

  .chart-text {
    position: absolute;
    top: 3px;
    transform: translateX(-50%);
    line-height: 1.5;
    left: 65%;

    .device-months-remaining {
      font-weight: bold;
      font-size: 15px;

    }

    .device-status {
      color: var(--text-color-secondary);
    }


    @media only screen and (max-width: $xxxl-screen) {
      left: 70%;
    }

    @media only screen and (max-width: $xxl-screen) {
      left: 68%;
      font-size: 11px;


    }

    @media only screen and (max-width: $xl-screen) {
      left: 69%;

    }

    @media only screen and (max-width: $lg-screen) {
      left: 65%;
    }

    @media only screen and (max-width: $md-screen) {
      left: 64%;
    }

    @media only screen and (max-width: $sm-screen) {
      left: 70%;
      font-size: 11px;
    }

  }

  .device-image {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 125px;
    max-height: 125px;
    margin-top: 40px;
  }


}

.acf-devices-title-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;

  @media only screen and (max-width: $sm-screen) {
    display: grid;
  }
}

.p-calendar .p-datepicker {
  min-width: auto !important;
  width: 410px;
}

//TODO
.bloc-mobile {

  @media only screen and (max-width: 769px) {
    display: grid !important;
  }

}

.p-panel .p-panel-content {
  border: 0;
  background-color: #F6F7F880;
  color: black;
}

.scroll-menu {
  padding: 0;

  .p-panel .p-panel-content {
    padding: 0;
  }
}

.p-tabview-title {
  font-size: 14px;
  color: #495057
}

.p-tabview .p-tabview-nav li.p-highlight .p-tabview-nav-link {
  background: #ffffff;
  border-color: black;
  color: #495057;
}

.p-inputtext.p-inputmask {
  width: 100%;
}


.acf-dual-ring {
  color: var(--primary-color);
}

.acf-dual-ring,
.acf-dual-ring:after {
  box-sizing: border-box;
}

.acf-dual-ring {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 150px;
}

.acf-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6.4px solid currentColor;
  border-color: currentColor transparent currentColor transparent;
  animation: acf-dual-ring 1.2s linear infinite;
}

@keyframes acf-dual-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
