/* *{
    background-color: #51d4db;
} */

.alinharDireita{
    text-align:right;
}

.panel-body{
    /* margin-top: 5vh; */
    margin-left: 5vh;
    margin-right: 5vh;
    /* background: #fff; */
}

.form-control{
    font-size: 11px !important;
}

.select2{
    width: 100% !important;
}

.navbar-center{
    text-align: center;
}

.navbarmain{
    background-color: #cce5ff !important;
}

/* ——— Campos de busca do cabeçalho (mais leves / Amigo–LifeTech) ——— */
.navbarmain .stg-header-search,
.navbarmain #buscarCompletePaciente,
.navbarmain input[name="palavraChave"] {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0.3rem 0.95rem !important;
    margin-left: 0.75rem;
    border: 1px solid #d0d7e2 !important;
    border-radius: 11px !important;
    background-color: #fff !important;
    color: #334155 !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.navbarmain .stg-header-search:first-of-type,
.navbarmain #buscarCompletePaciente {
    margin-left: 0;
}

.navbarmain .stg-header-search::placeholder,
.navbarmain #buscarCompletePaciente::placeholder,
.navbarmain input[name="palavraChave"]::placeholder {
    color: #94a3b8 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    opacity: 1;
}

.navbarmain .stg-header-search:hover,
.navbarmain #buscarCompletePaciente:hover,
.navbarmain input[name="palavraChave"]:hover {
    border-color: #b6c2d1 !important;
}

.navbarmain .stg-header-search:focus,
.navbarmain #buscarCompletePaciente:focus,
.navbarmain input[name="palavraChave"]:focus {
    border-color: #0d6efd !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.14) !important;
    outline: none !important;
}

.navbarmain .stg-header-search-btn {
    margin-left: 0.75rem;
    height: 34px;
    padding: 0 1rem;
    border-radius: 11px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.navbarmain .stg-header-search-btn:hover {
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.25);
}

/* ——— Menu do usuário (cabeçalho) — padrão LifeTech ——— */
.stg-user-dropdown {
    position: relative;
}

.stg-user-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 4px 2px 4px 8px !important;
    margin: 0 !important;
    cursor: pointer;
    color: inherit;
}

.stg-user-trigger::after {
    display: none !important; /* esconde caret padrão do Bootstrap */
}

.stg-user-label {
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    /* Largura/truncamento: Header Engine (Motor Único) */
    max-width: none;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.stg-user-label b {
    font-weight: 600;
    color: #1e293b;
}

.stg-user-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
}

.stg-user-trigger:hover .stg-user-avatar,
.stg-user-dropdown.show .stg-user-avatar {
    transform: scale(1.04);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.18);
}

.stg-user-dropdown.show .stg-user-avatar {
    transform: scale(1.06);
}

/* Card do menu — ancorado à direita do trigger/avatar */
.stg-user-menu.dropdown-menu,
.stg-user-dropdown .stg-user-menu {
    position: absolute !important;
    top: calc(100% + 7px) !important;
    right: 0 !important;
    left: auto !important;
    float: none !important;
    width: 240px;
    min-width: 220px;
    max-width: 260px;
    margin: 0 !important;
    padding: 8px 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06) !important;
    line-height: 1.35 !important;
    z-index: 1050;
    overflow: visible !important;
    max-height: none !important;
    /* animação: fade + slide */
    display: block !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 10px, 0) !important;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.stg-user-dropdown.show > .stg-user-menu,
.stg-user-menu.dropdown-menu.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) !important;
}

.stg-user-menu > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stg-user-menu__item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    height: 44px;
    min-height: 44px;
    padding: 0 16px !important;
    margin: 0 !important;
    color: #334155 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.stg-user-menu__item i,
.stg-user-menu__item .fa,
.stg-user-menu__item .fas {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.stg-user-menu__item span {
    line-height: 1.2;
}

.stg-user-menu__item:hover,
.stg-user-menu__item:focus {
    background: #eff6ff !important;
    color: #0d6efd !important;
    outline: none;
}

.stg-user-menu__item:hover i,
.stg-user-menu__item:hover .fa,
.stg-user-menu__item:hover .fas,
.stg-user-menu__item:focus i {
    color: #0d6efd;
}

.stg-user-menu__separator {
    height: 0;
    margin: 6px 12px !important;
    padding: 0 !important;
    border: none;
    border-top: 1px solid #e2e8f0;
    list-style: none;
}

.stg-user-menu__item--danger {
    color: #64748b !important;
}

.stg-user-menu__item--danger:hover,
.stg-user-menu__item--danger:focus {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.stg-user-menu__item--danger:hover i,
.stg-user-menu__item--danger:focus i {
    color: #dc2626;
}

.navbar-brand img{
    height: 32px !important;
    margin-left: 15px !important;
    margin-right: 15px !important;
}

/* Legado — submenus do menu superior são padronizados em css/menu/navbar-engine.css */
.dropmenu{
    width: auto;
}
.dropmenu a{
    margin-left: 0;
    font-size: 13px;
}

.nav-item{
    margin-left: 10px;
}

/* min-height só no header principal (busca) — NÃO na barra de módulos */
.navbar-expand-lg.navbarmain {
    min-height: 44px !important;
    background-color: white;
}

.navbar-expand-lg {
    background-color: white;
}

/* Barra de módulos (Agendamento, Recepção…): +20% sobre 34px */
#stg-modules-navbar.navbar,
#stg-modules-navbar.navbar-expand-lg {
    min-height: 41px !important;
    height: 41px !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 16px !important;
}



.ui-state-active{
    background: #7889e8 !important;
}


.c-loader { /* LEO */ 
    animation: is-rotating 1s infinite;
    border: 6px solid #e5e5e5;
    border-radius: 50%;
    border-top-color: #51d4db;
    height: 50px;
    width: 50px;
  }
  
  @keyframes is-rotating {
    to {
      transform: rotate(1turn);
    }
  }

  .espacoextra{
    margin-top: 1vh;
}

.espacoextracompleta{
    margin: 1vw;
}

.toast{
    max-width: 30% !important;
}

.dot-faltou {
    color: #000 !important;
    background-color: #FD7505 !important;
    border-color: #FD7505 !important;
}

.dot-livre {
  color: #000 !important;
  background-color: rgb(143, 223, 130) !important;
  border-color: rgb(143, 223, 130) !important;
}

.dot-agenda {
    color: #000 !important;
    background-color: #7889e8 !important;
    border-color: #7889e8 !important;

    /* height: 25px;
    width: 25px;
    background-color: #7889e8;
    border-radius: 50%;
    display: inline-block; */
}

.dot-agenda-confirmado{
  color: #000 !important;
  background-color: #F0FF1D !important;
  border-color: #F0FF1D !important;

  /* height: 25px;
  width: 25px;
  background-color: #F0FF1D;
  border-radius: 50%;
  display: inline-block; */
}

.dot-agenda-encaixe{
  color: #000 !important;
  background-color: #6DC0E8 !important;
  border-color: #6DC0E8 !important;

}

.dot-agenda-faltou{
  color: #000 !important;
  background-color: #fc7100 !important;
  border-color: #fc7100 !important;

}


.dot-autorizado {
  color: #000 !important;
  background-color: red !important;
  border-color: red !important;
}

.dot-confirmado {
  color: #000 !important;
  background-color: #F0FF1D !important;
  border-color: #F0FF1D !important;
}

.dot-atentendo {
  color: #000 !important;
  background-color: rgb(55, 114, 55) !important;
  border-color:  rgb(55, 114, 55) !important;;
}

.dot-atendido {
  color: #000 !important;
  background-color: #b5864c !important;
  border-color: #b5864c !important;
/* 
    height: 25px;
    width: 25px;
    background-color: #b5864c;
    border-radius: 50%;
    display: inline-block; */
}

.dot-bloqueado {
  color: #000 !important;
  background-color: #c0c0c0 !important;
  border-color: #c0c0c0 !important;
  
    /* height: 25px;
    width: 25px;
    background-color: #c0c0c0;
    border-radius: 50%;
    display: inline-block; */
}

.btn-circle{
  border-radius: 100px !important;
  padding: 2px 5px 1px 5px !important;    
  font-size: 12px !important;
  width: 100%;
  font-weight: bold;
}

@supports (-webkit-appearance: none) or (-moz-appearance: none) {
  input[type=checkbox] {
    --active: #275efe;
    --active-inner: #fff;
    --focus: 2px rgba(39, 94, 254, 0.3);
    --border: #bbc1e1;
    --border-hover: #275efe;
    --background: #fff;
    --disabled: #f6f8ff;
    --disabled-inner: #e1e6f9;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 21px;
    outline: none;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--bc, var(--border));
    background: var(--b, var(--background));
    transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
  }
  input[type=checkbox]:after {
    content: "";
    display: block;
    left: 0;
    top: 0;
    position: absolute;
    transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
  }
  input[type=checkbox]:checked {
    --b: var(--active);
    --bc: var(--active);
    --d-o: 0.3s;
    --d-t: 0.6s;
    --d-t-e: cubic-bezier(0.2, 0.85, 0.32, 1.2);
  }
  input[type=checkbox]:disabled {
    --b: var(--disabled);
    cursor: not-allowed;
    opacity: 0.9;
  }
  input[type=checkbox]:disabled:checked{
    --b: #0035ff;
    --bc: #0028fd;
  }
  input[type=checkbox]:disabled + label{
    cursor: not-allowed;
  }
  input[type=checkbox]:hover:not(:checked):not(:disabled) {
    --bc: var(--border-hover);
  }
  input[type=checkbox]:focus {
    box-shadow: 0 0 0 var(--focus);
  }
  input[type=checkbox]:not() {
    width: 21px;
  }
  input[type=checkbox]:not():after {
    opacity: var(--o, 0);
  }
  input[type=checkbox]:not():checked {
    --o: 1;
  }
  input[type=checkbox] + label {
    line-height: 21px;
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    margin-left: 4px;
  }

  input[type=checkbox]:not() {
    border-radius: 7px;
  }
  input[type=checkbox]:not():after {
    width: 5px;
    height: 9px;
    border: 2px solid var(--active-inner);
    border-top: 0;
    border-left: 0;
    left: 7px;
    top: 4px;
    transform: rotate(var(--r, 20deg));
  }
  input[type=checkbox]:not():checked {
    --r: 43deg;
  }
  input[type=checkbox] {
    width: 38px;
    border-radius: 11px;
  }
  input[type=checkbox]:after {
    left: 2px;
    top: 2px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background: var(--ab, var(--border));
    transform: translateX(var(--x, 0));
  }
  input[type=checkbox]:checked {
    --ab: var(--active-inner);
    --x: 17px;
  }
  input[type=checkbox]:disabled:not(:checked):after {
    opacity: 0.6;
  }
}

.zoom80{
  zoom: 80%;
}

/* Paginação: estilos do Motor Único em css/menu/pagination-engine.css */
.pagination-outer{ text-align: center; }
.pagination{
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination li a.page-link{
    color: #337ab7;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 34px;
    height: 34px;
    min-width: 34px;
    width: auto;
    padding: 0 10px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    display: inline-block;
    clip-path: none;
    box-shadow: none;
}
.pagination li.active a.page-link,
.pagination li a.page-link:hover,
.pagination li.active a.page-link:hover,
.pagination li a.page-link:focus{
    color: #fff;
    background: #337ab7;
    border-color: #337ab7;
}
.pagination li a.page-link:after{
    content: none;
    display: none;
}

hr{
  margin-top: 0.25rem !important;
}

/* @media (min-width: 992px){ */
  .modal-lg {
    max-width: 975px !important;
  }
/* } */

.modal-lg label{
  font-weight: bold;
  margin-top: 1vh;
}

.modal-lg .semrisca td {
  padding: 0.05rem !important;
  border-top: 0px solid #dee2e6 !important;
}

/* .modal{
  z-index: 99999 !important;
}

.select2-selection{
  z-index: 999999 !important;
} */

.ui-front {
  z-index: 9999999 !important;
}

.ui-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  float: left;
  display: none;
  min-width: 160px;   
  max-height: 40vh;
  overflow-y: auto;
  padding: 4px 0;
  margin: 0 0 10px 25px;
  list-style: none;
  background-color: #ffffff;
  border-color: #ccc;
  border-color: rgba(0, 0, 0, 0.2);
  border-style: solid;
  border-width: 1px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding;
  background-clip: padding-box;
  *border-right-width: 2px;
  *border-bottom-width: 2px;
}

.ui-menu-item > a.ui-corner-all {
  display: block;
  padding: 3px 15px;
  clear: both;
  font-weight: normal;
  line-height: 18px;
  color: #555555;
  white-space: nowrap;
  text-decoration: none;
}

.ui-state-hover, .ui-state-active {
  color: #ffffff;
  text-decoration: none;
  background-color: #0088cc;
  border-radius: 0px;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  background-image: none;
}

.scroolmaximo{
  max-height: 370px;
  overflow-y: auto;
  overflow-x: hidden;
}
 
.botao100{
    width:100% !important;
}
.fc-popover-body{
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.was-validated .form-control:invalid{
  animation: go-back 0.7s ease;
}

.was-validated .form-control:valid{
  animation: go-back 0.7s ease;
}

.form-control.is-invalid, .was-validated .form-control:invalid {
  border-color: #dc3545 !important;
  padding-right: calc(1.5em + 0.75rem) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right calc(0.375em + 0.1875rem) center !important;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

.was-validated select.form-control:invalid + .select2 .select2-selection{
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.was-validated select.form-control:valid + .select2 .select2-selection{
  border-color: #28a745;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}