/* Ficha Webdent: acabamento visual escopado */
body.page-node-type-paciente{--wd-blue:#2563eb;--wd-ink:#24364b;--wd-border:#dbe4ef}
body.page-node-type-paciente .btn-suave--outline,body.page-node-type-paciente .btn-suave--muted{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;border-radius:10px;background:#fff!important;border:1px solid var(--wd-border)!important;color:var(--wd-ink)!important;font-weight:650;line-height:1.2;transition:all .15s ease}
body.page-node-type-paciente .btn-suave--outline:hover,body.page-node-type-paciente .btn-suave--muted:hover{background:#f7faff!important;border-color:#9db6d4!important;box-shadow:0 3px 10px #2563eb1f;transform:translateY(-1px)}
body.page-node-type-paciente .btn.btn-primary{background:linear-gradient(135deg,#2563eb,#1d4ed8);border:0;box-shadow:0 7px 18px #2563eb38}
body.page-node-type-paciente .btn.btn-danger{background:#fff1f2;border:1px solid #fecdd3;color:#be123c}
body.page-node-type-paciente .btn.btn-dark{background:#172033;border:1px solid #172033;color:#fff}
body.page-node-type-paciente .wd-divider-icon{display:flex;align-items:center;gap:8px;min-height:28px;margin:18px 0 10px;padding-bottom:7px;border-bottom:1px solid #e8eef6;color:var(--wd-ink);font-weight:650}
body.page-node-type-paciente .wd-divider-icon .symbol{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:7px;background:#eef4ff;color:var(--wd-blue);font-size:13px;line-height:1}
body.page-node-type-paciente .field__label{margin:12px 0 8px;color:var(--wd-ink);font-weight:650}
body.page-node-type-paciente input,body.page-node-type-paciente textarea,body.page-node-type-paciente select{border-color:#cbd8e8;border-radius:9px}
body.page-node-type-paciente input:focus,body.page-node-type-paciente textarea:focus,body.page-node-type-paciente select:focus{border-color:#7da5e8;box-shadow:0 0 0 3px #2563eb1f;outline:0}
@media(max-width:760px){body.page-node-type-paciente ul.nav.nav-tabs,body.page-node-type-paciente ul.nav.nav-pills{overflow-x:auto;justify-content:flex-start;flex-wrap:nowrap}}
body.page-node-type-paciente .btn-suave--sm{min-height:30px!important;padding:5px 10px!important;font-size:13px!important;border-radius:9px!important;line-height:1.15!important}
body.page-node-type-paciente .btn-salvar{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 13px;border:0;border-radius:9px;background:#1677ed;color:#fff;font:600 14px/1.2 inherit;box-shadow:0 5px 12px #1677ed30}
body.page-node-type-paciente .btn-salvar:hover{background:#1266cf}
body.page-node-type-paciente .wd-preview-toggle,body.page-node-type-paciente .wd-file-action{min-height:30px!important;font-size:12.5px!important;padding:4px 10px!important}
body.page-node-type-paciente .btn-suave--outline.btn-suave--sm,body.page-node-type-paciente .btn-suave--muted.btn-suave--sm,body.page-node-type-paciente .btn-suave--outline.wd-preview-toggle{min-height:30px!important;height:30px!important;padding:4px 10px!important;font-size:12.5px!important;}
body.page-node-type-paciente .btn-suave--outline.button--primary,body.page-node-type-paciente .btn-suave--muted.button--primary{background:#1677ed!important;border-color:#1677ed!important;color:#fff!important;box-shadow:0 5px 12px #1677ed30!important;}
body.page-node-type-paciente .btn-suave--outline.button--primary:hover,body.page-node-type-paciente .btn-suave--muted.button--primary:hover{background:#1266cf!important;border-color:#1266cf!important;}
body.page-node-type-paciente .btn-suave--outline.button--primary,body.page-node-type-paciente .btn-suave--muted.button--primary{min-height:36px!important;height:36px!important;padding:7px 13px!important;font-size:14px!important;line-height:1.2!important;border-radius:9px!important;}
body.page-node-type-paciente .tabsPaciente a,body.page-node-type-paciente ul.nav.nav-tabs .nav-link,body.page-node-type-paciente ul.nav.nav-pills .nav-link{ text-decoration:none!important; }
body.page-node-type-paciente a[href*="wa.me"]{ text-decoration:none!important; }
body.page-node-type-paciente .tabsPaciente a:hover,body.page-node-type-paciente ul.nav.nav-tabs .nav-link:hover,body.page-node-type-paciente ul.nav.nav-pills .nav-link:hover{ text-decoration:none!important; }
/*v7 marker*/

/* reference visual polish v1 */
body.page-node-type-paciente{--wd-blue:#2563eb;--wd-line:#e2e8f0;background:linear-gradient(180deg,#f8fafc,#eef2f7)}
body.page-node-type-paciente .content{max-width:1180px;margin:auto;padding:0 20px 48px}
body.page-node-type-paciente .ficha{background:#fff;border:1px solid var(--wd-line);border-radius:18px;box-shadow:0 12px 32px rgba(15,23,42,.08);padding:26px 28px}
body.page-node-type-paciente .tabsPaciente{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:16px 0 24px;padding:8px 10px;background:#f8fafc;border:1px solid var(--wd-line);border-radius:14px}
body.page-node-type-paciente .tabsPaciente a,body.page-node-type-paciente .tabsPaciente button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 14px;border:0;border-radius:999px;background:transparent;color:#475569;font-size:13px;font-weight:650;text-decoration:none!important;white-space:nowrap}
body.page-node-type-paciente .tabsPaciente a:hover,body.page-node-type-paciente .tabsPaciente button:hover{background:#eaf1ff;color:#1d4ed8}
body.page-node-type-paciente .tabsPaciente a.is-active,body.page-node-type-paciente .tabsPaciente a.active,body.page-node-type-paciente .tabsPaciente button.is-active,body.page-node-type-paciente .tabsPaciente button.active{background:var(--wd-blue);color:#fff;box-shadow:0 6px 16px rgba(37,99,235,.25)}
body.page-node-type-paciente .ficha>section,body.page-node-type-paciente .ficha .fieldset{margin:0 0 22px;padding:20px 22px;border:1px solid var(--wd-line);border-radius:16px;background:#fff}
body.page-node-type-paciente .ficha h2,body.page-node-type-paciente .ficha h3{margin:0 0 16px;color:#334155;font-weight:700}
body.page-node-type-paciente .ficha input,body.page-node-type-paciente .ficha textarea,body.page-node-type-paciente .ficha select{border:1px solid #cbd5e1;border-radius:10px;background:#fff}
body.page-node-type-paciente .ficha .button,body.page-node-type-paciente .ficha button,body.page-node-type-paciente .ficha a.button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 14px;border-radius:9px;font-size:13px;font-weight:650;text-decoration:none!important}
body.page-node-type-paciente .ficha .button--primary{background:var(--wd-blue);border-color:var(--wd-blue);color:#fff;box-shadow:0 4px 12px rgba(37,99,235,.18)}
body.page-node-type-paciente .ficha .button:not(.button--primary),body.page-node-type-paciente .ficha a.button:not(.button--primary){background:#fff;border:1px solid #cbd5e1;color:#475569;box-shadow:none}
@media(max-width:760px){body.page-node-type-paciente .content{padding:0 12px 32px}body.page-node-type-paciente .ficha{padding:18px 14px}.tabsPaciente{gap:6px!important;padding:7px!important}.tabsPaciente a,.tabsPaciente button{min-height:34px!important;padding:7px 10px!important;font-size:12px!important}}

/* minimal button finish */
body.page-node-type-paciente .ficha .button,body.page-node-type-paciente .ficha button,body.page-node-type-paciente .ficha a.button{min-height:34px;padding:6px 12px;border-radius:8px;font-size:12.5px;font-weight:600;letter-spacing:0;box-shadow:none;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
body.page-node-type-paciente .ficha .button--primary{background:#2563eb;border-color:#2563eb;color:#fff;box-shadow:none}
body.page-node-type-paciente .ficha .button--primary:hover{background:#1d4ed8;border-color:#1d4ed8}
body.page-node-type-paciente .ficha .button:not(.button--primary),body.page-node-type-paciente .ficha a.button:not(.button--primary){background:#fff;border:1px solid #d7dee8;color:#475569}
body.page-node-type-paciente .ficha .button:not(.button--primary):hover,body.page-node-type-paciente .ficha a.button:not(.button--primary):hover{background:#f8fafc;border-color:#b8c4d4;color:#334155}
body.page-node-type-paciente .ficha .button--danger,body.page-node-type-paciente .ficha .button.btn-danger{background:#fff7f7;border:1px solid #f3c6ca;color:#b42335}
body.page-node-type-paciente .ficha .button--dark,body.page-node-type-paciente .ficha .button.btn-dark{background:#273449;border-color:#273449;color:#fff}
body.page-node-type-paciente .tabsPaciente a,body.page-node-type-paciente .tabsPaciente button{min-height:34px;padding:7px 12px;font-size:12px;font-weight:600;box-shadow:none}
body.page-node-type-paciente .tabsPaciente a.is-active,body.page-node-type-paciente .tabsPaciente a.active,body.page-node-type-paciente .tabsPaciente button.is-active,body.page-node-type-paciente .tabsPaciente button.active{box-shadow:none}

/* lightweight patient actions */
body.page-node-type-paciente .botoes-acao{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body.page-node-type-paciente .botoes-acao .btn{min-height:38px;padding:8px 14px;border-radius:9px;font-size:13px;font-weight:600;line-height:1.2;box-shadow:none!important}
body.page-node-type-paciente .botoes-acao .btn-primary{background:#2563eb;border:1px solid #2563eb;color:#fff}
body.page-node-type-paciente .botoes-acao .btn-primary:hover{background:#1d4ed8;border-color:#1d4ed8}
body.page-node-type-paciente .botoes-acao .btn-danger{background:#fff7f7;border:1px solid #f0c5ca;color:#b42335}
body.page-node-type-paciente .botoes-acao .btn-danger:hover{background:#fff0f1;border-color:#e7aab2}
body.page-node-type-paciente .botoes-acao .btn-dark{background:#334155;border:1px solid #334155;color:#fff}
body.page-node-type-paciente .botoes-acao .btn-dark:hover{background:#1f2937;border-color:#1f2937}

/* ficha subitems hierarchy */
body.page-node-type-paciente .ficha ul.nav.nav-pills{display:flex;align-items:center;justify-content:flex-start;gap:6px;flex-wrap:wrap;margin:0 0 18px;padding:6px 8px;background:#f8fafc;border:1px solid #e6ebf2;border-radius:12px}
body.page-node-type-paciente .ficha ul.nav.nav-pills .nav-item{margin:0}
body.page-node-type-paciente .ficha ul.nav.nav-pills .nav-link{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 11px;border:1px solid transparent;border-radius:8px;background:transparent;color:#64748b;font-size:12px;font-weight:600;line-height:1.2;text-decoration:none!important;box-shadow:none}
body.page-node-type-paciente .ficha ul.nav.nav-pills .nav-link:hover{background:#eef4ff;color:#2563eb}
body.page-node-type-paciente .ficha ul.nav.nav-pills .nav-link.active{background:#eaf1ff;border-color:#c8d9ff;color:#1d4ed8;box-shadow:none}

/* corrected selector for ficha subitems */
body.page-node-type-paciente #ficha ul.nav.nav-pills{display:flex;align-items:center;justify-content:flex-start;gap:6px;flex-wrap:wrap;margin:0 0 18px;padding:6px 8px;background:#f8fafc;border:1px solid #e6ebf2;border-radius:12px}
body.page-node-type-paciente #ficha ul.nav.nav-pills .nav-item{margin:0}
body.page-node-type-paciente #ficha ul.nav.nav-pills .nav-link{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 11px;border:1px solid transparent;border-radius:8px;background:transparent;color:#64748b;font-size:12px;font-weight:600;line-height:1.2;text-decoration:none!important;box-shadow:none}
body.page-node-type-paciente #ficha ul.nav.nav-pills .nav-link:hover{background:#eef4ff;color:#2563eb}
body.page-node-type-paciente #ficha ul.nav.nav-pills .nav-link.active{background:#eaf1ff;border-color:#c8d9ff;color:#1d4ed8;box-shadow:none}
.orcamento-toolbar a,.orcamento-toolbar a:hover,.orcamento-toolbar a:focus{text-decoration:none!important}.orcamento-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}[id$="-orcamento"] a.btn-suave--outline{text-decoration:none!important}