/*
 * Talerum V26.63 — final brand consistency layer
 * Loaded after page/module styles and after V26.62 rhythm.
 */
:root{
  --tc-font:Inter,"Segoe UI Variable","Segoe UI",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif;
  --tc-orange:#C96B2D;
  --tc-orange-hover:#B85E26;
  --tc-orange-dark:#9E4F22;
  --tc-text:#211D1A;
  --tc-muted:#6F625C;
  --tc-soft:#84928C;
  --tc-line:#E8DDD4;
  --tc-white:#FFFFFF;
}
body[data-talerum-layout="private"] :where(.workspace,.workspace *,aside.sidebar,aside.sidebar *,.topbar,.topbar *){font-family:var(--tc-font)!important;font-synthesis:none}
body[data-talerum-layout="private"] :where(code,pre,kbd){font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace!important}
html body[data-talerum-layout="private"] .workspace :where(.topbar h1,.page-header h1){font-size:26px!important;font-weight:790!important;line-height:1.14!important;letter-spacing:-.55px!important}
html body[data-talerum-layout="private"] .workspace :where(.section-title,.panel-title,.card-title,.row-title,.settings-panel-head h2,.hub-card-head h3,.modal-title){font-size:15px!important;font-weight:770!important;line-height:1.3!important;letter-spacing:-.08px!important;color:var(--tc-text)!important}
html body[data-talerum-layout="private"] .workspace :where(.section-sub,.section-subtitle,.panel-sub,.card-sub,.row-sub,.settings-panel-head p,.hub-card-head p){font-size:12.5px!important;line-height:1.5!important;color:var(--tc-muted)!important}
html body[data-talerum-layout="private"] .workspace :where(.item-title,.list-copy strong,.timeline-copy strong,.detail-row strong,.fact-value,.check-copy strong){font-size:13.5px!important;line-height:1.35!important;color:var(--tc-text)!important}
html body[data-talerum-layout="private"] .workspace :where(.item-copy,.list-copy>span,.timeline-copy>span,.detail-row label,.check-copy>span,.fact-helper,.row-copy>span){font-size:12.5px!important;line-height:1.5!important;color:var(--tc-muted)!important}
html body[data-talerum-layout="private"] .workspace :where(.metric-label){font-size:12.5px!important;line-height:1.3!important}
html body[data-talerum-layout="private"] .workspace :where(.metric-value){font-size:23px!important;line-height:1.05!important}
html body[data-talerum-layout="private"] .workspace :where(.metric-note,.metric-helper){font-size:12.5px!important;line-height:1.4!important}
html body[data-talerum-layout="private"] .workspace :where(.eyebrow,.kicker,.overline,.item-meta,.row-meta,.timeline-time){font-size:11.75px!important;line-height:1.4!important}
html body[data-talerum-layout="private"] .workspace :where(table,.data-table){font-size:13.25px!important}
html body[data-talerum-layout="private"] .workspace :where(table th,.data-table th){padding:12px 14px!important;font-size:11.75px!important;font-weight:750!important;line-height:1.35!important;letter-spacing:.025em!important;color:#7C7069!important;vertical-align:middle!important}
html body[data-talerum-layout="private"] .workspace :where(table td,.data-table td){padding:13px 14px!important;font-size:13.25px!important;font-weight:450!important;line-height:1.42!important;color:#514741!important;vertical-align:middle!important}
html body[data-talerum-layout="private"] .workspace :where(table td strong,.data-table td strong){font-size:13.5px!important;line-height:1.35!important;color:var(--tc-text)!important}
html body[data-talerum-layout="private"] .workspace :where(table td small,.data-table td small){font-size:11.75px!important;line-height:1.4!important;color:#857A74!important}
html body[data-talerum-layout="private"] .workspace :where(button,input,select,textarea){font-size:13px!important}
html body[data-talerum-layout="private"] .workspace :where(.primary,.primary-button,.btn-primary,.auth-submit){background:var(--tc-orange)!important;border-color:var(--tc-orange)!important;color:#fff!important;font-size:13px!important;font-weight:740!important;box-shadow:0 8px 18px rgba(184,94,38,.16)!important}
html body[data-talerum-layout="private"] .workspace :where(.primary:hover,.primary-button:hover,.btn-primary:hover){background:var(--tc-orange-hover)!important;border-color:var(--tc-orange-hover)!important;color:#fff!important}
html body[data-talerum-layout="private"] .workspace :where(.secondary:not(.danger),.secondary-button:not(.danger),.soft-button,.open-button,.check-action,.return-text-action,.pr-v27-compact-action,.small-link,.hub-link,.link-action,button.link,.mini-btn:not(.pager-button):not(.page-number),.mini-button){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:36px!important;padding:0 13px!important;border:1px solid var(--tc-orange)!important;border-radius:10px!important;background:var(--tc-orange)!important;color:#fff!important;font-size:13px!important;font-weight:730!important;line-height:1.2!important;text-decoration:none!important;box-shadow:0 7px 16px rgba(184,94,38,.14)!important;cursor:pointer!important}
html body[data-talerum-layout="private"] .workspace :where(.secondary:not(.danger):hover,.secondary-button:not(.danger):hover,.soft-button:hover,.open-button:hover,.check-action:hover,.return-text-action:hover,.pr-v27-compact-action:hover,.small-link:hover,.hub-link:hover,.link-action:hover,button.link:hover,.mini-btn:not(.pager-button):not(.page-number):hover,.mini-button:hover){background:var(--tc-orange-hover)!important;border-color:var(--tc-orange-hover)!important;color:#fff!important}
html body[data-talerum-layout="private"] .workspace :where(.ghost,.ghost-button,.filter-button,.pager-button,.page-number){font-size:13px!important;font-weight:720!important}
html body[data-talerum-layout="private"] .workspace :where(.secondary.danger,.danger-outline){background:#fff!important;border-color:#F0CFC9!important;color:#B64B3E!important;box-shadow:none!important}
html body[data-talerum-layout="private"] .workspace :where(.secondary.danger:hover,.danger-outline:hover){background:#FFF5F3!important;border-color:#E8B7AF!important;color:#A63E34!important}
html body[data-talerum-layout="private"] .workspace :where(.primary svg,.secondary svg,.primary-button svg,.secondary-button svg,.open-button svg,.mini-btn svg){color:currentColor!important;stroke:currentColor!important}
html body[data-talerum-layout="private"] .workspace :where(a.section-link,button.section-link,.text-link){font-size:12.5px!important;font-weight:750!important;color:var(--tc-orange-dark)!important}
html body[data-talerum-layout="private"] .workspace :where(.pill,.badge,.status-pill,.status-chip,.status-cell,.priority,.page-pill){font-size:11.5px!important;font-weight:730!important;line-height:1.25!important}
html body[data-talerum-layout="private"] .workspace :where(.tab,.tab-button,[role="tab"],.context-nav a,.context-nav button,.page-tab,.subtab,.nav-tab){font-size:13px!important;font-weight:710!important;line-height:1.2!important}
body[data-talerum-page="atendimentos"] .metrics-grid .metric-card{grid-template-columns:minmax(0,1fr) 42px!important;align-items:start!important;min-height:96px!important;padding:16px 17px!important}
body[data-talerum-page="atendimentos"] .metrics-grid .metric-card>span:first-child{display:flex!important;min-width:0!important;flex-direction:column!important;align-items:flex-start!important;gap:0!important}
body[data-talerum-page="atendimentos"] .metrics-grid :where(.metric-label,.metric-value,.metric-helper){display:block!important;width:100%!important;position:static!important;float:none!important}
body[data-talerum-page="atendimentos"] .metrics-grid .metric-label{margin:0!important;white-space:normal!important}
body[data-talerum-page="atendimentos"] .metrics-grid .metric-value{margin:7px 0 0!important}
body[data-talerum-page="atendimentos"] .metrics-grid .metric-helper{margin:5px 0 0!important;white-space:normal!important}
body[data-talerum-page="atendimentos"] .metrics-grid .metric-icon{align-self:start!important}
body[data-talerum-page="retornos"] .return-actions-grid{gap:10px!important}
body[data-talerum-page="retornos"] .return-text-action{min-height:38px!important}
body[data-talerum-page="hub-financeiro-tratamentos"] .hub-actions-grid button{min-height:40px!important;font-size:13px!important}
body[data-talerum-page="hub-financeiro-tratamentos"] .hub-actions-grid button:nth-child(-n+2){background:#fff!important;border-color:#F0CFC9!important;color:#B64B3E!important;box-shadow:none!important}
body[data-talerum-page="hub-financeiro-tratamentos"] .hub-actions-grid button:nth-child(n+3){background:var(--tc-orange)!important;border-color:var(--tc-orange)!important;color:#fff!important;box-shadow:0 7px 16px rgba(184,94,38,.14)!important}
html body[data-talerum-layout="private"] .workspace :where(.panel,.section){padding:18px!important}
html body[data-talerum-layout="private"] .workspace :where(.panel-head,.section-head,.card-head){gap:14px!important;margin-bottom:14px!important}
html body[data-talerum-layout="private"] .workspace :where(.grid-2,.grid-3,.grid-4,.metrics,.stack,.column,.workspace-grid){gap:16px!important}
html body[data-talerum-layout="private"] .workspace :where(.list-item){min-height:58px!important;padding-top:13px!important;padding-bottom:13px!important;align-items:center!important}
@media(max-width:1180px){html body[data-talerum-layout="private"] .workspace :where(table td,.data-table td){font-size:13px!important}html body[data-talerum-layout="private"] .workspace :where(table th,.data-table th){font-size:11.5px!important}}

/* Final isolated fixes discovered by the rendered audit. */
html body[data-talerum-page="playbooks"] .workspace button.link.js-go-monitor{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:36px!important;
  padding:0 13px!important;
  border:1px solid var(--tc-orange)!important;
  border-radius:10px!important;
  background:var(--tc-orange)!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:730!important;
  line-height:1.2!important;
  box-shadow:0 7px 16px rgba(184,94,38,.14)!important;
}
html body[data-talerum-page="playbooks"] .workspace button.link.js-go-monitor:hover{
  background:var(--tc-orange-hover)!important;
  border-color:var(--tc-orange-hover)!important;
  color:#fff!important;
}
/* Cancellation controls remain intentionally neutral/destructive, never primary orange. */
html body[data-talerum-page="hub-financeiro-tratamentos"] .workspace :where(button[data-hub-action="cancel-case"],button[data-hub-action="cancel-reservation"]){
  background:#fff!important;
  border-color:#F0CFC9!important;
  color:#B64B3E!important;
  box-shadow:none!important;
}

/* Final remaining isolated typography/action exceptions from V26.62. */
html body[data-talerum-page="fornecedores"] .workspace #supplierCards .metric-label{
  font-size:12.5px!important;
  line-height:1.3!important;
}
html body[data-talerum-page="imagens-clinicas"] .workspace button.ghost.workspace-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:36px!important;
  padding:0 13px!important;
  border:1px solid var(--tc-orange)!important;
  border-radius:10px!important;
  background:var(--tc-orange)!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:730!important;
  box-shadow:0 7px 16px rgba(184,94,38,.14)!important;
}
html body[data-talerum-page="imagens-clinicas"] .workspace button.ghost.workspace-action:hover{
  background:var(--tc-orange-hover)!important;
  border-color:var(--tc-orange-hover)!important;
  color:#fff!important;
}
