/* ================================================================
   MASTERPLATING V156 — PADRÃO VISUAL GLOBAL / ESTABILIZAÇÃO
   Objetivo: fonte única, ações previsíveis e cores de botões consistentes
   em todos os módulos, inclusive Financeiro e OBZ.
   ================================================================ */
:root{
  --mp-font-global: Inter, Arial, Helvetica, sans-serif;
  --mp-btn-primary: #f58216;
  --mp-btn-primary-hover: #d96b0f;
  --mp-btn-secondary: #1766b3;
  --mp-btn-secondary-hover: #12558f;
  --mp-btn-success: #18845e;
  --mp-btn-danger: #d33b35;
  --mp-btn-neutral: #5d7087;
}

html, body, #app-shell, #content-col, #main,
button, input, select, textarea, table, th, td, label,
.card, .topbar, .nav-item, .top-tab, .page-header-profile,
.btn, .btn-primary, .btn-secondary, .btn-success, .btn-danger,
.small, .btn-small {
  font-family: var(--mp-font-global) !important;
}

/* Títulos também seguem a mesma família para eliminar mistura de fontes. */
h1, h2, h3, h4, h5, h6,
.topbar h1, .card > h2, .mp-section-title, .fin-hero-title-row h1,
.obz-hero h1, .pessoas-hero h1 {
  font-family: var(--mp-font-global) !important;
}

/* Monoespaçada somente onde representa código/valor técnico. */
.mono, code, pre, .tag-name, .tag-desc { font-family: 'JetBrains Mono', Consolas, monospace !important; }

/* Botão base único. */
button, .btn {
  min-height: 32px;
  border-radius: 7px;
  border: 1px solid #c7d5e5;
  background: #fff;
  color: #28445f;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 400 !important;
  box-shadow: none;
}
button:hover, .btn:hover { box-shadow: 0 2px 6px rgba(20,55,95,.08); }

/* Primário: sempre laranja MasterPlating. */
button.primary, button.btn-primary, .btn-primary {
  background: var(--mp-btn-primary) !important;
  border-color: var(--mp-btn-primary) !important;
  color: #fff !important;
}
button.primary:hover, button.btn-primary:hover, .btn-primary:hover {
  background: var(--mp-btn-primary-hover) !important;
  border-color: var(--mp-btn-primary-hover) !important;
}

/* Secundário: sempre azul. */
button.secondary, .btn-secondary {
  background: #fff !important;
  border-color: #9bb8d8 !important;
  color: var(--mp-btn-secondary) !important;
}
button.secondary:hover, .btn-secondary:hover {
  background: #eef5fc !important;
  border-color: var(--mp-btn-secondary) !important;
}

/* Ações semânticas. */
button.success, .btn-success, button.success-ghost {
  background: #fff !important;
  border-color: #9bcdbb !important;
  color: var(--mp-btn-success) !important;
}
button.success:hover, .btn-success:hover, button.success-ghost:hover {
  background: #eef8f3 !important;
  border-color: var(--mp-btn-success) !important;
}
button.danger, .btn-danger, button.danger-ghost, .btn-danger-outline {
  background: #fff !important;
  border-color: #e4aaa7 !important;
  color: var(--mp-btn-danger) !important;
}
button.danger:hover, .btn-danger:hover, button.danger-ghost:hover, .btn-danger-outline:hover {
  background: #fff3f2 !important;
  border-color: var(--mp-btn-danger) !important;
}

/* Botões pequenos mantêm o mesmo padrão cromático. */
button.small, button.btn-small, .btn-small {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 10.5px;
}

/* Cabeçalho/abas: contraste e tipografia uniformes. */
#page-header h1, .topbar h1 { font-weight: 600 !important; }
.top-tab { font-family: var(--mp-font-global) !important; }

/* Financeiro: o módulo precisa ser visualmente reconhecível sem criar um
   padrão diferente do restante da aplicação. */
.financeiro-modulo-item:not(.active) { border-left: 3px solid #f0a33a; }
.financeiro-modulo-item.active { background: var(--mp-btn-primary) !important; }
.financeiro-sidebar-tree .nav-item { font-family: var(--mp-font-global) !important; }

/* Remove dependência visual de tamanhos excessivos em ações financeiras. */
.fin-dashboard-card .btn,
.fin-row-actions .btn,
.fin-actions .btn,
.fin-plano-filtros .btn,
.fin-modal--plano .fin-modal-foot .btn,
.obz-head-actions .btn,
.obz-hero-actions .btn {
  font-family: var(--mp-font-global) !important;
  font-weight: 400 !important;
}

/* V1350 — Auditorias como item de primeiro nível na sidebar real do MasterPlating. */
#sidebar .mp-auditorias-menu{cursor:pointer}
#sidebar .mp-auditorias-menu.active{color:#f28c28;background:rgba(242,140,40,.12);font-weight:600}
#sidebar .mp-auditorias-menu:hover{background:rgba(242,140,40,.10)}
