/*
* style.css
* Arquivo para inclusão de css customizado geral
******************************************************************************/

.light-style .menu .app-brand.demo {
  height: 64px;
}

.dark-style .menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo {
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: -ms-flexbox;
  display: flex;
  width: 34px;
  height: 34px;
}

.app-brand-logo.demo svg {
  width: 35px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 78px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks>* {
  display: block !important;
}

.demo-inline-spacing>* {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing>* {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing.demo-only-element> :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg>* {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing-lg.demo-only-element> :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl>* {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing-xl.demo-only-element> :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 254px;
    position: relative;
  }

  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}

.layout-demo-placeholder img {
  width: 900px;
}

.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/*
* Estilos manuais gerais
****************************************************************************/

[v-cloak] {
  display: none;
}

.mw-2 {
  max-width: 2%;
}

.mw-50 {
  max-width: 50%;
}

.mw-75 {
  max-width: 75%;
}

.w-20 {
  min-width: 20%;
}

.w-30 {
  min-width: 30%;
}

.w-40 {
  min-width: 40%;
}

.w-95 {
  min-width: 95%;
}

.mnw-100 {
  min-width: 100%;
}

.gap-25 {
  gap: .25rem;
}

.gap-50 {
  gap: .5rem;
}

.gap-75 {
  gap: .75rem;
}

.gap-100 {
  gap: 1rem;
}

.gap-150 {
  gap: 1.5rem;
}

.column-gap-20 {
  column-gap: 10rem !important;
}

.nowrap {
  white-space: nowrap !important;
}

.flex-0 {
  flex: 0 !important;
}

.overflow-auto {
  overflow: auto;
}

.flex-1 {
  flex: 1 !important;
}

.fit-content {
  width: fit-content !important;
}

.fill-content {
  width: -webkit-fill-available;
}

.error-message {
  color: var(--bs-danger) !important;
}

.ls-sm {
  letter-spacing: -.03em !important;
}

.fs-18 {
  font-size: 1.1875rem !important;
}

.fs-17 {
  font-size: 1.125rem !important;
}

.fs-16 {
  font-size: 1.0625rem !important;
}
.fs-15 {
  font-size: 1rem !important;
}

.fs-14 {
  font-size: .875rem !important;
}

.fs-13 {
  font-size: .8125rem !important;
}

.fs-12 {
  font-size: .75rem !important;
}

.fs-11 {
  font-size: .6875rem !important;
}

.fs-10 {
  font-size: .625rem !important;
}

.fs-9 {
  font-size: .5rem !important;
}

.fs-8 {
  font-size: .375rem !important;
}

.lh-0 {
  line-height: 0 !important;
}

.lh-1 {
  line-height: 1 !important;
}

.lh-11 {
  line-height: 1.1 !important;
}

.lh-12 {
  line-height: 1.2 !important;
}

.text-up {
  text-transform: uppercase !important;
}

/* AJUSTES NA NAVBAR */

.layout-navbar.container-xxl {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Adiciona a borda  */
.layout-navbar-fixed .layout-navbar {
  box-shadow: 0 0 0 1px #EDEDFC;
}

/* Ajusta a largura  quando o menu está colapsado */
.layout-navbar-fixed.layout-menu-collapsed .layout-navbar {
  width: calc(100% - 5.25rem);
}

/* Ajusta a largura  quando o menu está expandido */
.layout-navbar-fixed .layout-navbar {
  width: calc(100% - 16.25rem);
}

/* Ajusta a largura quando não tem menu lateral */
.layout-without-menu .layout-navbar {
  width: 100%;
}

/* Ajusta o botão de voltar */

.back-btn {
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--bs-link-color) !important;
}

.back-btn:hover {
  color: var(--bs-link-hover-color) !important;
}

.vertical-divider {
  width: 1px;
  background-color: rgba(69, 80, 92, .25);
  margin-left: 1rem;
  margin-right: 1rem;
}

@media screen and (max-width: 1200px) {

  /* Quando esconde o menu faz a navbar preencher a largura da tela  */
  .layout-navbar {
    width: 100% !important;
  }

}

@media (min-width: 1400px) {

  /* Ajusta a navbar para preencher o espaço completo mesmo no layout compact */
  .layout-navbar.container-xxl,
  .layout-navbar.container-xl,
  .layout-navbar.container-lg,
  .layout-navbar.container-md,
  .layout-navbar.container-sm,
  .layout-navbar.container {
    max-width: unset;
  }
}


/* Ajuste component de navegação */

.breadcrumb {
  --bs-breadcrumb-font-size: 1rem;
}

.breadcrumb-item:not(.active),
.breadcrumb-item:not(.active) a {
  color: var(--bs-link-color) !important;
}

.breadcrumb-item:not(.active):hover,
.breadcrumb-item:not(.active) a:hover {
  color: var(--bs-link-hover-color) !important;
}

.breadcrumb-item+.breadcrumb-item::before {
  width: unset !important;
}

@media screen and (max-width: 480px) {

  .breadcrumb-item:not(:last-child),
  .breadcrumb-item:last-child::before {
    display: none;
  }

  .breadcrumb-item:last-child {
    padding-left: 0 !important;
  }

  .back-btn {
    font-size: 0;
    margin-right: .5rem;
  }

  .back-btn+.vertical-divider {
    display: none !important;
  }

}

/* AJUSTE BADGE LABELS */

.badge {
  --bs-badge-border-radius: 0.35rem !important;
}

.badge.badge-lg {
  --bs-badge-font-size: .875rem !important;
}

/* AJUSTE NOS BOTÕES */

.btn-action {
  background-color: transparent !important;
}

/* AJUSTES FORMULÁRIOS */

.form-control:disabled,
.form-control[readonly]:not([type_field="datepicker"]) {
  background-color: #f8f8f8;
}

.input-group.disabled .input-group-text {
  background-color: #f8f8f8 !important;
}

.required-mark::after {
  content: "*";
  display: inline-block;
  font-size: 1rem;
  color: var(--bs-red);
}

.switch>.switch-input:not(:disabled)+.switch-toggle-slider,
.switch>.switch-input:not(:disabled)+.switch-toggle-slider+.switch-label {
  cursor: pointer;
}


/* AJUSTE SWEETALERT2 */

.swal2-title {
  font-size: 1.375rem !important;
  max-width: unset !important;
  margin: 0 !important;
  color: #6b737d !important;
}

.swal2-actions button {
  border-radius: 0.375rem !important;
  justify-content: center !important;
  transition: all 0.135s ease-in-out !important;
  transform: scale(1.001) !important;
  padding: 0.375rem 1rem !important;
}

.swal2-actions button:active {
  transform: scale(0.98) !important;
  transition: all 0.135s ease-in-out !important;
}

.swal2-actions button:focus {
  box-shadow: none !important;
  border: none !important;
}

/* Botão de confirmação */
.swal2-actions .swal2-confirm {
  color: #fff !important;
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

.swal2-actions .swal2-confirm:hover,
.swal2-actions .swal2-confirm:active {
  background-color: var(--bs-link-hover-color) !important;
  border-color: var(--bs-link-hover-color) !important;
}

/* Botão de cancelar */
.swal2-actions .swal2-cancel {
  color: #a8aaae !important;
  background-color: #f1f1f2 !important;
  border-color: transparent !important;
}

.composed-money-group {
  display: flex;
  flex-flow: row nowrap;
}

.composed-money-group input {
  border-radius: 0 !important;
}

/* Ajuste no ícone com as iniciais  */

.dropdown-item:active .text-muted {
  color: #fff;
}

/* Ajuste nos links */
a:not(.dropdown-item):not(.menu-link):not(.back-btn):not(.btn):not(.page-link):not([type='button']):not(.breadcrumb-item>a) {
  font-weight: 500;
}

a:not(.dropdown-item):not(.menu-link):not(.back-btn):not(.btn):not(.page-link):not([type='button']):not(.breadcrumb-item>a):hover {
  text-decoration: underline
}

/* Ajuste no input readonly com máscara de dinheiro */

input[readonly][type_field='money'] {
  pointer-events: none !important;
}

/* Classes para deixar editor de texto do modal de receituário com bordas arredondadas*/

#prescription-modal .ql-toolbar.ql-snow {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

#prescription-modal .ql-container.ql-snow {
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
}
