/*
#######################################################
  #### BÁSICO
#######################################################
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');
*{
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  outline: none;
  border-radius: 0;
  text-decoration: none;
}
html,body{
  height:100%;
}
html{
  max-width: 100wh;
  position: relative;
  overflow-x: hidden;
}
.center{
    width: 1050px;
    display: table;
    margin: 0 auto;
    position: relative;
}
::-webkit-input-placeholder {
  opacity: 1;
}
::-moz-placeholder {
  opacity: 1;
}
:-ms-input-placeholder {
  opacity: 1;
}
:-moz-placeholder {
  opacity: 1;
}
select{
  -moz-appearance: window;
  -webkit-appearance: none;
}
select::-ms-expand {
    display: none;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}
input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}
li{
  list-style-type: none;
}

/*
#######################################################
  #### LOGIN
#######################################################
*/
body.login{
  background: #0a0a0a url(../imagens/body_login.jpg) center top no-repeat;
}
.box_login{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  height:100%;
}
.box_login form{
  width: 520px;
  min-height: 380px;
  padding-bottom: 50px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 2px 12px 0px rgba(0,0,0,0.20);
}
.box_login form h1{
  height: 85px;
  background: #0a0a0a url(../imagens/h1.png) center center no-repeat;
  background-size: 115px 32px;
  -moz-background-size: 115px 32px;
  -webkit-background-size: 115px 32px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  text-indent: -20000px;
}
body .box_login form input[type=text], body .box_login form input[type=password]{
  display: block;
  width: 80%;
  border: none;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  color: #333;
  text-indent: 62px;
  padding-top: 32px;
  padding-bottom: 19px;
  border-radius: 6px;
  transition: all 0.08s ease-in;
  margin: 0 auto;
  border-radius: 0;
}
body .box_login form input[type=text]{
  border-bottom: 1px solid #ddd;
  background: url(../imagens/icon_user_active.png) 17px top no-repeat;
  background-size: 30px 120px;
  -moz-background-size: 30px 120px;
  -webkit-background-size: 30px 120px;
  margin: 38px auto 0 auto;
}
body .box_login form input[type=text]::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  opacity: 1;
}
body .box_login form input[type=text]::-moz-placeholder { /* Firefox 19+ */
  opacity: 1;
}
body .box_login form input[type=text]:-ms-input-placeholder { /* IE 10+ */
  opacity: 1;
}
body .box_login form input[type=text]:-moz-placeholder { /* Firefox 18- */
  opacity: 1;
}
body .box_login form input[type=text]:focus{
  color: #0a0a0a;
  border-bottom: 1px solid #0a0a0a;
  background: url(../imagens/icon_user_active.png) 17px -60px no-repeat;
  background-size: 30px 120px;
  -moz-background-size: 30px 120px;
  -webkit-background-size: 30px 120px;
  font-weight: 600;
}
body .box_login form input[type=password]{
  background: url(../imagens/icon_senha_active.png) 17px top no-repeat;
  background-size: 30px 120px;
  -moz-background-size: 30px 120px;
  -webkit-background-size: 30px 120px;
}
body .box_login form input[type=password]:focus{
  color: #0a0a0a;
  border-bottom: 1px solid #0a0a0a;
  background: url(../imagens/icon_senha_active.png) 17px -60px no-repeat;
  background-size: 30px 120px;
  -moz-background-size: 30px 120px;
  -webkit-background-size: 30px 120px;
  font-weight: 600;
}
body .box_login form input[type=submit]{
  display: block;
  width: 210px;
  height: 50px;
  border: none;
  text-align: center;
  background: #0a0a0a;
  border-radius: 6px;
  margin: 50px auto 8px auto;
  font-size: 16px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.09s ease-in;
}
body .box_login form input[type=submit]:hover{
  background: #333;
}
body .box_login form{
  text-align: center;
}
body .box_login form a{
  font-weight: 700;
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}
body .box_login form a:hover{
  color: #555;
}
body .box_login p.erro{
  color: #d27624;
  font-size: 13px;
  font-weight: 400;
  max-width: 240px;
  line-height: 16px;
  border: 2px solid #d27624;
  border-radius: 6px;
  padding: 15px;
  margin: 0 auto;
  position: relative;
  top: 25px;
  font-weight: 700;
}
body .box_login p.sucesso{
  color: #3aba40;
  font-size: 13px;
  font-weight: 400;
  max-width: 240px;
  line-height: 16px;
  border: 2px solid #3aba40;
  border-radius: 6px;
  padding: 15px 15px;
  margin: 0 auto;
  position: relative;
  top: 25px;
  font-weight: 700;
}

/*
#######################################################
  #### HEADER
#######################################################
*/
header{
  border-bottom: 1px solid #e5e5e5;
  height: 64px;
  width: 100%;
  display: table;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  background: #fff;
  box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.06);
}
header a.bt_menu{
  display: none;
}
#coluna_esquerda li.bt_notificacoes_menu a{ position:relative; }
#coluna_esquerda .notif_badge_menu{
  display:inline-block;
  background:#e14a4a;
  color:#fff;
  font-size:10px;
  font-weight:600;
  width:18px;
  height:18px;
  line-height:18px;
  text-align:center;
  padding:0;
  border-radius:50%;
  margin-left:10px;
  vertical-align:middle;
  letter-spacing:0;
  text-indent:0;
  box-sizing:border-box;
  font-family:'Inter',sans-serif;
}
header a.bt_notificacoes span.notif_badge{
  display: inline-block;
  position: absolute;
  top: 12px;
  right: 8px;
  border-radius: 10px;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  background: #d94848;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  letter-spacing: 0;
  box-shadow: 0 1px 3px rgba(217,72,72,.4);
}
header a.bt_perfil{
  display: flex;
  justify-content:center;
  align-items:center;
  float: right;
  position: relative;
  height: 64px;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 13px;
  color: #333;
  font-weight: 600;
}
header a.bt_perfil span.foto_perfil{
  display: inline-block;
  float: right;
  width: 36px;
  height: 36px;
  background: #e5e5e5 url(../imagens/avatar_perfil.png) center center no-repeat;
  background-size: 36px 36px;
  border-radius: 50%;
  margin-left: 10px;
}
header #barra_profissionais{
  height: 64px;
  width: calc(100% - 500px);
  background: #fff;
  z-index: 9;
  float: left;
  margin-left: 205px;
  overflow: hidden;
  position: relative;
}
header #barra_profissionais ul{
  padding-left: 15px;
  display: flex;
  align-items: center;
  height: 64px;
  width: 2000px;
  position: relative;
}
header #barra_profissionais ul li{
  display: inline-block;
  float: left;
  text-align: center;
  padding-top: 6px;
  height: 50px;
  position: relative;
}
header #barra_profissionais ul li.selected{
  background: #f5f5f5;
  border-radius: 6px;
}
header #barra_profissionais ul li a{
  text-align: center;
  color: #333;
  font-weight: 600;
  width: 75px;
  display: block;
  line-height: 15px;
  font-size: 11px;
}
header a span.foto_perfil span.mask_avatar{
  display: inline-block;
  float: right;
  width: 36px;
  height: 36px;
  background: #e5e5e5;
  border-radius: 50%;
  position: absolute;
  left: 10px;
  overflow: hidden;
}
header a span.foto_perfil span.mask_avatar img{
  display: block;
  width: 100%;
}
header #barra_profissionais ul li a span.foto_perfil{
  display: block;
  width: 34px;
  height: 34px;
  background: #e5e5e5;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
header #barra_profissionais ul li a span.foto_perfil span.avatar_inicial{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #0a0a0a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  text-transform: uppercase;
}
header #barra_profissionais ul li a span.foto_perfil span.mask_avatar{
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}
header #barra_profissionais ul li a span.foto_perfil span.mask_avatar img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
header #barra_profissionais ul li.todos a span{
  background: #0a0a0a;
  color: #fff;
  font-size: 20px;
  line-height: 34px;
}
header #barra_profissionais ul li.todos a{
  color: #0a0a0a;
}
header a.bt_ver_mais{
  display: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #449e46;
  background: #449e46;
  color: #fff;
  float: left;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  text-indent: 0;
  padding: 0;
  margin-left: 0;
  margin-top: 10px;
}
header a.bt_ver_mais svg{
  display: block;
}
header a.bt_ver_mais:hover{
  border-color: #449e46;
  color: #449e46;
  background: #f0f0ff;
}
/* Botão de cadastrar profissional dentro da barra_profissionais (item extra do ul) */
header #barra_profissionais ul li.li_novo_prof{
  margin-left: 4px;
}
header #barra_profissionais ul li.li_novo_prof a{
  color: #999;
  cursor: pointer;
  font-size: 11px;
}
header #barra_profissionais ul li.li_novo_prof a:hover{ color: #2563eb; }
header #barra_profissionais ul li.li_novo_prof a span.foto_perfil_add{
  width: 34px !important;
  height: 34px !important;
  background: transparent !important;
  color: #2563eb;
  border: 1.5px dashed #cfd7e3 !important;
  border-radius: 50%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto;
  transition: all 0.15s ease;
  box-sizing: border-box;
  overflow: visible !important;
}
header #barra_profissionais ul li.li_novo_prof a:hover span.foto_perfil_add{
  background: #eff6ff !important;
  border-color: #2563eb !important;
  color: #2563eb;
}
header #barra_profissionais ul li.li_novo_prof a span.foto_perfil_add svg{
  display: block;
  width: 14px; height: 14px;
}

/*
#######################################################
  #### BASE E COLUNAS
#######################################################
*/
.bt_fechar_submenu{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  text-indent: -20000px;
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 11;
  transition: background 0.15s;
  overflow: hidden;
}
.bt_fechar_submenu::after{
  content: "\00D7";
  text-indent: 0;
  font-size: 20px;
  font-weight: 400;
  color: #666;
  line-height: 1;
}
.bt_fechar_submenu:hover{
  background-color: #e0e0e0;
}
.bt_fechar_submenu:hover::after{
  color: #333;
}
#coluna_esquerda .bt_fechar_menu{
  display: none;
}
/* Old h1 logo - hidden, replaced by .sidebar-brand */
#coluna_esquerda h1{
  display: none;
}
/* New sidebar brand */
.sidebar-brand{
  display: flex;
  align-items: center;
  padding: 16px 20px 12px 20px;
  gap: 10px;
}
.sidebar-logo{
  flex-shrink: 0;
}
.sidebar-brand-text{
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  letter-spacing: 2px;
}
/* Menu icons (unicode symbols) */
.menu-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 16px;
  margin-right: 12px;
  opacity: 0.7;
  position: relative;
  color: currentColor;
}
.menu-icon svg{ width: 18px; height: 18px; display: block; }
#coluna_esquerda{
  width: 205px;
  background: #0a0a0a;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
}
#coluna_esquerda ul.menu{
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}
#coluna_esquerda ul.menu li.menu_bottom_start{
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* User card no topo (após logo) */
.sidebar-user{
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; margin: 6px 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}
.sidebar-user__avatar{
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  background: #46a648; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px;
}
.sidebar-user__info{ display: flex; flex-direction: column; min-width: 0; }
.sidebar-user__empresa{
  color: #fff; font-size: 12px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user__plano{
  color: #8b8f97; font-size: 10px;
  letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600;
  margin-top: 2px;
}

/* Labels de grupo do menu */
#coluna_esquerda ul.menu li.menu_grupo_label{
  font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #6b6f78;
  font-weight: 700;
  padding: 14px 20px 8px;
  border-top: none;
  pointer-events: none;
}
#coluna_esquerda ul.menu li.menu_grupo_label:first-child{ padding-top: 6px; }

/* Items da conta no rodapé (D) - consistentes com o resto, ícones cinza uniformes */
#coluna_esquerda ul.menu li.bt_meus_dados a,
#coluna_esquerda ul.menu li.bt_meu_plano a,
#coluna_esquerda ul.menu li.bt_sair a{
  color: rgba(255,255,255,0.75);
  border-top: none;
}
#coluna_esquerda ul.menu li.bt_meus_dados a .menu-icon,
#coluna_esquerda ul.menu li.bt_meu_plano a .menu-icon,
#coluna_esquerda ul.menu li.bt_sair a .menu-icon{
  color: #8b8f97; opacity: 1;
}
/* Hover - verde suave (padrão do sistema) */
#coluna_esquerda ul.menu li.bt_meus_dados a:hover,
#coluna_esquerda ul.menu li.bt_meu_plano a:hover{
  background: rgba(70,166,72,0.10);
  color: #fff;
}
#coluna_esquerda ul.menu li.bt_meus_dados a:hover .menu-icon,
#coluna_esquerda ul.menu li.bt_meu_plano a:hover .menu-icon{ color: #46a648; }
/* Exceção: Sair em vermelho ao passar mouse (destrutivo) */
#coluna_esquerda ul.menu li.bt_sair a:hover{
  background: rgba(248,113,113,0.10);
  color: #fff;
}
#coluna_esquerda ul.menu li.bt_sair a:hover .menu-icon{ color: #f87171; }

/* Selected state global - barra verde à esquerda (B) */
#coluna_esquerda ul.menu li a{
  border-left: 3px solid transparent;
  padding-left: 17px;
  transition: all 0.12s ease;
  color: rgba(255,255,255,0.75);
}
#coluna_esquerda ul.menu li a .menu-icon{ color: #8b8f97; opacity: 1; }
#coluna_esquerda ul.menu li.selected a{
  background: rgba(70,166,72,0.14);
  border-left-color: #46a648;
  color: #fff;
}
#coluna_esquerda ul.menu li.selected a .menu-icon{ color: #46a648; }
#coluna_esquerda ul.menu li a:hover{
  background: rgba(70,166,72,0.10);
  color: #fff;
}
#coluna_esquerda ul.menu li a:hover .menu-icon{ color: #46a648; }
#coluna_esquerda ul.menu li a{
  display: flex;
  align-items:center;
  height: 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  width: calc(100% - 20px);
  padding-left: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  position: relative;
  transition: all 0.075s ease-in;
}
#coluna_esquerda ul.menu li a:hover, #coluna_esquerda ul.menu li.selected a{
  background: rgba(255,255,255,0.08);
  color: #fff;
}
#coluna_esquerda ul.menu li a:hover .menu-icon, #coluna_esquerda ul.menu li.selected a .menu-icon{
  opacity: 1;
}
#coluna_esquerda ul.menu li a img{
  position: absolute;
  top: 14px;
  left: 15px;
  width: 20px;
}
#coluna_esquerda ul.menu li:last-child a{
  border-bottom: none;
}
#coluna_direita{
  padding-left: 205px;
  padding-top: 66px;
  background: #f5f5f5;
  min-height: calc(100% - 66px);
}
#coluna_direita .autosave{
  text-transform: uppercase;
  position: absolute;
  bottom: -30px;
  left: 0;
  color: #0a0a0a;
  font-weight: 700;
  background: url(../imagens/check.png) left center no-repeat;
  background-size: auto 100%;
  padding-left: 25px;
  opacity: 0;
}

/*
#######################################################
  #### CALENDARIO
#######################################################
*/
#coluna_direita #calendar{
  background: #fff;
  margin-left: 30px;
  margin-top: 20px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.06);
  position: relative;
}

/* Botão de engrenagem no footer de salas */
footer .bt_gerenciar_espacos{ margin-left: 4px; }
footer .bt_gerenciar_espacos a{
  padding: 6px 10px !important;
  color: #888;
  display: inline-flex !important;
  align-items: center;
  line-height: 1;
}
footer .bt_gerenciar_espacos a:hover{ color: #46a648; border-color: #46a648; background: #f6fbf6; }
footer .bt_gerenciar_espacos svg{ display: block; width: 14px; height: 14px; }

/* Modal Gerenciar Salas - padding lateral só nos filhos (evita duplicar padding do h2) */
.menu_espacos .esp_lista,
.menu_espacos .esp_novo_form,
.menu_espacos .esp_actions{
  margin-left: 24px; margin-right: 24px;
}
.menu_espacos .esp_lista{
  margin-top: 6px; margin-bottom: 16px;
  min-height: 60px;
}
.menu_espacos .esp_actions{
  display: flex; justify-content: flex-end;
  padding-bottom: 20px; padding-top: 4px;
}
.menu_espacos .esp_item{
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.menu_espacos .esp_item:last-child{ border-bottom: none; }
.menu_espacos .esp_titulo{
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.menu_espacos .esp_titulo:focus{
  border-color: #46a648;
  box-shadow: 0 0 0 3px rgba(70,166,72,0.12);
}
.menu_espacos .esp_bt_apagar{
  background: transparent; border: 1px solid #eaecef;
  border-radius: 6px; padding: 6px 8px;
  color: #b91c1c; cursor: pointer;
  transition: all .15s;
}
.menu_espacos .esp_bt_apagar:hover{
  background: #fff1f0; border-color: #fca5a5;
}
.menu_espacos .esp_loading, .menu_espacos .esp_vazio{
  padding: 20px; text-align: center; color: #999; font-size: 13px;
}

.menu_espacos .esp_novo_form{
  padding: 14px 16px;
  background: #f8f9fb;
  border: 1px dashed #d0d5dc;
  border-radius: 8px;
  margin-top: 8px; margin-bottom: 16px;
  display: block;
  width: auto !important;
}
.menu_espacos .esp_novo_label{
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: #6b7280;
  margin-bottom: 8px;
}
.menu_espacos .esp_novo_wrap{
  display: flex; gap: 8px; align-items: center;
}
.menu_espacos .esp_novo_input{
  flex: 1; padding: 9px 12px;
  border: 1px solid #d8dde3; border-radius: 6px;
  font-size: 14px; outline: none;
}
.menu_espacos .esp_novo_input:focus{
  border-color: #46a648;
  box-shadow: 0 0 0 3px rgba(70,166,72,0.12);
}
.menu_espacos .esp_bt_adicionar{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  background: #46a648; color: #fff;
  border: none; border-radius: 6px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.menu_espacos .esp_bt_adicionar:hover{ background: #3a8f3c; }

.menu_espacos .esp_bt_recarregar{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  background: #0a0a0a; color: #fff;
  border: none; border-radius: 6px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.menu_espacos .esp_bt_recarregar:hover{ background: #2a2a2a; }

/* Empty state genérico (modais de listagem e financeiro) */
.empty_state, .empty_state_financeiro{
  text-align: center;
  padding: 40px 24px;
  border: 1px dashed #d0d5dc;
  border-radius: 12px;
  background: #f8f9fb;
  margin: 12px 0;
}
.empty_state_icone{
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(70,166,72,0.08);
  color: #46a648;
  margin-bottom: 16px;
}
.empty_state h4, .empty_state_financeiro h4{
  font-family: 'Outfit', sans-serif;
  font-size: 18px; font-weight: 600;
  color: #0a0a0a; margin: 0 0 6px;
}
.empty_state p, .empty_state_financeiro p{
  font-size: 13px; color: #666; margin: 0 0 18px; line-height: 1.5;
}
.empty_state_botoes{ display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.empty_state_bt{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  background: #46a648; color: #fff;
  border: none; border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(70,166,72,0.22);
  transition: all .15s;
}
.empty_state_bt:hover{ background: #3a8f3c; transform: translateY(-1px); }
.empty_state_bt_outline{
  background: #fff; color: #b91c1c;
  border: 1px solid #fca5a5;
  box-shadow: none;
}
.empty_state_bt_outline:hover{ background: #fff1f0; color: #7f1d1d; }

/* Alinhamento do título "Agosto 2026" com o botão inline */
#calendar .fc-header td,
#calendar .fc-header th{
  vertical-align: middle !important;
}
/* Empurra o conteúdo da célula esquerda pra baixo pra bater com a altura dos botões pill do centro/direita */
#calendar .fc-header-left,
#calendar .fc-header td.fc-header-left{
  padding-top: 8px !important;
}
#calendar .fc-header-title,
#calendar .fc-header-title h2,
#calendar .fc-left h2{
  display: inline-block !important;
  vertical-align: middle !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  top: -3px;
}
.fc_bt_novo_evento{
  line-height: 1 !important;
  padding: 8px 14px !important;
  vertical-align: middle;
  position: relative;
  top: -5px;
}

/* Chips no header dark do sistema - alinhados à direita, junto ao nome do usuário */
header .header_chips{
  display: inline-flex; align-items: center; gap: 8px;
  float: right;
  margin: 20px 12px 0 0;
  vertical-align: middle;
}
header .header_chip{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  text-decoration: none !important;
  border: none;
  transition: all 0.15s;
  line-height: 1;
  white-space: nowrap;
}
header .header_chip svg{ flex-shrink: 0; }
header .header_chip b{ font-weight: 800; }
header .header_chip:hover{ transform: translateY(-1px); text-decoration: none; filter: brightness(1.08); }

/* Trial - âmbar sólido */
header .header_chip_trial{
  background: #f5a623; color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(245,166,35,0.25);
}
header .header_chip_trial svg{ color: #fff; }

/* Inadimplente / expirada - vermelho sólido */
header .header_chip_alert{
  background: #dc2626; color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(220,38,38,0.3);
}
header .header_chip_alert svg{ color: #fff; }

/* Plano - verde sólido */
header .header_chip_plano{
  background: #46a648; color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(70,166,72,0.25);
}
header .header_chip_plano svg{ color: #fff; }
/* Botão "Adicionar evento" injetado no header do fullCalendar */
.fc_bt_novo_evento{
  display: inline-block;
  background: #46a648; color: #fff;
  border: none; border-radius: 6px;
  padding: 8px 14px;
  font-family: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  margin-left: 14px;
  vertical-align: middle;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(70,166,72,0.22);
  transition: background .15s, box-shadow .15s;
}
.fc_bt_novo_evento:hover{
  background: #3a8f3c;
  box-shadow: 0 4px 12px rgba(70,166,72,0.32);
}

/* Overlay quando a agenda está vazia (sem eventos) */
#calendar_vazio_overlay{
  position: absolute;
  inset: 0;
  margin-left: 30px; margin-top: 20px;
  background: rgba(255,255,255,0.92);
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  display: flex; align-items: center; justify-content: center;
  z-index: 15;
  padding: 40px;
}
.cvo_conteudo{
  text-align: center; max-width: 400px;
}
.cvo_icone{
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 96px; border-radius: 50%;
  background: rgba(70,166,72,0.08);
  color: #46a648;
  margin-bottom: 20px;
}
.cvo_conteudo h3{
  font-family: 'Outfit', sans-serif;
  font-size: 22px; font-weight: 600;
  color: #0a0a0a; margin: 0 0 8px;
}
.cvo_conteudo p{
  font-size: 14px; color: #666; margin: 0 0 24px; line-height: 1.5;
}
.cvo_bt{
  display: inline-flex; align-items: center; gap: 8px;
  background: #46a648; color: #fff;
  border: none; border-radius: 8px;
  padding: 12px 22px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(70,166,72,0.28);
  transition: all 0.15s;
}
.cvo_bt:hover{
  background: #3a8f3c; transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(70,166,72,0.35);
}
/*
#######################################################
  #### PRONTUARIO
#######################################################
*/
#coluna_direita #prontuario{
  padding-left: 30px;
  padding-top: 30px;
  padding-right: 30px;
  min-height: 100%;
  padding-bottom: 45px;
  display: table;
  width: calc(100% - 60px);
}
#coluna_direita #prontuario .avaliacoes{
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.06);
  padding-left: 30px;
  padding-top: 30px;
  padding-right: 30px;
  padding-bottom: 30px;
  position: relative;
  width: calc(50% - 90px);
  float: left;
}
#coluna_direita #prontuario .avaliacoes h2{
  font-size: 22px;
  color: #0a0a0a;
  font-weight: 600;
}
#coluna_direita #prontuario .avaliacoes form{
  position: relative;
  padding-top: 13px;
  margin-bottom: 15px;
}
#coluna_direita #prontuario .avaliacoes textarea{
  height: 175px;
  padding-top: 10px;
  padding-left: 15px;
  background: #f5f5f5;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  width: 100%;
  color: #333;
}
#coluna_direita #prontuario .avaliacoes input[type=submit]{
  display: inline-block;
  background: #0a0a0a;
  height: 36px;
  border-radius: 4px;
  font-size: 13px;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  border: none;
  padding: 0 15px;
  position: absolute;
  right: 5px;
  bottom: 5px;
  cursor: pointer;
}
#coluna_direita #prontuario .exames{
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.06);
  padding-left: 30px;
  padding-top: 30px;
  padding-right: 30px;
  padding-bottom: 30px;
  position: relative;
  width: calc(50% - 60px);
  float: right;
  height: 100%;
}
#coluna_direita #prontuario .exames  h2{
  font-size: 22px;
  color: #0a0a0a;
  font-weight: 600;
}
#coluna_direita #prontuario .exames .enviar_arquivos{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  background: #eff6ff;
  border: 2px dashed #93c5fd;
  border-radius: 10px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  text-indent: 0;
  margin-top: 6px;
  position: relative;
  cursor: pointer;
  height: auto;
  padding-top: 16px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
#coluna_direita #prontuario .exames .enviar_arquivos::before{
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='17 8 12 3 7 8'/><line x1='12' y1='3' x2='12' y2='15'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='17 8 12 3 7 8'/><line x1='12' y1='3' x2='12' y2='15'/></svg>") center/contain no-repeat;
}
#coluna_direita #prontuario .exames .enviar_arquivos:hover{
  border-color: #2563eb;
  background: #dbeafe;
  color: #1d4ed8;
}
#coluna_direita #prontuario .exames .enviar_arquivos input{
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  opacity: 0;
}
#coluna_direita #prontuario .exames table.table_padrao span.avatar, #coluna_direita #prontuario .avaliacoes table.table_padrao span.avatar{
  /* Sobrescrito por .editor_paciente rules mais abaixo */
}
#coluna_direita #prontuario .fichas{
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.06);
  padding-left: 30px;
  padding-top: 30px;
  padding-right: 30px;
  padding-bottom: 30px;
  position: relative;
  width: calc(100% - 60px);
  float: left;
}
#coluna_direita #prontuario .fichas .lista_links{
  padding-top: 5px;
}
#coluna_direita #prontuario .fichas .lista_links li:first-child a{
  background: #56b658;
  color: #fff;
  text-transform: uppercase;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  box-shadow: 0 2px 6px rgba(86,182,88,0.25);
}
#coluna_direita #prontuario .fichas .lista_links li:first-child a:hover{
  background: #46a648;
  box-shadow: 0 4px 12px rgba(86,182,88,0.4);
  transform: translateY(-1px);
}
#coluna_direita #prontuario .fichas .lista_links li a{
  display: inline-block;
  background: #f0f0f0;
  border-radius: 4px;
  padding: 5px 8px;
  color: #555;
  float: left;
  margin-right: 5px;
  margin-bottom: 5px;
}
#coluna_direita #prontuario .fichas h2{
  font-size: 22px;
  color: #0a0a0a;
  font-weight: 600;
  display: table;
  width: 100%;
}
#coluna_direita #prontuario .fichas h2 a.bt_apagar_interno{
  text-transform: uppercase;
  font-weight: 600;
  color: #b00;
  text-decoration: underline;
  position: relative;
  top: -5px;
  margin-left: 15px;
}
h2 a.bt_imprimir_interno{
  text-transform: uppercase;
  font-weight: 600;
  color: #00b;
  text-decoration: underline;
  position: relative;
  top: -5px;
  margin-left: 15px;
}
#coluna_direita #prontuario .fichas h2 a.bt_baixar_pdf{
  text-transform: uppercase;
  font-weight: 600;
  color: #0b0;
  text-decoration: underline;
  position: relative;
  top: -5px;
  margin-left: 15px;
}
#coluna_direita #prontuario .fichas form{
  position: relative;
  padding-top: 13px;
  margin-bottom: 15px;
  display: table;
  width: 100%;
}
#coluna_direita #prontuario .fichas label{
  display: block;
  width: calc(33.33% - 10px);
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #555;
  font-size: 11px;
}
#coluna_direita #prontuario .fichas label p{
  display: block;
  position: relative;
  padding-left: 17px;
  text-transform: none;
  padding-top: 4px;
}
#coluna_direita #prontuario .fichas label p input{
  position: absolute;
  top: 6px;
  left: 0;
}
#coluna_direita #prontuario .fichas label.full{
  width: calc(100% - 10px);
}
#coluna_direita #prontuario .fichas label.meio{
  width: calc(16.665% - 10px);
}
#coluna_direita #prontuario .fichas input[type=text]{
  padding-top: 6px;
  padding-bottom: 6px;
  background: #f5f5f5;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  width: 100%;
  color: #333;
  text-indent: 15px;
  margin-top: 3px;
}
#coluna_direita #prontuario .fichas textarea{
  padding-top: 6px;
  padding-bottom: 6px;
  background: #f5f5f5;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  width: 100%;
  color: #333;
  padding-left: 15px;
  margin-top: 3px;
  height: 190px;
}
#coluna_direita #prontuario .fichas select{
  padding-top: 6px;
  padding-bottom: 4px;
  background: #f5f5f5 url(../imagens/seta_select.png) calc(100% - 10px) center no-repeat;
  background-size: 12px 6px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  width: 100%;
  color: #333;
  text-indent: 5px;
  margin-top: 3px;
  -webkit-appearance:none;
}
#coluna_direita #prontuario .fichas input[type=submit]{
  display: inline-block;
  background: #0a0a0a;
  height: 36px;
  border-radius: 4px;
  font-size: 13px;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  border: none;
  padding: 0 15px;
  cursor: pointer;
}
#coluna_direita #prontuario .figura_dor{
  border: 2px solid #807e7e;
  display: inline-block;
  position: relative;
}
#coluna_direita #prontuario .figura_dor img{
  opacity: 0.5;
  transition: all 0.12s ease-out;
}
#coluna_direita #prontuario .figura_dor:hover img{
  opacity: 1;
}
#coluna_direita #prontuario .figura_dor span:not(.ponto_marcado){
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #f00;
  position: absolute;
  cursor: pointer;
  background: rgba(255,255,255,0);
}

/*
#######################################################
  #### FINANCEIRO
#######################################################
*/
#coluna_direita #financeiro{
  padding-left: 30px;
  padding-top: 12px;
  padding-right: 30px;
  min-height: 100%;
  padding-bottom: 45px;
}
#coluna_direita #financeiro .fluxo_caixa{
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ececec;
  box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.04);
  padding: 24px 24px 20px 24px;
  position: relative;
  display: table;
  width: calc(100% - 48px);
}
/* ============ HEADER FINANCEIRO (tudo junto) ============ */
#coluna_direita #financeiro .fluxo_caixa .fin_header{
  margin-bottom: 6px;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_titulo{
  display: flex;
  align-items: center;
  gap: 10px;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_titulo h2{
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  color: #0a0a0a;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0;
}
#coluna_direita #financeiro .fluxo_caixa .fin_select_periodo{
  height: 30px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #555;
  background: #fafafa;
  padding: 0 26px 0 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 8px) center;
  transition: border-color 0.15s ease;
}
#coluna_direita #financeiro .fluxo_caixa .fin_select_periodo:hover{
  border-color: #ccc;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_acoes{
  display: flex;
  gap: 8px;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_acoes a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: all 0.15s ease;
  white-space: nowrap;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_acoes a svg{
  flex-shrink: 0;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_acoes a.bt_entrada{
  background: #56b658;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_acoes a.bt_entrada:hover{
  background: #4a9e4c;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_acoes a.bt_saida{
  background: #cb5c30;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_acoes a.bt_saida:hover{
  background: #b5502a;
}

/* ============ FILTROS + RELATÓRIOS (uma linha) ============ */
#coluna_direita #financeiro .fluxo_caixa .fin_header_filtros{
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fafafa;
  border-radius: 10px;
  padding: 6px 8px;
  flex-wrap: wrap;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_filtros .busca_clientes{
  display: block;
  position: relative;
  flex: 0 0 auto;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_filtros .busca_clientes .search_icon{
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_filtros .busca_clientes input[type=text]{
  display: block;
  height: 30px;
  width: 140px;
  border: 1px solid #e5e5e5;
  border-radius: 7px;
  color: #333;
  background: #fff;
  padding-left: 28px;
  padding-right: 8px;
  font-size: 12px;
  transition: border-color 0.15s ease;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_filtros .busca_clientes input[type=text]:focus{
  border-color: #bbb;
  outline: none;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_filtros .busca_clientes input[type=submit]{
  display: none;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_filtros select{
  height: 30px;
  border: 1px solid #e5e5e5;
  border-radius: 7px;
  color: #333;
  background: #fff;
  padding: 0 24px 0 8px;
  font-size: 12px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 8px) center;
  transition: border-color 0.15s ease;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_filtros select:hover{
  border-color: #ccc;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_filtros a.bt_limpar{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #e5e5e5;
  color: #aaa;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_filtros a.bt_limpar:hover{
  color: #555;
  border-color: #ccc;
}
/* Label relatórios */
#coluna_direita #financeiro .fluxo_caixa .fin_header_filtros .fin_relatorios_label{
  font-size: 10px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* Separador entre filtros e relatórios */
#coluna_direita #financeiro .fluxo_caixa .fin_header_filtros .fin_filtros_sep{
  display: block;
  width: 1px;
  height: 20px;
  background: #ddd;
  margin: 0 4px;
  flex-shrink: 0;
}
/* Relatórios inline */
#coluna_direita #financeiro .fluxo_caixa .fin_header_filtros a.bt_relatorio{
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  background: transparent;
  transition: all 0.12s ease;
  text-decoration: none;
  white-space: nowrap;
}
#coluna_direita #financeiro .fluxo_caixa .fin_header_filtros a.bt_relatorio:hover{
  background: #eee;
  color: #333;
}

/* panel_caixa antigo - hidden mas mantido para JS */
#coluna_direita #financeiro .fluxo_caixa .panel_caixa{
  position: relative;
  top: auto;
  right: auto;
}
/* ============ NOVA TABELA FATURAS ============ */
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas{
  margin-top: 8px;
  border-collapse: separate;
  border-spacing: 0;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas thead tr.tabela_header{
  height: 32px;
  background: transparent;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas thead tr.tabela_header:hover{
  background: transparent;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas thead th{
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #aaa;
  letter-spacing: 0.6px;
  text-align: left;
  padding: 8px 16px 8px 0;
  border-bottom: 1px solid #eee;
  background: #fff;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas thead th.th_avatar{
  padding-left: 0;
  width: 36px;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas thead th.th_valor{
  text-align: right;
  padding-right: 16px;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas thead th.th_acoes{
  width: 34px;
  padding-right: 0;
}

#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row{
  height: 48px;
  transition: background 0.12s ease;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row:hover{
  background: #fafafa;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row td{
  border-top: 1px solid #f0f0f0;
  padding: 6px 16px 6px 0;
  font-size: 13px;
  color: #333;
  line-height: 16px;
  vertical-align: middle;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row td.td_avatar{
  padding-right: 12px;
  padding-left: 0;
  width: 36px;
}
/* Avatar menor e mais discreto */
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row td.td_avatar span.avatar{
  width: 34px;
  height: 34px;
  font-size: 14px;
  line-height: 32px;
  font-weight: 600;
  background: #0a0a0a;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row td.td_avatar span.recorrencia{
  width: 16px;
  height: 16px;
  top: -2px;
  right: -3px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row:hover td.td_avatar span.recorrencia{
  box-shadow: 0 0 0 2px #fafafa;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row td.td_cliente b{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row td.td_descritivo{
  color: #555;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row td.td_descritivo .desc_main{
  display: block;
  font-size: 13px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row td.td_descritivo .desc_obs{
  display: block;
  font-size: 11px;
  color: #aaa;
  margin-top: 1px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row td.td_descritivo .desc_obs:empty{
  display: none;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row td.td_data .data_valor{
  display: inline-block;
  font-size: 12px;
  color: #666;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row td.td_valor{
  text-align: right;
  padding-right: 16px;
  color: #0a0a0a !important;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row td.td_valor b{
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #0a0a0a;
  font-variant-numeric: tabular-nums;
}
/* Valor colorido só para saída (destaque negativo) */
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row td.td_valor.saida b,
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row td.td_valor.saida_vermelho b{
  color: #b5502a;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row td.td_acoes{
  width: 34px;
  padding-right: 0;
  padding-left: 0;
  text-align: right;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row td.td_acoes a.bt_editar{
  width: 28px;
  height: 28px;
  border-radius: 6px;
  opacity: 0.35;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
  margin-left: auto;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tbody tr.fatura_row:hover td.td_acoes a.bt_editar{
  opacity: 1;
}

/* Toast de feedback */
.app_toast{
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #0a0a0a;
  color: #fff;
  padding: 12px 20px 12px 16px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  pointer-events: none;
}
.app_toast.toast_show{
  opacity: 1;
  transform: translate(-50%, 0);
}
.app_toast .toast_icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.app_toast.toast_success .toast_icon{ background: #56b658; }
.app_toast.toast_error{ background: #cb5c30; }

/* Rodapé de totais */
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tfoot tr.tabela_totais{
  height: 56px;
  background: #fafafa;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tfoot tr.tabela_totais:hover{
  background: #fafafa;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tfoot tr.tabela_totais td{
  border-top: 2px solid #e5e5e5;
  padding: 12px 16px 12px 0;
  vertical-align: middle;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tfoot tr.tabela_totais td:first-child{
  padding-left: 0;
  padding-right: 12px;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tfoot .totais_label{
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: #555;
  letter-spacing: 0.5px;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tfoot .totais_col{
  text-align: right;
  padding-right: 16px !important;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tfoot .totais_mini_label{
  display: block;
  font-size: 9px;
  color: #999;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tfoot .totais_valor{
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0a0a0a;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tfoot .totais_entradas{ color: #3d8f3f; }
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tfoot .totais_saidas{ color: #b5502a; }
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tfoot .totais_liquido{
  font-size: 16px;
}
#coluna_direita #financeiro .fluxo_caixa table.tabela_faturas tfoot .totais_liquido_col{
  padding-right: 20px !important;
}

/* Badges (pill chips) */
#coluna_direita #financeiro .fluxo_caixa .badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px 0 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.2px;
  line-height: 1;
  background: #f0f0f0;
  color: #555;
  white-space: nowrap;
}
#coluna_direita #financeiro .fluxo_caixa .badge .dot{
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
/* Tipo */
#coluna_direita #financeiro .fluxo_caixa .badge.badge_entrada{
  background: #eaf7ea;
  color: #3d8f3f;
}
#coluna_direita #financeiro .fluxo_caixa .badge.badge_saida{
  background: #fbeee7;
  color: #b5502a;
}
/* Status - mapeadas com base nas classes .tipo2 existentes */
#coluna_direita #financeiro .fluxo_caixa .badge.badge_status_paga,
#coluna_direita #financeiro .fluxo_caixa .badge.badge_status_paga_mes_verde{
  background: #eaf7ea;
  color: #3d8f3f;
}
#coluna_direita #financeiro .fluxo_caixa .badge.badge_status_aguardando,
#coluna_direita #financeiro .fluxo_caixa .badge.badge_status_aguardando_amarelo{
  background: #fdf4dc;
  color: #a37b0b;
}
#coluna_direita #financeiro .fluxo_caixa .badge.badge_status_vencida_laranja,
#coluna_direita #financeiro .fluxo_caixa .badge.badge_status_lancada_laranja{
  background: #ffece0;
  color: #c85a1a;
}
#coluna_direita #financeiro .fluxo_caixa .badge.badge_status_paga_passada_azul,
#coluna_direita #financeiro .fluxo_caixa .badge.badge_status_lancada{
  background: #e3f2fd;
  color: #0984e3;
}
#coluna_direita #financeiro .fluxo_caixa .badge.badge_status_saida_vermelho{
  background: #fbeee7;
  color: #b5502a;
}

/* Backwards-compat wrapper (mantém regras antigas ativas para pág. de relatórios) */
#coluna_direita #financeiro .fluxo_caixa table tr{
  height: 64px;
  transition: background 0.1s ease;
}
#coluna_direita #financeiro .fluxo_caixa table tr:hover{
  background: #fafafa;
}
#coluna_direita #financeiro .fluxo_caixa table tr td{
  border-top: 1px solid #f0f0f0;
  padding-right: 20px;
  font-size: 12px;
  color: #888;
  line-height: 15px;
}
#coluna_direita table.table_padrao tr{
  height: 64px;
}
#coluna_direita table.table_padrao tr td{
  border-top: 1px solid #e5e5e5;
  padding-right: 20px;
  font-size: 12px;
  color: #888;
  line-height: 15px;
}
#coluna_direita table.table_padrao tr:first-child td{
  border: none;
}
#coluna_direita table.table_padrao tr.sem_borda td{
  border: none;
  padding-bottom: 15px;
  color: #888;
}
#coluna_direita table.table_padrao tr td a{
  color: #888;
}
#coluna_direita table.table_padrao tr td a.bt_apagar{
  display: inline-block;
  float: right;
  width: 35px;
  height: 35px;
  background: #cb5c30 url(../imagens/bt_apagar.png) center center no-repeat;
  background-size: 15px 16px;
  text-indent: -20000px;
  border-radius: 4px;
  margin-right: -20px;
}
#coluna_direita table.table_padrao tr td a.bt_editar{
  display: inline-block;
  float: right;
  width: 35px;
  height: 35px;
  background: #56b658 url(../imagens/bt_edit.png) center center no-repeat;
  background-size: 16px 16px;
  text-indent: -20000px;
  border-radius: 4px;
  margin-right: 2px;
}
#coluna_direita table.table_padrao tr td b{
  display: block;
  font-size: 14px;
  color: #555;
}
#coluna_direita table.table_padrao tr td img{
  border-radius: 6px;
}
/* Financial status colors - semantic, kept as-is */
#coluna_direita #financeiro .fluxo_caixa table tr td.entrada{
  color: #56b658;
}
#coluna_direita #financeiro .fluxo_caixa table tr td.lancada{
  color: #0984e3;
}
#coluna_direita #financeiro .fluxo_caixa table tr td.lancada_laranja{
  color: #FF7F50;
}
#coluna_direita #financeiro .fluxo_caixa table tr td.paga{
  color: #56b658;
}
#coluna_direita #financeiro .fluxo_caixa table tr td.aguardando{
  color: #e6c068;
}
#coluna_direita #financeiro .fluxo_caixa table tr td.saida{
  color: #cb5c30;
}

#coluna_direita #financeiro .fluxo_caixa table tr td.saida_vermelho{
  color: #cb5c30;
}
#coluna_direita #financeiro .fluxo_caixa table tr td.paga_mes_verde{
  color: #56b658;
}
#coluna_direita #financeiro .fluxo_caixa table tr td.aguardando_amarelo{
  color: #e6c068;
}
#coluna_direita #financeiro .fluxo_caixa table tr td.vencida_laranja{
  color: #FF7F50;
}
#coluna_direita #financeiro .fluxo_caixa table tr td.paga_passada_azul{
  color: #0984e3;
}



#coluna_direita table.table_padrao tr td span.avatar{
  display: block;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin: 0 auto;
  background: #0a0a0a;
  color: #fff;
  font-size: 26px;
  line-height: 42px;
  text-align: center;
  text-transform: uppercase;
}
#coluna_direita #financeiro .fluxo_caixa table tr td span.avatar{
  display: block;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin: 0 auto;
  background: #333;
  color: #fff;
  font-size: 26px;
  line-height: 42px;
  text-align: center;
  text-transform: uppercase;
  position: relative;
}
#coluna_direita #financeiro .fluxo_caixa table tr td span.recorrencia{
  display: block;
  width: 24px;
  height: 24px;
  position: absolute;
  top: -3px;
  right: -8px;
  background: url(../imagens/recorrencia.png) center center no-repeat;
  background-size: cover;
}
#coluna_direita #financeiro .fluxo_caixa table tr td:last-child{
  padding-right: 15px;
}
#coluna_direita #financeiro .fluxo_caixa table tr td a.bt_editar{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f5f5f5;
  color: #888;
  transition: all 0.15s ease;
  text-indent: 0;
}
#coluna_direita #financeiro .fluxo_caixa table tr td a.bt_editar:hover{
  background: #0a0a0a;
  color: #fff;
}
#coluna_direita #financeiro .fluxo_caixa table tr td a.bt_editar svg{
  display: block;
}
#coluna_direita table.table_padrao tr td a.bt_ver_mais{
  display: inline-block;
  background: #0a0a0a;
  height: 26px;
  padding-top: 10px;
  padding-right: 20px;
  border-radius: 4px;
  font-size: 13px;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 700;
  text-indent: 15px;
  float: right;
}
#coluna_direita #financeiro .resultado{
  padding-bottom: 12px;
  display: block;
  width: auto;
}
#coluna_direita #financeiro .resultado ul{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}
#coluna_direita #financeiro .resultado ul li{
  display: block;
  padding: 18px 20px 16px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.03);
  position: relative;
  float: none;
  margin: 0;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
#coluna_direita #financeiro .resultado ul li:hover{
  box-shadow: 0px 4px 12px 0px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
#coluna_direita #financeiro .resultado ul li .card_icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
  margin-bottom: 12px;
}
#coluna_direita #financeiro .resultado ul li .card_label{
  display: block;
  color: #999;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.6px;
  margin-bottom: 1px;
}
#coluna_direita #financeiro .resultado ul li b{
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  color: #0a0a0a;
  letter-spacing: -0.5px;
}
/* Accent por tipo */
#coluna_direita #financeiro .resultado ul li.pagas .card_icon{
  background: rgba(86,182,88,0.12);
  color: #3d8f3f;
}
#coluna_direita #financeiro .resultado ul li.aguardando .card_icon{
  background: rgba(230,192,104,0.18);
  color: #a37b0b;
}
#coluna_direita #financeiro .resultado ul li.despesas .card_icon{
  background: rgba(203,92,48,0.12);
  color: #b5502a;
}
#coluna_direita #financeiro .resultado ul li.resultado .card_icon{
  background: rgba(9,132,227,0.12);
  color: #0984e3;
}
#coluna_direita #financeiro .resultado ul li.pagas b{ color: #3d8f3f; }
#coluna_direita #financeiro .resultado ul li.aguardando b{ color: #a37b0b; }
#coluna_direita #financeiro .resultado ul li.despesas b{ color: #b5502a; }





/*
#######################################################
  #### FOOTER
#######################################################
*/
footer{
  position: fixed;
  left: 205px;
  bottom: 0;
  background: #fff;
  z-index: 999;
  border-top: 1px solid #e5e5e5;
  height: 52px;
  width: calc(100% - 205px);
}
footer ul{
  padding-left: 24px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
footer ul li{
  display: inline-block;
}
footer ul li a{
  background: transparent;
  color: #888;
  border: 1px solid #ddd;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.1s ease-in;
}
footer ul li a:hover{
  background: #f0f0f0;
  color: #333;
  border-color: #ccc;
}
footer ul li.selected a{
  background: #0a0a0a;
  color: #fff;
  border: 1px solid #0a0a0a;
}

/*
#######################################################
  #### MODAL CENTRALIZADA
#######################################################
*/
#overlay{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  background: rgba(0,0,0, 0.85);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-out, visibility 0s 0.2s;
}
#overlay.aberto{
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease-out, visibility 0s 0s;
}
#menu_modal{
  z-index: 999;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#menu_modal .conteudo_menu{
  display: none;
  width: 95%;
  max-width: 480px;
  max-height: 85vh;
  background: #fff;
  position: relative;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.04);
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: all;
  transform: scale(0.96) translateY(8px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease-out;
}
#overlay.aberto #menu_modal .conteudo_menu{
  transform: scale(1) translateY(0);
  opacity: 1;
}
#menu_modal .submenu{
  display: none;
  width: 95%;
  max-width: 480px;
  max-height: 85vh;
  background: #fff;
  position: relative;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.04);
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: all;
  opacity: 0;
  transition: opacity 0.16s ease-in;
}
#menu_modal .menu_usuarios{
  max-width: 820px !important;
}
#menu_modal .submenu.menu_usuarios .mask_campos{
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
}
#menu_modal .submenu.menu_usuarios .mask_campos .usuarios_col{
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#menu_modal .submenu.menu_usuarios .mask_campos .form_section{
  margin-bottom: 0;
}
/* Submenu clientes - layout duas colunas */
#menu_modal .menu_clientes{
  max-width: 820px !important;
}
#menu_modal .submenu.menu_clientes .mask_campos{
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
}
#menu_modal .submenu.menu_clientes .mask_campos .clientes_col{
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#menu_modal .submenu.menu_clientes .mask_campos .form_section{
  margin-bottom: 0;
}
/* Foto preview */
.section_foto .foto_preview{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 6px;
  position: relative;
}
.section_foto .avatar_placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f0f0f0;
  border: 2px dashed #ddd;
  color: #bbb;
}
.section_foto .imagem_avatar{
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  overflow: visible;
  border: 2px solid #eee !important;
  padding: 0 !important;
  display: block;
  margin: 0;
}
.section_foto .imagem_avatar{
  position: relative;
}
.section_foto .imagem_avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.section_foto .imagem_avatar .bt_remover_foto{
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #cb5c30;
  border: 1.5px solid #cb5c30;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, transform 0.15s, box-shadow 0.15s;
  z-index: 3;
}
.section_foto .imagem_avatar .bt_remover_foto:hover{
  background: #cb5c30;
  color: #fff;
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(203,92,48,0.35);
}
/* Badge "foto pendente - não salva ainda" */
.section_foto .foto_pendente_badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  background: #fff8e1;
  color: #b76e00;
  border: 1px solid #ffdc80;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  animation: foto_pendente_pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.section_foto .foto_pendente_badge .dot{
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0a020;
  animation: foto_pendente_pulse 1.2s ease-in-out infinite;
}
@keyframes foto_pendente_pulse{
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(240,160,32,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(240,160,32,0); }
}
@keyframes foto_pendente_pop{
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* Quando a foto está visível, esconde o placeholder */
.section_foto .foto_preview .imagem_avatar:not([style*="display: none"]) ~ .avatar_placeholder,
.section_foto .foto_preview .imagem_avatar[style*="display: block"] + .avatar_placeholder{
  display: none !important;
}
#menu_modal .submenu_aberto{
  display: block !important;
  opacity: 1;
}
#menu_modal .conteudo_menu h2{
  margin: 0;
  padding: 20px 50px 12px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  color: #0a0a0a;
  font-weight: 700;
  letter-spacing: -0.3px;
  border-bottom: none;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal_icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f0f0f0;
  flex-shrink: 0;
  color: #555;
}
.modal_icon svg{
  stroke: #555;
}
#menu_modal .submenu h2{
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  padding: 20px 50px 14px 24px;
  margin-bottom: 4px;
}
#menu_modal .conteudo_menu a.bt_fechar_modal{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  text-indent: -20000px;
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 11;
  transition: background 0.15s;
  overflow: hidden;
  background-image: none;
}
#menu_modal .conteudo_menu a.bt_fechar_modal::after{
  content: "\00D7";
  text-indent: 0;
  font-size: 20px;
  font-weight: 400;
  color: #666;
  line-height: 1;
}
#menu_modal .conteudo_menu a.bt_fechar_modal:hover{
  background-color: #e0e0e0;
}
#menu_modal .conteudo_menu a.bt_fechar_modal:hover::after{
  color: #333;
}
#menu_modal .conteudo_menu:not(.submenu) > form > label:first-of-type{
  padding-top: 0;
}
#menu_modal .conteudo_menu form{
  padding: 0 24px 0 24px;
  position: relative;
  display: block;
  width: calc(100% - 48px);
  margin-top: 20px;
}
/* -- Seções agrupadas -- */
.form_section{
  background: #f8f8f8;
  border-radius: 14px;
  padding: 16px 16px 12px 16px;
  margin-bottom: 10px;
}
.form_section_title{
  font-size: 11px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section_icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #e0e0e0;
}
.section_icon svg{
  stroke: #666;
}
/* -- Grid 2 colunas -- */
.form_grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.form_grid label{
  width: 100% !important;
  float: none !important;
}
.form_grid label input,
.form_grid label select{
  width: 100% !important;
  box-sizing: border-box;
}
.form_section label.label_full{
  width: 100%;
  display: block;
}
.form_section label.label_full input,
.form_section label.label_full select{
  width: 100% !important;
  box-sizing: border-box;
}
/* -- Botões sticky no rodapé -- */
.form_actions{
  position: sticky;
  bottom: 0;
  background: linear-gradient(0deg, #fff 70%, rgba(255,255,255,0) 100%);
  padding: 20px 6px 24px 6px;
  display: flex;
  gap: 10px;
  z-index: 10;
}
.form_actions .bt_salvar,
.form_actions .bt_apagar,
.form_actions .bt_adicionar{
  float: none !important;
  clear: none !important;
  margin-top: 0 !important;
  flex: 1;
  width: auto !important;
}
/* -- Participantes como chips -- */
.lista_participantes{
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lista_participantes li{
  display: inline-flex;
  align-items: center;
  width: auto;
  float: none;
  padding: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 4px 6px 4px 6px;
  gap: 4px;
  transition: border-color 0.1s;
}
.lista_participantes li:hover{
  border-color: #ccc;
}
#menu_modal .submenu form .mask_campos{
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding: 0 4px 0 0;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
#menu_modal .conteudo_menu form label{
  color: #999;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  width: 100%;
  padding-top: 8px;
  position: relative;
}
.form_section label:first-of-type,
.form_grid label:nth-child(1),
.form_grid label:nth-child(2){
  padding-top: 4px;
}
#menu_modal .conteudo_menu form label.meio{
  width: 50%;
  float: left;
}
#menu_modal .conteudo_menu form label input{
  display: block;
  width: 97%;
  height: 42px;
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  margin-top: 6px;
  color: #0a0a0a;
  text-indent: 12px;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.15s;
}
#menu_modal .conteudo_menu form label input:focus{
  border-color: #0a0a0a;
  box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}
#menu_modal .conteudo_menu form label .participante{
  position: absolute;
  left: 0;
  bottom: -30px;
  background: #f5f5f5;
  border-radius: 3px;
  box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.12);
  z-index: 99;
}
#menu_modal .conteudo_menu form label .participante span{
  display: inline-block;
  text-transform: uppercase;
  font-size: 12px;
  color: #555;
  font-weight: bold;
  padding: 6px 30px 6px 10px;
  position: relative;
  cursor: pointer;
  background: url(../imagens/bt_add.png) 96% center no-repeat;
  background-size: 17px 17px;
}
.lista_participantes li span.bt_status{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #e9ecef url(../imagens/ausente.png) center center no-repeat;
  background-size: 12px 12px;
  border-radius: 50%;
  float: none;
  cursor: pointer;
  transition: all 0.1s;
  flex-shrink: 0;
}
.lista_participantes li span.bt_status_active{
  background: #2e7d32 url(../imagens/presente.png) center center no-repeat;
  background-size: 12px 12px;
}
.lista_participantes li span.bt_apagar_participante{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #fef0ed;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23cb5c30' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 12px 12px;
  border-radius: 50%;
  float: none;
  cursor: pointer;
  transition: background-color 0.1s;
  flex-shrink: 0;
}
.lista_participantes li span.bt_apagar_participante:hover{
  background-color: #fdd5cc;
}
.lista_participantes li span.title{
  text-transform: uppercase;
  font-size: 11px;
  color: #0a0a0a;
  font-weight: 700;
  margin: 0 2px;
  position: relative;
  top: 0;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 26px;
}
#menu_modal .conteudo_menu form label.enviar_imagem{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  background: #fafafa;
  border: 1.5px dashed #ddd;
  border-radius: 10px;
  margin-top: 4px;
  color: #666;
  text-indent: 0;
  position: relative;
  font-size: 12px;
  font-weight: 500;
  line-height: 44px;
  text-transform: none;
  cursor: pointer;
  transition: all 0.15s;
  box-sizing: border-box;
}
#menu_modal .conteudo_menu form label.enviar_imagem:hover{
  background: #f0f0f0;
  border-color: #bbb;
  color: #333;
}
#menu_modal .conteudo_menu form label.enviar_imagem input{
  display: block;
  width: 100%;
  height: 44px;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  opacity: 0;
}
#menu_modal .conteudo_menu form label.imagem_avatar{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #eee;
  position: relative;
  overflow: visible;
  text-align: center;
  padding-top: 0;
  margin-top: 8px;
}
#menu_modal .conteudo_menu form label.imagem_avatar img{
  display: inline-block;
  min-height: 100%;
  min-width: 100%;
  object-fit: cover;
}
#menu_modal .conteudo_menu form label input[name=busca_cliente]{
  background: #f5f5f5 url(../imagens/busca_cliente.png) 96% center no-repeat;
  background-size: 15px 16px;
}
#menu_modal .conteudo_menu form label.meio input{
  width: 93%;
}
#menu_modal .conteudo_menu form label select{
  display: block;
  width: 97%;
  height: 42px;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  margin-top: 6px;
  color: #0a0a0a;
  text-indent: 8px;
  font-size: 14px;
  background: #fff url(../imagens/seta_select.png) 96% center no-repeat;
  background-size: 12px 6px;
  transition: all 0.15s;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
#menu_modal .conteudo_menu form label select:focus{
  border-color: #0a0a0a;
  box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}
#menu_modal .conteudo_menu form label.meio select{
  width: 93%;
  background: #fff url(../imagens/seta_select.png) 93% center no-repeat;
  background-size: 12px 6px;
}
#menu_modal .conteudo_menu form label.resultado_busca{
  background: #f5f5f5;
  border-radius: 4px;
  margin-top: 15px;
  max-width: 97%;
  display: block;
  height: 162px;
  overflow-y: scroll;
}
#menu_modal .conteudo_menu form label.resultado_busca .check{
  display: block;
  position: relative;
  font-size: 14px;
  color: #333;
  height: 25px;
  margin-bottom: 3px;
  transition: all 0.08s ease-in;
}
#menu_modal .conteudo_menu form label.resultado_busca .check span{
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #333;
  margin-left: 15px;
  position: relative;
  top: 6px;
  margin-right: 4px;
  overflow: hidden;
}
#menu_modal .conteudo_menu form label.resultado_busca .checked span{
  background: #333 url(../imagens/marcado.png) center center no-repeat;
  background-size: 16px 16px;
}
#menu_modal .conteudo_menu form label.resultado_busca .check span input{
  position: relative;
  top: -18px;
  left: -15px;
  display: block;
  width: 50px;
  height: 50px;
  cursor: pointer;
  opacity: 0;
}
#menu_modal .conteudo_menu form .bt_adicionar,
#menu_modal .conteudo_menu form .bt_salvar{
  border: none;
  background: #56b658;
  height: 46px;
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.15s;
  clear: both;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 48%;
  float: left;
  margin-top: 28px;
  position: relative;
  left: auto;
  bottom: auto;
  box-sizing: border-box;
  order: 2;
}
#menu_modal .conteudo_menu form .bt_adicionar:hover,
#menu_modal .conteudo_menu form .bt_salvar:hover{
  background: #449e46;
}
#menu_modal .conteudo_menu form .bt_apagar{
  border: 1.5px solid #e0e0e0;
  background: #fff;
  height: 46px;
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  color: #cb5c30;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  order: 1;
  transition: all 0.15s;
  display: block;
  width: 48%;
  float: right;
  margin-top: 28px;
  position: relative;
  right: auto;
  bottom: auto;
  box-sizing: border-box;
}
#menu_modal .conteudo_menu form .bt_apagar svg{
  stroke: #cb5c30;
}
#menu_modal .conteudo_menu form .bt_apagar:hover{
  background: #cb5c30;
  color: #fff;
  border-color: #cb5c30;
}
#menu_modal .conteudo_menu form .bt_apagar:hover svg{
  stroke: #fff;
}
#menu_modal .submenu form .bt_apagar{
  width: 40%;
}
#menu_modal .menu_clientes form label{
  position: relative;
}
#menu_modal .menu_clientes form label span.carregador_cep{
  display: block;
  padding-left: 25px;
  height: 18px;
  padding-top: 2px;
    background: url(../imagens/carregador.gif) left center no-repeat;
  position: absolute;
  top: 31px;
  right: 20px;
  font-size: 12px;
  color: #d45b5b;
}
#menu_modal .menu_clientes{
  max-height: 85vh;
}
#menu_modal .menu_usuarios{
  max-height: 85vh;
}
#menu_modal .menu_faturas{
  max-height: 85vh;
}
#menu_modal .conteudo_menu .filtro_ativos{
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
#menu_modal .conteudo_menu .filtro_ativos .listagem_ordem{
  margin-left: auto;
}
#menu_modal .conteudo_menu .filtro_ativos_vazio{
  justify-content: flex-end;
  padding: 0;
}
#menu_modal .conteudo_menu .filtro_ativos a{
  position: relative;
  top: 0;
  margin: 0;
  background: #f5f5f5;
  color: #555;
  border-radius: 6px;
  padding: 5px 12px;
  transition: background 0.12s, color 0.12s;
}
#menu_modal .conteudo_menu .filtro_ativos a:hover{
  background: #ecebe6;
  color: #333;
}
#menu_modal .conteudo_menu .filtro_ativos a.selected{
  background: #56b658;
  color: #fff;
}
#menu_modal .conteudo_menu .listagem{
  background: #fafafa;
  margin-top: 8px;
  width: 100%;
  border-radius: 10px;
  position: relative;
  overflow-y: auto;
  max-height: 520px;
  border: 1.5px solid #eee;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
#menu_modal .conteudo_menu .listagem a.item_lista{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  /* Virtualização: browser pula render de itens fora do viewport */
  content-visibility: auto;
  contain-intrinsic-size: 52px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 450;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
}
#menu_modal .conteudo_menu .listagem a.item_lista:last-child{
  border-bottom: none;
}
#menu_modal .conteudo_menu .listagem a.item_lista:nth-child(2n){
  background: transparent;
}
#menu_modal .conteudo_menu .listagem a.item_lista:hover{
  background: #f0f0f0;
  color: #0a0a0a;
}
#menu_modal .conteudo_menu .listagem a.item_lista.selected{
  background: #ebf5eb;
  color: #0a0a0a;
  border-left: 3px solid #56b658;
  padding-left: 11px;
}
#menu_modal .conteudo_menu .listagem a.item_lista.carregando{
  background: #f0c040 url(../imagens/ajax_loader.gif) 96% center no-repeat;
  background-size: 16px;
  color: #333;
}
/* Avatar circular na listagem */
#menu_modal .conteudo_menu .listagem .lista_avatar{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
#menu_modal .conteudo_menu .listagem .lista_avatar_foto{
  background: #eee !important;
}
#menu_modal .conteudo_menu .listagem .lista_avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Info: nome + metadados */
#menu_modal .conteudo_menu .listagem .item_info{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
}
#menu_modal .conteudo_menu .listagem .item_nome{
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#menu_modal .conteudo_menu .listagem .item_meta{
  font-size: 11px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#menu_modal .conteudo_menu .listagem a:hover .item_meta,
#menu_modal .conteudo_menu .listagem a.selected .item_meta{
  color: #777;
}
/* Badge de status (bolinha) */
#menu_modal .conteudo_menu .listagem .item_status{
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
}
#menu_modal .conteudo_menu .listagem .item_status.status_1{
  background: #56b658;
  box-shadow: 0 0 0 2px rgba(86,182,88,0.18);
}
#menu_modal .conteudo_menu .listagem .item_status.status_0{
  background: #d0d0d0;
}
/* Highlight do termo buscado */
#menu_modal .conteudo_menu .listagem mark{
  background: #fff3a6;
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 600;
}
#menu_modal .conteudo_menu .listagem a:hover mark,
#menu_modal .conteudo_menu .listagem a.selected mark{
  background: #fff08a;
  color: #333;
  font-weight: 700;
}
/* Empty state */
#menu_modal .conteudo_menu .listagem_vazia{
  padding: 30px 20px;
  text-align: center;
  color: #888;
  font-size: 13px;
  line-height: 1.5;
}
#menu_modal .conteudo_menu .listagem_vazia strong{
  color: #333;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
#menu_modal .conteudo_menu .listagem_vazia .bt_cadastrar_novo{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  background: #56b658;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
#menu_modal .conteudo_menu .listagem_vazia .bt_cadastrar_novo:hover{
  background: #46a648;
}

/* ====== FASE 2: recentes, hover actions, atalhos, ordenação, preview ====== */

/* Header da listagem: título "Recentes" ou "Todos" + ordenação */
#menu_modal .conteudo_menu .listagem_header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 8px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #999;
}
#menu_modal .conteudo_menu .listagem_ordem,
.pagina_pacientes .listagem_ordem{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 6px;
  cursor: pointer;
  color: #666;
  background: transparent;
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1;
  white-space: nowrap;
}
#menu_modal .conteudo_menu .listagem_ordem:hover,
.pagina_pacientes .listagem_ordem:hover{
  background: #f0f0f0;
  color: #0a0a0a;
}
#menu_modal .conteudo_menu .listagem_ordem svg,
.pagina_pacientes .listagem_ordem svg{
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
#menu_modal .conteudo_menu .listagem_ordem .ordem_label,
.pagina_pacientes .listagem_ordem .ordem_label{
  display: inline-block;
  line-height: 1;
}

/* Recentes: mesma listagem, mas com estrela ao lado */
#menu_modal .conteudo_menu .listagem_recentes{
  background: #fafafa;
  border-radius: 10px 10px 0 0;
  border: 1.5px solid #eee;
  border-bottom: none;
  margin-top: 8px;
}
#menu_modal .conteudo_menu .listagem_recentes + .listagem{
  border-top: none;
  border-radius: 0 0 10px 10px;
  margin-top: 0;
}
#menu_modal .conteudo_menu .listagem_recentes .item_lista{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 14px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
#menu_modal .conteudo_menu .listagem_recentes .item_lista:last-child{
  border-bottom: none;
}
#menu_modal .conteudo_menu .listagem_recentes .item_lista:hover{
  background: #0a0a0a;
  color: #fff;
}
#menu_modal .conteudo_menu .listagem_recentes .lista_avatar{
  width: 30px;
  height: 30px;
  font-size: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  overflow: hidden;
}
#menu_modal .conteudo_menu .listagem_recentes .lista_avatar img{
  width: 100%; height: 100%; object-fit: cover;
}
#menu_modal .conteudo_menu .listagem_recentes .item_info{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
#menu_modal .conteudo_menu .listagem_recentes .item_nome{
  font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#menu_modal .conteudo_menu .listagem_recentes .recente_icon{
  flex-shrink: 0;
  color: #f4a261;
  opacity: 0.7;
}
#menu_modal .conteudo_menu .listagem_recentes .item_lista:hover .recente_icon{
  color: #ffd166;
  opacity: 1;
}

/* Navegação por teclado: item destacado */
#menu_modal .conteudo_menu .listagem a.teclado_focado{
  outline: 2px solid #56b658;
  outline-offset: -2px;
  background: #f0f8f0;
}
#menu_modal .conteudo_menu .listagem a.teclado_focado.selected,
#menu_modal .conteudo_menu .listagem a.teclado_focado:hover{
  background: #0a0a0a;
  outline-color: #56b658;
}

/* Ações rápidas no hover */
#menu_modal .conteudo_menu .listagem .item_acoes{
  flex-shrink: 0;
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
#menu_modal .conteudo_menu .listagem a:hover .item_acoes,
#menu_modal .conteudo_menu .listagem a.teclado_focado .item_acoes{
  display: inline-flex;
}
#menu_modal .conteudo_menu .listagem a:hover .item_status,
#menu_modal .conteudo_menu .listagem a.teclado_focado .item_status{
  display: none;
}
#menu_modal .conteudo_menu .listagem .item_acao{
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #666;
  background: #fff;
  border: 1px solid #e5e5e5;
  transition: background 0.12s, color 0.12s, transform 0.12s, border-color 0.12s;
  text-decoration: none;
  box-sizing: border-box;
  flex-shrink: 0;
}
#menu_modal .conteudo_menu .listagem .item_acao:hover{
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
  transform: scale(1.05);
}
#menu_modal .conteudo_menu .listagem .item_acao.item_acao_wpp:hover{
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
#menu_modal .conteudo_menu .listagem .item_acao svg{
  width: 13px;
  height: 13px;
}
#menu_modal .conteudo_menu .listagem .item_acoes{
  gap: 6px;
}

/* Preview lateral (tooltip informativo) */
#menu_modal .conteudo_menu .listagem .item_preview{
  position: absolute;
  z-index: 9999;
  min-width: 240px;
  max-width: 320px;
  padding: 12px 14px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.15s, transform 0.15s;
}
#menu_modal .conteudo_menu .listagem .item_preview.aberto{
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.item_preview_titulo{
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}
.item_preview_linha{
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 2px 0;
}
.item_preview_linha .lbl{
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 55px;
}
.item_preview_linha .val{
  color: #fff;
  font-weight: 500;
}
.item_preview_linha .val.vazio{
  color: rgba(255,255,255,0.3);
  font-style: italic;
  font-weight: 400;
}

/* Hint de atalho no input de busca */
#menu_modal .conteudo_menu form label .atalho_hint{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #999;
  background: #f0f0f0;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  font-family: 'SF Mono', Monaco, monospace;
  pointer-events: none;
}
#menu_modal .conteudo_menu form label input[type=text]:focus + .atalho_hint,
#menu_modal .conteudo_menu form label input[type=text]:not(:placeholder-shown) + .atalho_hint{
  display: none;
}

/* ====== Página de listagem de pacientes (prontuarios/anamnese/fisioterapia) ====== */
#coluna_direita #financeiro .fluxo_caixa.pagina_pacientes,
.pagina_pacientes{
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 24px 28px 28px 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  max-width: none;
  width: auto;
  margin: 24px 24px 24px 24px;
  box-sizing: border-box;
}
.pagina_pacientes .pacientes_col_esq{
  flex: 0 0 300px;
  position: sticky;
  top: 70px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pagina_pacientes .pacientes_col_dir{
  flex: 1 1 auto;
  min-width: 0;
}
.pagina_pacientes .pacientes_header{
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.pagina_pacientes .pacientes_icon{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f5f5f5;
  color: #0a0a0a;
}
.pagina_pacientes .pacientes_titulo{
  flex: 1;
  min-width: 0;
}
.pagina_pacientes .pacientes_titulo h2{
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.15;
  border: none;
}
.pagina_pacientes .pacientes_titulo h3{
  margin: 2px 0 0 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #888;
  border: none;
}
.pagina_pacientes .pacientes_contador{
  margin-top: 6px;
  padding: 10px 14px;
  background: #fafafa;
  border: 1px dashed #e5e5e5;
  border-radius: 8px;
  font-size: 11px;
  color: #888;
  text-align: center;
}
.pagina_pacientes .pacientes_contador b{
  color: #0a0a0a;
  font-weight: 700;
  font-size: 15px;
  display: block;
  margin-bottom: 2px;
}

/* Busca com ícone embutido */
.pagina_pacientes .pacientes_busca{
  position: relative;
  margin-bottom: 10px;
}
.pagina_pacientes .pacientes_busca_icon{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
  display: inline-flex;
}
.pagina_pacientes .pacientes_input{
  width: 100%;
  height: 44px;
  padding: 0 44px 0 40px;
  border: 1.5px solid #eee;
  border-radius: 10px;
  background: #fafafa;
  font-family: inherit;
  font-size: 13px;
  color: #0a0a0a;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  box-sizing: border-box;
}
.pagina_pacientes .pacientes_input:focus{
  outline: none;
  border-color: #56b658;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(86,182,88,0.12);
}
.pagina_pacientes .pacientes_input::placeholder{
  color: #aaa;
}

/* Filtros - reusa o padrão .filtro_ativos com verde */
.pagina_pacientes .pacientes_filtros{
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin: 0 0 10px 0;
}
.pagina_pacientes .pacientes_filtros{
  flex-wrap: nowrap;
}
.pagina_pacientes .pacientes_filtros a{
  display: inline-block;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  background: #f5f5f5;
  color: #555;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: 6px;
  padding: 6px 6px;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.pagina_pacientes .pacientes_filtros a:hover{
  background: #ecebe6;
  color: #333;
}
.pagina_pacientes .pacientes_filtros a.selected{
  background: #56b658;
  color: #fff;
}
.pagina_pacientes .pacientes_filtros .listagem_ordem{
  margin-left: auto;
}
/* Linha de ordenação separada (abaixo dos filtros) */
.pagina_pacientes .pacientes_ordem_linha{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 0 4px 0;
  border-top: 1px solid #f5f5f5;
}
.pagina_pacientes .pacientes_ordem_lbl{
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #999;
}
.pagina_pacientes .pacientes_ordem_linha .listagem_ordem{
  margin-left: auto;
  background: #fafafa;
  border: 1px solid #ececec;
}

/* Listagem - reusa exatamente o mesmo padrão da modal */
.pagina_pacientes .pacientes_listagem{
  background: #fafafa;
  border: 1.5px solid #eee;
  border-radius: 10px;
  max-height: calc(100vh - 140px);
  min-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
.pagina_pacientes .pacientes_listagem a.item_lista{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 14px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  content-visibility: auto;
  contain-intrinsic-size: 56px;
}
.pagina_pacientes .pacientes_listagem a.item_lista:last-child{
  border-bottom: none;
}
.pagina_pacientes .pacientes_listagem a.item_lista:hover{
  background: #f0f0f0;
  color: #0a0a0a;
}
.pagina_pacientes .pacientes_listagem a.item_lista.selected{
  background: #ebf5eb;
  color: #0a0a0a;
  border-left: 3px solid #56b658;
  padding-left: 11px;
}
.pagina_pacientes .pacientes_listagem .lista_avatar{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.pagina_pacientes .pacientes_listagem .lista_avatar img{
  width: 100%; height: 100%; object-fit: cover;
}
.pagina_pacientes .pacientes_listagem .item_info{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}
.pagina_pacientes .pacientes_listagem .item_nome{
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pagina_pacientes .pacientes_listagem .item_meta{
  font-size: 11px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pagina_pacientes .pacientes_listagem a.item_lista:hover .item_meta,
.pagina_pacientes .pacientes_listagem a.item_lista.selected .item_meta{
  color: #777;
}
.pagina_pacientes .pacientes_listagem mark{
  background: #fff08a;
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 700;
}
.pagina_pacientes .pacientes_listagem .item_status{
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
}
.pagina_pacientes .pacientes_listagem .item_status.status_1{
  background: #56b658;
  box-shadow: 0 0 0 2px rgba(86,182,88,0.18);
}
.pagina_pacientes .pacientes_listagem .item_status.status_0{
  background: #d0d0d0;
}
/* Ações rápidas (reusa estilo da modal) */
.pagina_pacientes .pacientes_listagem .item_acoes{
  flex-shrink: 0;
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.pagina_pacientes .pacientes_listagem a.item_lista:hover .item_acoes,
.pagina_pacientes .pacientes_listagem a.item_lista.teclado_focado .item_acoes{
  display: inline-flex;
}
.pagina_pacientes .pacientes_listagem a.item_lista:hover .item_status,
.pagina_pacientes .pacientes_listagem a.item_lista.teclado_focado .item_status{
  display: none;
}
.pagina_pacientes .pacientes_listagem .item_acao{
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #666;
  background: #fff;
  border: 1px solid #e5e5e5;
  transition: background 0.12s, color 0.12s, transform 0.12s, border-color 0.12s;
  text-decoration: none;
}
.pagina_pacientes .pacientes_listagem .item_acao:hover{
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
  transform: scale(1.05);
}
.pagina_pacientes .pacientes_listagem .item_acao.item_acao_wpp:hover{
  background: #25D366;
  border-color: #25D366;
}
.pagina_pacientes .pacientes_listagem .item_acao svg{
  width: 13px; height: 13px;
}
/* Headers dentro da listagem da modal (recentes + todos) - rolam junto */
#menu_modal .conteudo_menu .listagem > .recentes_header,
#menu_modal .conteudo_menu .listagem > .todos_header{
  padding: 10px 14px 4px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #999;
  background: #fafafa;
}
#menu_modal .conteudo_menu .listagem > .todos_header{
  margin-top: 2px;
}
#menu_modal .conteudo_menu .listagem .item_lista .recente_icon{
  flex-shrink: 0;
  color: #f4a261;
  opacity: 0.75;
  margin-left: 6px;
  display: inline-flex;
}
#menu_modal .conteudo_menu .listagem .item_lista:hover .recente_icon{
  color: #e68a2e;
  opacity: 1;
}

/* Headers dentro da listagem (recentes + todos) - rolam junto */
.pagina_pacientes .pacientes_listagem .recentes_header,
.pagina_pacientes .pacientes_listagem .todos_header{
  padding: 12px 14px 6px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #999;
  background: #fafafa;
}
.pagina_pacientes .pacientes_listagem .todos_header{
  margin-top: 2px;
}
/* Estrela âmbar nos recentes reordenados */
.pagina_pacientes .pacientes_listagem .item_lista .recente_icon{
  flex-shrink: 0;
  color: #f4a261;
  opacity: 0.75;
  margin-left: 6px;
  display: inline-flex;
}
.pagina_pacientes .pacientes_listagem .item_lista:hover .recente_icon{
  color: #e68a2e;
  opacity: 1;
}
.pagina_pacientes .pacientes_listagem a.item_lista.teclado_focado{
  outline: 2px solid #56b658;
  outline-offset: -2px;
  background: #f0f8f0;
}
.pagina_pacientes .pacientes_listagem .listagem_vazia{
  padding: 40px 20px;
  text-align: center;
  color: #888;
  font-size: 13px;
  line-height: 1.5;
}
.pagina_pacientes .pacientes_listagem .listagem_vazia strong{
  color: #333;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

/* Ocultar h2/h3 antigos que possam ter sobrado (defesa) */
.pagina_pacientes > h2,
.pagina_pacientes > h3,
.pagina_pacientes > .panel_caixa{
  display: none;
}

/* Mobile */
@media (max-width: 1024px){
  #coluna_direita #financeiro .fluxo_caixa.pagina_pacientes,
  .pagina_pacientes{
    flex-direction: column;
    gap: 14px;
    margin: 0 15px 15px 15px;
    padding: 16px 16px 20px 16px;
    border-radius: 10px;
    max-width: none;
  }
  .pagina_pacientes .pacientes_col_esq{
    flex: 0 0 auto;
    position: static;
    top: auto;
    width: 100%;
  }
  .pagina_pacientes .pacientes_col_dir{
    width: 100%;
  }
  .pagina_pacientes .pacientes_titulo h2{ font-size: 18px; }
  .pagina_pacientes .pacientes_contador{ display: none; }
  .pagina_pacientes .pacientes_listagem{
    max-height: calc(100vh - 340px);
  }
}

/* ====== EDITOR DE PACIENTE (header sticky, toasts, modal apagar, etc) ====== */
/* Header sticky do paciente - comum a evoluções/anamnese/fisioterapia */
.editor_paciente .paciente_topo{
  position: sticky;
  top: 64px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #ececec;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  margin: 0 -15px 16px -15px;
}
.editor_paciente .paciente_voltar{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #666;
  background: #f5f5f5;
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
}
.editor_paciente .paciente_voltar:hover{
  background: #0a0a0a;
  color: #fff;
}
.editor_paciente .paciente_topo .lista_avatar{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.editor_paciente .paciente_info{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 2px;
}
.editor_paciente .paciente_nome_linha{
  display: flex;
  align-items: center;
  gap: 8px;
}
.editor_paciente .paciente_nome{
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #0a0a0a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.editor_paciente .paciente_status_pill{
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
}
.editor_paciente .paciente_status_pill.status_1{
  background: #56b658;
  box-shadow: 0 0 0 2px rgba(86,182,88,0.2);
}
.editor_paciente .paciente_meta_linha{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #888;
}
.editor_paciente .paciente_dot{ opacity: 0.4; }
.editor_paciente .paciente_modulo_badge{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: #f5f5f5;
  color: #333;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.editor_paciente .paciente_acoes{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.editor_paciente .paciente_acao{
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e5e5;
  color: #666;
  text-decoration: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.12s;
}
.editor_paciente .paciente_acao:hover{
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
  transform: scale(1.05);
}
.editor_paciente .paciente_acao.paciente_acao_wpp:hover{
  background: #25D366;
  border-color: #25D366;
}

/* Ajusta scroll interno para o header sticky */
.editor_paciente #prontuario{
  padding-top: 8px;
}

/* ====== Toast system (compatível com .app_toast já existente) ====== */
.app_toast{
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  min-width: 240px;
  max-width: 380px;
  padding: 12px 16px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.2s, transform 0.2s;
}
.app_toast.toast_show{ opacity: 1; transform: translateX(0); }
.app_toast .toast_icon{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
}
.app_toast.toast_success{ background: #1e5b21; }
.app_toast.toast_success .toast_icon{ background: #7dd77f; color: #093a0b; }
.app_toast.toast_error, .app_toast.toast_erro{ background: #6d1e1e; }
.app_toast.toast_error .toast_icon, .app_toast.toast_erro .toast_icon{ background: #ff8b8b; color: #4a0a0a; }
.app_toast.toast_info .toast_icon{ background: #7ecbff; color: #093856; }
/* Empilhar múltiplos toasts */
.app_toast + .app_toast{ bottom: 82px; }
.app_toast + .app_toast + .app_toast{ bottom: 140px; }

/* ====== Modal de confirmação ====== */
.modal_confirm_overlay{
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(4px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.modal_confirm_overlay.aberto{ opacity: 1; }
.modal_confirm{
  max-width: 400px;
  width: calc(100% - 32px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  padding: 24px;
  transform: scale(0.95);
  transition: transform 0.15s;
}
.modal_confirm_overlay.aberto .modal_confirm{ transform: scale(1); }
.modal_confirm_icon{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(203,92,48,0.12);
  color: #cb5c30;
  margin-bottom: 14px;
}
.modal_confirm h3{
  margin: 0 0 6px 0;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0a0a0a;
}
.modal_confirm p{
  margin: 0 0 20px 0;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}
.modal_confirm_botoes{
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.modal_confirm_botoes button{
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, transform 0.1s;
  font-family: inherit;
}
.modal_confirm_botoes .bt_cancelar{
  background: #f0f0f0;
  color: #333;
}
.modal_confirm_botoes .bt_cancelar:hover{ background: #e0e0e0; }
.modal_confirm_botoes .bt_confirmar{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #cb5c30;
  color: #fff;
  border: none;
  cursor: pointer;
}
.modal_confirm_botoes .bt_confirmar:hover{ background: #b04d25; transform: translateY(-1px); }
.modal_confirm_botoes .bt_confirmar_verde{ background: #56b658 !important; }
.modal_confirm_botoes .bt_confirmar_verde:hover{ background: #46a648 !important; }

/* ====== Autosave indicator ====== */
.autosave_indicator{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #888;
  transition: color 0.15s;
}
.autosave_indicator .autosave_dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.15s;
}
.autosave_indicator.salvando .autosave_dot{
  background: #f0c040;
  animation: autosave_pulse 1s ease-in-out infinite;
}
.autosave_indicator.salvo .autosave_dot{ background: #56b658; }
.autosave_indicator.erro .autosave_dot{ background: #cb5c30; }
.autosave_indicator.salvo{ color: #56b658; }
.autosave_indicator.erro{ color: #cb5c30; }
@keyframes autosave_pulse{
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ====== Botão salvar sticky (aparece quando há alterações) ====== */
.salvar_sticky{
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #56b658;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(86,182,88,0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s;
  font-family: inherit;
}
.salvar_sticky.visivel{ transform: translateX(-50%) translateY(0); }
.salvar_sticky:hover{ background: #46a648; }

/* ====== Timeline de avaliações (transforma table em cards visuais) ====== */
.editor_paciente .avaliacoes,
.editor_paciente .fichas{
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px 24px 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid #ececec;
}
.editor_paciente .avaliacoes h2,
.editor_paciente .fichas h2,
.editor_paciente .exames h2{
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 12px 0;
  padding: 0 0 10px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.editor_paciente h2 .card_icon{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f5f5f5;
  color: #0a0a0a;
}
/* Empurra os botões (exportar/apagar interno) para o canto direito */
.editor_paciente h2 .bt_imprimir_interno,
.editor_paciente h2 .bt_apagar_interno{
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.editor_paciente h2 .bt_imprimir_interno{
  color: #2563eb;
  background: #eff6ff;
}
.editor_paciente h2 .bt_imprimir_interno:hover{
  background: #dbeafe;
  color: #1d4ed8;
}
.editor_paciente h2 .bt_apagar_interno{
  color: #cb5c30;
  background: rgba(203,92,48,0.08);
}
.editor_paciente h2 .bt_apagar_interno:hover{
  background: #cb5c30;
  color: #fff;
}
.editor_paciente .avaliacoes textarea,
.editor_paciente .fichas textarea{
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  border: 1.5px solid #eee;
  border-radius: 10px;
  background: #fafafa;
  font-family: inherit;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.editor_paciente .avaliacoes textarea:focus,
.editor_paciente .fichas textarea:focus{
  outline: none;
  border-color: #56b658;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(86,182,88,0.12);
}
#coluna_direita.editor_paciente #prontuario .avaliacoes input[type=submit],
#coluna_direita.editor_paciente #prontuario .fichas input[type=submit],
.editor_paciente .avaliacoes input[type=submit],
.editor_paciente .fichas input[type=submit]{
  background: #56b658 !important;
  color: #fff !important;
  border: none !important;
  padding: 0 22px !important;
  height: 40px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer;
  margin-top: 10px;
  position: relative !important;
  right: auto !important;
  top: auto !important;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  box-shadow: 0 2px 6px rgba(86,182,88,0.25);
}
#coluna_direita.editor_paciente #prontuario .avaliacoes input[type=submit]:hover,
#coluna_direita.editor_paciente #prontuario .fichas input[type=submit]:hover,
.editor_paciente .avaliacoes input[type=submit]:hover,
.editor_paciente .fichas input[type=submit]:hover{
  background: #46a648 !important;
  box-shadow: 0 4px 12px rgba(86,182,88,0.4);
  transform: translateY(-1px);
}
.editor_paciente .autosave_indicator{
  font-size: 11px;
  color: #888;
  padding: 6px 0;
  display: inline-flex;
}

/* Timeline: transforma <table>.table_padrao dentro de .avaliacoes em cards */
.editor_paciente .avaliacoes > table.table_padrao{
  display: block;
  width: 100%;
  border: none;
  border-collapse: separate;
  margin-top: 18px;
  position: relative;
  padding-left: 0;
}
.editor_paciente .avaliacoes > table.table_padrao > tbody{
  display: block;
  width: 100%;
  position: relative;
}
/* Linha guia vertical - ajustada para começar no primeiro avatar e terminar no último */
.editor_paciente .avaliacoes > table.table_padrao > tbody::before{
  content: '';
  position: absolute;
  left: 16px;
  top: 22px;
  height: calc(100% - 96px);
  width: 2px;
  background: #ececec;
  pointer-events: none;
  z-index: 0;
}
#coluna_direita.editor_paciente .avaliacoes > table.table_padrao > tbody > tr{
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 4px 8px 4px 4px;
  border: none;
  min-height: 40px;
  height: auto !important;
}
.editor_paciente .avaliacoes > table.table_padrao > tbody > tr:not(.sem_borda){
  padding-top: 4px;
  margin-top: 0;
}
/* Timeline entry - cria uma "célula visual" englobando header + descrição */
.editor_paciente .avaliacoes > table.table_padrao > tbody > tr:not(.sem_borda){
  padding-bottom: 6px;
}
/* Header row: só td que NÃO é sem_borda */
#coluna_direita.editor_paciente .avaliacoes > table.table_padrao > tbody > tr:not(.sem_borda) > td,
#coluna_direita.editor_paciente #financeiro .fluxo_caixa .avaliacoes > table.table_padrao > tbody > tr:not(.sem_borda) > td{
  display: inline-flex !important;
  align-items: center;
  padding: 0 !important;
  border: none !important;
  border-top: none !important;
  background: transparent;
  width: auto;
  height: auto;
  font-size: 0 !important;
  color: #999;
  text-transform: none;
  letter-spacing: 0;
  font-weight: normal;
  gap: 4px;
}
/* Botões editar/apagar - gap entre eles */
#coluna_direita.editor_paciente .avaliacoes > table.table_padrao > tbody > tr:not(.sem_borda) > td:last-child{
  gap: 8px !important;
  margin-left: auto;
  padding-right: 4px !important;
  flex-wrap: nowrap;
  white-space: nowrap;
}
/* B (nome/data) preserva tamanho legível */
#coluna_direita.editor_paciente .avaliacoes > table.table_padrao > tbody > tr:not(.sem_borda) > td b,
#coluna_direita.editor_paciente #financeiro .fluxo_caixa .avaliacoes > table.table_padrao > tbody > tr:not(.sem_borda) > td b{
  color: #0a0a0a !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
#coluna_direita.editor_paciente #financeiro .fluxo_caixa .avaliacoes > table.table_padrao > tbody > tr{
  height: auto !important;
}
#coluna_direita.editor_paciente #financeiro .fluxo_caixa .avaliacoes > table.table_padrao > tbody > tr:hover{
  background: transparent !important;
}
.editor_paciente .avaliacoes > table.table_padrao > tbody > tr > td b{
  color: #0a0a0a;
  font-weight: 600;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}
/* Banner "Editando avaliação" */
.editor_paciente .avaliacoes .editando_banner{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff8e1;
  border: 1px solid #ffdc80;
  border-radius: 10px;
  color: #7a5200;
  font-size: 12px;
  margin: 4px 0 12px 0;
}
.editor_paciente .avaliacoes .editando_banner svg{
  color: #b76e00;
  flex-shrink: 0;
}
.editor_paciente .avaliacoes .editando_banner .editando_texto{
  flex: 1 1 auto;
  min-width: 0;
}
.editor_paciente .avaliacoes .editando_banner .editando_texto b{
  color: #5a3d00 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
}
.editor_paciente .avaliacoes .editando_banner .editando_cancelar{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: #fff;
  color: #7a5200;
  border: 1px solid #ffdc80;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.editor_paciente .avaliacoes .editando_banner .editando_cancelar:hover{
  background: #cb5c30;
  color: #fff;
  border-color: #cb5c30;
}
/* Form em modo edição - destaque sutil */
.editor_paciente .avaliacoes form.em_edicao .rt_editor,
.editor_paciente .avaliacoes form.em_edicao textarea{
  border-color: #f0a020 !important;
  box-shadow: 0 0 0 3px rgba(240,160,32,0.15);
}
/* Item da timeline sendo editado - realçado */
.editor_paciente .avaliacoes > table.table_padrao > tbody > tr.em_edicao{
  background: rgba(240,160,32,0.05);
  border-radius: 8px;
}
.editor_paciente .avaliacoes > table.table_padrao > tbody > tr.em_edicao.sem_borda > td{
  border-color: #f0a020 !important;
  background: #fff8e8 !important;
}
.editor_paciente .avaliacoes .tempo_relativo{
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  background: #f0f0f0;
  color: #666;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.2px;
}
.editor_paciente .avaliacoes > table.table_padrao > tbody > tr > td:first-child{
  position: static;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#coluna_direita.editor_paciente .avaliacoes > table.table_padrao tr td span.avatar,
#coluna_direita.editor_paciente #financeiro .fluxo_caixa .avaliacoes > table.table_padrao tr td span.avatar{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  height: 34px !important;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  background: #56b658;
  color: #fff !important;
  overflow: hidden;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 700;
  text-transform: uppercase;
  border: 3px solid #fff !important;
  box-shadow: 0 0 0 1px #e5e5e5, 0 2px 6px rgba(0,0,0,0.08);
  position: relative;
  z-index: 2;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}
/* Cor do avatar da timeline vem inline via style="background:{cor_profissional}" do PHP */
#coluna_direita.editor_paciente .avaliacoes > table.table_padrao tr td span.avatar.avatar_foto{
  background: #eee !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  border: none !important;
  box-shadow: 0 0 0 1px #e5e5e5, 0 2px 6px rgba(0,0,0,0.1);
}
#coluna_direita.editor_paciente .avaliacoes > table.table_padrao tr td span.avatar.avatar_foto img{
  width: 34px !important;
  height: 34px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
/* Célula com ações - empurra para o canto direito */
.editor_paciente .avaliacoes > table.table_padrao > tbody > tr > td:last-child{
  margin-left: auto;
  display: inline-flex;
  gap: 4px;
  padding: 0;
  align-items: center;
}
/* Linha do conteúdo (descricao) */
.editor_paciente .avaliacoes > table.table_padrao > tbody > tr.sem_borda{
  padding: 2px 0 20px 50px;
  margin: 0 0 8px 0;
  border-bottom: none;
  display: block;
  position: relative;
}
#coluna_direita.editor_paciente .avaliacoes > table.table_padrao > tbody > tr.sem_borda > td{
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 16px !important;
  background: #f7f8fa !important;
  border-radius: 10px;
  font-size: 13px !important;
  color: #333 !important;
  line-height: 1.6 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  border: 1px solid #ececec;
}
.editor_paciente .avaliacoes > table.table_padrao > tbody > tr.sem_borda > td:first-child{
  position: static !important;
  width: 100% !important;
  height: auto !important;
  margin-left: 0;
  top: auto;
}
.editor_paciente .avaliacoes > table.table_padrao > tbody > tr.sem_borda > td:first-child::before{
  display: none;
}
.editor_paciente .avaliacoes > table.table_padrao > tbody > tr.sem_borda > td b{
  color: #0a0a0a !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  display: inline !important;
  margin: 0 !important;
}
/* Botões apagar/editar na timeline - pequenos e discretos, só ícones */
#coluna_direita.editor_paciente .avaliacoes > table.table_padrao tr td a.bt_apagar,
#coluna_direita.editor_paciente .avaliacoes > table.table_padrao tr td a.bt_editar{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: static !important;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  text-indent: 0 !important;
  border-radius: 50% !important;
  text-decoration: none !important;
  font-size: 0 !important;
  color: #666 !important;
  background: #f0f0f0 !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.12s;
  box-shadow: none !important;
  transform: none !important;
}
#coluna_direita.editor_paciente .avaliacoes > table.table_padrao tr td a.bt_apagar::before,
#coluna_direita.editor_paciente .avaliacoes > table.table_padrao tr td a.bt_editar::before{
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: currentColor;
}
#coluna_direita.editor_paciente .avaliacoes > table.table_padrao tr td a.bt_editar::before{
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/><path d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/><path d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/></svg>") center/contain no-repeat;
}
#coluna_direita.editor_paciente .avaliacoes > table.table_padrao tr td a.bt_apagar::before{
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/></svg>") center/contain no-repeat;
}
#coluna_direita.editor_paciente .avaliacoes > table.table_padrao tr td a.bt_editar:hover{
  color: #fff !important;
  background: #0a0a0a !important;
  border-color: #0a0a0a !important;
}
#coluna_direita.editor_paciente .avaliacoes > table.table_padrao tr td a.bt_apagar:hover{
  color: #fff !important;
  background: #cb5c30 !important;
  border-color: #cb5c30 !important;
}
/* Empty state (timeline vazia + galerias vazias) */
.editor_paciente .avaliacoes .timeline_vazia,
.editor_paciente .fichas .timeline_vazia,
.editor_paciente .exames .timeline_vazia{
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  text-align: center;
  color: #999;
  font-size: 12px;
  line-height: 1.5;
  background: #fafafa;
  border: 1.5px dashed #e5e5e5;
  border-radius: 10px;
  margin-top: 12px;
  min-height: 140px;
}
.editor_paciente .timeline_vazia svg{
  color: #ccc;
  margin-bottom: 12px;
}
.editor_paciente .timeline_vazia strong{
  display: block;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Anamnese/fisio: lista_links vira chips modernos */
.editor_paciente .fichas .lista_links{
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.editor_paciente .fichas .lista_links li{
  display: block;
}
.editor_paciente .fichas .lista_links li a{
  display: inline-block;
  padding: 6px 12px;
  background: #f5f5f5;
  color: #555;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.editor_paciente .fichas .lista_links li a:hover{
  background: #0a0a0a;
  color: #fff;
}
.editor_paciente .fichas .lista_links li:first-child a{
  background: #56b658;
  color: #fff;
}
.editor_paciente .fichas .lista_links li:first-child a:hover{
  background: #46a648;
}

/* Grid de arquivos/fotos com preview visual */
.editor_paciente .exames{
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px 24px 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid #ececec;
}
.editor_paciente .exames > table.table_padrao{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  border: none;
  border-collapse: separate;
  margin-top: 14px;
  width: 100%;
}
.editor_paciente .exames > table.table_padrao > tbody{
  display: contents;
}
.editor_paciente .exames > table.table_padrao > tbody > tr{
  display: grid;
  grid-template-rows: 110px 1fr;
  position: relative;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  overflow: visible !important;
  transition: border-color 0.12s, transform 0.12s, box-shadow 0.12s;
  min-height: 180px;
}
.editor_paciente .exames > table.table_padrao > tbody > tr:hover{
  border-color: #56b658;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.editor_paciente .exames > table.table_padrao > tbody > tr > td,
#coluna_direita.editor_paciente #financeiro .fluxo_caixa .exames > table.table_padrao > tbody > tr > td{
  padding: 0 !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  background: transparent;
  font-size: 11px;
  color: #666;
  line-height: 1.35;
  grid-column: 1;
  height: auto;
}
#coluna_direita.editor_paciente #financeiro .fluxo_caixa .exames > table.table_padrao > tbody > tr{
  height: auto !important;
}
#coluna_direita.editor_paciente #financeiro .fluxo_caixa .exames > table.table_padrao > tbody > tr:hover{
  background: transparent !important;
}
/* Área de preview/miniatura - sempre 110px de altura */
.editor_paciente .exames > table.table_padrao > tbody > tr > td:first-child{
  grid-row: 1;
  width: 100%;
  height: 110px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 12px 12px 0 0;
  position: relative;
}
.editor_paciente .exames > table.table_padrao > tbody > tr > td:first-child > a,
.editor_paciente .exames > table.table_padrao > tbody > tr > td:first-child > a[href^="arquivos/"]{
  display: flex !important;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.editor_paciente .exames > table.table_padrao > tbody > tr > td:first-child img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Corpo do card - grid template 3 rows */
.editor_paciente .exames > table.table_padrao > tbody > tr{
  grid-template-rows: 110px auto !important;
  min-height: 150px !important;
}
/* Nome do arquivo - oculto */
.editor_paciente .exames > table.table_padrao > tbody > tr > td:nth-child(2){
  display: none !important;
}
/* Data - centralizada no rodapé do card */
.editor_paciente .exames > table.table_padrao > tbody > tr > td:nth-child(3){
  grid-row: 2;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
}
/* Placeholder quando arquivo não existe em disco */
.arquivo_placeholder{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #f5f5f5, #f5f5f5 8px, #eee 8px, #eee 16px);
}
.arquivo_icone{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.arquivo_icone .arquivo_ext{
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: currentColor;
  opacity: 0.8;
}
/* Estado: arquivo ausente em disco (PHP definiu data-existe="0") */
.editor_paciente .exames tr.arquivo_ausente,
.editor_paciente .exames tr[data-existe="0"]{
  opacity: 0.72;
}
.editor_paciente .exames tr.arquivo_ausente:hover,
.editor_paciente .exames tr[data-existe="0"]:hover{
  border-color: #cb5c30;
  transform: none;
}
.editor_paciente .exames tr.arquivo_ausente .arquivo_placeholder,
.editor_paciente .exames tr[data-existe="0"] .arquivo_placeholder{
  background: repeating-linear-gradient(45deg, #fdf0e8, #fdf0e8 8px, #fce6da 8px, #fce6da 16px);
}
.editor_paciente .exames tr.arquivo_ausente .arquivo_icone,
.editor_paciente .exames tr[data-existe="0"] .arquivo_icone{ color: #cb5c30 !important; }
/* Faixa "faltando" no card ausente - dentro da área de preview, canto inferior */
.editor_paciente .exames tr[data-existe="0"] > td:first-child{
  position: relative;
}
.editor_paciente .exames tr[data-existe="0"] > td:first-child::after{
  content: 'FALTANDO EM DISCO';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  background: #cb5c30;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 2;
}

/* Avatar (letra) para arquivos não-imagem */
.editor_paciente .exames > table.table_padrao > tbody > tr > td:first-child .avatar{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a0a0a, #333);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
/* Nome do arquivo - esconde a label "arquivo:" via font-size: 0 */
.editor_paciente .exames > table.table_padrao > tbody > tr > td:nth-child(2) a{
  text-decoration: none;
  color: inherit;
  display: block;
  font-size: 0;
  line-height: 0;
}
.editor_paciente .exames > table.table_padrao > tbody > tr > td:nth-child(2) b{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-all;
  transition: color 0.12s;
}
.editor_paciente .exames > table.table_padrao > tbody > tr:hover > td:nth-child(2) b{
  color: #46a648;
}
/* Data - esconde label "data:" */
.editor_paciente .exames > table.table_padrao > tbody > tr > td:nth-child(3) a{
  text-decoration: none;
  color: inherit;
  font-size: 0;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
}
.editor_paciente .exames > table.table_padrao > tbody > tr > td:nth-child(3) a::before{
  content: '';
  width: 10px;
  height: 10px;
  background: currentColor;
  color: #bbb;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>") center/contain no-repeat;
  display: inline-block;
  flex-shrink: 0;
}
.editor_paciente .exames > table.table_padrao > tbody > tr > td:nth-child(3) b{
  font-weight: 500;
  color: #888;
  font-size: 10px;
  line-height: 1;
}
/* Card precisa deixar a bolinha "sair" do canto */
.editor_paciente .exames > table.table_padrao > tbody > tr{
  overflow: visible !important;
  position: relative;
}
/* <td> container fica invisível - a bolinha se posiciona sozinha */
.editor_paciente .exames > table.table_padrao > tbody > tr > td:last-child{
  position: static;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  display: block;
  height: 0;
  overflow: visible;
}
#coluna_direita.editor_paciente .exames > table.table_padrao tr td a.bt_apagar{
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  text-indent: 0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  background-image: none !important;
  color: #cb5c30 !important;
  text-decoration: none !important;
  border: 1.5px solid #cb5c30 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
  opacity: 1;
  transform: scale(1);
  transition: background 0.12s, color 0.12s, transform 0.15s, border-color 0.12s, box-shadow 0.15s;
  font-size: 0 !important;
  line-height: 1;
  z-index: 10;
}
#coluna_direita.editor_paciente .exames > table.table_padrao tr td a.bt_apagar::before{
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>") center/contain no-repeat;
}
.editor_paciente .exames > table.table_padrao > tbody > tr:hover a.bt_apagar{
  opacity: 1;
  transform: scale(1);
}
#coluna_direita.editor_paciente .exames > table.table_padrao tr td a.bt_apagar:hover{
  background: #cb5c30;
  color: #fff;
  border-color: #cb5c30;
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(203,92,48,0.35);
}
/* Hover no card mostra a bolinha */
.editor_paciente .exames > table.table_padrao > tbody > tr:hover > td:last-child a.bt_apagar{
  opacity: 1;
  transform: scale(1);
}
/* Cards com faixa "FALTANDO EM DISCO" - botão apagar sempre visível */
#coluna_direita.editor_paciente .exames > table.table_padrao > tbody > tr[data-existe="0"] a.bt_apagar{
  opacity: 1;
  transform: scale(1);
}
.editor_paciente .exames > table.table_padrao > tbody > tr[data-existe="0"] > td:last-child{
  top: 32px;
}
.editor_paciente .exames .enviar_arquivos{
  display: block;
  padding: 14px;
  text-align: center;
  background: #fafafa;
  border: 2px dashed #ddd;
  border-radius: 10px;
  color: #888;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  position: relative;
}
.editor_paciente .exames .enviar_arquivos:hover{
  border-color: #56b658;
  background: #f5faf5;
  color: #56b658;
}
.editor_paciente .exames .enviar_arquivos input[type=file]{
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ====== Templates + botão ditar ====== */
.textarea_avancado_controles{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.templates_chips{
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1 1 auto;
}
.templates_lbl{
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-right: 4px;
}
.template_chip{
  display: inline-block;
  padding: 4px 10px;
  background: #f0f0f0;
  color: #555;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.template_chip:hover{
  background: #0a0a0a;
  color: #fff;
}
.bt_ditar{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #666;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.bt_ditar:hover{
  background: #f5f5f5;
  color: #0a0a0a;
  border-color: #ccc;
}
.bt_ditar.ditando{
  background: #cb5c30;
  color: #fff;
  border-color: #cb5c30;
  animation: ditando_pulse 1.4s ease-in-out infinite;
}
@keyframes ditando_pulse{
  0%, 100% { box-shadow: 0 0 0 0 rgba(203,92,48,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(203,92,48,0); }
}

/* ====== Lightbox ====== */
.lightbox_overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  cursor: zoom-out;
}
.lightbox_overlay.aberto{ opacity: 1; }
.lightbox_conteudo{
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}
.lightbox_conteudo img{
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox_fechar{
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  color: #333;
  font-weight: 700;
  transition: background 0.12s, transform 0.12s;
}
.lightbox_fechar:hover{ background: #f0f0f0; transform: rotate(90deg); }

/* ====== Botão duplicar anamnese ====== */
.bt_duplicar_anamnese{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1.5px dashed #56b658;
  color: #56b658;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin: 0 0 14px 0;
  transition: background 0.12s, color 0.12s;
}
.bt_duplicar_anamnese:hover{
  background: #56b658;
  color: #fff;
}

/* ====== Chips Sim/Não ====== */
.sim_nao_chips{
  display: inline-flex;
  gap: 4px;
  margin-top: 6px;
  align-items: center;
}
.sn_chip{
  display: inline-block;
  padding: 5px 12px;
  background: #f5f5f5;
  color: #555;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.sn_chip:hover{
  background: #ecebe6;
  color: #333;
}
.sn_chip.ativo{
  background: #56b658;
  color: #fff;
}
.sn_chip[data-v=""]{
  background: transparent;
  color: #999;
  font-size: 10px;
}
.sn_chip[data-v=""]:hover{
  background: #f0f0f0;
  color: #666;
}

/* ====== Rich text editor mínimo ====== */
.rt_toolbar{
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  background: #fafafa;
  border: 1.5px solid #eee;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}
.rt_toolbar button{
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  transition: background 0.12s, color 0.12s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rt_toolbar button:hover{
  background: #0a0a0a;
  color: #fff;
}
.rt_sep{
  width: 1px;
  height: 18px;
  background: #ddd;
  margin: 0 4px;
}
.rt_editor{
  min-height: 100px;
  padding: 12px 14px;
  border: 1.5px solid #eee;
  border-radius: 0 0 10px 10px;
  background: #fafafa;
  font-family: inherit;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.rt_editor:focus{
  border-color: #56b658;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(86,182,88,0.12);
}
.rt_editor:empty::before{
  content: attr(data-placeholder);
  color: #aaa;
}
.rt_editor h4{
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin: 6px 0;
  color: #0a0a0a;
}
.rt_editor ul{
  margin: 6px 0 6px 20px;
  padding: 0;
}

/* ====== Slider EVA (dor 0-10) ====== */
.eva_slider{
  margin-top: 10px;
  padding: 12px 14px;
  background: #fafafa;
  border-radius: 10px;
  border: 1.5px solid #eee;
}
.eva_slider input[type=range]{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--eva-color, #56b658) 0%, var(--eva-color, #56b658) var(--eva-fill, 0%), #e5e5e5 var(--eva-fill, 0%), #e5e5e5 100%);
  outline: none;
  transition: background 0.15s;
  cursor: pointer;
  margin: 6px 0;
}
.eva_slider input[type=range]::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--eva-color, #56b658);
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.1s, border-color 0.15s;
}
.eva_slider input[type=range]::-webkit-slider-thumb:active{
  cursor: grabbing;
  transform: scale(1.1);
}
.eva_slider input[type=range]::-moz-range-thumb{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--eva-color, #56b658);
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.eva_labels{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.eva_val{
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  transition: color 0.15s;
}
.eva_txt{
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

/* Mobile - header do paciente compacto */
@media (max-width: 1024px){
  .editor_paciente .paciente_topo{
    top: 50px;
    padding: 10px 12px;
    gap: 10px;
    margin: 0 0 12px 0;
  }
  .editor_paciente .paciente_modulo_badge{ display: none; }
  .editor_paciente .paciente_nome{ font-size: 15px; }
  .editor_paciente .paciente_acao{ width: 30px; height: 30px; }
}

/* ================ EDITOR DE ANAMNESE (wizard) ================ */
/* Card wrapper */
.editor_paciente .anamnese_form_wrap{
  padding: 20px 24px 24px 24px;
}
.editor_paciente .anamnese_form_wrap > h2{
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 0 !important;
  padding: 0 0 10px 0 !important;
  border-bottom: 1px solid #f0f0f0;
  font-family: 'Outfit', sans-serif;
  font-size: 18px !important;
  color: #0a0a0a !important;
  font-weight: 700 !important;
}

/* Barra de progresso */
.anamnese_progresso{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 10px;
  margin-bottom: 12px;
}
.anamnese_progresso_barra{
  flex: 1 1 auto;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}
.anamnese_progresso_fill{
  height: 100%;
  background: linear-gradient(90deg, #56b658, #46a648);
  border-radius: 3px;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.anamnese_progresso_texto{
  font-size: 11px;
  color: #666;
  white-space: nowrap;
}
.anamnese_progresso_texto b{
  color: #0a0a0a;
  font-weight: 700;
}

/* Toolbar (busca + modo) */
.anamnese_toolbar{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.anamnese_busca_campo{
  position: relative;
  flex: 1 1 auto;
  min-width: 220px;
  max-width: 340px;
}
.anamnese_busca_campo svg{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}
.anamnese_busca_input{
  width: 100%;
  height: 36px;
  padding: 0 12px 0 36px;
  border: 1.5px solid #eee;
  border-radius: 8px;
  background: #fafafa;
  font-family: inherit;
  font-size: 12px;
  color: #0a0a0a;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.anamnese_busca_input:focus{
  outline: none;
  border-color: #56b658;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(86,182,88,0.12);
}
.anamnese_modo{
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #f0f0f0;
  border-radius: 8px;
}
.anamnese_modo .modo_opt{
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #666;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.anamnese_modo .modo_opt:hover{ color: #0a0a0a; }
.anamnese_modo .modo_opt.selected{
  background: #fff;
  color: #0a0a0a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Tabs do wizard */
.anamnese_tabs{
  display: flex;
  gap: 4px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.anamnese_tab{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  color: #666;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
  position: relative;
}
.anamnese_tab:hover{ background: #f5f5f5; color: #0a0a0a; }
.anamnese_tab.ativa{
  background: #ebf5eb;
  color: #46a648;
}
.anamnese_tab .tab_contador{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  font-size: 9px;
  font-weight: 700;
  background: #eee;
  color: #666;
  border-radius: 8px;
}
.anamnese_tab.ativa .tab_contador{ background: #56b658; color: #fff; }
.anamnese_tab.completa .tab_contador{ background: #56b658; color: #fff; }

/* Secoes do form */
.anamnese_secao{
  display: none;
  animation: secao_fade 0.2s ease;
}
.anamnese_secao.ativa{ display: block; }
@keyframes secao_fade{
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.anamnese_secao .secao_titulo{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0a0a0a;
  border: none;
}
.anamnese_secao .secao_icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #f5f5f5;
  color: #46a648;
  flex-shrink: 0;
}

/* Grid de campos */
.anamnese_secao .form_grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
  margin-bottom: 8px;
}
.anamnese_secao .form_grid.form_grid_3{
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.anamnese_secao .form_grid > label.label_full{
  grid-column: 1 / -1;
}
.anamnese_secao .form_grid > label{
  display: block;
  padding: 6px 0 !important;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  width: 100%;
  margin: 0;
}
.anamnese_secao .form_grid > label input[type=text],
.anamnese_secao .form_grid > label select,
.anamnese_secao .form_grid > label textarea{
  display: block;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  margin-top: 4px;
  border: 1.5px solid #eee;
  border-radius: 8px;
  background: #fafafa;
  font-family: inherit;
  font-size: 13px;
  color: #0a0a0a;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.anamnese_secao .form_grid > label textarea{
  height: auto;
  min-height: 80px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}
.anamnese_secao .form_grid > label input[type=text]:focus,
.anamnese_secao .form_grid > label select:focus,
.anamnese_secao .form_grid > label textarea:focus{
  outline: none;
  border-color: #56b658;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(86,182,88,0.12);
}
.anamnese_secao .form_grid > label input.calc_auto{
  background: #f0f8f0 !important;
  color: #46a648 !important;
  font-weight: 700;
  cursor: not-allowed;
}
/* Campo modificado (não salvo) */
.anamnese_secao .form_grid > label input.modificado,
.anamnese_secao .form_grid > label select.modificado,
.anamnese_secao .form_grid > label textarea.modificado{
  border-color: #f0a020 !important;
  background: #fff8e8 !important;
}
/* Destaque de busca */
.anamnese_secao .form_grid > label.destacado_busca{
  animation: destacado_pulse 1.5s ease;
}
@keyframes destacado_pulse{
  0%, 100% { background: transparent; }
  30% { background: rgba(240,160,32,0.15); border-radius: 6px; }
}

/* Texto de ajuda / dica da seção */
.anamnese_secao .secao_ajuda{
  margin: 0 0 14px 0;
  padding: 10px 14px;
  background: #eff6ff;
  border-left: 3px solid #2563eb;
  border-radius: 6px;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 1.5;
}
/* ==== Boneco de Dor (fisio) - moderno ==== */
.dor_secao .secao_titulo{ justify-content: flex-start; gap: 10px; }
.dor_secao .dor_contador{
  margin-left: auto;
  padding: 4px 10px;
  background: #fff1f0;
  color: #b91c1c;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.dor_toolbar{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #ececec;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.dor_tipos{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1 1 auto;
}
.dor_tipos_lbl{
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #999;
  margin-right: 4px;
}
.dor_tipo{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: #fff;
  color: #666;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.dor_tipo svg{ flex-shrink: 0; }
.dor_tipo:hover{ background: #f5f5f5; }
.dor_tipo.ativo{
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.dor_acoes{ display: inline-flex; gap: 4px; }
.dor_bt{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e5e5e5;
  color: #666;
  text-decoration: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.dor_bt:hover{ background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.dor_bt.bt_limpar:hover{ background: #cb5c30; border-color: #cb5c30; }

.dor_ajuda{ margin: 6px 0 12px 0 !important; }

.dor_layout{
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.dor_layout .figura_dor{
  flex: 0 0 auto;
  position: relative;
  display: inline-block;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 8px;
  background: #fafafa;
  overflow: visible;
  max-width: 100%;
}
.dor_layout .figura_dor img{
  display: block;
  max-width: 100%;
  cursor: crosshair;
  border-radius: 6px;
  user-select: none;
}

/* Ponto marcado no boneco */
.dor_layout .figura_dor .ponto_marcado{
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dc2626;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s;
  z-index: 5;
  box-sizing: border-box;
}
.dor_layout .figura_dor .ponto_marcado:hover,
.dor_layout .figura_dor .ponto_marcado.destacado{
  transform: scale(1.25);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  z-index: 10;
}
/* Anula qualquer estilo legado de <span> dentro da figura_dor */
.dor_layout .figura_dor .ponto_marcado::before,
.dor_layout .figura_dor .ponto_marcado::after{
  display: none !important;
  content: none !important;
}
.dor_layout .figura_dor .ponto_marcado .ponto_num{
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  font-family: 'Outfit', sans-serif;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border: none !important;
  background: transparent !important;
  position: static !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center;
}

/* Lupa de zoom */
.dor_layout .dor_lupa{
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}
.dor_layout .dor_lupa_inner{
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 200% auto;
}

/* Lista lateral de pontos */
.dor_lista{
  flex: 1 1 auto;
  min-width: 220px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dor_lista_header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  padding-bottom: 6px;
  border-bottom: 1px solid #ececec;
  margin-bottom: 4px;
}
.dor_lista_contador{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  background: #dc2626;
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}
.dor_lista_items{
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 400px;
  overflow-y: auto;
}
.dor_lista_vazia{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 10px;
  color: #ccc;
  font-size: 11px;
  text-align: center;
}
.dor_item{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.12s, transform 0.12s;
}
.dor_item:hover{
  border-color: #dc2626;
  transform: translateX(2px);
}
.dor_item_num{
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dor_item_info{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.dor_item_regiao{
  font-size: 12px;
  font-weight: 600;
  color: #0a0a0a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dor_item_meta{
  font-size: 10px;
  color: #888;
}
.dor_item_remover{
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: #cb5c30;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.dor_item_remover:hover{
  background: #cb5c30;
  color: #fff;
}

/* Legenda de intensidade */
.dor_legenda{
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #ececec;
}
.dor_legenda_titulo{
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 6px;
}
.dor_legenda_barras{
  display: flex;
  gap: 4px;
}
.dor_legenda_barras .lg{
  flex: 1 1 0;
  height: 6px;
  border-radius: 3px;
  cursor: help;
}
.dor_legenda_barras .lg_leve{ background: #f59e0b; }
.dor_legenda_barras .lg_media{ background: #ea580c; }
.dor_legenda_barras .lg_forte{ background: #dc2626; }

/* Picker de intensidade (popup fixo no body) */
body > .dor_picker,
.dor_picker{
  position: fixed !important;
  z-index: 10000 !important;
  width: 340px !important;
  min-width: 340px !important;
  max-width: 340px !important;
  background: #fff !important;
  border: 1px solid #ececec !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25) !important;
  padding: 16px 18px 14px 18px !important;
  animation: dor_picker_pop 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box !important;
  line-height: 1.3 !important;
  font-family: 'Inter', sans-serif;
}
@keyframes dor_picker_pop{
  from { opacity: 0; transform: scale(0.9) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.dor_picker,
.dor_picker *{ box-sizing: border-box !important; }
.dor_picker a{
  text-decoration: none !important;
  display: inline-flex;
}
.dor_picker .pk_topo{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.dor_picker .pk_titulo{
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin: 0;
  line-height: 1.3;
}
.dor_picker .pk_titulo2{ margin: 14px 0 8px 0; }
.dor_picker .pk_valor_grande{
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  transition: color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.dor_picker .pk_valor_max{
  font-size: 12px;
  color: #ccc;
  font-weight: 600;
  margin-left: 1px;
}
.dor_picker .pk_escala span{
  white-space: nowrap;
}
.dor_picker .pk_slider{
  display: block;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #fbbf24, #ea580c 50%, #dc2626);
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
}
.dor_picker .pk_slider::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #dc2626;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.dor_picker .pk_slider::-moz-range-thumb{
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid #dc2626; cursor: grab;
}
.dor_picker .pk_valor{
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  min-width: 32px;
  text-align: right;
  flex-shrink: 0;
}
.dor_picker .pk_escala{
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 2px;
  font-size: 9px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}
.dor_picker .pk_escala span{
  display: inline-block;
}
.dor_picker .pk_tipos{
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 6px !important;
}
.dor_picker .pk_tipo{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px !important;
  background: #f5f5f5 !important;
  color: #555 !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.12s, color 0.12s;
}
.dor_picker .pk_tipo svg{ flex-shrink: 0; pointer-events: none; }
.dor_picker .pk_tipo .pk_tipo_svg{ display: inline-flex; pointer-events: none; }
.dor_picker .pk_tipo *{ pointer-events: none; }
.dor_item_meta .dor_tipo_icone{
  display: inline-flex;
  vertical-align: middle;
  margin-right: 3px;
  color: currentColor;
}
.dor_picker .pk_tipo:hover{ background: #ecebe6 !important; }
.dor_picker .pk_tipo.ativo{
  background: #dc2626 !important;
  color: #fff !important;
}
.dor_picker .pk_tipo.ativo svg{ stroke: #fff; }
.dor_picker .pk_botoes{
  display: flex;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.dor_picker .pk_bt{
  flex: 1 1 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.dor_picker .pk_bt svg{ flex-shrink: 0; }
.dor_picker .pk_bt_cancelar{ background: #f0f0f0; color: #666; }
.dor_picker .pk_bt_cancelar:hover{ background: #e0e0e0; }
.dor_picker .pk_bt_ok{ background: #56b658 !important; color: #fff !important; }
.dor_picker .pk_bt_ok:hover{ background: #46a648 !important; }
.dor_picker .pk_bt_remover{ background: #fff1f0; color: #cb5c30; border: 1px solid #ffdcd6; }
.dor_picker .pk_bt_remover:hover{ background: #cb5c30; color: #fff; border-color: #cb5c30; }

/* Mobile */
@media (max-width: 900px){
  .dor_layout{ flex-direction: column; }
  .dor_layout .figura_dor{ width: 100%; }
  .dor_lista{ width: 100%; box-sizing: border-box; }
}
/* Sub-grupos dentro de uma seção */
.anamnese_secao .form_subgrupo{
  margin: 14px 0 4px 0;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #999;
  background: #fafafa;
  border-radius: 6px;
  border-left: 3px solid #ececec;
}
.anamnese_secao .form_subgrupo:first-child{ margin-top: 0; }

/* Checkboxes como pills */
.anamnese_secao .label_check_group{
  display: block;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.anamnese_secao .check_pills{
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.anamnese_secao .check_pills .pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px !important;
  background: #f5f5f5;
  color: #555;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  border: 1px solid transparent;
  width: auto;
  line-height: 1.2;
}
.anamnese_secao .check_pills .pill::before{
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #ccc;
  flex-shrink: 0;
  align-self: center;
  transition: background 0.12s, border-color 0.12s;
  box-sizing: border-box;
  position: relative;
  top: 1px;
}
.anamnese_secao .check_pills .pill:hover::before{
  border-color: #56b658;
}
.anamnese_secao .check_pills .pill:has(input:checked)::before,
.anamnese_secao .check_pills .pill.checked::before{
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346a648' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/10px 10px no-repeat;
  border-color: #fff;
}
.anamnese_secao .check_pills .pill:hover{
  background: #ecebe6;
  color: #333;
}
.anamnese_secao .check_pills .pill input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.anamnese_secao .check_pills .pill:has(input:checked),
.anamnese_secao .check_pills .pill.checked{
  background: #56b658 !important;
  color: #fff !important;
  border-color: #46a648 !important;
}
.anamnese_secao .check_pills .pill:has(input:checked) span,
.anamnese_secao .check_pills .pill.checked span{
  color: #fff !important;
}
.anamnese_secao .check_pills .pill span{
  position: relative;
  top: -2px;
  left: 6px;
}
/* Chips sim/não sobre selects (aplicado via JS) */
.chip_bool{
  display: inline-flex;
  gap: 4px;
  margin-top: 4px;
}
.chip_bool .chip_op{
  display: inline-block;
  padding: 6px 14px;
  background: #f5f5f5;
  color: #555;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.chip_bool .chip_op:hover{ background: #ecebe6; }
.chip_bool .chip_op.ativo_sim{ background: #56b658 !important; color: #fff !important; }
.chip_bool .chip_op.ativo_nao{ background: #cb5c30 !important; color: #fff !important; }

/* Nav wizard (rodapé) */
.anamnese_nav{
  display: flex;
  gap: 8px;
  padding: 20px 0 4px 0;
  margin-top: 16px;
  border-top: 1px solid #f0f0f0;
  align-items: center;
}
.anamnese_nav .bt_step_anterior,
.anamnese_nav .bt_step_proximo{
  height: 40px;
  padding: 0 18px;
  background: #f5f5f5;
  color: #333;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.anamnese_nav .bt_step_anterior:hover,
.anamnese_nav .bt_step_proximo:hover{
  background: #0a0a0a;
  color: #fff;
}
.anamnese_nav .bt_step_anterior:disabled{
  opacity: 0.4;
  cursor: not-allowed;
  background: #f5f5f5;
  color: #999;
}
#coluna_direita.editor_paciente #prontuario .fichas input[type=submit].bt_gravar_anamnese,
.editor_paciente .anamnese_nav .bt_gravar_anamnese{
  margin-left: auto !important;
  margin-top: 0 !important;
  height: 40px !important;
  padding: 0 24px !important;
  background: #56b658 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(86,182,88,0.25) !important;
  position: static !important;
  right: auto !important;
  top: auto !important;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s !important;
}
#coluna_direita.editor_paciente #prontuario .fichas input[type=submit].bt_gravar_anamnese:hover,
.editor_paciente .anamnese_nav .bt_gravar_anamnese:hover{
  background: #46a648 !important;
  box-shadow: 0 4px 12px rgba(86,182,88,0.4) !important;
  transform: translateY(-1px) !important;
}

/* Histórico de anamneses - chips com preview */
.editor_paciente .anamnese_historico .lista_links li a{
  position: relative;
}
.anamnese_historico_preview{
  position: absolute;
  z-index: 100;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 10px 12px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
}
.anamnese_historico_preview.aberto{ opacity: 1; transform: translateY(0); }
.anamnese_historico_preview .preview_linha{
  display: flex;
  gap: 6px;
  padding: 2px 0;
}
.anamnese_historico_preview .preview_lbl{
  color: rgba(255,255,255,0.5);
  min-width: 56px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.anamnese_historico_preview .preview_val{ color: #fff; font-weight: 600; }

/* ================ MEU PLANO (SaaS) ================ */
#coluna_direita .meu_plano_wrap{
  display: block !important;
  width: auto !important;
  max-width: 1200px;
  margin: 24px auto;
  padding: 24px 28px 28px 28px !important;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.mp_header{
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
}
.mp_header_titulo{
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
}
.mp_header_titulo .mp_icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4a261, #e76f51);
  color: #fff;
  flex-shrink: 0;
}
.mp_header_titulo h2{
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0;
  padding: 0;
  border: none;
}
.mp_header_titulo p{ margin: 2px 0 0 0; color: #888; font-size: 12px; }
.mp_header_acoes{
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mp_bt_primario, .mp_bt_secundario{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.mp_bt_primario{
  background: #56b658;
  color: #fff;
  box-shadow: 0 2px 6px rgba(86,182,88,0.25);
}
.mp_bt_primario:hover{
  background: #46a648;
  box-shadow: 0 4px 12px rgba(86,182,88,0.4);
  transform: translateY(-1px);
}
.mp_bt_secundario{
  background: #f5f5f5;
  color: #333;
}
.mp_bt_secundario:hover{
  background: #0a0a0a;
  color: #fff;
}

/* Banner de trial */
.mp_trial_banner{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fdfbf3;
  border: 1px solid #f0e6c8;
  border-left: 3px solid #d4a017;
  border-radius: 8px;
  color: #6b5220;
  font-size: 12.5px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.mp_trial_banner .mp_trial_icon{
  display: inline-flex;
  color: #d4a017;
  flex-shrink: 0;
}
.mp_trial_banner .mp_trial_texto{
  flex: 1 1 auto; min-width: 220px;
  line-height: 1.4;
}
.mp_trial_banner b{ color: #4a3810; font-weight: 700; }
.mp_trial_bt{
  font-size: 12px; font-weight: 600;
  color: #46a648;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
  white-space: nowrap;
}
.mp_trial_bt:hover{ border-bottom-color: #46a648; }

/* Info-box do trial: contadores + sugestão de plano */
.mp_trial_info{
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #eaecef;
  border-left: 3px solid #46a648;
  border-radius: 10px;
  margin: 0 0 24px;
}
.mp_trial_info_bloco{ display: flex; flex-direction: column; gap: 3px; }
.mp_trial_info_lbl{
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #7a828a;
  font-weight: 600;
}
.mp_trial_info_val{ font-size: 14px; color: #333; }
.mp_trial_info_val b{ color: #0a0a0a; font-weight: 700; }
.mp_trial_info_bt{
  margin-left: auto;
  padding: 10px 18px;
  background: #46a648;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-decoration: none;
}
.mp_trial_info_bt:hover{ background: #3d9040; }

/* Grid de cards principais */
.mp_grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 900px){
  .mp_grid{ grid-template-columns: 1fr; }
}
.mp_card{
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.mp_card_topo{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.mp_card_label{
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #999;
}
.mp_card_titulo{
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 4px 0 6px 0;
  padding: 0;
}
.mp_card_sub{
  font-size: 12px;
  color: #666;
  margin: 0 0 14px 0;
  line-height: 1.4;
}
.mp_status{
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mp_status_trial{ background: #fff8e1; color: #b76e00; }
.mp_status_ativa, .mp_status_aprovado{ background: #ebf5eb; color: #2f7f31; }
.mp_status_inadimplente, .mp_status_pendente{ background: #fff1f0; color: #b91c1c; }
.mp_status_cancelada, .mp_status_expirada, .mp_status_recusado, .mp_status_estornado{ background: #f0f0f0; color: #666; }

/* Card do plano - destaque */
.mp_card_plano{
  background: linear-gradient(135deg, #ffffff, #f7faf7);
  border-color: #d5e8d6;
}
.mp_card_plano.mp_card_solo{ background: linear-gradient(135deg, #fff, #f0f7ff); border-color: #d0e3f5; }
.mp_card_plano.mp_card_studio{ background: linear-gradient(135deg, #fff, #f7faf7); border-color: #d5e8d6; }
.mp_card_plano.mp_card_clinica{ background: linear-gradient(135deg, #fff, #f9f5ff); border-color: #e0d0f0; }
.mp_card_preco{
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 10px 0 14px 0;
}
.mp_card_moeda{ font-size: 14px; color: #666; font-weight: 600; }
.mp_card_valor{
  font-family: 'Outfit', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: #0a0a0a;
  line-height: 1;
}
.mp_card_ciclo{ font-size: 13px; color: #888; margin-left: 4px; }
.mp_card_desdobramento{
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px dashed #e5e5e5;
}
.mp_card_desdobramento > div{
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
}
.mp_card_desdobramento span{ font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.mp_card_desdobramento b{ font-size: 13px; color: #333; font-weight: 700; }

/* Card cobrança */
.mp_card_cobranca{
  background: #fafafa;
}
.mp_card_metodo{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: #333;
}
.mp_metodo_lbl{ color: #888; font-size: 11px; }
.mp_cartao b{ font-weight: 700; color: #0a0a0a; margin-right: 4px; }
.mp_sem{ color: #999; font-style: italic; }
.mp_card_link{
  display: inline-flex;
  align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  font-size: 12px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  transition: all 0.15s;
}
.mp_card_link svg{ flex-shrink: 0; }
.mp_card_link:hover{
  background: #dbeafe;
  border-color: #2563eb;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Uso do plano */
.mp_uso{ margin-bottom: 24px; }
.mp_secao_titulo{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 12px 0;
  padding: 0;
}
.mp_secao_link{
  font-size: 11px;
  color: #56b658;
  text-decoration: none;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.mp_secao_link:hover{ text-decoration: underline; color: #46a648; }
.mp_uso_grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mp_uso_item{
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 10px;
}
.mp_uso_item_full{ grid-column: 1 / -1; }
.mp_uso_header{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.mp_uso_lbl{ font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }
.mp_uso_valor{ font-size: 13px; color: #333; }
.mp_uso_valor b{ font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 700; color: #0a0a0a; }
.mp_uso_barra{
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}
.mp_uso_fill{
  height: 100%;
  background: linear-gradient(90deg, #56b658, #46a648);
  border-radius: 4px;
  transition: width 0.3s;
}
.mp_uso_item .mp_uso_fill{ background: linear-gradient(90deg, #56b658, #46a648); }

/* Add-ons ativos */
.mp_addons_ativos{ margin-bottom: 24px; }
.mp_addons_lista{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mp_addon_item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 8px;
}
.mp_addon_nome{ flex: 1 1 auto; font-size: 13px; font-weight: 600; color: #0a0a0a; }
.mp_addon_qtd{ font-size: 12px; color: #888; padding: 2px 8px; background: #fff; border-radius: 4px; }
.mp_addon_valor{ font-size: 13px; font-weight: 700; color: #46a648; }
.mp_vazio{
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 12px;
  background: #fafafa;
  border: 1.5px dashed #e5e5e5;
  border-radius: 8px;
}
.mp_vazio a{ color: #56b658; font-weight: 600; }

/* Faturas recentes */
.mp_faturas_tabela{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.mp_faturas_tabela tr{
  transition: background 0.12s;
}
.mp_faturas_tabela tr:hover{ background: #fafafa; }
.mp_faturas_tabela td{
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  color: #333;
}
.mp_faturas_tabela th:first-child,
.mp_faturas_tabela td:first-child{ padding-left: 24px; }
.mp_faturas_tabela th:last-child,
.mp_faturas_tabela td:last-child{ padding-right: 24px; }
.mp_faturas_tabela tr:last-child td{ border-bottom: none; }
.mp_fatura_data{ color: #666; width: 40%; }
.mp_fatura_valor{ font-weight: 700; color: #0a0a0a; width: 30%; }
.mp_fatura_status{ text-align: right; width: 30%; }

/* Botão voltar do header */
.mp_voltar{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #666;
  background: #f5f5f5;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.mp_voltar:hover{ background: #0a0a0a; color: #fff; }
.mp_icon_azul{ background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; }
.mp_icon_verde{ background: linear-gradient(135deg, #56b658, #46a648) !important; }
.mp_icon_roxo{ background: linear-gradient(135deg, #7c3aed, #6d28d9) !important; }
.mp_icon_azul{ background: linear-gradient(135deg, #60a5fa, #2563eb) !important; }

/* Resumo (cards do topo em Cobranças) */
.mp_resumo_grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 900px){
  .mp_resumo_grid{ grid-template-columns: 1fr 1fr; }
}
.mp_resumo_card{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 10px;
}
.mp_resumo_card.mp_resumo_verde{ background: #ebf5eb; border-color: #d5e8d6; }
.mp_resumo_card.mp_resumo_amarelo{ background: #fff8e1; border-color: #ffdc80; }
.mp_resumo_card.mp_resumo_vermelho{ background: #fff1f0; border-color: #ffdcd6; }
.mp_resumo_lbl{
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
}
.mp_resumo_verde .mp_resumo_lbl{ color: #2f7f31; }
.mp_resumo_amarelo .mp_resumo_lbl{ color: #b76e00; }
.mp_resumo_vermelho .mp_resumo_lbl{ color: #b91c1c; }
.mp_resumo_valor{
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0a0a0a;
  line-height: 1.1;
}
.mp_resumo_sub{
  font-size: 11px;
  color: #888;
}

/* Filtros */
.mp_filtros{
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mp_filtros label{
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #888;
}
.mp_filtros select{
  min-width: 180px;
  padding: 7px 10px;
  border: 1.5px solid #eee;
  border-radius: 7px;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  color: #0a0a0a;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.mp_filtros select:focus{
  outline: none;
  border-color: #56b658;
}

/* Tabela de faturas */
.mp_faturas_lista{
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  overflow: hidden;
}
.mp_tabela_faturas{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.mp_tabela_faturas thead th{
  padding: 12px 14px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  text-align: left;
}
.mp_tabela_faturas thead th.col_valor,
.mp_tabela_faturas thead th.col_acao{ text-align: right; }
.mp_tabela_faturas tbody td{
  padding: 12px 14px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
  color: #333;
  vertical-align: middle;
}
.mp_tabela_faturas tbody tr:last-child td{ border-bottom: none; }
.mp_tabela_faturas tbody tr{ transition: background 0.1s; }
.mp_tabela_faturas tbody tr:hover{ background: #fafafa; }
.mp_tabela_faturas .col_data b{ display: block; font-weight: 700; color: #0a0a0a; font-size: 13px; }
.mp_tabela_faturas .col_data .mp_hora{ display: block; font-size: 10px; color: #999; margin-top: 2px; }
.mp_tabela_faturas .col_desc{ color: #666; }
.mp_tabela_faturas .col_venc{ color: #666; font-size: 12px; }
.mp_tabela_faturas .col_valor{ text-align: right; font-family: 'Outfit', sans-serif; }
.mp_tabela_faturas .col_valor b{ font-size: 14px; color: #0a0a0a; font-weight: 700; }
.mp_tabela_faturas .col_acao{ text-align: right; }
.mp_metodo_tag{
  display: inline-block;
  padding: 3px 8px;
  background: #f0f0f0;
  color: #666;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.mp_sem_acao{ color: #ccc; }

/* Botões de ação da tabela */
.mp_fbt{
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.mp_fbt_pix{ background: #eff6ff; color: #2563eb; border: 1px solid #93c5fd; }
.mp_fbt_pix:hover{ background: #2563eb; color: #fff; border-color: #2563eb; }
.mp_fbt_recibo{ background: #f5f5f5; color: #333; }
.mp_fbt_recibo:hover{ background: #0a0a0a; color: #fff; }
.mp_fbt_retry{ background: #fff1f0; color: #b91c1c; border: 1px solid #ffdcd6; }
.mp_fbt_retry:hover{ background: #cb5c30; color: #fff; border-color: #cb5c30; }

/* Empty state grande */
.mp_vazio_grande{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
  color: #999;
  text-align: center;
}
.mp_vazio_grande svg{ color: #ccc; margin-bottom: 6px; }
.mp_vazio_grande strong{ color: #333; font-size: 14px; }
.mp_vazio_grande span{ font-size: 12px; color: #888; max-width: 400px; line-height: 1.5; }

/* ========== Indicador de uso/limite no header da modal ========== */
.plano_uso_indicador{
  margin: 0 24px 8px 24px;
  padding: 10px 14px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 8px;
  font-size: 12px;
}
.plano_uso_indicador.pui_aviso{
  background: #fff8e1;
  border-color: #ffdc80;
}
.plano_uso_indicador.pui_cheio{
  background: #fff1f0;
  border-color: #ffdcd6;
}
.plano_uso_indicador .pui_linha{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.plano_uso_indicador .pui_texto{
  color: #666;
  font-size: 12px;
}
.plano_uso_indicador.pui_cheio .pui_texto{ color: #b91c1c; }
.plano_uso_indicador.pui_aviso .pui_texto{ color: #7a5200; }
.plano_uso_indicador .pui_texto b{ color: #0a0a0a; font-weight: 700; }
.plano_uso_indicador.pui_cheio .pui_texto b{ color: #7f1d1d; }
.plano_uso_indicador .pui_extras{
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  background: rgba(86,182,88,0.15);
  color: #2f7f31;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}
.plano_uso_indicador .pui_link{
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #56b658;
  text-decoration: none;
}
.plano_uso_indicador .pui_link:hover{ text-decoration: underline; }
.plano_uso_indicador .pui_link_urgente{
  padding: 4px 10px;
  background: #cb5c30;
  color: #fff !important;
  border-radius: 6px;
}
.plano_uso_indicador .pui_link_urgente:hover{ background: #b04d25; text-decoration: none; }
.plano_uso_indicador .pui_trial{ color:#46a648; font-weight:600; font-size:12px; }
.plano_uso_indicador .pui_barra{
  height: 5px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}
.plano_uso_indicador .pui_fill{
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}
.plano_uso_indicador .pui_fill_ok{ background: linear-gradient(90deg, #56b658, #46a648); }
.plano_uso_indicador .pui_fill_aviso{ background: linear-gradient(90deg, #f0a020, #ea580c); }
.plano_uso_indicador .pui_fill_cheio{ background: linear-gradient(90deg, #cb5c30, #b91c1c); }

/* ========== EXTRAS (contratar add-ons) ========== */
.ex_resumo{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(90deg, #fafafa, #f5f5f5);
  border: 1px solid #ececec;
  border-radius: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.ex_resumo_item{
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ex_resumo_lbl{
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
}
.ex_resumo_valor{
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #333;
  line-height: 1;
}
.ex_resumo_valor_total{ color: #46a648; font-size: 28px; }
.ex_resumo_operador{
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #ccc;
}

/* Catálogo */
.ex_catalogo{ margin-bottom: 24px; }
.ex_grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.ex_card{
  position: relative;
  padding: 20px 22px;
  background: #fff;
  border: 1.5px solid #ececec;
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ex_card:hover{
  border-color: #56b658;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.ex_card.ex_ativo_1{
  background: linear-gradient(135deg, #fff, #ebf5eb);
  border-color: #56b658;
  border-width: 2px;
}
.ex_card_topo{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ex_card_icone{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f5f5f5;
  color: #666;
}
.ex_card.ex_card_usuario_extra .ex_card_icone{ background: #eff6ff; color: #2563eb; }
.ex_card.ex_card_storage_extra .ex_card_icone{ background: #f0f9ff; color: #0284c7; }
.ex_card.ex_ativo_1 .ex_card_icone{ background: rgba(86,182,88,0.15); color: #46a648; }
.ex_card_badge_ativo{
  display: none;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #56b658;
  color: #fff;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ex_card.ex_ativo_1 .ex_card_badge_ativo{ display: inline-flex; }
.ex_card_nome{
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 6px 0 0 0;
  padding: 0;
}
.ex_card_desc{
  font-size: 12px;
  color: #666;
  margin: 0 0 8px 0;
  line-height: 1.4;
  min-height: 34px;
}
.ex_card_preco{
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 10px;
}
.ex_moeda{ font-size: 12px; color: #666; font-weight: 600; }
.ex_valor{
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #0a0a0a;
  line-height: 1;
}
.ex_ciclo{ font-size: 12px; color: #888; margin-left: 4px; }

/* Bloco de info quando ativo */
.ex_card_ativo_info{
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(86,182,88,0.08);
  border-radius: 8px;
  margin-top: auto;
}
.ex_card.ex_ativo_1 .ex_card_ativo_info{ display: flex; }
.ex_card.ex_ativo_1 .ex_form_contratar{ display: none; }
.ex_ativo_qtd{
  font-size: 12px;
  color: #333;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(86,182,88,0.2);
}
.ex_ativo_qtd b{ color: #46a648; font-weight: 700; }

/* Forms */
.ex_form_ajustar, .ex_form_remover, .ex_form_contratar{
  display: flex;
  align-items: end;
  gap: 6px;
  margin: 0;
}
.ex_form_contratar{ margin-top: auto; }
.ex_form_ajustar label,
.ex_form_contratar label{
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #888;
  flex: 0 0 auto;
}
.ex_form_ajustar input[type=number],
.ex_form_contratar input[type=number]{
  width: 62px;
  padding: 7px 8px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #0a0a0a;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
}
.ex_form_ajustar input:focus,
.ex_form_contratar input:focus{
  outline: none;
  border-color: #56b658;
  box-shadow: 0 0 0 3px rgba(86,182,88,0.12);
}
.ex_bt{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 7px;
  border: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, transform 0.1s;
  height: 34px;
}
.ex_bt_contratar{
  background: #56b658;
  color: #fff;
  flex: 1 1 auto;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(86,182,88,0.25);
}
.ex_bt_contratar:hover{
  background: #46a648;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(86,182,88,0.35);
}
.ex_bt_ajustar{
  background: #0a0a0a;
  color: #fff;
}
.ex_bt_ajustar:hover{ background: #333; }
.ex_bt_remover{
  background: transparent;
  color: #cb5c30;
  padding: 8px 10px;
}
.ex_bt_remover:hover{ background: #cb5c30; color: #fff; }

/* Info pró-rata */
.ex_info_pro_rata{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 1.4;
}
.ex_info_pro_rata svg{ flex-shrink: 0; color: #2563eb; }
.ex_info_pro_rata b{ color: #1e3a8a; }

/* ============================================================
   Layout de 2 colunas para área de conta (sidebar + conteúdo)
   ============================================================ */
#coluna_direita .conta_layout{
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 20px 20px 20px;
  max-width: 1400px;
}
#coluna_direita .conta_layout .conta_main{
  flex: 1 1 auto;
  min-width: 0;
}
#coluna_direita .conta_layout .conta_main > #financeiro{
  padding: 0;
}
#coluna_direita .conta_layout .conta_main .fluxo_caixa.meu_plano_wrap{
  margin: 0;
  max-width: none;
  width: 100%;
}

.conta_sidebar{
  flex: 0 0 220px;
  position: sticky;
  top: 86px;
  align-self: flex-start;
  max-height: calc(100vh - 106px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 18px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  z-index: 5;
}
.conta_sidebar_titulo{
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #999;
  padding: 4px 12px 10px;
}
.conta_sidebar_titulo_2{ margin-top: 18px; padding-top: 14px; border-top: 1px solid #f0f0f0; }

.conta_menu{
  list-style: none;
  padding: 0;
  margin: 0;
}
.conta_menu li{ margin: 0; }
.conta_menu li a,
.conta_menu li .conta_menu_soon{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #555;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.conta_menu li a:hover{
  background: #f5f7fa;
  color: #0a0a0a;
}
.conta_menu li a svg{ color: #888; flex-shrink: 0; transition: color 0.15s; }
.conta_menu li a:hover svg{ color: #46a648; }

.conta_menu li.ativo a{
  background: #ebf5eb;
  color: #2f7f31;
  font-weight: 600;
}
.conta_menu li.ativo a svg{ color: #46a648; }

.conta_menu_disabled li .conta_menu_soon{
  color: #bbb;
  cursor: not-allowed;
}
.conta_menu_disabled li .conta_menu_soon svg{ color: #d0d0d0; }

.conta_menu_soon_item .conta_menu_soon{
  color: #bbb;
  cursor: not-allowed;
  position: relative;
}
.conta_menu_soon_item .conta_menu_soon svg{ color: #d0d0d0; }
.conta_menu_soon_item .conta_menu_soon span{ flex: 1; }
.conta_menu_soon_tag{
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f0f0f0;
  color: #999;
  padding: 2px 6px;
  border-radius: 999px;
}

@media (max-width: 900px){
  #coluna_direita .conta_layout{ flex-direction: column; padding: 12px; }
  .conta_sidebar{ position: static; width: 100%; flex: 0 0 auto; }
  .conta_menu{ display: flex; flex-wrap: wrap; gap: 4px; }
  .conta_menu li{ flex: 1 1 auto; }
  .conta_sidebar_titulo_2, .conta_menu_disabled{ display: none; }
}

/* ============================================================
   Trocar de Plano (tp_*)
   ============================================================ */
#coluna_direita .meu_plano_wrap .tp_ciclo_toggle{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f3f5;
  border-radius: 999px;
  padding: 4px;
  margin: 20px 0 28px;
}
.tp_ciclo_toggle .tp_ciclo_opt{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.tp_ciclo_toggle .tp_ciclo_opt:hover{ color: #0a0a0a; }
.tp_ciclo_toggle .tp_ciclo_opt.ativo{
  background: #fff;
  color: #0a0a0a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.tp_economia_tag{
  background: rgba(86,182,88,0.15);
  color: #2f7f31;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tp_planos_grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 1100px){
  .tp_planos_grid{ grid-template-columns: 1fr; }
}

.tp_card{
  position: relative;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.tp_card:hover{
  border-color: #c8d0d8;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.tp_card.tp_atual_1{
  border-color: #46a648;
  background: linear-gradient(180deg, #f6fbf6 0%, #fff 100%);
}
.tp_card.tp_recomendado_1{
  border-color: #0a0a0a;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}
.tp_card.tp_recomendado_1.tp_atual_1{
  border-color: #46a648;
}

.tp_label_atual, .tp_label_recomendado{
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.tp_label_atual{ background: #46a648; color: #fff; }
.tp_label_recomendado{ background: #0a0a0a; color: #fff; }
.tp_card.tp_atual_1 .tp_label_recomendado{ top: 18px; }

.tp_card_head{ margin-bottom: 18px; }
.tp_card_nome{
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 6px;
  text-transform: capitalize;
}
.tp_card_desc{
  font-size: 12px;
  color: #888;
  margin: 0;
  line-height: 1.4;
}

.tp_card_preco{
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 18px;
}
.tp_preco_anual{ display: none; }
.tp_planos_grid.mostrar_anual .tp_preco_mensal{ display: none; }
.tp_planos_grid.mostrar_anual .tp_preco_anual{ display: block; }
.tp_preco_mensal .tp_moeda{
  font-size: 14px; color: #666; font-weight: 600; vertical-align: top;
  margin-right: 4px; position: relative; top: 8px;
}
.tp_preco_mensal .tp_valor{
  font-size: 36px; font-weight: 800; color: #0a0a0a; line-height: 1;
}
.tp_preco_mensal .tp_ciclo_txt{
  font-size: 13px; color: #888; margin-left: 4px;
}
.tp_preco_anual{ line-height: 1.5; }
.tp_valor_anual{ display: block; font-size: 22px; color: #0a0a0a; }
.tp_valor_anual b{ font-size: 32px; font-weight: 800; }
.tp_valor_anual_total{
  display: block; font-size: 11px; color: #888; margin-top: 4px;
}

.tp_card_features{
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.tp_card_features li{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #333;
  padding: 6px 0;
}
.tp_card_features li svg{
  flex-shrink: 0;
  color: #46a648;
}
.tp_card_features b{ color: #0a0a0a; }

.tp_card_botao{ margin-top: auto; }
.tp_botao_anual{ display: none; }
.tp_planos_grid.mostrar_anual .tp_botao_mensal{ display: none; }
.tp_planos_grid.mostrar_anual .tp_botao_anual{ display: block; }
.tp_bt{
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
}
.tp_bt_escolher{
  background: #0a0a0a;
  color: #fff;
}
.tp_bt_escolher:hover{
  background: #2a2a2a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.tp_card.tp_recomendado_1 .tp_bt_escolher{
  background: #46a648;
}
.tp_card.tp_recomendado_1 .tp_bt_escolher:hover{
  background: #3a8f3c;
}
.tp_bt_atual{
  background: #ebf5eb;
  color: #2f7f31;
  cursor: default;
}
.tp_bt_bloqueado{
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}
.tp_extras_tag{
  display: block;
  background: #fff8e1;
  border: 1px solid #f0e6c8;
  color: #6b5220;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin: 6px 0 12px;
  line-height: 1.4;
}

.tp_info_extras{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #f8f9fb;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  font-size: 13px;
  color: #555;
  margin-top: 8px;
}
.tp_info_extras svg{ flex-shrink: 0; color: #666; }
.tp_info_extras a{ color: #46a648; font-weight: 600; text-decoration: none; }
.tp_info_extras a:hover{ text-decoration: underline; }

.tp_erro_msg{
  padding: 14px 18px;
  background: #fff1f0;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 10px;
  font-size: 13px;
  margin: 16px 0;
}

/* ============================================================
   Meus dados (md_*)
   ============================================================ */

.md_flash{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin: 16px 0 4px;
  font-weight: 500;
}
.md_flash svg{ flex-shrink: 0; }
.md_flash_ok{ background: #ebf5eb; color: #2f7f31; border: 1px solid #cfe6cf; }
.md_flash_erro{ background: #fff1f0; color: #b91c1c; border: 1px solid #fca5a5; }

.md_secao{
  padding: 24px 0;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}
.md_secao:first-of-type{ border-top: none; }

.mp_secao_sub{
  margin: 4px 0 20px;
  color: #888;
  font-size: 13px;
}

.md_subsecao{
  margin: 28px 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #0a0a0a;
}

.md_grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 16px;
}
.md_col_2{ grid-column: span 2; }
.md_col_3{ grid-column: span 3; }
.md_col_4{ grid-column: span 4; }
@media (max-width: 900px){
  .md_grid{ grid-template-columns: repeat(2, 1fr); }
  .md_col_2, .md_col_3, .md_col_4{ grid-column: span 2; }
}

.md_campo{ display: flex; flex-direction: column; }
.md_campo label{
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #666;
  margin-bottom: 6px;
}
.md_campo input,
.md_campo select{
  padding: 10px 12px;
  border: 1px solid #d8dde3;
  border-radius: 8px;
  font-size: 14px;
  color: #0a0a0a;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.md_campo select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.md_campo input:focus,
.md_campo select:focus{
  outline: none;
  border-color: #46a648;
  box-shadow: 0 0 0 3px rgba(70,166,72,0.12);
}
.md_campo input::placeholder{ color: #b5b9c0; }
.md_campo{ position: relative; }
.md_carregador_cep{
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 11px;
  color: #46a648;
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}
.md_campo input.md_readonly,
.md_campo input:disabled{
  background: #f5f7fa;
  color: #6b7280;
  cursor: not-allowed;
  border-color: #e5e7eb;
}

.md_senha_regras{
  list-style: none;
  padding: 8px 12px;
  margin: 8px 0 0;
  background: #f8f9fb;
  border-radius: 6px;
  font-size: 12px;
}
.md_senha_regras li{
  padding: 2px 0 2px 20px;
  color: #888;
  position: relative;
}
.md_senha_regras li:before{
  content: '○';
  position: absolute;
  left: 4px;
  top: 2px;
  color: #ccc;
}
.md_senha_regras li.ok{ color: #2f7f31; }
.md_senha_regras li.ok:before{ content: '✓'; color: #46a648; font-weight: 700; }

.md_senha_match{
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
}
.md_senha_match.ok{ background: #ebf5eb; color: #2f7f31; }
.md_senha_match.nok{ background: #fff1f0; color: #b91c1c; }

.md_acoes{
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}
.md_bt{
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: inherit;
}
.md_bt_salvar{
  background: #46a648;
  color: #fff;
}
.md_bt_salvar:hover{
  background: #3a8f3c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(70,166,72,0.25);
}

/* ============================================================
   Dados de pagamento (pg_*)
   ============================================================ */
.pg_metodo_atual{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin: 20px 0 8px;
  border: 1px solid;
}
.pg_metodo_atual b{ font-weight: 700; }
.pg_metodo_atual_pix{ background: #ebf5eb; color: #2f7f31; border-color: #cfe6cf; }
.pg_metodo_atual_pix svg{ color: #46a648; }
.pg_metodo_atual_cartao{ background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.pg_metodo_atual_cartao svg{ color: #2563eb; }

.pg_tabs{
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e5e7eb;
  margin: 12px 0 24px;
}
.pg_tab{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: #666;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.pg_tab svg{ color: #999; }
.pg_tab:hover{ color: #0a0a0a; }
.pg_tab.ativo{ color: #46a648; border-bottom-color: #46a648; }
.pg_tab.ativo svg{ color: #46a648; }

.pg_badge_padrao{
  display: none;
  font-size: 9px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase;
  background: #46a648; color: #fff;
  padding: 2px 7px; border-radius: 999px;
}
.pg_tab.pg_tab_padrao_1 .pg_badge_padrao{ display: inline-block; }

/* Esconde o "Definir como padrão" quando o método já é o padrão atual */
.pg_definir_padrao{ display: block; }
.meu_plano_wrap:has(.pg_tabs[data-metodo-ativo="pix"]) .pg_pane_pix .pg_definir_padrao{ display: none; }
.meu_plano_wrap:has(.pg_tabs[data-metodo-ativo="cartao"]) .pg_definir_padrao_cartao{ display: none; }
.pg_pane{ display: none; }
.pg_pane.ativo{ display: block; }

.pg_pix_card{
  display: flex;
  gap: 32px;
  padding: 24px;
  background: #f8f9fb;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  margin: 20px 0;
}
.pg_pix_qr{ flex: 0 0 240px; background: #fff; padding: 12px; border-radius: 8px; border: 1px solid #e5e7eb; }
.pg_pix_qr img{ width: 100%; display: block; }
.pg_pix_status{
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 8px 10px;
  background: #fff8e1; color: #b76e00;
  border-radius: 6px; font-size: 12px; font-weight: 600;
}
.pg_pix_status_ind{
  width: 8px; height: 8px; border-radius: 50%; background: #f5a623;
  animation: pg_pulse 1s ease-in-out infinite;
}
@keyframes pg_pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.pg_pix_status.pago{ background: #ebf5eb; color: #2f7f31; }
.pg_pix_status.pago .pg_pix_status_ind{ background: #46a648; animation: none; }
.pg_pix_info{ flex: 1; min-width: 0; }
.pg_pix_valor{ font-size: 32px; font-weight: 800; color: #0a0a0a; margin-bottom: 4px; }
.pg_pix_expira{ font-size: 13px; color: #888; margin-bottom: 18px; }
.pg_pix_info label{ display:block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:#666; margin-bottom:6px; }
.pg_pix_copiacola{
  width: 100%; padding: 10px 12px; border: 1px solid #d8dde3; border-radius: 8px;
  font-family: monospace; font-size: 11px; color: #333; background: #fff;
  resize: none; margin-bottom: 10px;
}
.pg_pix_txid{ font-size: 11px; color: #999; margin-top: 12px; }
.pg_pix_txid code{ font-family: monospace; color: #666; }

.pg_vazio{
  padding: 40px; text-align: center; background: #f8f9fb;
  border: 1px dashed #d0d5dc; border-radius: 12px; margin: 20px 0;
}
.pg_vazio p{ color: #666; margin: 0 0 16px; }

.pg_preview{
  background: #f8f9fb; border: 1px solid #eef0f3; border-radius: 12px;
  padding: 18px 20px; margin: 20px 0 16px;
}

.pg_em_dia{
  background: linear-gradient(180deg, #f6fbf6 0%, #fff 100%);
  border: 1px solid #cfe6cf; border-radius: 12px;
  padding: 32px 28px; margin: 20px 0; text-align: center;
}
.pg_em_dia_icone{
  width: 56px; height: 56px; border-radius: 50%;
  background: #46a648; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.pg_em_dia h3{ margin: 0 0 6px; font-size: 20px; color: #2f7f31; font-weight: 700; }
.pg_em_dia > p{ margin: 0 0 20px; color: #556; font-size: 13px; }
.pg_em_dia_info{
  background: #fff; border: 1px solid #eef0f3; border-radius: 10px;
  padding: 14px 20px; max-width: 480px; margin: 0 auto;
}
.pg_em_dia_linha{
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px dashed #e5e7eb; font-size: 13px;
}
.pg_em_dia_linha:last-child{ border-bottom: none; }
.pg_em_dia_linha span{ color: #888; }
.pg_em_dia_linha b{ color: #0a0a0a; font-weight: 700; }
.pg_em_dia_dica{
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 480px; margin: 18px auto 0;
  padding: 10px 14px; border-radius: 8px;
  background: #eff6ff; border: 1px solid #bfdbfe;
  color: #1e40af; font-size: 12px; text-align: left;
}
.pg_em_dia_dica svg{ flex-shrink: 0; color: #2563eb; }
.pg_em_dia_dica span{ line-height: 1.4; }
.pg_preview_linha{
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px dashed #e5e7eb;
  font-size: 13px;
}
.pg_preview_linha:last-child{ border-bottom: none; }
.pg_preview_linha span{ color: #888; }
.pg_preview_linha b{ color: #0a0a0a; font-weight: 700; }
.pg_preview_linha b.pg_preview_valor{ color: #46a648; font-size: 18px; }

.pg_form_gerar{ margin-bottom: 16px; }
.pg_bt_gerar{ display: inline-flex; align-items: center; gap: 8px; }
.pg_bt_gerar[disabled]{ opacity: 0.5; cursor: not-allowed; }

.pg_aviso_config{ display: none; }
.pg_config_ok_0 .pg_aviso_config{ display: flex; }
.pg_config_ok_0 .pg_form_gerar,
.pg_config_ok_0 .pg_gerar_novamente,
.pg_config_ok_0 .pg_preview{ opacity: 0.4; pointer-events: none; }

.pg_gerar_novamente{ margin-top: 0; }
.pg_pix_acoes_extra{
  display: flex; gap: 10px; align-items: center;
  margin-top: 16px;
}
.pg_bt_simular{
  background: repeating-linear-gradient(45deg, #fff3cd, #fff3cd 8px, #fef0b0 8px, #fef0b0 16px);
  color: #8a6d3b; border: 1px dashed #d4a017;
  display: inline-flex; align-items: center; gap: 6px;
}
.pg_bt_simular:hover{ background: #fef0b0; }
.pg_bt_secundario{
  background: #fff; color: #46a648; border: 1px solid #46a648;
}
.pg_bt_secundario:hover{ background: #ebf5eb; }
.pg_bt_perigo{
  background: #fff; color: #b91c1c; border: 1px solid #fca5a5;
}
.pg_bt_perigo:hover{ background: #fff1f0; }

.pg_definir_padrao{ margin-top: 16px; }
.pg_link_padrao{
  background: none; border: none; color: #2563eb; cursor: pointer;
  font-size: 13px; text-decoration: underline; font-family: inherit; padding: 0;
}

.pg_cartao_salvo{ display: flex; align-items: center; gap: 20px; padding: 20px; background: #f8f9fb; border-radius: 12px; margin: 20px 0; }
.pg_cartao_visual{
  flex: 0 0 260px; padding: 24px; border-radius: 12px;
  background: linear-gradient(135deg, #1e293b, #0f172a); color: #fff;
}
.pg_cartao_bandeira{ font-size: 12px; font-weight: 700; letter-spacing: 1px; opacity: 0.7; margin-bottom: 24px; }
.pg_cartao_num{ font-size: 18px; font-family: monospace; letter-spacing: 2px; }
.pg_cartao_acoes{ display: flex; gap: 8px; flex: 1; justify-content: flex-end; }

.pg_form_cartao{ margin: 20px 0; }
.pg_card_brand_ind{
  position: absolute; right: 12px; top: 32px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.6px;
  color: #666; background: #f0f0f0; padding: 3px 8px; border-radius: 4px;
}
.pg_card_status{
  padding: 10px 14px; border-radius: 8px; font-size: 13px;
  margin: 12px 0; font-weight: 500;
}
.pg_card_status.ok{ background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.pg_card_status.erro{ background: #fff1f0; color: #b91c1c; border: 1px solid #fca5a5; }
.pg_card_footer{
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #888; margin-top: 12px; justify-content: flex-end;
}
.pg_card_footer svg{ color: #46a648; }

/* ============================================================
   Banner de bloqueio de assinatura
   ============================================================ */
.saas_bloqueio_banner{
  position: fixed;
  top: 66px; left: 205px; right: 0;
  z-index: 200;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  background: #fef3c7; color: #8a4b00;
  border-bottom: 1px solid #f5d78e;
  font-size: 13px; font-weight: 500;
}
.saas_bloqueio_banner svg{ flex-shrink: 0; color: #b45309; }
.saas_bloqueio_banner b{ font-weight: 700; }
.saas_bloqueio_banner > span{ flex: 1; min-width: 0; }
.saas_bloqueio_cta{
  background: #0a0a0a; color: #fff !important; text-decoration: none;
  padding: 6px 14px; border-radius: 6px; font-weight: 700; font-size: 12px;
  transition: background 0.15s;
}
.saas_bloqueio_cta:hover{ background: #2a2a2a; }
.saas_bloqueio_trial_expirado,
.saas_bloqueio_expirada,
.saas_bloqueio_sem_assinatura{ background: #fef3c7; color: #8a4b00; border-color: #f5d78e; }
.saas_bloqueio_trial_expirado svg,
.saas_bloqueio_expirada svg,
.saas_bloqueio_sem_assinatura svg{ color: #b45309; }
.saas_bloqueio_inadimplente,
.saas_bloqueio_cancelada,
.saas_bloqueio_tenant_inativo{ background: #fee2e2; color: #7f1d1d; border-color: #fca5a5; }
.saas_bloqueio_inadimplente svg,
.saas_bloqueio_cancelada svg,
.saas_bloqueio_tenant_inativo svg{ color: #b91c1c; }

/* Compensa o espaço do banner no conteúdo abaixo */
body:has(.saas_bloqueio_banner) #coluna_direita{
  padding-top: 108px;
}

/* Bloqueado: esconde itens operacionais do menu principal - deixa só conta + sair */
body:has(.saas_bloqueio_banner) #coluna_esquerda ul.menu li.bt_index,
body:has(.saas_bloqueio_banner) #coluna_esquerda ul.menu li.bt_financeiro,
body:has(.saas_bloqueio_banner) #coluna_esquerda ul.menu li.bt_profissionais,
body:has(.saas_bloqueio_banner) #coluna_esquerda ul.menu li.bt_clientes,
body:has(.saas_bloqueio_banner) #coluna_esquerda ul.menu li.bt_prontuarios,
body:has(.saas_bloqueio_banner) #coluna_esquerda ul.menu li.bt_anamnese,
body:has(.saas_bloqueio_banner) #coluna_esquerda ul.menu li.bt_fisioterapia,
body:has(.saas_bloqueio_banner) #coluna_esquerda ul.menu li.bt_treinos{
  display: none !important;
}
/* Também esconde a barra superior de profissionais (agenda) */
body:has(.saas_bloqueio_banner) #barra_profissionais{ display: none; }

/* Sem permissão */
.saas_sem_permissao{
  padding: 60px 40px !important;
  text-align: center;
  max-width: 600px;
  margin: 40px auto !important;
}
.saas_sem_permissao h2{ color: #0a0a0a; margin-bottom: 12px; }
.saas_sem_permissao p{ color: #666; }

.print header, .print #coluna_esquerda, .print .fichas ul{
  display: none;
}
.print #coluna_direita{
  padding: 0;
}
.print #coluna_direita #prontuario .avaliacoes textarea, .print #coluna_direita #prontuario .fichas textarea{
  border: 1px solid #999;
  height: 50px;
}
.print .bt_apagar_interno, .print .bt_imprimir_interno{
  display: none;
}
.print .table_padrao{
  background: #fff;
  padding: 30px;
}

/* ============================================================
   Notificações - segue padrão de meu_plano
   ============================================================ */
.notif_filtros{
  display:flex;
  gap:2px;
  margin:20px 0 16px;
  border-bottom:1px solid #eaecef;
}
.notif_filtros .notif_filtro{
  padding:10px 18px;
  text-decoration:none;
  color:#7a828a;
  font-size:13px;
  font-weight:600;
  border-bottom:2px solid transparent;
  margin-bottom:-1px;
  transition:all .12s;
}
.notif_filtros .notif_filtro:hover{ color:#0a0a0a; }
.notif_filtros .notif_filtro.selecionado{
  color:#0a0a0a;
  border-bottom-color:#46a648;
}

.notif_lista{
  background:#fff;
  border:1px solid #eaecef;
  border-radius:10px;
  overflow:hidden;
}
.notif_item{
  display:flex;
  gap:14px;
  padding:16px 20px;
  border-bottom:1px solid #f2f4f7;
  text-decoration:none;
  color:inherit;
  transition:background .1s;
}
.notif_item:last-child{ border-bottom:none; }
.notif_item:hover{ background:#fafbfc; }
.notif_dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#46a648;
  margin-top:7px;
  flex-shrink:0;
}
.notif_item.lida .notif_dot{ background:transparent; }
.notif_conteudo{ flex:1; min-width:0; }
.notif_titulo{
  font-weight:600;
  font-size:14px;
  color:#0a0a0a;
  margin-bottom:3px;
}
.notif_corpo{
  font-size:13px;
  color:#555;
  line-height:1.5;
}
.notif_quando{
  font-size:11px;
  color:#999;
  margin-top:6px;
  text-transform:uppercase;
  letter-spacing:.5px;
  font-weight:600;
}
.notif_item.lida .notif_titulo,
.notif_item.lida .notif_corpo{ color:#8a8f96; }

.notif_empty{
  padding:60px 24px;
  text-align:center;
  color:#8a8f96;
}
.notif_empty svg{ margin-bottom:14px; }
.notif_empty h3{
  font-family:'Outfit',sans-serif;
  font-size:16px;
  color:#333;
  margin:0 0 6px;
  font-weight:600;
}
.notif_empty p{
  margin:0;
  font-size:13px;
  max-width:360px;
  margin-left:auto;
  margin-right:auto;
  line-height:1.5;
}
