* {
  scroll-behavior: smooth;
}


/*Layouts*/

.sd-grid {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: 4rem 0 auto;
  height: 100vh;
  overflow: auto;
}

.sd-grid-3 {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: 4rem 0 auto 5.5rem;
  height: 100vh;
  overflow: auto;
}

.sd-grid-3-l {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: 4rem 0 auto 1fr;
  min-height: 100vh;
  overflow: auto;
}

.bg-gradient-allergan {
  background: rgb(153,95,85);
  background: linear-gradient(180deg, rgba(153,95,85,1) 0%, rgba(111,72,65,1) 100%);
}

.min-vh-100 {
  min-height: 100vh !important;
  min-height: calc(var(--vh, 1vh) * 100) !important;
}


.rounded-xl {
  border-radius: 1rem;
}

.max-w-1400 {
  max-width: 1400px
}


.object-fit-cover {
  object-fit: cover;
}

.rounded-bottom-xl {
  border-radius: 0 0 1rem 1rem !important;
}

/*Croppie*/

.croppie-container .cr-image {
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  max-width: none;
}
.croppie-container .cr-boundary {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.croppie-container .cr-viewport {
  position: absolute;
  border: 2px solid #fff;
  margin: auto;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  box-shadow: 0 0 2000px 2000px rgba(0, 0, 0, 0.5);
  z-index: 0;
}
.croppie-container .cr-original-image {
  display: none;
}
.croppie-container .cr-vp-circle {
  border-radius: 50%;
}
.croppie-container .cr-overlay {
  z-index: 1;
  position: absolute;
  cursor: move;
}
.croppie-container .cr-slider-wrap {
  width: 75%;
  margin: 15px auto;
  text-align: center;
}
.croppie-result {
  position: relative; 
  overflow: hidden;
}
.croppie-result img {
  position: absolute;
}
.croppie-container .cr-image,
.croppie-container .cr-overlay, 
.croppie-container .cr-viewport {
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}

.cr-slider {
  -webkit-appearance: none;/*removes default webkit styles*/
  /*border: 1px solid white; *//*fix for FF unable to apply focus style bug */
  width: 300px;/*required for proper track sizing in FF*/
  max-width: 100%;
}
.cr-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.5);
  border: 0;
  border-radius: 3px;
}
.cr-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #ddd;
  margin-top: -6px;
}
.cr-slider:focus {
  outline: none;
}
/*
.cr-slider:focus::-webkit-slider-runnable-track {
  background: #ccc;
}
*/

.cr-slider::-moz-range-track {
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.5);
  border: 0;
  border-radius: 3px;
}
.cr-slider::-moz-range-thumb {
  border: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #ddd;
  margin-top: -6px;
}

/*hide the outline behind the border*/
.cr-slider:-moz-focusring{
  outline: 1px solid white;
  outline-offset: -1px;
}

.cr-slider::-ms-track {
  width: 300px;
  height: 5px;
  background: transparent;/*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
  border-color: transparent;/*leave room for the larger thumb to overflow with a transparent border */
  border-width: 6px 0;
  color: transparent;/*remove default tick marks*/
}
.cr-slider::-ms-fill-lower {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}
.cr-slider::-ms-fill-upper {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}
.cr-slider::-ms-thumb {
  border: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #ddd;
  margin-top:1px;
}
.cr-slider:focus::-ms-fill-lower {
  background: rgba(0, 0, 0, 0.5);
}
.cr-slider:focus::-ms-fill-upper {
  background: rgba(0, 0, 0, 0.5);
}
/*******************************************/



/*min-vh-100 d-flex flex-column justify-content-center align-items-center bg-light p-3 p-lg-5*/

.sd-deep-focus {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background-color: var(--sd-slate-300);
}


.select2-container--open {
  z-index: 9999999
}

.bb-before {
  position: relative;
}

.bb-before:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: var(--sd-slate-300);
  left: 0;
  bottom: 0;
}

.user-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: .5em;
  width: 2em;
  height: 2em;
  border-radius: 100rem;
}

.user-avatar span {
  font-size: .75em;
  font-weight: bold;
}

.btn.rounded-circle {
  width: 2em;
  height: 2em;
  font-size: 1.5em;
  padding: 0;
}

.btn.rounded-circle:hover {
  background-color: rgba(0,0,0,.1) !important;
}

.inside-scroller-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
}

.inside-scroller {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}


/*Menu*/
body.menu-open {
  overflow: hidden;
}

.menu-toggle-mob-wrap {
  position: fixed;
  width: 100%;
  height: 0;
  top: 4rem;
  left: 0;
  overflow: hidden;
  transition: all .5s ease;
  overflow-y: auto;
  max-height: 100%;
  z-index: 1030;
}

body.menu-open .menu-toggle-mob-wrap {
  position: fixed;
  height: calc(100% - 4rem);
  transition: all .5s ease; 
}

.sd-btn-app {
  line-height: 100%;
  border-color: var(--sd-slate-100);
  transition: 1s ease all ;
  font-weight: 500;

  display: flex;
  flex-direction: row;
  text-align: left;
  align-items: center;
  justify-content: space-between;
  grid-gap: 1rem;
  padding: 1rem 1.5rem;
}

.sd-btn-app i {
  font-size: 1.5rem;
}

.sd-btn-app.active {
  background-color: var(--bs-primary);
  color: var(--sd-slate-50)!important;
}

.sd-btn-app:hover {
  background-color: var(--bs-primary);
  color: var(--sd-slate-50)!important;
  transition: .2s ease all ;
}

.sd-btn-app.active i {
  transition: .2s ease all ;
  color: var(--bs-light)!important;
}

.sd-btn-app:hover i {
  transition: .2s ease all ;
  color: var(--bs-light)!important;
}


.sd-logo > span {
  display: inline-block;
  margin: 0 0.5rem;

  animation: flash; /* referring directly to the animation's @keyframe declaration */
  animation-duration: 1.5s; /* don't forget to set a duration! */;
  animation-iteration-count: infinite;
  margin: 0;
}


.bg-slate-300 {
  background-color: var(--sd-slate-200);
}



























/*big screens*/
@media (min-width: 992px) {

  /*layouts LG*/
  .sd-grid {
    display: grid;
    grid-template-columns: 300px auto;
    grid-template-rows: 4rem auto;
  }
  .sd-grid-3 {
    display: grid;
    grid-template-columns: 300px auto 300px;
    grid-template-rows: 4rem auto;
  }

  .sd-grid-3 > div:nth-child(1) {
    grid-row-start: 1;
    grid-column-start: 1;
  }

  .sd-grid-3 > div:nth-child(2) {
    grid-row-start: 2;
    grid-column-start: 1;
  }

  .work-area {
    grid-column: 2;
    grid-row-start: 0;
    grid-row: 2 span;
  }

  .cal-menu {
    grid-row: 2 span;
    grid-column: 3;
  }

  .sd-deep-focus {
    padding: 2rem;
  }
  
  .sd-grid > .aside {
    grid-column: 1;
    grid-row: 2;
  }


  .sd-grid-3-l {
    display: grid;
    grid-template-columns: 300px 400px auto;
    grid-template-rows: 4rem auto;
    height: 100vh;
    overflow: auto;
  }

  .sd-grid-3-l .aside {
    grid-column: 1;
    grid-row: 2;    
  }

  .sd-grid-3-l .ev-menu {
    grid-column: 2;
    grid-row-start: 0;
    grid-row: 2 span;
  }

  .sd-grid-3-l .work-area {
    grid-column: 3;
    grid-row-start: 0;
    grid-row: 2 span;    
  }


  .menu-toggle-mob-wrap {
    position: relative;
    width: auto;
    height: auto;
    top: auto;
    left: auto;
    z-index: auto;
  }



  .stretched-link:hover {
    transform: scale(1.025);
    transition: .2s all ease;
  }


}