/* ---------------------------- Author: AtenaSoft --------------------------- */
/* -------------------------------------------------------------------------- */
/*                                RESET STYLES                                */
/* -------------------------------------------------------------------------- */
* {
  scroll-behavior: smooth;
}
.symbol .symbol-label {
  background-color: transparent;
}
.dataTables_wrapper .dataTables_paginate {
  text-align: center;
}
.menu-title {
  &.disabled {
    color: gray !important;
  }
}
.app-sidebar-navs .menu .menu-item .menu-link .menu-icon i {
  font-size: 2rem !important;
}
.app-sidebar-menu {
  .separator {
    border-bottom: 1px dashed #323232;
    margin: 0;
  }
}
.app-footer {
  position: sticky;
  bottom: 0;
  width: 100%;
}
.card {
  .card-body {
    padding: 1.5rem;
  }
  .card-header {
    padding: 1.5rem;
  }
}
.app-toolbar {
  height: auto;
}
.separator {
  border-bottom: 1px dashed var(--bs-border-color);
  margin: 30px 0;
}
.separator-mini {
  border-bottom: 1px dashed var(--bs-border-color);
  margin: 5px 0;
}
.separator-important {
  border-color: red;
}
.form-check.form-check-sm .form-check-input[type='checkbox'] {
  width: 15px !important;
  height: 15px !important;
  border-radius: 4px;
}
.form-check-radio .form-check-input {
  width: 15px;
  height: 15px;
  margin-right: 0.5rem;
}
@media (min-width:1400px) {
  .modal-xl {
    --bs-modal-width: 1320px
  }
}
/* -------------------------------------------------------------------------- */
/*                                 light mode                                 */
/* -------------------------------------------------------------------------- */
[data-bs-theme="light"] {
  .app-wrapper {
    background-color: #f9f9f9;
  }
  .is-admin-outborder {
    box-shadow:
      5px 7px 12px 0px rgba(0, 0, 0, 0.2),
      2px 2px 0px 1px white;
    border: 1px solid white;
    padding: 10px;
  }
  .is-admin-inborder {
    background: -webkit-linear-gradient(270deg, white, rgb(240, 240, 240));
    box-shadow:
      0px 0px 0px 10px #0664f09f,
      5px 5px 5px 2px rgba(0, 0, 0, 0.4),
      inset 0 8px 3px -8px rgba(255, 255, 255, 1);
    padding: 1px;
  }
  .app-footer {
    background-color: --bs-app-footer-bg-color;
  }
  .custom-order {
    .custom-order__link {
      background-color: white;
    }
    .notification-active {
      color: limegreen !important;
    }
  }
}
/* -------------------------------------------------------------------------- */
/*                                  dark mode                                 */
/* -------------------------------------------------------------------------- */
[data-bs-theme="dark"] {
  .is-admin-outborder {
    box-shadow:
      5px 7px 15px 2px rgba(199, 199, 199, 0.1),
      0.3px 0.3px 0px 1px #4c4d4f;
    border: 1px solid #0f1014;
    padding: 10px;
  }
  .is-admin-inborder {
    background: -webkit-linear-gradient(270deg, white, rgb(240, 240, 240));
    box-shadow:
      0px 0px 0px 10px #0664f09f,
      3px 3px 5px 2px rgba(255, 255, 255, 0.4),
      inset 0 5px 3px -5px rgb(0, 0, 0);
    padding: 1px;
  }
  .app-footer {
    background-color: var(--bs-app-footer-bg-color);
  }
  .page-heading {
    color: white !important;
  }
}
/* -------------------------------------------------------------------------- */
/*                                 toolbar fix                                */
/* -------------------------------------------------------------------------- */
[data-kt-app-header-fixed=true][data-kt-app-toolbar-fixed=true] .app-wrapper {
  margin-top: var(--bs-app-header-height);
}
[data-kt-app-header-fixed=true][data-kt-app-toolbar-fixed=true] .app-wrapper:has([data-ninja="true"]) {
  margin-top: calc(var(--bs-app-header-height) + var(--bs-app-toolbar-height));
}
/* -------------------------------------------------------------------------- */
/*                                 tipografia                                 */
/* -------------------------------------------------------------------------- */
.number-fraction {
  font-variant-numeric: diagonal-fractions;
}
/* -------------------------------------------------------------------------- */
/*                                   sidebar                                  */
/* -------------------------------------------------------------------------- */
.app-sidebar-footer:hover .btn-label {
  color: white;
}
.help-center__nav-item {
  padding-left: 25px !important;
  justify-content: start;
}
[data-kt-app-sidebar-minimize="on"] {
  .help-center__nav-item {
    justify-content: center;
  }
}
[data-kt-app-sidebar-minimize="on"] .app-sidebar:hover {
  .help-center__nav-item {
    justify-content: start;
  }
}
/* -------------------------------------------------------------------------- */
/*                               custom classes                               */
/* -------------------------------------------------------------------------- */
.custom-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  .custom-filters__item {
    flex: 1 0 calc(100% / 9 - 9px);
    max-width: calc(100% / 9 - 9px);
    margin: 0;
    @media (max-width: 1200px) {
      flex: 1 0 calc(100% / 6 - 9px);
      max-width: calc(100% / 6 - 9px);
    }
    @media (max-width: 768px) {
      flex: 1 0 calc(100% / 3 - 7px);
      max-width: calc(100% / 3 - 7px);
    }
  }
  .custom-filters__link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100px;
    @media (max-width: 768px) {
      height: 75px;
    }
  }
  .custom-filters__badge {
    top: 30px !important;
    right: 0px !important;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    min-width: 27px;
    font-size: 0.9rem;
    font-weight: 600;
  }
  .custom-filters__email {
    top: 7px !important;
    right: 3px !important;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    /* min-width: 27px; */
    /* 
    & i {
      color: rgba(255, 0, 0, 0.618) !important;
    } */
  }
}
.table {
  .btn-icon {
    &:hover i {
      color: #1B84FF;
    }
    &:focus {
      & i {
        color: #1B84FF;
      }
    }
  }
}
.custom-tooltip {
  --bs-tooltip-bg: #e9f3ff;
}
.custom-tooltip-pro {
  --bs-tooltip-bg: gold;
}
.order-new-search {
  column-gap: 10px;
  row-gap: 10px;
  flex-flow: wrap;
  .order-new-search__param {
    flex: 1 0 calc(100% / 6 - 9px);
    max-width: calc(100% / 6 - 9px);
    @media (max-width: 1200px) {
      flex: 1 0 calc(100% / 6 - 9px);
      max-width: calc(100% / 6 - 9px);
    }
    @media (max-width: 768px) {
      flex: 1 0 calc(100%);
      max-width: calc(100%);
    }
  }
}
.nota-cliente {
  max-width: min-content;
}
.custom-toolbar-navigation {
  .custom-toolbar-navigation__item {
    &:hover {
      & i {
        color: #1B84FF !important;
      }
    }
    &:active {
      & i {
        color: #1B84FF !important;
      }
    }
    &:focus {
      & i {
        color: #1B84FF !important;
      }
    }
  }
}
/* .galeria {
  .galeria__single-wrap {
    position: relative;
    height: 110px;
    object-fit: contain;

    & button {
      z-index: 2;
    }
  }

  & .img-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 7px;
  }

  .document-delete {
    position: absolute;
    top: 7%;
    right: 7%;
    color: white;
  }

  .document-name {
    position: absolute;
    top: 83%;
    left: 50%;
    transform: translate(-50%, 0);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-weight: 600;
  }

} */
/* .galeria__single-wrap-small {
  height: 100px;
  width: 100px;

  & img {
    width: 100%;
    height: 100%;
  }
} */
.gallery {
  .gallery__single {
    position: relative;
    .gallery__delete {
      position: absolute;
      right: 0;
    }
  }
  .gallery__card {
    position: relative;
    transition: background-color 0.3s ease;
    &:before {
      content: "";
      height: 0px;
      width: 100%;
      position: absolute;
      background-color: #1B84FF;
      bottom: 0;
      border-bottom-left-radius: inherit;
      border-bottom-right-radius: inherit;
      transition: height 0.3s ease;
      /* Adiciona uma transição suave para o `height` */
    }
    &:hover {
      background-color: #f9f9f9;
    }
    &.active {
      background-color: #f9f9f9;
      &:before {
        height: 5px;
      }
    }
    .gallery__delete {
      position: absolute;
      right: 0;
    }
  }
  .gallery__delete {
    position: absolute;
    right: 0;
  }
}
.messenger-chatbox {
  height: calc(100vh - 128px);
}
.notes {
  .notes__subject {
    & span {
      display: -webkit-box;
      -webkit-line-clamp: 1;
      line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
}
.modal-upload {
  max-width: none;
  width: fit-content;
  min-width: 50vw;
  max-width: 80vw;
  margin-inline: auto;
  .modal-content {
    max-height: 100%;
  }
}
.cropper {
  .cropper__container {
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    & img {
      max-width: 100%;
      height: auto;
      display: block;
    }
  }
}
.ticket-description {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
}
.sidebar-ticket__resume {
  @media (min-width:992px) {
    position: sticky;
    top: 105px;
  }
}
.ticket-attach__image-frame {
  height: 100%;
  width: 100%;
  .ticket-attach__image {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}
.app-header {
  .separator {
    border-bottom: 1px dashed var(--bs-border-color);
    margin: 10px;
  }
}
.template__card {
  height: 300px;
  overflow: hidden;
}
.iframe-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.iframe-preview {
  width: 1000%;
  height: 1000%;
  transform: scale(0.1);
  transform-origin: 0 0;
  position: absolute;
  top: 0;
  left: 0;
}
.iframe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: transparent;
}
/* ------------------------ cards da editar sections ------------------------ */
.section__content-single {
  height: max-content;
}
.section__content-card {
  height: max-content;
  width: 100%;
  overflow: hidden;
}
.iframe-container-fw {
  height: max-content;
  position: relative;
}
.iframe-preview-fw {
  width: 100%;
  height: 350px;
}
.iframe-preview-fw-fh {
  height: 70vh;
}
.iframe-preview-mobile {
  width: 100%;
  height: 400px;
}
.iframe-overlay-fw {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 10px);
  height: 100%;
  z-index: 1;
  background: transparent;
}
/* ---------------------------- newsletter stats ---------------------------- */
.arrow-dashed-line {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 0.1px dashed;
  position: relative;
  .arrow::after {
    content: "▸";
    position: absolute;
    top: -1px;
    right: -4px;
    transform: translateY(-50%);
  }
}
/* -------------------------------------------------------------------------- */
/*                     modal de produtos da base de dados                     */
/* -------------------------------------------------------------------------- */
.product-database {
  .stepper-nav {
    position: sticky;
    top: 0;
    z-index: 9999;
  }
  .modal-search {
    position: relative;
  }
  .product-database__product-wrap {
    @media (min-width:992px) {
      border-right: 1px dashed var(--bs-border-color);
    }
    .product-database__product-single {
      position: relative;
      transition: background-color 0.3s ease;
      .product-database__card {
        &:before {
          content: "";
          height: 0px;
          width: 100%;
          position: absolute;
          background-color: #1B84FF;
          bottom: 0;
          border-bottom-left-radius: inherit;
          border-bottom-right-radius: inherit;
          transition: height 0.3s ease;
        }
        &.already-sent {
          background-color: rgba(255, 0, 0, 0.040);
          position: relative;
        }
        .already-sent-text {
          position: absolute;
          visibility: hidden;
          background-color: #e9f3ff;
          border-radius: 5px;
          text-align: center;
          padding: 5px;
          width: 100%;
        }
        &:hover {
          background-color: #f9f9f9;
          cursor: pointer;
          &.already-sent {
            background-color: rgba(255, 0, 0, 0.060);
            .already-sent-text {
              visibility: visible;
            }
          }
        }
        &.selected {
          background-color: #f9f9f9;
          &:before {
            height: 5px;
          }
          &.already-sent {
            background-color: rgba(255, 0, 0, 0.060);
          }
        }
      }
      .product-database__product-image {
        height: 130px;
        img {
          width: 100%;
          height: 130px;
          object-fit: cover;
          object-position: center;
          border-top-left-radius: var(--bs-card-border-radius);
          border-top-right-radius: var(--bs-card-border-radius);
        }
        .badge-sent {}
      }
      .product-database__product-text {
        text-wrap: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }
  .product-database__grid-col2 {
    @media (min-width:992px) {
      .product-database__thumbs-wrap {
        background-color: lightgray;
        border: 1px solid gainsboro;
        border-radius: 10px;
        position: relative;
        .product-database__thumbs-image {
          object-fit: cover;
          width: 70px;
          height: 70px;
        }
        .product-database__thumbs-text {
          text-wrap: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          font-size: 10px;
        }
        .product-database__thumb-close {
          position: relative;
          margin-left: auto;
          margin-bottom: auto;
          right: 8px;
          padding: 4px !important;
        }
      }
    }
  }
}
/* Estilo para Fade In */
.fade-in {
  opacity: 0;
  animation: fadeInAnimation 0.5s forwards;
}
/* Estilo para Fade Out */
.fade-out {
  opacity: 1;
  animation: fadeOutAnimation 0.3s forwards;
}
/* Animação de Fade In */
@keyframes fadeInAnimation {
  to {
    opacity: 1;
  }
}
/* Animação de Fade Out */
@keyframes fadeOutAnimation {
  to {
    opacity: 0;
  }
}
/* -------------------------------------------------------------------------- */
/*                               editor grape js                              */
/* -------------------------------------------------------------------------- */
.grapejsnewsletter {
  --gjs-primary-color: #373d49;
  --gjs-secondary-color: rgba(255, 255, 255, 0.7);
  --gjs-tertiary-color: #1b84ff;
  --gjs-quaternary-color: #1b84ff;
  border-radius: 8px;
  overflow: hidden;
  #editor {
    height: 100vh;
    width: 100%;
  }
  .gjs-editor {
    font-family: Arial, Helvetica, sans-serif;
    font-size: var(--gjs-font-size);
    position: relative;
    box-sizing: border-box;
    height: 100%;
  }
  .gjs-four-color-h:hover {
    color: #1b84ff;
  }
  .gjs-cv-canvas {
    top: 0;
    width: 100%;
    height: 100%;
  }
  .gjs-block {
    height: auto;
    min-height: auto;
  }
  .panel__top {
    padding: 0;
    width: 100%;
    display: flex;
    position: initial;
    justify-content: center;
    justify-content: space-between;
  }
  .panel__basic-actions {
    position: initial;
  }
  .editor-row {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: nowrap;
  }
  /*  classe manhosa */
  .editor-canvas {
    flex-grow: 1;
  }
  .panel__right {
    position: relative;
    flex-basis: 230px;
    overflow-y: auto;
    @media (max-width: 992px) {
      flex-basis: none;
      max-width: 200px;
    }
  }
  .panel__switcher {
    position: initial;
    width: 230px;
  }
  .panel__devices {
    position: initial;
  }
  .styles-container,
  .traits-container,
  .layers-container,
  .layouts-container {
    overflow-y: auto;
    max-height: 100vh;
  }
  .gjs-sm-sector-label,
  .gjs-title,
  .gjs-layer-name,
  .gjs-sm-label {
    font-weight: 500;
  }
  .gjs-block-label {
    font-size: 0.8rem;
  }
}
/* -------------------------------------------------------------------------- */
/*                                   páginas                                  */
/* -------------------------------------------------------------------------- */
.drag-item {
  border-radius: var(--bs-card-border-radius);
  .drag-item__actions {
    .drag-item__button {
      height: 25px;
      width: 25px;
    }
  }
  &:hover {
    cursor: move;
  }
}
.accordion-button-sm {
  padding: 12px;
}
/* -------------------------------------------------------------------------- */
/*                                   banners                                  */
/* -------------------------------------------------------------------------- */
.banner-control {
  .banner-control__image-wrap {
    height: 200px;
    overflow: hidden;
    border-radius: calc(var(--bs-card-border-radius) - (1.5rem / 10));
    border: 1px solid lightgray;
    position: relative;
    .banner-text {
      visibility: hidden;
      position: absolute;
      display: flex;
      flex-direction: column;
      flex-wrap: wrap;
      width: 100%;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      transition: all 0.5s ease-in;
      * {
        color: #f9f9f9;
      }
    }
    img {
      height: 100%;
      width: 100%;
      object-fit: cover;
      transition: all 1s ease;
    }
    &:hover {
      img {
        transform: scale(1.1);
        filter: grayscale(0.5);
        filter: brightness(0.5);
        box-shadow: inset 0px 250px 250px rgba(0, 0, 0, 0.5);
      }
      .banner-text {
        visibility: visible;
      }
    }
  }
  .banner-control__single {
    &:hover {
      cursor: grab;
      cursor: -moz-grab;
      cursor: -webkit-grab;
      &:active {
        cursor: grabbing;
        cursor: -moz-grabbing;
        cursor: -webkit-grabbing;
      }
    }
  }
  .banner-control__active {
    bottom: 10px;
    left: 10px;
    input {
      height: 30px;
    }
    :hover {
      cursor: pointer;
    }
  }
  .banner-control__delete {
    top: 0;
    right: 0;
    button {
      padding: 10px !important;
      &:hover {
        i {
          color: var(--bs-text-danger);
        }
      }
    }
  }
  .banner-control__timer {
    label {
      cursor: help;
    }
    input {
      max-width: 30px;
      padding: 0 5px 0 !important;
      border-radius: calc(var(--bs-card-border-radius) - (1.5rem / 10));
    }
  }
  .banner-control__switch {
    label {
      cursor: help;
    }
    input {
      cursor: pointer;
    }
  }
  .banner-control__shedule {
    &:hover svg {
      cursor: pointer;
      color: var(--bs-text-success);
    }
    &.active svg {
      color: var(--bs-text-success);
    }
  }
}
.banner-option-image {
  height: 290px;
  width: 100%;
  overflow: hidden;
  & img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 1s ease;
  }
  &:hover {
    img {
      transform: scale(1.1);
      filter: grayscale(0.5);
      filter: brightness(0.5);
      box-shadow: inset 0px 250px 250px rgba(0, 0, 0, 0.5);
    }
  }
}
.banner-image-details {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
}
.tab-langs img {
  border-radius: 50px;
}
/* -------------------------------------------------------------------------- */
/*                             catalogos externos                             */
/* -------------------------------------------------------------------------- */
.external-catalogs {
  :hover {
    .external-catalogs__pro {
      border-color: gold !important;
    }
  }
}
/* -------------------------------------------------------------------------- */
/*                                 help center                                */
/* -------------------------------------------------------------------------- */
.release-notes {
  .accordion-item:nth-of-type(n+4) {
    display: none !important;
  }
}
/* -------------------------------------------------------------------------- */
/*                                     vfv                                    */
/* -------------------------------------------------------------------------- */
.badge-matricula {
  outline: 1px solid rgb(160, 160, 160);
  border-left: 12px solid rgb(68, 68, 255);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1rem;
}
/* -------------------------------------------------------------------------- */
/*                     galeria de previews de fotos (vfv)                     */
/* -------------------------------------------------------------------------- */
.photo-gallery {
  .photo-gallery__col {
    .photo-gallery__card {
      .photo-gallery__card-body {
        .photo-gallery__image {
          object-fit: cover;
          border-radius: 5px;
          background-size: cover;
        }
      }
    }
  }
}
.textonform {
  min-height: calc(1.5em + 1.1rem + 2px);
  display: flex;
  align-items: center;
}
/* -------------------------------------------------------------------------- */
/*                                 scrolltotop                                */
/* -------------------------------------------------------------------------- */
#backToTop {
  position: fixed;
  right: 0px;
  bottom: 60px;
  z-index: 1;
  height: 35px;
  padding-top: 4px;
  width: 30px;
  color: white;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  background-color: #0d0e12;
  border: none;
  opacity: 0.5;
  transition: all 0.5s ease 0s;
  -moz-transition: all 0.5s ease 0s;
  -webkit-transition: all 0.5s ease 0s;
  -o-transition: all 0.5s ease 0s;
  @media (max-width: 580px) {
    bottom: 105px;
  }
  &:hover {
    opacity: 1;
  }
}
/* -------------------------------------------------------------------------- */
/*                                loadingscreen                               */
/* -------------------------------------------------------------------------- */
/* este loading ocupa o body e o utilizador pode clicar fora */
.loadingScreen {
  position: fixed;
  top: 0;
  z-index: 99;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  & svg path,
  svg rect {
    fill: #3353f0;
  }
}
/* este loading ocupa toda a página obrigando o utilizador a esperar */
.loadingScreenBlock {
  position: fixed;
  top: 0;
  z-index: 999;
  width: 100%;
  height: 100%;
  background-color: #00000055;
  display: flex;
  align-items: center;
  justify-content: center;
  & svg path,
  svg rect {
    fill: #3353f0;
  }
}
/* -------------------------------------------------------------------------- */
/*                                fullcalendar                                */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/*                                  dashboard                                 */
/* -------------------------------------------------------------------------- */
.dash-widget {
  position: relative;
  tr {
    &:nth-child(n+7) {
      display: none;
    }
  }
  .btn__delete{
    position: absolute;
    right: 0;
    top: 0;
  }
  

}