:root {
  --bs-link-color: #4e4a47!important;
  --bs-btn-color: #51678f!important;
  --bs-btn-border-color: #51678f!important;
  --bs-btn-hover-bg: #51678f!important;
  --bs-btn-hover-border-color: #51678f!important;
}

.form-check-input:checked {
  background-color: #51678f;
  border-color: #51678f;
}

select.text-center + .select2 .select2-selection__rendered {
  text-align: center;
}

table.dataTable th div.dt-column-header {
  flex-direction: row !important;
  text-align: left !important;
}

.modal-body {
  max-height: calc(100vh - 200px);
  overflow: auto
}

.btn-outline-primary {
  --bs-btn-color: #51678f!important;
  --bs-btn-border-color: #51678f!important;
  --bs-btn-hover-bg: #51678f!important;
  --bs-btn-hover-border-color: #51678f!important;
  --bs-btn-active-bg: #51678f!important;
  --bs-btn-active-border-color: #51678f!important;
  --bs-btn-disabled-color: #51678f!important;
  --bs-btn-disabled-border-color: #51678f!important;
}

.btn-primary {
  --bs-btn-bg: #51678f;
  --bs-btn-border-color: #51678f;
  --bs-btn-disabled-bg: #51678f;
  --bs-btn-disabled-border-color: #51678f;
  --bs-btn-hover-bg: #181716;
  --bs-btn-hover-border-color: #181716;
  --bs-btn-active-bg: #181716;
  --bs-btn-active-border-color: #181716;
}

.dropdown-menu {
  --bs-dropdown-link-active-bg: #51678f;
}

.pagination {
  --bs-pagination-active-bg: #51678f;
  --bs-pagination-active-border-color: #51678f;
  --bs-pagination-hover-color: #181716;
  --bs-pagination-focus-color: #181716;
}

body.wait, body.wait .btn {
  /* cursor: wait !important; */
  overflow: hidden;
}

.border-secundary {
  border-color:#51678f !important;
}

body.wait::before {
  /* cursor: wait !important; */
  content: " ";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(255,255,255,0.7);
  z-index: 99;
}

body.wait::after {
  font-family: "bootstrap-icons";
  content: "\F116";
  font-weight: 900;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 50px;
  animation: spin 2s linear infinite;
  z-index: 100;
  color: #51678f;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#mostra_imagem:hover {
  position: relative;
}

#mostra_imagem .imagem-overlay {
  display: none;
}

#mostra_imagem:hover .imagem-overlay {
  display: block;
  position: absolute; 
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

#mostra_imagem:hover .imagem-overlay button {
  background-color: #fff;
}

.btns-datas-viatura > span {
  font-size: 30px;
  font-weight: 600;
  color: #181716;
  opacity: 0.3;
  padding: 0 10px;
}

.height-fit-content {
  height: fit-content;
  background-color: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: start;
  text-align: start;
  padding: 5px 15px;
  border: 2px solid #cccccc;
  min-height: 62px;
}

.height-fit-content.ativo span {
  opacity: 0.6;
}

.height-fit-content > span:first-of-type {
  background-color: #51678f;
  font-size: 20px;
  line-height: 100%;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 35px;
  width: 35px;
  border-radius: 6px;
  margin-right: 10px;
  font-weight: 500;
}

.height-fit-content > span:last-of-type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #181716;
  font-size: 12px;
  line-height: 120%;
}

.height-fit-content > span:last-of-type > span {
  display: none;
}

.height-fit-content > span:last-of-type > span:first-of-type {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 140%;
  display: flex;
}

.height-fit-content:hover, .height-fit-content:active, .height-fit-content:focus {
  background-color: transparent!important;
  border-color: #aaaaaa;
}

.height-fit-content.ativo > span:last-of-type > span {
  display: flex;
}

.height-fit-content.ativo:hover {
  /* pointer-events: none; */
}

.header nav {
  padding: 0px 20px;
}

.header .alert {
  width: 100%;
  text-align: center;
  padding: 10px;
}

.dropdown-menu li {
  cursor: pointer;
}

#tt-header.tt-header-01 #tt-desctop-menu nav > ul > li a {
  color: #2934528a;
}

.uppercase {
  text-transform: uppercase;
}

.mr-3 {
  margin-right: 3px;
}

.ml-3 {
  margin-left: 3px;
}

.mr-5 {
  margin-right: 5px;
}

.ml-5 {
  margin-left: 5px;
}

h3 {
    height: 32px;
    overflow: hidden;
}

.form-floating {
  overflow: hidden;
}

.calendario-siza-12 {
    font-size: 12px;
}

.table-config-acessos {
  label {
    width: 100%;
    height: 26px;
    cursor: pointer;
  }
  tr td:nth-child(2) {
    width: 50px;
  }
  .submenu td:nth-child(1) {
    padding-left: 30px;
  }
}

.form-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.wait * {
  cursor: wait;
}

.click {
  cursor: pointer;
}

.no-pointer {
    cursor: default !important;
}

a.disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
    text-decoration: none;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050; /* Same as Bootstrap modal */
  img {
    max-width: 80%;
    max-height: 80%;
  }
}

.logo-login img {
  max-height: 75px;
}

#main {
  min-height: calc(100vh - 135px);
}

@media (max-width: 767.99px) {
  #main {
    padding: 15px;
  }
}

#menu-operacoes {
  float: right;
    margin-top: 0px;
}

#menu-operacoes {

  padding-top: 5px;
  display: flex;
  margin-left: auto;

  .form-menu {
    height: 37px;
    overflow: hidden;
    float: left;
    position: relative;
    
    .btn-pesquisa {
      position: absolute;
      top: 12px;
      right: 10px;
      cursor: pointer;
    }

    input {
      border: 1px solid #51678f;
      border-radius: 5px;
      height: 37px;
      width: calc(100% - 3px);
      padding-top: 17px;
      color:#51678f ;
      background: transparent;
    }

    label {
      position: relative;
      top: -42px;
      left: 9px;
      font-size: 10px;
      color: #999;
    }

    select {
      border: 1px solid #51678f;
      border-radius: 5px;
      height: 37px;
      width: calc(100% - 3px);
      padding-top: 8px;
      color: #51678f;
      background: transparent;
    }

  }

  .btn {
    height: 37px;
  } 
  
}

@media (max-width: 767.99px) {
  #menu-operacoes {
    flex-wrap: wrap;

    .search-form {
      width: 100%;
    }
  }

  .viatura-existente {
    margin-top: 12px;
  }
}

.sidebar-nav .nav-content a i {
  font-size: 12px;
}

.sidebar {
  padding: 0px;
}

/* FULL CALENDAR */

#calendar {
  height: 100%;
}

#calendar .fc-view-container {
  height: 100%;
}

#calendar .fc-time-grid-container {
  overflow-y: auto;
  height: 100% !important;
}

#calendar h1, h2, h3, h4, h5, h6 {
  color: #51678f !important;
}

.fc-unthemed .fc-event {
  border-color: #009fe3;
  background-color: #009fe3;
}

.select2-selection {
  border: var(--bs-border-width) solid var(--bs-border-color) !important;
      padding: 1rem .75rem;
}

.select2-container--default .select2-selection--multiple {
    border-radius: 7px;
    padding-bottom: 10px;
    padding-top: 20px;
}

/* .select2-container--open{
  z-index:9999999
} */

.hidden {
  display: none;
}

.btn {
  overflow: hidden;
}

.btn.disabled, .btn:disabled, fieldset:disabled .btn {
  color: #ccc;
  border-color: #ccc;
  background: revert;
}

.btn.dropdown-toggle {
  margin-left: -2px !important;
  /* max-width: 45px; */
}

.btn-group .dropdown-menu {
  padding: 5px;
  border: 1px solid #51678f;
  border-radius: 5px;
}
.btn-group ul li {
  padding: 5px;
  border-radius: 5px;
}

.btn-group ul li:hover {
  background-color: #51678f;
  color: #fff;
}

.btn-group ul .divider {
  height: 20px;
}

.display-block {
  display: block;
}

.cmd-card-body {
  float: right;
  margin-top: 10px;
}

.cmd-card-footer {
    display: flex;
    justify-content: end;
    gap: 5px;
    width: 100%;
}

.card-body {
  padding: 20px 20px 20px 20px;
}

.form-floating>label {
  color: #888 !important;
}

.width-20 {
  width: 20%;
  float: left;
  clear: initial;
}

.width-25 {
  width: 25%;
  float: left;
  clear: initial;
}

.width-50 {
  width: 50%;
  float: left;
  clear: initial;
}

.width-60 {
  width: 60%;
  float: left;
  clear: initial;
}

.dropzone {
  background: white;
  border-radius: 5px;
  border: 1px dashed rgb(150, 150, 150);
  border-image: none;
  margin-left: auto;
  margin-right: auto;
  min-height: 100px;
  text-align: center;
}

.dropzone .dz-preview:hover .dz-image img {
  -webkit-transform: scale(1.05, 1.05);
  -moz-transform: scale(1.05, 1.05);
  -ms-transform: scale(1.05, 1.05);
  -o-transform: scale(1.05, 1.05);
  transform: scale(1.05, 1.05);
  -webkit-filter: blur(8px);
  filter: blur(0px);
}

.dropzone .dz-message {
  margin: 0px;
  display: bock !important;
}

.dropzone .dz-preview .dz-image img {
  position: absolute;
  left: 50% !important;
  transform: translateX(-50%) !important;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

/* dropzona fotos viatura usada */

.dropzone .dz-image {
    position: relative;
    width: 100%;
}

.dropzone img {
    width: 100%;
    display: block;
    border-radius: 6px;
}

/* overlay escondido por defeito */
.dropzone .dz-preview .dz-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* aparece no hover */
.dropzone .dz-preview:hover .dz-overlay {
    opacity: 1;
}

/* opcional: botões mais compactos */
.dropzone .dz-preview .dz-overlay button {
    opacity: 1;
    background-color: #fff;
    cursor: pointer;
}

.dropzone .dz-preview .dz-overlay button.btn-outline-danger:hover {
  background-color: #dc3545;
}

.dropzone .dz-preview .dz-overlay button i {
  cursor: pointer;
}

/* fim dropzona fotos viatura usada */

.btn-delete {
  background-color: rgb(255,0,0,0.15);
  color: #000;
}

.btn-upload {
  background-color: rgb(0,0,255,0.15);
  color: #000;
}

.form-floating>.form-select {
  padding-top: 1.5rem;
}

.form-floating>.form-control-plaintext~label, .form-floating>.form-control:focus~label, .form-floating>.form-control:not(:placeholder-shown)~label, .form-floating>.form-select~label {
  transform: scale(.85) translateY(-1.00rem) translateX(-0.35rem);
}

.form-floating>.form-control-plaintext~label::after, .form-floating>.form-control:focus~label::after, .form-floating>.form-control:not(:placeholder-shown)~label::after, .form-floating>.form-select~label::after {
  background-color: transparent;
}

.text-right {
  text-align: right !important;
}

.dataTables_wrapper .dataTables_filter {
  text-align: right;
}

.dataTables_length {
  display: none;
}

.red {
  background-color: red;
}

.bi-chevron-down::before {
  font-size: 12px;
}

.sidebar-nav .nav-content .nav-sub-item:first {
  margin-top: -10px;
}

.sidebar-nav .nav-content a {
  padding: 5px 15px 5px 40px;
}

.sidebar-nav .nav-content .nav-sub-item a {
  padding: 5px 0px 5px 70px !important;
}

.sidebar-nav .nav-content .nav-sub-item a i {
  font-size: 6px;
}

.sidebar-nav .nav-content {
  padding: 0px;
}

.sub-switch {
  margin-left: 20px;
}

/* CALENDARO */

.fc-day-grid-event > .fc-content {
  height: 32px; 
}

.fc-unthemed .fc-event {
  margin: 1px;
}

.fc-scroller {
  height: auto !important;
}

/* CALENDARO */

/* TIMELINE */

.radio-tipo-contacto {
  margin-top: -8px;
}

/* modal contacto: Recebido / Efetuado / Nota */
.origem-contacto .btn {
  height: calc(3.5rem + 2px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  white-space: nowrap;
}

.origem-contacto.is-invalid .btn {
  border-color: var(--bs-danger);
  color: var(--bs-danger);
}

.origem-contacto.is-invalid {
  animation: abanar-campo .4s;
}

@keyframes abanar-campo {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.campo-destacado {
  animation: destacar-campo 1.2s;
}

@keyframes destacar-campo {
  0%, 60% { box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .35); }
  100% { box-shadow: none; }
}

.timeline-article {
  cursor: pointer;
}

/* TIMELINE */
 
.btn-whatsapp {
    position: absolute;
    top: 3px;
    right: 7px;
    cursor: pointer;
}

.btn-telefone {
  position: absolute;
  top: 30px;
  right: 7px;
  cursor: pointer;
}

.btn-email {
  position: absolute;
  top: 30px;
  right: 7px;
  cursor: pointer;
}

.btn-website {
  position: absolute;
  top: 30px;
  right: 7px;
  cursor: pointer;
}

.btn-pesquisa {
  position: absolute;
  top: 30px;
  right: 7px;
  cursor: pointer;
}

.btn-recicla {
    position: absolute;
    top: 3px;
    right: 7px;
    cursor: pointer;
}

.pagetitle {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.pagetitle nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin-right: 15px;
}

.pagetitle nav .breadcrumb {
  margin-bottom: 0;
}

.pagetitle .search-bar {
  width: 250px;
  padding: 0px;
  position: absolute;
  right: 0px;
  top: -10px;
}

.pagetitle .search-form input {
  border: 0;
  font-size: 14px;
  color: #012970;
  border: 1px solid rgba(1, 41, 112, 0.2);
  padding: 7px 38px 7px 8px;
  border-radius: 3px;
  transition: 0.3s;
  width: 100%;
  background: #fff !important;
}

.pagetitle .search-form button {
  border: 0;
  padding: 0;
  margin-left: -30px;
  background: none;
}

.topo-viatura {
  display: flex;
  justify-content: start;
  align-items: center;

  figure {
    img {
      padding: 0;
    }
  }
}

#mostra_imagem {
  margin-bottom: 12px;

  img {
    padding: 0;
  }
}

@media (max-width: 767.99px) {
  .topo-viatura {
    figure {
      width: 50%!important;

      img {
        width: 100%!important;
        object-fit: cover;
      }
    }

    > div {
      text-align: start;

      > p {
        &:first-of-type {
          font-size: 14px;
        }
      }
    }
  }

  .ficha-viatura {
    .nav-tabs {
      background: #ffffff;
      background-color: #ffffff;
      border-top-left-radius: 0.375rem;
      border-top-right-radius: 0.375rem;
      padding-bottom: 2px;

      .nav-link {
        &.active {
          border: 1px solid #aaaaaa;
          border-radius: 0.375rem;
        }
      }
    }

    .card {
      border-top-left-radius: 0;
      border-top-right-radius: 0;
    }
  }

  .card-body {
    padding: 10px 10px 10px 10px;
  }
}

.notas {
  color: #888;
  font-size: 13px;
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--bs-link-color);
}

.pino {
  position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: red;
    border: 1px solid #000;
    color: #fff;
    text-align: center;
    font-weight: 800;
    font-size: 10px;
    line-height: 18px;
}

/*
.form-switch {
  margin-top:15px;
}
*/

.page_acessos {

  .form-switch {
    margin-top:0px;
    padding-left: .5rem;

    .form-check-input {
      float: right;
    }

  }

}

.evento-inadiavel {
  background-color: #aa0000;
  color:#fff;
}

.card-body-negocios {
  padding: 5px;
}

.negocio-header {
  height: 105px;
  padding: 5px;
  overflow: hidden;
}

.negocio-contacto {
  font-size: 13px;  
}

.negocio-localidade {
  font-size: 11px;  
}

.negocio-prox-passo {
  height: 100px;
  padding: 5px;
  font-size: 12px;
  border-top: 1px solid #ccc;
  margin-top: 5px;
  overflow: hidden;
}

.negocio-atraso {
  background-color: rgb(255, 0, 0, 0.15);
}

.negocio-hoje {
  background-color: rgb(255, 255, 0, 0.25);
}

.negocio-vendedor {
  position: absolute;
  bottom: 0px;
  right: 7px;
  font-size: 12px;
  text-align: right;
}

.negocio-proximo-passo {
  position: absolute;
  bottom: 0px;
  left: 7px;
  font-size: 12px;
  font-weight: 700;
}

.negocio-alerta {
    position: absolute;
    top: -2px;
    right: 7px;
    color: rgba(200,0,0,1);
    font-size: 25px;
    cursor: pointer;
}

input[readonly] {
  color: var(--bs-body-color);
  pointer-events: none;
  background-color: var(--bs-secondary-bg);
}

.select2-container--default .select2-selection--single {
  height: calc(3.5rem + calc(var(--bs-border-width)* 2));
}

.select2-container {
  max-width: 100%;
}

.select-quantidade i {
  cursor: pointer;
}

#table-seguros .form-switch {
  margin: 0px;
  padding: 0px;
  display: flex;
  justify-content: center;
}

#table-seguros .form-switch .form-check-input {
  margin: 0px;
}

#table-seguros td {
  vertical-align: middle;
}

.btn-extra-menos.disabled, .btn-extra-mais.disabled {
  color: #ddd;
}

#bodydoc {
  background-color: #fff !important;
  border: 1px solid #999;
  height: calc(100vh - 220px);
  overflow: overlay;
}

.area_print{
  background-color:#e6e6e6;
  /* background-color: #fbfbfb; */
  border: 1px solid #999;
  position: relative;
}

/*
.area_print div:first-child {
  background-color: #fff;
}
*/

.print-tmp-viat {
  position: absolute;
  top: 2px;
  left: 5px;
}

.note-editor {
  background-color: #fff;
}

.note-editable {
  background-color: #e6e6e6;
}

.area_print *, .area_print *::after, .area_print *::before {
  box-sizing: unset !important;
}

.note-editor *, .note-editor *::after, .note-editor *::before {
  box-sizing: unset !important;
}

.sidebar-nav .nav-item {
  margin-bottom: 0px;
}

#area_print .editable {
  background-color: rgba(255,255,150,1) !important;
}

#area_print [contenteditable="true"]:hover,
#area_print .click:hover {
  background-color: rgba(255,255,150,0.5) !important;
  cursor: text;
}

/* .viatura_on {
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
}

.viatura_on:hover {
  filter: brightness(0.8);
}

.viatura_off {
  cursor: pointer;
  background-color: #b1b1b1;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
} */

.div_viatura {
  
  .overlay {
    position: absolute;
    z-index: 3;
    background-color: #cccccc;
    opacity: 0.5;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px;
  }

  .img-thumbnail {
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;

    .hover {
      background-color: #1b1b1b;
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      transition: all 0.3s ease;
      border-radius: 10px;
      z-index: 10;
      opacity: 0;
    }
  }

  .img-thumbnail:hover {
      /* filter: brightness(0.8); */
      
      .hover {
        opacity: 0.2;
      }
    }

}

.not_access {
  cursor: inherit;
}

.viatura-imagem {
  background-size:cover;
  background-position: center center;
  position:relative;
  aspect-ratio: 4/3;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;

  img {
    width: 100%;
  }

  .dropdown-menu {
    padding: 5px;
    border-radius: 10px;
    
    li {
      padding-bottom: 5px;
      font-size: 12px;
      display: flex;
      align-items: center;
      height: 34px;
      text-wrap-mode: nowrap;
      background-color: #dfe0e1;
      zoom: 0.75;

      &.publicado {
        background-color: #fff;
      }

      &:last-of-type {
        padding-bottom: 0;
      }

      .float-end {
        margin-left: auto;
      }

      button {
        margin-left: auto;
        background-color: #fff;
      }

      img {
        margin-right: 5px;
        width: 20px!important;
        object-fit: contain;
        height: auto;
      }
    }
  }
}

.viatura-descricao {
  position:relative;
  height: 110px;
  color: #000;
  z-index: 1;
}

.viatura-descricao-topo {
  position:absolute;
  top: 0px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 5px;
  font-size: 11px;
}

.viatura-descricao-meio {
  position:absolute;
  top: 20px;
  width: 100%;
  height: 70px;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.viatura-descricao-footer {
  position:absolute;
  bottom: 0px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 5px;
  font-size: 11px;
}

.viatura-alerta {
  position:absolute;
  bottom:5px;
  left:9px;
  z-index:15;
  display: flex;
  align-items: center;
  flex-wrap: wrap-reverse;
  justify-content: flex-start;
  gap: 5px;
  
    .btn-viatura-alerta {
      width: 24px;
      height: 24px;
      border-radius: 5px;
      background-color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      i {
        color:red;
      }
    }
    
    .btn-viatura-ipo {
      height: 24px;
      border-radius: 5px;
      background-color: red;
      display: flex;
      justify-content: center;
      align-items: center;
      color:#fff;
      border: 1px solid #fff;
      font-size: 12px;
      font-weight: 800;
      padding: 0px 5px;
    }

    .btn-viatura-iuc {
      height: 24px;
      border-radius: 5px;
      background-color: red;
      display: flex;
      justify-content: center;
      align-items: center;
      color:#fff;
      border: 1px solid #fff;
      font-size: 12px;
      font-weight: 800;
      padding: 0px 5px;
    }

    .btn-viatura-revisao {
      height: 24px;
      border-radius: 5px;
      background-color: red;
      display: flex;
      justify-content: center;
      align-items: center;
      color:#fff;
      border: 1px solid #fff;
      font-size: 12px;
      font-weight: 800;
      padding: 0px 5px;
    }

}

.viatura-cliente {
  position:absolute;
  bottom:5px;
  right:9px;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background-color: #fff;
  z-index:16;
  display: flex;
  justify-content: center;
  align-items: center;
  i {
    color:green;
  }
}

.viatura-destaque {
  position:absolute;
  top:5px;
  left:9px;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background-color: rgba(255,255,255,0.3);
  z-index:17;
  display: flex;
  justify-content: center;
  align-items: center;
  i {
    color: rgba(0, 0, 0, 0.5);
  }
}

.viatura-destaque.ativo {
  background-color: #ffbb00;
  i {
    color:#fff;
  }
}

.viatura-websites {
  position:absolute;
  top:5px;
  right:9px;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background-color: rgba(255,255,255,0.3);
  z-index:25;
  display: flex;
  justify-content: center;
  align-items: center;
  i {
    color: rgba(0,0,0,0.5);
  }
}

.viatura-websites.ativo {
  background-color: #fff;
  i {
    color: #000;
  }
}

.viatura-websites-body {
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 3;
  overflow-y: scroll;
  height: 100%;
  z-index: 20;
  ul {
    list-style: none;
    padding: 35px 15px;
    margin: 0;
    overflow-y: scroll;
    height: 100%;
    display: flex;
    flex-direction: column;
    li {
      min-height: 40px;
      font-size: 12px;
      width: 100%;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: space-between;
      img {
        width: 24px;
        margin-right: 10px;
      }
    }
    li div:nth-of-type(1) {
        flex: 1;
        text-align: left;
    }
  }
}

.viatura-websites-body.active {
  position: absolute;
  top: 0px;
  left: 0;
  right: 0;
  bottom: 0;
  transition: all 0.3s ease;
  overflow-y: scroll;
}

.viatura-websites-body:not(.active) {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateX(+100%);
  transition: all 0.3s ease;
  scrollbar-width: none;
}

.viatura-websites-body::-webkit-scrollbar {
    display: none;
}

.text-small {
  font-size: 12px;
  line-height: 18px;
  color: #ccc;
}

.quadro-selects {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  margin: 0px;
}

.btn-group ul li {
  text-wrap: nowrap;
}

.btn-pesquisa-peca {
  width: 100%;
  height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
  i {
    margin-right: 0.5rem;
  }
}

table tbody {
  cursor: pointer;
}

#racViaturaImagens {
  min-height: 500px;
  padding: 0px;
  .dz-image {
    display: flex;
  }
  .dz-preview {
    width: calc(20% - 32px);
    .dz-image {
      width: 100%;  
      img {
        position: absolute;
        left: 50% !important;
        transform: translateX(-50%) translateY(-50%) !important;
        max-height: inherit;
        width: 100%;
        top: 50%;
      }
    }
  }
}

#catalogoViaturaImagens {
  min-height: 500px;
  padding: 0px;
  .dz-image {
    display: flex;
  }
  .dz-preview {
    width: calc(20% - 32px);
    .dz-image {
      width: 100%;  
      img {
        position: absolute;
        left: 50% !important;
        transform: translateX(-50%) translateY(-50%) !important;
        max-height: inherit;
        width: 100%;
        top: 50%;
      }
    }
  }
}

.text-xs {
  font-size: 10px;
}

.text-valign {
  align-content: center;
}

.input_quantidade {
  width: 60px;
  height: 31px;
  text-align: center;
  border-radius: 6px;
  margin: 0px;
  display: inline-block;
  padding: 0;
}

.input_valor {
  width: 120px;
  height: 31px;
  text-align: right;
  border-radius: 6px;
  margin: 0px;
  display: inline-block;
  padding: 0;
}

.input_percentagem {
  width: 90px;
  height: 31px;
  text-align: center;
  border-radius: 6px;
  margin: 0px;
  background-image: url(../imagens/percentage.svg);
  background-repeat: no-repeat;
  background-position-x: calc( 100% - 3px);
  background-position-y: center;
  display: inline-block;
  padding: 0;

  /* Firefox: https://www.w3schools.com/howto/howto_css_hide_arrow_number.asp */
  -moz-appearance: textfield;
}

/* https://www.w3schools.com/howto/howto_css_hide_arrow_number.asp */
.input_percentagem::-webkit-inner-spin-button,
.input_percentagem::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input_valor:disabled,
.input_quantidade:disabled,
.input_percentagem:disabled {
  background-color: unset;
}

/* https://davidwalsh.name/always-show-arrows-for-number-input */
.input_valor::-webkit-inner-spin-button,
.input_valor::-webkit-outer-spin-button,
.input_quantidade::-webkit-inner-spin-button,
.input_quantidade::-webkit-outer-spin-button {
  cursor: pointer;
  opacity: 1;
  margin-left: 10px;
  margin-right: 5px;
}

/* LOADING */

.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

.loading {
  opacity: 0;
  width: 100%;
  height: calc( 100vh - 250px );
  animation: 1.25s linear 0s infinite normal forwards running loading;
  transform: matrix3d(0.91, 0, 0, 0, 0, 0.91, 0, 0, 0, 0, 0.91, 0, 0, 0, 0, 1);
  transform-box: view-box;
  transform-origin: 50px 50px;
  background-size: 128px !important;
}

@keyframes loading {
  0.00% {
    animation-timing-function: cubic-bezier(0.59, 0.02, 0.79, 0.52);
    transform: translate(0.00px, 0.00px) rotate(0.00deg) scale(1.00, 1.00) skew(0deg, 0.00deg);
    opacity: 0.00;
  }

  26.00% {
    animation-timing-function: cubic-bezier(0.19, 0.49, 0.42, 0.98);
    transform: translate(0.00px, 0.00px) rotate(0.00deg);
    opacity: 0.55;
  }

  50.00% {
    animation-timing-function: cubic-bezier(0.59, 0.02, 0.79, 0.52);
    transform: translate(0.00px, 0.00px) rotate(0.00deg);
    opacity: 1.00;
  }

  76.00% {
    animation-timing-function: cubic-bezier(0.21, 0.48, 0.44, 0.93);
    transform: translate(0.00px, 0.00px) rotate(0.00deg);
    opacity: 0.45;
  }

  100.00% {
    animation-timing-function: cubic-bezier(0.21, 0.48, 0.44, 0.93);
    transform: translate(0.00px, 0.00px) rotate(0.00deg);
    opacity: 0.00;
  }
}

.loading-content {
  /* position: fixed;
  top: 0;
  left: 0; */
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-box {
  width: 90px;
  height: 14px;
  box-shadow: 0 3px 0 #fff;
  position: relative;
  clip-path: inset(-40px 0 -5px)
}

.loading-box:before {
  content: "";
  position: absolute;
  inset: auto calc(50% - 17px) 0;
  height: 50px;
  --g: no-repeat linear-gradient(#ccc 0 0);
  background: var(--g),var(--g),var(--g),var(--g);
  background-size: 16px 14px;
  animation:
    l7-1 2s infinite linear,
    l7-2 2s infinite linear;
}

@keyframes l7-1 {
  0%, 100%  {
    background-position: 0 -50px,100% -50px;
  }

  17.5% {
    background-position: 0 100%,100% -50px,0 -50px,100% -50px;
  }

  35% {
    background-position: 0 100%,100% 100% ,0 -50px,100% -50px;
  }

  52.5% {
    background-position: 0 100%,100% 100% ,0 calc(100% - 16px),100% -50px;
  }

  70%, 98% {
    background-position: 0 100%,100% 100% ,0 calc(100% - 16px),100% calc(100% - 16px);
  }
}

@keyframes l7-2 {
  0%,70% {
    transform:translate(0);
  }
  100% {
    transform:translate(200%);
  }
}

.loading-box-fill {
  width: 90px;
  height: 14px;
  box-shadow: 0 3px 0 #fff;
  position: relative;
  display: grid;
  clip-path: inset(-60px 0 -5px)
}

.loading-box-fill:after {
  content: "";
  position: relative;
  background: repeating-linear-gradient(90deg,#0000 0 calc(50% - 8px), #ccc 0 calc(50% + 8px), #0000 0 100%) 0 0/calc(100%/3) 100%;
  animation: l6-1 1s infinite;
}

.loading-box-fill:before {
  content: "";
  position: absolute;
  width: 14px;
  aspect-ratio: 1;
  left: calc(50% - 7px);
  bottom: 0;
  border-radius: 50%;
  background: lightblue;
  animation: l6-2 1s infinite;
}

.no-cursor {
  cursor: default;
}

#lista-opcao-danos {
  text-decoration: none;
  padding: 0px;
  display: flex;
  flex-wrap: wrap;
  li {
    list-style-type: none;
    padding: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
    text-align: center;
    margin: 4px;
    width: calc( 33% - 8px)
  }
  li.active {
    background-color: #51678f;
    color:#fff;
  }
  li:hover {
    background-color: #ccc;
  }
}

#lista-reparacoes {
  text-decoration: none;
  padding: 0px;
  display: flex;
  flex-wrap: wrap;
  li {
    list-style-type: none;
    padding: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
    text-align: center;
    margin: 4px;
    width: calc( 33% - 8px)
  }
  li.active {
    background-color: #51678f;
    color:#fff;
  }
  li:hover {
    background-color: #ccc;
  }
}

@keyframes l6-1 {
  50%,100% {background-position: calc(100%/2) 0}
}

@keyframes l6-2 {
  0%,50% {transform:translateY(-80px)}
}

/* FIM LOADING */

/* PENDENTE DO JOÃO */
/* .btn-group>.btn-group:not(:first-child), .btn-group>:not(.btn-check:first-child)+.btn {
    max-width: 50px;
    background: #fff;
    color: #000;
} */

@media (min-width: 1200px) {
  
  .logo {
    width: initial;
  }

}

@media (min-width: 769px) {
  
  .dataTables_length {
    display: block;
  }

}

@media (max-width: 1299px) {

  .hidden-xs {
    display: none !important;
  }

}

@media (max-width: 830px) {

  .timeline-article .content-left-container, .timeline-article .content-right-container, .timeline-article .content-center-container {
      margin-left: 60px;
  }

  .timeline-article .content-left, .timeline-article .content-right, .timeline-article .content-center {
    padding: 10px 10px;
  }

  .timeline-article .meta-date {
    left: 0px;
  }

  #conference-timeline .conference-center-line {
      left: 30px;
  }

}

@media (max-width: 767.99px) {

  /*  
  .nav-tabs {
    display: flex;
    justify-content: space-between;
  }

  .pagetitle {
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .cmd-card-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 5px;
    width: calc(100% - 10px);
    gap:10px;
    flex-wrap: wrap;
    .btn {
      margin: 5px 0px;
    }
  }
  */

  .btns-datas-viatura {
    flex-wrap: wrap !important;
    justify-content: center;
  }

  .btns-datas-viatura button {
    min-width: 150px;
    width: calc(50% - 4px);
    margin-bottom: 4px;
    margin-top: 4px;

    &:nth-of-type(odd) {
      margin-right: 4px;
    }

    &:nth-of-type(even) {
      margin-left: 4px;
    }
  }
  
}

@media print {

  #area_print {
    background-color: #fff;
  }

  table {
    font-size: 10px !important;
    width: 100% !important;
    td, span{
      white-space: nowrap;
    }
  }

}

.color-grey {
  color: #888 !important;
}


@-webkit-keyframes rotating /* Safari and Chrome */ {
  from {
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes rotating {
  from {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0degs);
    transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.rotating {
  display: inline-block;
  -webkit-animation: rotating 2s linear infinite;
  -moz-animation: rotating 2s linear infinite;
  -ms-animation: rotating 2s linear infinite;
  -o-animation: rotating 2s linear infinite;
  animation: rotating 2s linear infinite;
}

.back-to-top {
  background: #51678f;
}

/* botão "ir para o fundo" — mesma cor do back-to-top */
.btn-ir-fundo {
  background: #51678f;
  border-color: #51678f;
  color: #fff;
}

.btn-ir-fundo:hover,
.btn-ir-fundo:focus {
  background: #6776f4;
  border-color: #6776f4;
  color: #fff;
}

#table-viaturas .img-thumbnail {
  padding: 0;
}

@media (max-width: 767.99px) {
  #calendar {
    .fc-header-toolbar {
      flex-wrap: wrap;

      .fc-toolbar-chunk {
        width: 100%;
        margin-bottom: 6px;
      }
    }
  }
}