html[dir="rtl"] {
  .block--cait-main-menu .nav-item .dropdown-item {
    text-align: right !important;
  }

  .language-link {
    padding: 12px;
  }
  .tfa-entry-form {
    input, label, .description{
      margin: 0 20px !important;
    }
  }
}
.alert {
  word-break: break-word;
}

.page {
  height: auto !important;
}

body {
  font-family: Helvetica;
}

.bg-light {
  background-color: white !important;
}

.language-link {
  color: white !important;
  padding: 16px;
  line-height: 2 !important;
}

.language-link:hover {
  border: none !important;
}

.btn:hover {
  color: inherit;
}

.custom-navbar .nav-link.active {
  font-weight: bold;
  background-color: transparent;
  color: #42bb96 !important;
  border-radius: 0px;
  border-bottom: 3px solid #42bb96;
}

.text-green {
  color: #6ae4bf !important;
}

.card:hover {
  border-color: 1px solid#42bc97 !important;
}

.form-control:not(.form-search) {
  min-height: 40px !important;
  font-size: 14px;
  background-color: #eef3f7 !important;

  &:hover,
  &:active {
    border: 1px solid #42bc97 !important;
    box-shadow: 0px 4px 24px 0px #42bc974d !important;
  }
}

.form-textarea {
  display: block;
  width: 100%;
  height: calc(5 * 2rem);
  line-height: 1.5;
  padding: 8px;
  box-sizing: border-box;
  resize: vertical;
  overflow-y: auto;
}

.img-thumbnail,
.text img,
[class$="__body"] img,
.cke_widget_image img {
  padding: inherit !important;
  background-color: inherit !important;
  border: inherit !important;
}

@media(max-width: 576px){
  .image-widget{
    .custom-file{
      margin-bottom: 40px;
    }
  }
}


/************************** Dialogs popup **********************************/
@media only screen and (max-width: 768px) {
  #edit-keys {
    padding-right: 40px;
  }

  .ui-dialog {
    width: 100% !important;
  }
}


input::placeholder{
  color: #C0C0C0 !important;
}

select::placeholder{
  color: #C0C0C0 !important;
}

.form-control::placeholder{
   color: #C0C0C0 !important;
}

.ui-dialog-titlebar-close::before {
  content: "X";
  /* Add the text you want */
  color: Black;
  /* Optional: Customize text color */
}

.ui-dialog-titlebar-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: 4px !important;
}

html[lang="ar"] *:not(.material-icons) {
  font-family: "Almarai", sans-serif !important;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
  .language-link {
    color: #14406f !important;
  }
}



#edit-submit,
#edit-submit--2,
#edit-cancel,#edit-preview {
  color: var(--Nautral-700, #1E3564);
  width: 153px !important;
  height: 42px !important;
  padding: 8px;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid var(--Nautral-700, #1E3564);
  font-family: Helvetica;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.10000000149011612px;
  text-align: center;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  text-decoration: none;
  text-transform: capitalize;

  &:hover {
    border-color: #42bb96;
    color: #42bb96;
    transition: .2s ease-in-out;

  }

}

#edit-cancel {
  padding: 12px 50px;
}

@media(max-width:375px) {
  #edit-cancel, #edit-preview {
    padding: 12px 40px !important;
  }

}

#edit-submit--2 {
  width: 175px !important;
  padding: 10px !important;
}

.custom-disable{
  background-color: #f5f5f5 !important;
  color: #b3b3b3 !important;
  cursor: not-allowed !important;
}



.tfa-entry-form {
  input, label, .description{
    margin: 0 10px !important;
      @media (max-width: 768px) {
        margin: 0 0 !important;
      }
  }

  .form-control {
    width: 97% !important;
  }
  #edit-login {
    color: var(--Nautral-700, #1E3564);
    width: 153px !important;
    height: 42px !important;
    padding: 8px;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid var(--Nautral-700, #1E3564);
    font-family: Helvetica;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.10000000149011612px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    text-decoration: none;
    text-transform: capitalize;

    &:hover {
      border-color: #42bb96;
      color: #42bb96;
      transition: .2s ease-in-out;
    }
  }
}

.maintenance-page {
  .dialog-off-canvas-main-canvas {
    display: flow;
    text-align: center;
    font-family: Helvetica, Arial, sans-serif;

    header[role="banner"] {

      h1 a {
        font-size: 60px;
        /* Default for larger screens */

        /* Adjust for smaller screens */

        @media (max-width: 480px) {
          font-size: 30px;
        }
      }

      img {
        @media (max-width: 480px) {
          width: 100%;
        }

      }
    }

    h1 {
      font-family: Helvetica;
      font-weight: 700;
      font-size: 32px;
      line-height: 120%;
      letter-spacing: 0px;
      color: var(--Nautral-700, #1E3564);

      @media (max-width: 768px) {
        font-size: 28px;
      }

      @media (max-width: 480px) {
        font-size: 24px;
      }
    }

    a {
      color: var(--Nautral-700, #1E3564);
      font-size: 16px;
      font-weight: 700;
      line-height: 20px;
      letter-spacing: 0.1px;

      @media (max-width: 768px) {
        font-size: 14px;
      }

      @media (max-width: 480px) {
        font-size: 12px;
      }
    }
  }

  main {
    padding: 10px;
  }
}


.auth-dialog-header {
  background-color: var(--Nautral-700, #1E3564) !important;
}



.auth-edit-form {
  button {
    color: var(--Nautral-700, #1E3564) !important;
    width: 153px !important;
    height: 42px !important;
    padding: 8px;
    gap: 8px;
    border-radius: 8px !important;
    border: 1px solid var(--Nautral-700, #1E3564) !important;
    font-family: Helvetica;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.10000000149011612px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    text-decoration: none;

    &:hover {
      border-color: #42bb96 !important;
      color: #42bb96 !important;
      transition: .2s ease-in-out;
    }
  }
}


.form-item-preferred-langcode {
  .form-select {
    padding: 0.5rem 2.5rem 0.5rem 1.25rem !important
  }
}

.form-item-timezone {
  .form-select {
    padding: 0.5rem 2.5rem 0.5rem 1.25rem !important
  }
}

#edit-user-picture-wrapper {
  .custom-file {
    .custom-file-label {
      display: none;
    }
  }
  .img-fluid {
    margin-bottom: 10px;
  }  
}
#edit-displayname-wrapper {
  .js-form-item {
    #edit-displayname-0-value {
      margin-bottom: 12px;
    }
  }
}

.swagger-ui .info hgroup.main a{
  display: none;
}