/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Detached navbar */
.layout-navbar-fixed
  .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu)
  .layout-page {
  padding-top: 74px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.docs-page
  .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu)
  .layout-page,
.docs-page
  .layout-menu-fixed.layout-wrapper:not(.layout-without-menu)
  .layout-page {
  padding-top: 62px !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: 231px;
    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;
}

.hidden {
  display: none;
}

.alert-error {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-align: center;
}

#datatable_wrapper div:nth-child() {
  padding-bottom: 20px;
}

.dt-length label,
.dt-search {
  display: flex;
  align-items: center;
}

.dt-search {
  padding-bottom: 20px;
}

.dt-length label {
  gap: 10px;
}

#datatable_wrapper select {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
#datatable_wrapper select {
  width: 100px;
  display: inline-block;
}
.form-control-sm {
  background-clip: padding-box;
  padding: calc(0.543rem - 1px) calc(0.9375rem -1px);
  padding-inline-end: calc(2.8125rem -1px);
}
select.form-control-sm {
  --bs-form-control-sm-bg-img: url('data:image/svg+xml,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 22" fill="none"%3e%3cpath d="M10.9999 12.0743L15.5374 7.53676L16.8336 8.83292L10.9999 14.6666L5.16626 8.83292L6.46243 7.53676L10.9999 12.0743Z" fill="%2322303e" fill-opacity="0.9"/%3e%3c/svg%3e');
  background-image: var(--bs-form-control-sm-bg-img),
    var(--bs-form-control-sm-bg-icon, none);
}
.form-control-sm {
  display: block;
  width: 100%;
  padding: 0.543rem 2.625rem 0.543rem 0.9375rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.375;
  color: #384551;
  appearance: none;
  background-color: rgba(0, 0, 0, 0);
  background-image: var(--bs-form-control-sm-bg-img),
    var(--bs-form-control-sm-bg-icon, none);
  background-repeat: no-repeat;
  background-position: right 0.9375rem center;
  background-size: 22px 24px;
  border: 1px solid #ced1d5;
  border-radius: -0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.table-responsive {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

table.dataTable th.dt-type-numeric,
table.dataTable th.dt-type-date,
table.dataTable td.dt-type-numeric,
table.dataTable td.dt-type-date {
  text-align: left !important;
}

div.dt-container {
  padding: var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);
}

.alert-success {
  color: #3c763d;
}
div.dt-container .dt-paging .dt-paging-button,
div.dt-container .dt-paging .dt-paging-button:active,
div.dt-container .dt-paging .dt-paging-button:hover {
  background: transparent;
  transition: 0.3s;
  border: none;
}

div.dt-container .dt-paging .dt-paging-button:hover .page-link {
  border-color: #696cff;
  background-color: #696cff;
  color: #fff;
  box-shadow: 0 0.125rem 0.25rem rgba(105, 108, 255, 0.4);
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.w-20 {
  width: 20%;
}

.pdt-left-right {
  padding: 0 1.5rem;
}

.brandcrumb {
  display: flex;
  left: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}

.brandcrumb a {
  transition: 0.3s;
  padding: 5px;
}

.brandcrumb a:hover {
  border-radius: 5px;
  color: #fff;
  background-color: #696cff;
}

.brandcrumb a.active {
  color: #fff !important;
  background-color: #696cff;
  border-radius: 5px;
}

#map_canvas {
  width: 100%;
  height: 400px;
}

h4.card-title {
  margin-bottom: 0;
  line-height: 1;
}

.fa-solid {
  font-size: 18px;
}

.authentication-wrapper .card-body {
  min-height: 460px;
}

.form-reset {
  display: none;
}

.app-brand {
  justify-content: center;
}

#preview-container {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.preview {
  display: inline-block;
  position: relative;
}

.preview img {
  width: 74px;
  height: 74px;
  margin-right: 10px;
  position: relative;
}

.preview a {
  position: absolute;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 100px;
  width: 20px;
  height: 20px;
  text-align: center;
  color: #fff;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview a .fa-solid {
  font-size: 12px;
}

.error-tamanho {
  color: red;
}

.margin-bottom-0{
  margin-bottom: 0;
}

.text-justify{
  text-align: justify;
}

.pesquisar{
    padding: 0 var(--bs-card-cap-padding-x);
}

.nav-tabs .nav-link, .nav-pills .nav-link{text-transform: none;}

.overflow-auto{
  overflow: auto;
}

@media screen and (max-width: 575.98px) {
  div.dataTables_wrapper .card-header {
      display: flex;
  }
}

/* CKEditor altura máxima */
.ck-editor .ck-content {
  max-height: 300px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .preview {
    margin-bottom: 10px;
  }

  .flex-direction-clmn{
    flex-direction: column;
  }

  .pesquisar{
    flex-direction: column;
  }

  #datatable_wrapper select {
    width: 80px;
  }
  .w-20 {
    width: 100% !important;
  }
  .dt-length label,
  .dt-search {
    display: inline-block;
  }
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
