* {
  box-sizing: border-box;
  outline: 0;
}

::selection {
  background: var(--#{$variable-prefix}liberty-color);
}

html {
  height: stretch;
}

body {
  min-height: 100vh;
  min-height: stretch;
  font-size: 12px;
  background-color: var(--#{$variable-prefix}light-gray-background);
}

h1{
  font-size: 1.65rem;
}

.flex-1{
  flex: 1;
}

.opacity-50{
  opacity: 50%;
}

.navbar-brand img {
  max-width: 170px;
  height: 40px;
  object-fit: contain;
}

.navbar{
  &.sticky-top.backdrop-filter{
    border-bottom: 1px solid var(--#{$variable-prefix}wizard-border-color);
  }
  .navbar-wrapper{
    .btn.text-icon{
      color: var(--#{$variable-prefix}toolbox-blue);
    }
    .dropdown-select {
      .user-profile{
        cursor: pointer;
      }
      .dropdown-item{
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
        white-space: nowrap;
      }
    }
    select{
      cursor: pointer;
    }
  }
}

.btn-sm.leading-icon{
  height: 26px;
  svg{
    width: 12px;
    height: 12px;
  }
}

.offcanvas-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: var(--#{$variable-prefix}background-white);
}

.offcanvas-backdrop.fade {
  opacity: 0;
}

.offcanvas-backdrop.show {
  opacity: .85;
}

.offcanvas-header{
  .btn-close {
    width: auto;
  }
}

.offcanvas-footer{
  border-top: 2px solid #eaebef;
}

.cursor-pointer{
  cursor: pointer;
}

.card-gray{
  background-color: var(--#{$variable-prefix}light-gray-background);
}

.content-block{
  background: var(--#{$variable-prefix}navigation-background);
}

.heading-common{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1.25rem;
  .text-content{
    max-width: 20.188rem;
    font-size: .625rem;
    line-height: .813rem;
    h1{
      margin-bottom: .375rem;
      font-size: 1.125rem;
      font-weight: 300;
      line-height: 1.438rem;
      color: var(--#{$variable-prefix}dark-text-color);
    }
    p{
      color: var(--#{$variable-prefix}light-text-color);
    }
  }
}

.inputgroup-color{
  position: relative;
  .form-floating {
    input{
      padding-left: 43px;
    }
    label{
      padding-left: 48px;
    }
  }

  [type="color"] {
    position: absolute;
    left: 12px;
    z-index: 2;
    background: transparent;
    border: 0;

    &:focus{
      background: transparent;
      box-shadow: none;
    }
  }
}

.inputgroup-btn.input-group {
  input:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu),
  button{
    position: relative;
    left: 0;
    display: flex;
    align-items: center;
    background: transparent;
    transform: none;
  }
  input:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu){
    padding: 1rem .875rem;
    color: var(--#{$variable-prefix}dark-text-color);
    border-right: 0;
  }
  button{
    position: relative;
    border: 1px solid var(--#{$variable-prefix}input-floating-border);
    border-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    &::before{
      position: absolute;
      top: 50%;
      left: 5px;
      width: 2px;
      height: 30px;
      content: "";
      background: var(--#{$variable-prefix}input-floating-border);
      transform: translateY(-50%);
    }
  }
  &:read-only,
  &:disabled,
  .disabled{
    color: var(--#{$variable-prefix}input-diabled-text);
    background-color: var(--#{$variable-prefix}input-diabled-bg);
    border-color: var(--#{$variable-prefix}input-diabled-border);
    opacity: 1;
  }
}

.editor-divider {
  width: 2px;
  height: 15px;
  background-color: #d8d8d8;
}

.secondary-header{
  position: sticky;
  top: 57px;
  z-index: 1000;
}

.filter-block {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 22px 1.375rem 0;
  gap: 2rem;
  a {
    color: var(--#{$variable-prefix}eerie-black);
    text-decoration: none;
  }
  .filter-icon {
    display: flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    line-height: 13px;
    letter-spacing: 0;
    gap: .5rem;
    &.filter-color-blue{
      color: #397ff5;
      path {
        stroke: #397ff5;
      }
    }
  }
}

[data-color-mode="dark"] {
  .filter-icon {
    path {
      stroke: #fff;
    }
  }
}

.schedule-duration{
  grid-template-columns: 38% 38% 20%;
}

.dropdown-select {
  .form-control {
    padding-right: 38px;
  }
}

.form-floating > .form-control{
  line-height: 1.3;
  white-space: inherit;
}

.floating-textarea > .form-control{
  min-height: 100px;
}

.info-feedback {
  color: var(--#{$variable-prefix}eerie-black);
  background: var(--#{$variable-prefix}light-gray-background);
  border: 0;
  svg{
    color: var(--#{$variable-prefix}primary-color-hex);
  }
}

.icon-success{
  svg{
    color: #58b49e;
  }
}

.icon-danger{
  svg{
    color: #f46582;
  }
}

.phone-wrap{
  .dropdown-select{
    width: 120px;
  }
}

.btn-eye {
  top: 24px;
}

.rgt-cell-inner{
  .btn-eye{
    top: 50%;
  }
}

.access-management {
  .rgt-border-line::before{
    content: none;
  }

  .rgt-cell-inner{
    margin: 0 5px;
  }

  .rgt-cell-header-inner{
    padding-left: 0;
  }

  [data-column-id="1"]{
    img{
      width: 35px;
      height: 35px;
      object-fit: cover;
    }
  }
}

.logo-access{
  display: inline-block;
  width: auto;
  height: 50px;
  svg,
  img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left;
  }
}

.scroll-accessroles-wrapper {
  min-height: calc(100vh - 395px);
  max-height: calc(100vh - 395px);
  overflow-y: auto;
  &::-webkit-scrollbar {
    display: none;
  }
  &::-webkit-scrollbar-thumb {
    display: none;
  }
}

.information-counter {
  .logo-title-product{
    .product-desc{
      .product-link,
      .counter{
        color: var(--#{$variable-prefix}light-text-color);
      }
    }
  }
}

// Floating Date/Time Picker
/* stylelint-disable */
.floating-dt-picker{
  .form-floating{
    input{
      color: var(--#{$variable-prefix}background-white);
    }
  }
  .date-picker{
    position: absolute;
    top: 20px;
    left: 15px;
    input{
      pointer-events: none;
    }
    .MuiIconButton-root {
      right: -7px;
      top: -24px;
    }
    .MuiIconButton-label {
      svg {
        width: 17px;
        height: 16px;
      }
    }
    .Mui-error{
      &.MuiFormHelperText-root{
        display: none;
      }
    }
  }
}
/* stylelint-enable */

.tooltip-off{
  .custom-tooltip{
    display: none;
  }
}

.scroll-wrapper {
  min-height: calc(100vh - 285px);
  max-height: calc(100vh - 285px);
  overflow-y: auto;
  &::-webkit-scrollbar {
    display: none;
  }
  &::-webkit-scrollbar-thumb {
    display: none;
  }
}

.scroll-fh-wrapper {
  min-height: calc(100vh - 200px);
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  &::-webkit-scrollbar {
    display: none;
  }
  &::-webkit-scrollbar-thumb {
    display: none;
  }
}
/* stylelint-disable */
.form-floating{
  textarea.form-control{
    height: 100px;
  }
}
.form-floating{
  .password{
    padding-right: 3rem;
  }
}
/* stylelint-enable */

.card{
  .floating-valued{
    .text-heading{
      font-size: .625rem;
      color: var(--#{$variable-prefix}light-text-color);
    }
    .text-content{
      font-size: .75rem;
      font-weight: 600;
      color: var(--#{$variable-prefix}dark-text-color);
    }
  }
}

.form-control{
  &::-ms-reveal {
    display: none;
  }
}

.custom-select-trigger{
  cursor: pointer;
}

@media (min-width: 1280px){
  .col-lg-eq5 {
    flex: none;
    width: 20%;
  }

  .col-lg-off1col {
    flex: 0 0 auto;
    width: calc(100% - 95px);
  }
}

@media (min-width: 767px){
  .toast-container{
    width: 513px;
  }
}

@media (max-width: 768px){
  .offcanvas-body,
  .offcanvas-header {
    padding: 1.25rem 1rem;
  }
}
