/* ============================== */
/* ✅ Layout e região principal  */
/* ============================== */

.layout-content {
  margin-left: 0 !important;
  padding-top: 20px;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f7f7f7;
  margin: 0;
  padding-top: 90px !important; /* espaço para cabeçalho fixo */
}

body.toolbar-fixed {
  padding-top: 140px !important;
}

/* ============================== */
/* ✅ Cabeçalho Glassmorphism    */
/* ============================== */

.cabecalho-glass {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-glass {
  height: 98px;
  max-width: 260px;
  object-fit: contain;
}

.titulo-glass {
  display: flex;
  flex-direction: column;
  color: #2c3e50;
}

.titulo-principal {
  font-size: 18px;
  font-weight: 700;
}

.subtitulo-principal {
  font-size: 13px;
  color: #444;
}

/* ============================== */
/* ✅ Estilo geral               */
/* ============================== */

h1, h2 {
  color: #333;
}

.page-title, h1.title {
  font-size: 26px;
  font-weight: 700;
  margin: 14px 0 18px;
  color: #222;
}

.breadcrumb {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}




/* ============================== */
/* ✅ Bloco do paciente         */
/* ============================== */

.paciente-cabecalho {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 2px;
  background: #fff;
  padding: 2px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-left: auto;
  margin-right: auto;
}

.foto-paciente {
  flex: 0 0 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: white;
  max-width: 180px;
}

.foto-paciente img {
  display: block;
  width: 0%;
  height: auto;
}

.dados-paciente {
  flex: 1 1 300px;
  min-width: 250px;
}

.dados-paciente h1 {
  margin-top: 0;
  margin-bottom: 0px;
  font-size: 1.8rem;
  font-weight: bold;
  border-bottom: 2px solid #4a5b6f;
  padding-bottom: 5px;
  text-align: left;
}

.dados-paciente div {
  margin-bottom: 5px;
}

/* ============================== */
/* ✅ Botões                     */
/* ============================== */

.button,
input[type="submit"],
.btn {
  background-color: #a0a8b0;
  border: none;
  border-radius: 4px;
  color: white;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  text-decoration: none;
}

.button:hover,
input[type="submit"]:hover,
.btn:hover {
  background-color: #b4b9bf;
}

/* ============================== */
/* ✅ Abas                       */
/* ============================== */

.nav-tabs {
  display: flex;
  border-bottom: 2px solid #dee2e6;
  margin-bottom: 15px;
  padding-left: 0;
  list-style: none;
}

.nav-tabs .nav-item {
  margin-right: 5px;
}

.nav-tabs .nav-link {
  display: block;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
  background-color: #b8bfd6;
  color: #1f1d1d;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.nav-tabs .nav-link.active {
  background-color: #666363;
  border-color: #dee2e6 #dee2e6 #ffffff;
  font-weight: bold;
}

.nav-tabs .nav-link:hover {
  background-color: #e9ecef;
}

.tab-content {
  border: 1px solid #dee2e6;
  border-top: none;
  padding: 20px;
  background: #fff;
}

/* ============================== */
/* ✅ Popup fix                 */
/* ============================== */

.ui-dialog-content a {
  pointer-events: auto !important;
  cursor: pointer !important;
  text-decoration: underline;
}

/* ============================== */
/* ✅ Correções finais          */
/* ============================== */

/* Remover borda do wrapper da foto */
.wide-content.field.field--name-field-foto-paciente {
  border: none !important;
  box-shadow: none !important;
}

/* Some o bloco "Status / Configurações do menu / Informações da revisão"
   na edição dos nodes */
form.node-form .form-item.js-form-type-vertical-tabs.form-item-js-form-item-form-no-label {
  display: none !important;
}




/* ============================
   LifeDent Prime – /buscar-paciente (v2)
   Moldura mais escura + contraste
   ============================ */

body.path-buscar-paciente {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #bfbfc1; /* cinza um pouco mais escuro, uniforme */
  min-height: 100vh;
}

/* Container geral abaixo do cabeçalho – card mais alto na tela */
body.path-buscar-paciente .region--content#content {
  display: flex;
  justify-content: center;
  padding: 0px 16px 40px;
}

/* Só na página /buscar-paciente, ajusta o padding do body
   que o Toolbar colocou */
body.toolbar-fixed.path-buscar-paciente {
  padding-top: 50px !important;  /* ou 10px, ou 0 se quiser colado */
}


/* Bloco principal */
body.path-buscar-paciente
  #block-webdent-clinica-bartik-system-main {
  width: 100%;
  max-width: 640px;
}

body.path-buscar-paciente
  #block-webdent-clinica-bartik-system-main
  .block__content {
  display: flex;
  justify-content: center;
}

/* 🔹 Card de busca do paciente – fundo claro + moldura escura */
body.path-buscar-paciente .paciente-search-form {
  margin: 0 auto;
  width: 100%;
  max-width: 540px;

  padding: 20px 32px 32px;
  border-radius: 24px;

  background: #f9fafb;
  border: 1px solid #b0b3bb; /* moldura mais escura */
  box-shadow:
    0 22px 50px rgba(15, 23, 42, 0.45),
    0 0 0 1px rgba(15, 23, 42, 0.25);
}

/* Label “BUSCAR PACIENTE” */
body.path-buscar-paciente
  .paciente-search-form
  .form-item__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #374151; /* mais escuro */
  margin-bottom: 10px;
}

/* Campo de texto (autocomplete) – borda bem definida */
body.path-buscar-paciente
  .paciente-search-form
  .form-text {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #9ca3af;
  padding: 10px 18px 11px;
  font-size: 14px;
  color: #111827;
  outline: none;

  background: #ffffff;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

body.path-buscar-paciente
  .paciente-search-form
  .form-text::placeholder {
  color: #9ca3af;
}

/* Focus LifeDent – mais nítido */
body.path-buscar-paciente
  .paciente-search-form
  .form-text:focus {
  border-color: #2563eb;
  background: #f3f4ff;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.7),
    0 0 0 4px rgba(191, 219, 254, 0.9);
}

/* Área do botão */
body.path-buscar-paciente
  .paciente-search-form
  .form-actions {
  margin-top: 22px;
  text-align: left;
}

/* Botão “Abrir ficha” – mantém Prime, mas com mais peso visual */
body.path-buscar-paciente
  .paciente-search-form
  #edit-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 42px;
  border-radius: 999px;

  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #ffffff;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;

  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.6);
  cursor: pointer;

  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease;
}

body.path-buscar-paciente
  .paciente-search-form
  #edit-submit:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 22px 50px rgba(30, 64, 175, 0.7);
  transform: translateY(-1px);
}

body.path-buscar-paciente
  .paciente-search-form
  #edit-submit:active {
  transform: translateY(0);
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.55);
}

/* 🔽 Dropdown do autocomplete – leitura fácil */
body.path-buscar-paciente
  .ui-autocomplete.ui-widget-content {
  border-radius: 18px;
  margin-top: 4px;
  padding: 6px 0;
  border: 1px solid #6b7280;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.55);
  background: #ffffff;
  z-index: 1200;
}

body.path-buscar-paciente
  .ui-menu
  .ui-menu-item-wrapper {
  padding: 7px 16px;
  font-size: 13px;
  color: #111827;
}

body.path-buscar-paciente
  .ui-menu
  .ui-state-active {
  background: #e5f0ff;
  color: #111827;
}

/* Rodapé mais próximo */
body.path-buscar-paciente
  .region--footer-second {
  margin-top: 8px;
}

/* Responsivo */
@media (max-width: 480px) {
  body.path-buscar-paciente .region--content#content {
    padding-top: 24px;
  }

  body.path-buscar-paciente .paciente-search-form {
    padding: 22px 18px 26px;
    border-radius: 20px;
  }
}


/* ================================
   AJUSTE PRIME — SEM MUDAR ESTRUTURA
   ================================ */

/* 1. FICHA MAIS ALTA (sobe conteúdo) */
body.page-node-type-paciente .layout-content,
body.page-node-type-paciente main,
body.page-node-type-paciente .region-content {
  margin-top: -22px !important;
}

/* 2. BLOCO DO PACIENTE COLADO NO HEADER */
.wd-paciente-header,
.node-paciente-topo,
.paciente-header {
  margin-top: -8px !important;
  padding-top: 6px !important;
}

/* 3. MENU LATERAL VISUALMENTE MAIS CURTO */
.sidebar,
.wd-sidebar {
  padding-top: 8px !important;
}

.sidebar .menu-item,
.wd-sidebar .menu-item {
  padding: 9px 14px !important;
  margin-bottom: 5px !important;
}

.sidebar .menu-item i,
.wd-sidebar .menu-item i {
  font-size: 15px !important;
}

/* 4. CABEÇALHO MAIS "PAINEL" */
.wd-header,
.header-prime {
  height: 76px;
  box-shadow: 0 6px 22px rgba(0,0,0,.12);
  position: relative;
  z-index: 50;
}

/* 5. ÁREA DO USUÁRIO MAIS INTEGRADA */
.header-user-area,
.wd-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-user-area img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

/* 6. REMOVE “BURACO VISUAL” */
.container,
.container-fluid {
  padding-top: 6px !important;
}

/* Review: calmer clinic background, preserving original layout. */
html body, html body.page-node-type-paciente { background: #f3f5f7 !important; }
body .main-content, body .region-content { background-color: transparent; }

/* Review navigation and focused identification editing. */
.cabecalho-glass .review-agenda-button { margin-left:auto; display:inline-flex; align-items:center; justify-content:center; min-height:31px; padding:5px 13px; border:1px solid #cbd5df; border-radius:999px; background:#fff; color:#102e49; box-shadow:none; text-decoration:none; font:600 13px/1.25 "Segoe UI",Arial,sans-serif; white-space:nowrap; }
.review-identification-form { padding:20px; background:#fff; border:1px solid #dce3eb; border-radius:14px; }
.review-identification-form .form-item { margin-bottom:16px; }
.review-identification-form label { display:block; font-weight:600; }
.review-identification-form input:not([type=checkbox]):not([type=radio]), .review-identification-form select, .review-identification-form textarea { max-width:100%; padding:9px; border:1px solid #b9c8da; border-radius:6px; }
.review-identification-form .button--primary { min-height:32px; padding:5px 13px; border:1px solid #102e49; border-radius:999px; background:#102e49; color:#fff; box-shadow:none; font:600 12.5px/1.2 "Segoe UI",Arial,sans-serif; cursor:pointer; }
