:root {
  --bg-page: #eef3fa;
  --bg-panel: #ffffff;
  --bg-panel-2: #dde6f3;
  --bg-input: #ffffff;
  --border: #e2e8f3;
  --border-strong: #c9d3e4;
  --text-primary: #1c2536;
  --text-secondary: #5e6c82;
  --text-muted: #94a1b5;
  --accent: #ef7d1a;
  --accent-dark: #c9660f;
  --heading-blue: #1a4c8f;
  --chrome: #8592a6;
  --chrome-bright: #45536b;
  --amber: #b9812e;
  --success: #2f9d6f;
  --danger: #d93a32;
  --sidebar-bg: #263149;
  --sidebar-bg-hover: #303c58;
  --sidebar-text: #c7cfdf;
  --sidebar-text-muted: #7c88a3;
  --sidebar-border: #34405c;
  --radius: 10px;
  --shadow-card: 0 1px 3px rgba(16,24,40,0.07), 0 1px 2px rgba(16,24,40,0.04);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; margin: 0 0 4px; }
h1 { font-size: 22px; letter-spacing: 0.2px; }
h2 { font-size: 17px; }
h3 { font-size: 14px; color: var(--heading-blue); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; padding: 8px 10px; background: var(--bg-panel-2); border-bottom: 3px solid var(--accent); }
h3.titulo-principal { color: #ffffff; background: var(--heading-blue); }

a { color: var(--accent); text-decoration: none; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

#app-shell {
  display: flex;
  min-height: 100vh;
}

/* ---- Modo TV: painel de visualizacao em tela cheia, sem menu (Planejamento) ---- */
body.modo-tv #sidebar { display: none; }
body.modo-tv #page-header { display: none; }
body.modo-tv #top-tabs { display: none; }
body.modo-tv #main { max-width: none; padding: 24px 32px; }
body.modo-tv .topbar { margin-bottom: 16px; }

/* ---- Sidebar vertical: logo, modulos, submenu aninhado no modulo ativo ---- */
#sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-logo-wrap {
  position: relative;
  padding: 18px 14px 16px;
  margin-bottom: 6px;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(120% 140% at 30% 0%, rgba(47,111,224,0.28) 0%, rgba(47,111,224,0.06) 45%, rgba(255,255,255,0) 70%);
}
.sidebar-logo-wrap img { max-width: 100%; height: auto; display: block; position: relative; z-index: 1; }

.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: var(--radius);
  color: var(--sidebar-text); cursor: pointer; font-size: 12px; border: none; background: transparent;
  width: 100%; text-align: left;
}
.nav-item:hover { background: var(--sidebar-bg-hover); }
.nav-item.active { background: var(--accent); color: #ffffff; font-weight: 500; }
.submenu-item { padding: 7px 10px 7px 24px; font-size: 12px; }
.submenu-item.active { background: rgba(255,255,255,0.1); color: #ffffff; font-weight: 500; }

/* Financeiro — navegação hierárquica */
.financeiro-modulo-item.active {
  background: #f57c00 !important;
  color: #fff !important;
  border-radius: 10px;
}
.financeiro-sidebar-tree {
  padding: 2px 0 6px 0;
}
.financeiro-direct-item,
.financeiro-gestao-item {
  width: 100%;
  margin: 2px 0;
  border-radius: 9px;
  background: rgba(255,255,255,.075);
}
.financeiro-direct-item {
  padding-left: 24px;
}
.financeiro-direct-item.active {
  background: rgba(255,255,255,.13);
  color: #fff;
}
.financeiro-gestao-item {
  padding-left: 24px;
  margin-top: 5px;
}
.financeiro-gestao-item.active {
  background: rgba(255,255,255,.10);
  color: #fff;
}
.financeiro-tree-icon {
  width: 18px;
  min-width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
}
.financeiro-chevron {
  margin-left: auto;
  font-size: 11px;
  opacity: .8;
}
.financeiro-subtree {
  margin: 0 0 2px 27px;
  padding: 1px 0 2px 12px;
  border-left: 1px solid rgba(170,185,210,.42);
}
.financeiro-subitem {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #d9dfeb;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.financeiro-subitem:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}
.financeiro-subitem.active {
  color: #fff;
  background: rgba(255,255,255,.08);
  font-weight: 500;
}
.financeiro-subitem-icon {
  width: 15px;
  min-width: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .85;
}

.nav-badge-contador { margin-left: auto; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 10px; flex-shrink: 0; }
.badge-etapa-destaque { display: inline-block; background: var(--bg-panel-2); border: 1px solid var(--heading-blue); color: var(--heading-blue); font-size: 13px; padding: 6px 14px; border-radius: 8px; }
.badge-etapa-destaque strong { font-size: 14.5px; }

/* ---- Coluna de conteudo (a direita da sidebar): cabecalho escuro + abas + main ---- */
#content-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }

#page-header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--sidebar-bg); padding: 14px 24px; flex-shrink: 0;
}
#page-header h1 {
  position: relative; padding-left: 14px; font-size: 19px; font-weight: 700;
  color: var(--accent); font-family: var(--font-display); margin: 0;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#page-header h1::before {
  content: ""; position: absolute; left: 0; top: 1px; bottom: 1px; width: 4px;
  border-radius: 3px; background: var(--accent);
}
.page-header-profile { position: relative; flex-shrink: 0; }
.page-header-profile-toggle {
  display: flex; align-items: center; gap: 10px; padding: 4px 6px; border: none;
  background: transparent; border-radius: 10px; cursor: pointer; text-align: left;
}
.page-header-profile-toggle:hover { background: var(--sidebar-bg-hover); }
.page-header-profile-info { text-align: right; }
.page-header-profile-empresa { display: block; font-size: 10px; font-weight: 700; color: #d7e4f5; line-height: 1.15; margin-bottom: 1px; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.page-header-profile-nome { display: block; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; }
.page-header-profile-cargo { display: block; font-size: 11px; color: var(--sidebar-text-muted); }
.page-header-profile-menu {
  position: absolute; right: 0; top: calc(100% + 6px); background: var(--bg-panel); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 8px; box-shadow: var(--shadow-card); z-index: 60; min-width: 160px;
}

/* ---- Barra de abas: itens do modulo/submenu ativo ---- */
#top-tabs { flex-shrink: 0; background: var(--sidebar-bg-hover); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 0 20px; }
#top-tabs:empty { display: none; }
.top-tabs-row { display: flex; flex-wrap: wrap; gap: 2px; }
/* SGQ usa uma barra superior unica com todas as suas telas. */
.top-tabs-sgq { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.top-tabs-sgq .top-tab { flex: 0 0 auto; }
.top-tab {
  display: flex; align-items: center; gap: 6px; border: none; background: transparent; color: var(--sidebar-text-muted);
  font-size: 13px; font-weight: 500; padding: 12px 14px; border-bottom: 2.5px solid transparent; white-space: nowrap; cursor: pointer; position: relative;
}
.top-tab:hover { color: var(--sidebar-text); background: rgba(255,255,255,0.06); }
.top-tab.active { color: #ffffff; border-bottom-color: var(--accent); }

.sidebar-avatar {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #4d9bff, #2f6fe0); color: #fff;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-profile-chevron { flex-shrink: 0; color: var(--sidebar-text-muted); display: flex; transition: transform 0.15s ease; }
.sidebar-profile-chevron.aberto { transform: rotate(180deg); }

/* ---- Drawer mobile (sidebar vira overlay, acionado pelo hamburguer) ---- */
#mobile-topbar { display: none; }
@media (max-width: 860px) {
  #app-shell { flex-direction: column; }
  #mobile-topbar {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--sidebar-bg);
    border-bottom: 1px solid var(--sidebar-border); position: sticky; top: 0; z-index: 45;
  }
  #mobile-topbar button { background: transparent; border: none; color: var(--sidebar-text); padding: 4px; }
  #mobile-topbar img { height: 22px; }
  #sidebar { display: none; }
  #sidebar.drawer-aberto { display: flex; position: fixed; top: 0; left: 0; bottom: 0; z-index: 92; box-shadow: 4px 0 24px rgba(0,0,0,0.25); }
  #sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 91; }
  #sidebar-overlay.aberto { display: block; }
  #page-header { padding: 10px 14px; }
  #page-header h1 { font-size: 15px; }
  .page-header-profile-info { display: none; }
}

#main {
  flex: 1;
  min-width: 0;
  padding: 24px 28px 60px;
  max-width: 1300px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2.5px solid var(--accent);
  flex-wrap: wrap;
  gap: 8px;
}
.topbar h1 {
  position: relative;
  padding-left: 14px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.1px;
}
.topbar h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 3px;
  background: var(--accent);
}
.topbar > div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.topbar p { color: var(--text-secondary); font-size: 13px; margin: 0; }
.topbar p::before { content: "|"; color: var(--accent); font-weight: 300; margin-right: 10px; }

/* V828 — cabeçalhos padronizados para Análise Crítica, Visão Geral, Dashboard Executivo, Cockpit e Alertas */
.mp-standard-topbar{align-items:center;gap:14px;}
.mp-standard-topbar .mp-header-copy{display:block !important;min-width:0;flex:1 1 auto;}
.mp-standard-topbar .mp-header-copy h1{margin:0;}
.mp-standard-topbar .mp-header-copy p{margin:4px 0 0;}
.mp-standard-topbar .mp-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto;flex-wrap:wrap;}
.mp-standard-topbar .mp-header-actions select{width:auto;height:36px;min-width:128px;padding:7px 10px;border:1px solid #c7d5e5;border-radius:7px;background:#fff;color:#28445f;font-size:11px;}
.mp-standard-topbar .mp-header-actions .mp-header-btn{height:36px;padding:0 12px;border-radius:7px;border:1px solid #c7d5e5;background:#fff;color:#28445f;font-size:11px;cursor:pointer;}
.mp-standard-topbar .mp-header-actions .mp-header-btn.primary{background:var(--mp-orange);border-color:var(--mp-orange);color:#fff;}
.mp-standard-topbar .mp-header-kicker{display:block;margin:0 0 3px;color:#6f8499;font-size:10px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;}
@media(max-width:760px){.mp-standard-topbar{align-items:flex-start;flex-direction:column}.mp-standard-topbar .mp-header-actions{width:100%;justify-content:flex-start}.mp-standard-topbar .mp-header-actions select,.mp-standard-topbar .mp-header-actions .mp-header-btn{flex:1 1 140px;min-width:0}}

/* ---- Cards / panels ---- */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.grid-compact { grid-template-columns: repeat(auto-fit, minmax(105px, 170px)); }
.grid-compact .field, .grid-compact input { min-width: 0; }
.grid-cards-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; }
@media (max-width: 1024px) {
  /* Tablet: qualquer grid com muitas colunas (incluindo estilo inline
     tipo grid-template-columns:repeat(5,1fr)) cai pra 2 colunas -- da
     mais espaco sem forcar rolagem lateral em toda tela. */
  .grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  /* Celular: qualquer grid vira 1 coluna so, mesmo as com estilo
     inline definido na hora (ex.: formularios de Equipamento/Receita) */
  .grid { grid-template-columns: 1fr !important; }
}

.metric { background: var(--bg-panel-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.metric .label { font-size: 12px; color: var(--text-secondary); }
.metric .value { font-family: var(--font-display); font-size: 24px; margin-top: 4px; color: var(--text-primary); }
.metric .value.amber { color: var(--amber); }
.metric .value.accent { color: var(--accent); }

/* Variantes coloridas do .metric -- usadas no simulador de pricing pra
   diferenciar visualmente cada tipo de valor (custo, preco, cenario) */
.metric-blue { border-left: 4px solid var(--heading-blue); background: rgba(26,76,143,0.06); }
.metric-amber-bg { border-left: 4px solid var(--amber); background: rgba(185,129,46,0.08); }
.metric-danger { border-left: 4px solid var(--danger); background: rgba(217,58,50,0.07); }
.metric-success { border-left: 4px solid var(--success); background: rgba(47,157,111,0.08); }
.metric-accent { border-left: 4px solid var(--accent); background: rgba(239,125,26,0.08); }

/* ---- Forms ---- */
label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }

/* Formulario "espacoso" (cadastro de pecas): campos maiores, texto do rotulo menor */
.form-espacoso .field { margin-bottom: 16px; }
.form-espacoso label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); font-weight: 600; }
.form-espacoso input, .form-espacoso select, .form-espacoso textarea { padding: 9px 11px; font-size: 14px; border-radius: 8px; }
.form-espacoso h4.secao-titulo { margin: 0 0 14px; padding-bottom: 9px; border-bottom: 2.5px solid var(--accent); color: var(--heading-blue); font-size: 18px; font-weight: 700; }
.form-espacoso .secao { margin-bottom: 26px; }
.field { margin-bottom: 12px; }
input, select, textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 14px;
  font-family: var(--font-body);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(47, 111, 224, 0.2);
}
textarea { resize: vertical; min-height: 60px; }

button {
  font-family: var(--font-body);
  font-size: 13.5px;
  border-radius: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  background: var(--bg-panel);
  color: var(--text-primary);
  cursor: pointer;
}
button:hover { background: var(--bg-panel-2); }
button.primary { background: var(--accent); border-color: var(--accent-dark); color: #ffffff; font-weight: 500; }
button.primary:hover { background: var(--accent-dark); }
button.danger-ghost { border-color: var(--danger); color: var(--danger); background: var(--bg-panel); }
button.edit-ghost { border-color: var(--heading-blue); color: var(--heading-blue); background: var(--bg-panel); }
button.edit-ghost:hover { background: var(--heading-blue); color: #ffffff; }
button.success-ghost { border-color: var(--success); color: var(--success); background: var(--bg-panel); }
button.success-ghost:hover { background: var(--success); color: #ffffff; }
button.info-ghost { border-color: var(--amber); color: var(--amber); background: var(--bg-panel); }
button.info-ghost:hover { background: var(--amber); color: #ffffff; }
button.small { padding: 5px 10px; font-size: 12px; }
.btn-row-uniforme { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.btn-row-uniforme button { flex: 0 0 84px; text-align: center; }
button.is-loading { opacity: 0.75; cursor: wait; position: relative; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
.spinner {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: -1px;
  margin-right: 2px;
  opacity: 0.8;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* ---- Tables ---- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--text-secondary); font-weight: 500; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px; padding: 8px 10px; border-bottom: 1px solid var(--border-strong); }
td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:hover td { background: rgba(15,23,42,0.025); }
.table-wrap { overflow-x: auto; }
.table-compact td { padding: 4px 8px; }
.table-compact th { padding: 6px 8px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.badge.rascunho { background: rgba(94,108,130,0.13); color: var(--text-secondary); }
.badge.enviado { background: rgba(47,111,224,0.13); color: var(--accent); }
.badge.aprovado { background: rgba(47,157,111,0.14); color: var(--success); }
.badge.recusado { background: rgba(217,58,50,0.13); color: var(--danger); }
.badge.bloqueado { background: var(--danger); color: #ffffff; font-weight: 600; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 6px; }

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 50;
  box-shadow: var(--shadow-card);
}
.toast.err { border-color: var(--danger); color: var(--danger); }
.toast.ok { border-color: var(--success); color: var(--success); }

/* V760 — popup global de mensagens do sistema. Sempre acima de abas,
   painéis laterais e demais overlays. Todas as chamadas existentes de toast()
   e alert() passam por esta camada. */
.mp-system-overlay{
  position:fixed!important;inset:0!important;z-index:100000!important;
  display:flex;align-items:center;justify-content:center;padding:20px;
  background:rgba(15,23,42,.52);backdrop-filter:blur(2px);
  opacity:0;transition:opacity .12s ease;
}
.mp-system-overlay.open{opacity:1}
.mp-system-overlay.closing{opacity:0}
.mp-system-dialog{
  width:min(520px,calc(100vw - 32px));background:#fff;
  border:1px solid #d8e2ee;border-radius:14px;
  box-shadow:0 26px 80px rgba(15,23,42,.28);overflow:hidden;
  transform:translateY(8px) scale(.985);transition:transform .12s ease;
  font-family:inherit;
}
.mp-system-overlay.open .mp-system-dialog{transform:translateY(0) scale(1)}
.mp-system-header{display:flex;align-items:center;gap:12px;padding:18px 20px 14px;
  border-bottom:1px solid #e6edf5;background:#f8fbff}
.mp-system-icon{width:40px;height:40px;flex:0 0 40px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;
  background:#eaf3ff;color:#1769aa;border:1px solid #cfe2f7}
.mp-system-heading{min-width:0;flex:1}.mp-system-heading h3{margin:0;color:#173f70;
  font-size:16px;line-height:1.25;font-weight:700}.mp-system-heading span{display:block;margin-top:3px;
  color:#74869a;font-size:11px}
.mp-system-close{border:0;background:transparent;color:#708399;font-size:25px;line-height:1;
  padding:2px 4px;cursor:pointer;border-radius:7px}.mp-system-close:hover{background:#eaf1f8;color:#173f70}
.mp-system-body{padding:20px}.mp-system-body p{margin:0;color:#43566b;font-size:13.5px;line-height:1.65;word-break:break-word}
.mp-system-footer{display:flex;justify-content:flex-end;gap:9px;padding:13px 20px;
  background:#f8fafc;border-top:1px solid #e6edf5}
.mp-system-type-danger .mp-system-icon{background:#fff1f1;color:#c62828;border-color:#f2c7c7}
.mp-system-type-success .mp-system-icon{background:#edf9f1;color:#138a46;border-color:#cdebd8}
.mp-system-type-warning .mp-system-icon{background:#fff8e8;color:#b66b00;border-color:#f1dfa8}
.mp-system-type-info .mp-system-icon{background:#eaf3ff;color:#1769aa;border-color:#cfe2f7}
.mp-system-type-danger .mp-system-heading h3{color:#b3261e}
.mp-system-type-success .mp-system-heading h3{color:#137a42}
.mp-system-type-warning .mp-system-heading h3{color:#9a6200}
@media(max-width:560px){.mp-system-overlay{padding:12px}.mp-system-dialog{width:100%}.mp-system-header{padding:15px 16px 12px}.mp-system-body{padding:16px}.mp-system-footer{padding:11px 16px}}

.formula-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  background: rgba(185,129,46,0.12);
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
  margin: 6px 0 14px;
}

.op-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr 40px;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}
@media (max-width: 760px) {
  .op-row { grid-template-columns: 1fr 1fr; }
}

.pill-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.pill {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  font-size: 12.5px;
  cursor: pointer;
  color: var(--text-secondary);
  background: var(--bg-panel);
}
.pill.active { border-color: var(--accent); color: var(--accent); background: rgba(47,111,224,0.1); }

/* ---- Shape preview (signature element) ---- */
.shape-preview {
  background: #0c2340;
  border: 1px solid #1c3d61;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shape-preview svg { max-width: 100%; max-height: 100%; width: auto; height: auto; }

@media (max-width: 860px) {
  .na-layout-2col, .na-layout-2col > tbody, .na-layout-2col > tbody > tr, .na-layout-2col > tbody > tr > td { display: block; width: 100% !important; padding: 0 !important; }
  .na-cards-linha, .na-cards-linha > tbody, .na-cards-linha > tr, .na-cards-linha > tbody > tr, .na-cards-linha td { display: block; width: 100% !important; margin-bottom: 10px; }
  #main { padding: 16px 14px 40px; }
  #page-header { padding: 10px 14px; }
  #page-header h1 { font-size: 15px; }
  .page-header-profile-info { display: none; }
}
#sim-result { transition: opacity 0.15s ease; }

/* ---- Painel lateral deslizante (detalhe de OM etc.) ---- */
.side-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.side-panel-backdrop.open { opacity: 1; pointer-events: auto; }
.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(460px, 94vw);
  background: var(--bg-panel);
  box-shadow: -6px 0 24px rgba(15, 23, 42, 0.18);
  z-index: 91;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.side-panel.open { transform: translateX(0); }
/* V1198: painel fechado nunca deixa faixa visível, independentemente da largura/posição aplicada */
.side-panel { visibility: hidden; transition: transform 0.25s ease, visibility 0s linear 0.25s; }
.side-panel.open { visibility: visible; transition: transform 0.25s ease, visibility 0s linear 0s; }
#side-panel:not(.open) { transform: translateX(calc(100% + 80px)) !important; pointer-events: none; }
.side-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px;
  flex-shrink: 0;
  background: var(--heading-blue);
}
.side-panel-header h2 { color: #ffffff !important; }
.side-panel-header button { border: none; background: transparent; color: #ffffff; padding: 4px; opacity: 0.85; }
.side-panel-header button:hover { opacity: 1; }
.side-panel-tabs { display: flex; gap: 4px; padding: 14px 20px 0; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.side-panel-tab {
  border: none;
  background: transparent;
  padding: 8px 4px 10px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-right: 14px;
}
.side-panel-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }
.side-panel-body { flex: 1; overflow-y: auto; padding: 18px 20px 24px; }
@media (max-width: 600px) {
  .side-panel { width: 100vw; }
}

/* ================================================================
   MASTERPLATING DESIGN SYSTEM V44 — PADRÃO VISUAL GLOBAL
   Base visual aprovada em Gestão de Documentos e aplicada ao shell.
   ================================================================ */
:root{
  --mp-blue-900:#17385f;
  --mp-blue-700:#1a4c8f;
  --mp-blue-600:#1766b3;
  --mp-blue-100:#eaf3fc;
  --mp-orange:#f58220;
  --mp-orange-dark:#d96b0f;
  --mp-surface:#ffffff;
  --mp-surface-soft:#f6f9fd;
  --mp-border:#d8e3f0;
  --mp-shadow:0 3px 14px rgba(20,55,95,.08);
}

/* Shell e cabeçalhos */
#content-col{background:var(--bg-page);}
#main{max-width:1440px;padding:24px 28px 64px;}
.topbar{padding:0 0 15px;margin-bottom:18px;border-bottom:2px solid var(--mp-orange);}
.topbar h1{font-size:26px;color:var(--mp-blue-900);letter-spacing:-.2px;}
.topbar p{color:#60748d;}
.topbar p::before{color:var(--mp-orange);}

/* Painéis */
.card{border-color:var(--mp-border);border-radius:13px;box-shadow:var(--mp-shadow);padding:20px 22px;background:var(--mp-surface);}
.card > h2{color:var(--mp-blue-900);font-size:17px;font-weight:700;margin-bottom:12px;}
.card > h3{margin:-20px -22px 18px;border-radius:13px 13px 0 0;}

/* Seções de formulário */
.field label{font-weight:600;color:#526780;font-size:11.5px;}
input,select,textarea{border-color:#cdd9e8;border-radius:8px;background:#fff;transition:border-color .15s,box-shadow .15s;}
input:hover,select:hover,textarea:hover{border-color:#b9c9dd;}
input:focus,select:focus,textarea:focus{border-color:var(--mp-blue-600);box-shadow:0 0 0 3px rgba(23,102,179,.11);}

/* Botões: primário laranja; ações secundárias azuis */
button{border-radius:8px;transition:background .15s,border-color .15s,transform .05s,box-shadow .15s;}
button:hover{box-shadow:0 2px 6px rgba(20,55,95,.08);}
button.primary{background:var(--mp-orange);border-color:var(--mp-orange);font-weight:650;}
button.primary:hover{background:var(--mp-orange-dark);border-color:var(--mp-orange-dark);}
button.edit-ghost,button.info-ghost{border-color:#9bb8d8;color:var(--mp-blue-700);}
button.edit-ghost:hover{background:var(--mp-blue-700);border-color:var(--mp-blue-700);}

/* Tabelas */
.table-wrap{border:1px solid var(--mp-border);border-radius:10px;overflow:auto;background:#fff;}
.table-wrap table{margin:0;}
th{background:#f3f7fc;color:#526780;font-weight:700;}
td{border-bottom-color:#e7edf5;}
tr:hover td{background:#f7faff;}

/* Badges e métricas */
.metric{border-color:var(--mp-border);border-radius:11px;background:#f5f8fc;}
.metric .label{font-weight:600;color:#667b95;}
.metric .value{color:var(--mp-blue-900);font-weight:700;}

/* Toolbar/filtros padrão */
.mp-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;background:#fff;border:1px solid var(--mp-border);border-radius:11px;box-shadow:0 2px 8px rgba(20,55,95,.05);margin-bottom:14px;}
.mp-toolbar .field{margin:0;min-width:160px;flex:1;}
.mp-toolbar .actions{display:flex;gap:8px;align-items:center;}
.mp-filter-card{background:#fff;border:1px solid var(--mp-border);border-radius:13px;padding:16px 18px;box-shadow:0 2px 10px rgba(20,55,95,.05);margin-bottom:16px;}

/* Hero padrão para telas principais */
.mp-hero{position:relative;overflow:hidden;border:1px solid #d6e3f1;border-radius:14px;background:linear-gradient(105deg,#f7fbff 0%,#eef5fc 68%,#e4eff9 100%);padding:22px 24px;margin-bottom:16px;box-shadow:var(--mp-shadow);}
.mp-hero:after{content:"";position:absolute;right:-80px;top:-90px;width:380px;height:240px;background:radial-gradient(circle,#d6e7f8 0%,rgba(214,231,248,0) 70%);pointer-events:none;}
.mp-hero-content{position:relative;z-index:1;display:flex;align-items:flex-start;gap:14px;}
.mp-hero-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#e7f1fd;border:1px solid #cfe1f5;color:var(--mp-blue-600);font-size:23px;flex:0 0 48px;}
.mp-hero h1{margin:0;color:var(--mp-blue-900);font-size:27px;line-height:1.1;}
.mp-hero p{margin:6px 0 0;color:#58718e;font-size:13px;max-width:900px;}

/* Ações rápidas padrão */
.mp-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-bottom:16px;}
.mp-action{display:flex;align-items:center;gap:10px;min-height:58px;padding:12px 14px;background:#fff;border:1px solid var(--mp-border);border-radius:11px;color:var(--mp-blue-900);text-align:left;cursor:pointer;box-shadow:0 2px 8px rgba(20,55,95,.05);}
.mp-action:hover{border-color:#a8c5e2;transform:translateY(-1px);}
.mp-action .icon{font-size:19px;color:var(--mp-blue-600);}
.mp-action strong{display:block;font-size:13px;}
.mp-action small{display:block;color:#71839a;font-size:11px;margin-top:2px;}

/* KPIs padrão */
.mp-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px;}
.mp-kpi{min-height:104px;padding:16px 18px;border:1px solid var(--mp-border);border-left:4px solid var(--mp-blue-600);border-radius:11px;background:#fff;box-shadow:0 2px 10px rgba(20,55,95,.05);}
.mp-kpi.success{border-left-color:#2f9d6f;background:#f4fbf8;}
.mp-kpi.warning{border-left-color:#d39a28;background:#fffaf0;}
.mp-kpi.danger{border-left-color:#d93a32;background:#fff7f7;}
.mp-kpi .label{font-size:11.5px;color:#667b95;}
.mp-kpi .value{font-family:var(--font-display);font-size:27px;font-weight:700;color:var(--mp-blue-900);margin-top:5px;}
.mp-kpi .meta{font-size:11px;color:#7a8ca2;margin-top:2px;}

/* Empty states */
.empty-state{padding:52px 20px;background:#fbfdff;border:1px dashed #c9d9ea;border-radius:10px;}
.empty-state h3{background:none;border:0;text-transform:none;padding:0;color:var(--mp-blue-900);font-size:16px;}

@media(max-width:900px){.mp-kpis{grid-template-columns:repeat(2,1fr)}.mp-actions{grid-template-columns:repeat(2,1fr)}#main{padding:18px 16px 44px;}}
@media(max-width:600px){.mp-kpis,.mp-actions{grid-template-columns:1fr}.mp-hero h1{font-size:22px}.card{padding:16px}.card > h3{margin:-16px -16px 16px;}}

/* ================================================================
   V45 — Design System Global / Manutenção
   Referência visual: Gestão de Documentos + mockup aprovado
   ================================================================ */
:root{
  --mp-blue-950:#12345f;
  --mp-blue-900:#173e73;
  --mp-blue-700:#1b66b1;
  --mp-blue-600:#0877d1;
  --mp-blue-100:#eaf2fb;
  --mp-orange:#f47b16;
  --mp-orange-dark:#d96508;
  --mp-green:#2fa774;
  --mp-red:#e24a45;
  --mp-border:#d6e0ef;
  --mp-surface:#fff;
  --mp-shadow:0 3px 14px rgba(18,52,95,.08);
}
.mp-module-hero{position:relative;min-height:118px;display:flex;align-items:center;overflow:hidden;margin:-2px 0 14px;padding:18px 22px;border-bottom:1px solid var(--mp-border);background:linear-gradient(90deg,#fff 0%,#f8fbff 58%,#edf5fc 100%)}
.mp-module-hero:before{content:"";position:absolute;left:0;top:26px;width:4px;height:58px;border-radius:0 4px 4px 0;background:var(--mp-orange)}
.mp-module-hero-copy{position:relative;z-index:2;min-width:46%;padding-left:4px}.mp-eyebrow{font-size:10px;letter-spacing:1.1px;color:#6780a0;font-weight:700;margin-bottom:4px}.mp-hero-title-row{display:flex;gap:12px;align-items:center}.mp-hero-title-row h1{font-size:27px;line-height:1.1;color:var(--mp-blue-950);margin:0}.mp-hero-title-row p{margin:3px 0 0;color:#466687;font-size:14px}.mp-hero-icon{display:flex;width:48px;height:48px;align-items:center;justify-content:center;border-radius:12px;background:#eaf2fb;color:var(--mp-blue-700);font-size:28px}.mp-hero-subtitle{display:block;margin-top:8px;color:#60748d;font-size:12.5px}.mp-module-hero-image{position:absolute;right:0;top:0;height:100%;width:48%;max-width:560px;opacity:.98;z-index:1;mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.55) 14%,#000 32%,#000 100%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.55) 14%,#000 32%,#000 100%)}.mp-module-hero-image img{width:100%;height:100%;object-fit:cover;object-position:right center}.mp-module-hero-side{display:none}.mp-page-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px}.mp-tabs{display:flex;gap:8px;flex-wrap:wrap}.mp-tab{height:38px;border:1px solid #c8d6e8;background:#fff;color:#315274;border-radius:20px;padding:0 15px;font:500 13px var(--font-body);cursor:pointer;box-shadow:0 1px 2px rgba(18,52,95,.03)}.mp-tab:hover{border-color:#8fb4dd}.mp-tab.active{background:#0877d1;border-color:#0877d1;color:#fff;box-shadow:0 4px 10px rgba(8,119,209,.18)}.mp-page-actions .primary{min-height:38px;padding:0 18px;border-radius:9px;background:var(--mp-orange);border-color:var(--mp-orange);font-weight:600}.mp-page-actions .primary:hover{background:var(--mp-orange-dark)}.mp-loading{color:var(--text-muted);padding:24px;text-align:center}

/* Cadastro de equipamentos */
#pcm-cadastro-area>.card:first-child{background:#fff;border:1px solid var(--mp-border);border-radius:13px;box-shadow:var(--mp-shadow);padding:15px 18px;margin-bottom:16px}#pcm-cadastro-area>.card:first-child .grid{gap:14px}#pcm-cadastro-area>.card:first-child .field label{font-size:11px;color:#60748d;font-weight:600}#pcm-cadastro-area>.card:first-child select{height:40px;border-radius:9px;border-color:#cbd8e8}
#pcm-tabela-geral-wrap{background:#fff;border:1px solid var(--mp-border);border-radius:13px;box-shadow:var(--mp-shadow);padding:14px 18px}.mp-equip-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.mp-section-title{display:flex;align-items:center;gap:9px;font-size:17px;color:var(--mp-blue-950);font-family:var(--font-display);font-weight:600}.mp-section-title:before{content:"";width:4px;height:23px;border-radius:4px;background:var(--mp-orange)}.mp-equip-meta{font-size:11px;color:#5f7693}.mp-equip-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12.5px}.mp-equip-table th{background:#eef4fb;color:#45617f;text-transform:uppercase;font-size:10px;letter-spacing:.04em;padding:10px 9px;text-align:left;border-bottom:1px solid #d9e3f0}.mp-equip-table td{padding:10px 9px;border-bottom:1px solid #e2e9f2;vertical-align:middle}.mp-equip-table tbody tr:hover{background:#f8fbff}.mp-equip-table tbody tr.root-row{background:#f1f6fc}.mp-equip-table tbody tr.root-row:hover{background:#eaf3fc}.mp-equip-table .tag-name{font-family:var(--font-mono);font-weight:600;color:#182d49}.mp-equip-table .tag-desc{color:#6d8199;font-family:var(--font-mono);font-weight:400}.mp-status,.mp-critical{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:999px;font-size:10.5px;font-weight:600}.mp-status.active{background:#e1f3eb;color:#14835c}.mp-status.inactive{background:#fde9e7;color:#b83832}.mp-critical.high{background:#f9e5e6;color:#d5453d}.mp-critical.medium{background:#fff1d9;color:#a96b12}.mp-critical.low{background:#e6f3ec;color:#237957}.mp-equip-actions{display:flex;gap:6px;justify-content:flex-end;white-space:nowrap}.mp-equip-actions button{border-radius:8px!important;min-height:31px!important;padding:4px 10px!important;font-size:11px!important}.mp-pieces-row td{padding:3px 9px 9px!important;color:#71859d;font-size:11px!important;border-top:0!important}.mp-pieces-row td span{color:#9aaabd}.mp-list-toggle{display:inline-flex;border:1px solid #ccd9e9;border-radius:8px;overflow:hidden}.mp-list-toggle button{border:0;background:#fff;padding:7px 12px;color:#45617f;cursor:pointer}.mp-list-toggle button.active{background:#0877d1;color:#fff}.mp-filter-search{display:flex;gap:10px;align-items:end}.mp-filter-search .field{flex:1}.mp-filter-search .field.search{min-width:250px}
@media(max-width:1000px){.mp-module-hero-image{right:0;width:42%;opacity:.78}.mp-module-hero-side{display:none}.mp-page-toolbar{align-items:stretch;flex-direction:column}.mp-page-actions{align-self:flex-end}.mp-equip-table{min-width:850px}}
@media(max-width:650px){.mp-module-hero{min-height:120px;padding:14px 16px}.mp-module-hero-image{display:none}.mp-hero-title-row h1{font-size:23px}.mp-hero-subtitle{max-width:90%}.mp-tab{height:36px;padding:0 12px}.mp-page-actions{width:100%}.mp-page-actions .primary{width:100%}}
.mp-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 14px}.mp-kpi-card{display:flex;gap:12px;align-items:center;min-height:88px;padding:13px 15px;border:1px solid var(--mp-border);border-left:4px solid var(--mp-blue-700);border-radius:12px;background:#fff;box-shadow:var(--mp-shadow)}.mp-kpi-card.green{border-left-color:var(--mp-green);background:linear-gradient(90deg,#fff 0%,#f6fcf9 100%)}.mp-kpi-card.amber{border-left-color:#f0a21b;background:linear-gradient(90deg,#fff 0%,#fffaf0 100%)}.mp-kpi-card.red{border-left-color:var(--mp-red);background:linear-gradient(90deg,#fff 0%,#fff7f7 100%)}.mp-kpi-icon{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e7f0fb;color:#0877d1;font-size:21px;font-weight:700}.green .mp-kpi-icon{background:#dff3ea;color:#22a477}.amber .mp-kpi-icon{background:#fff0d4;color:#ee9710}.red .mp-kpi-icon{background:#fee1e0;color:#ef4742}.mp-kpi-card small,.mp-kpi-card>div>span{display:block;color:#60748d;font-size:10.5px}.mp-kpi-card strong{display:block;color:#102d55;font:600 24px var(--font-display);line-height:1.05;margin:2px 0}.mp-kpi-card a{font-size:10.5px;color:#0877d1}.mp-kpi-card>div{min-width:0}@media(max-width:900px){.mp-kpi-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.mp-kpi-grid{grid-template-columns:1fr}}

/* Metrologia — padrão visual alinhado ao PCM/Manutenção */
.metro-module-hero{min-height:122px}
.metro-module-hero .mp-hero-icon{background:#edf5ff}
.metro-toolbar{margin-bottom:12px}
.metro-filter-card{padding:14px 18px;margin-bottom:14px}
.metro-filter-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-end}
.metro-filter-subtitle{font-size:11.5px;color:#6a7e96;margin-top:4px}
.metro-filter-actions{display:flex;gap:10px;align-items:flex-end;min-width:min(520px,55%)}
.metro-filter-actions .field{margin:0}.metro-search{flex:1}.metro-status{width:190px}
.metro-filter-actions label{font-size:10.5px;color:#60748d;font-weight:600}.metro-filter-actions input,.metro-filter-actions select{height:38px;border-radius:9px}
.metro-table-card{padding:14px 18px}.metro-table-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:12px}.metro-table-head>div>span{display:block;color:#60748d;font-size:11px;margin-top:3px}
.metro-dashboard-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px;min-width:1050px}
.metro-dashboard-table th{background:#eef4fb;color:#45617f;text-transform:uppercase;font-size:9.5px;letter-spacing:.04em;padding:10px 9px;border-bottom:1px solid #d9e3f0;text-align:left;white-space:nowrap}
.metro-dashboard-table td{padding:10px 9px;border-bottom:1px solid #e2e9f2;vertical-align:middle}
.metro-dashboard-table tbody tr:hover{background:#f8fbff}.metro-dashboard-table tbody tr.metro-row-danger{background:#fff8f8}.metro-dashboard-table tbody tr.metro-row-warning{background:#fffdf7}
.metro-dashboard-table .metro-date-danger{color:var(--danger);font-weight:700}
.metro-status-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:700;white-space:nowrap}
.metro-status-badge i,.metro-legend .dot{width:7px;height:7px;border-radius:50%;display:inline-block;background:#2fa774}.metro-status-badge.success{background:#e3f5ed;color:#17845d}.metro-status-badge.warning{background:#fff1d8;color:#9b6816}.metro-status-badge.warning i,.metro-legend .dot.amber{background:#f0a21b}.metro-status-badge.danger{background:#fde5e4;color:#c83d37}.metro-status-badge.danger i,.metro-legend .dot.red{background:#e24a45}.metro-legend .dot.green{background:#2fa774}
.metro-row-actions{display:flex;gap:5px;white-space:nowrap}.metro-row-actions button{min-height:30px!important;padding:4px 9px!important;font-size:10.5px!important;border-radius:8px!important}
.metro-empty{text-align:center!important;padding:32px!important;color:var(--text-muted)}
.metro-dashboard-footer{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:8px 4px;color:#71859d;font-size:10.5px}.metro-legend{display:flex;gap:15px}.metro-legend span{display:flex;gap:5px;align-items:center}
@media(max-width:900px){.metro-filter-head{align-items:stretch;flex-direction:column}.metro-filter-actions{max-width:none;width:100%;min-width:0}.metro-toolbar .mp-tabs{width:100%}.metro-toolbar .mp-page-actions{align-self:stretch}.metro-dashboard-footer{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.metro-filter-actions{flex-direction:column}.metro-status,.metro-search{width:100%}.metro-filter-actions .field{width:100%}.metro-dashboard-table{min-width:980px}}

/* V103 — Biblioteca de Etapas: layout aprovado e filtro por grupo */
.mp-etapas-padrao-card{overflow:hidden}
.mp-etapas-padrao-card .mp-padrao-cabecalho{margin:-16px -16px 0;padding:10px 14px 9px;border-bottom:3px solid var(--accent);background:var(--bg-panel-2)}
.mp-etapas-padrao-card .mp-padrao-cabecalho h3{margin:0;display:flex;align-items:center;gap:9px;color:var(--heading-blue);font-size:14px;font-weight:800;letter-spacing:.45px;text-transform:uppercase}
.mp-etapas-padrao-card .mp-padrao-cabecalho p{margin:8px 0 0;color:var(--text-muted);font-size:12px;line-height:1.35}
.mp-padrao-titulo-icone{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:5px;background:var(--heading-blue);color:#fff;font-size:13px;font-weight:800}
.mp-padrao-info{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:2px solid var(--heading-blue);border-radius:50%;color:var(--heading-blue);font-size:12px;font-weight:800;text-transform:none}
.mp-etapas-padrao-card .mp-padrao-selecao{display:grid;grid-template-columns:minmax(210px,1fr) minmax(210px,1fr) minmax(300px,1.45fr) minmax(230px,.95fr);gap:10px;align-items:end;margin:12px 0 0}
.mp-etapas-padrao-card .mp-padrao-campo{min-width:0}
.mp-etapas-padrao-card .mp-padrao-campo label{display:block;margin:0 0 5px;color:var(--text-muted);font-size:11px;font-weight:700}
.mp-etapas-padrao-card .mp-padrao-campo select{width:100%;height:40px;box-sizing:border-box;padding:8px 10px;border:1px solid #b9cde3;border-radius:8px;background:#fff;color:var(--text-primary);font-size:13px}
.mp-etapas-padrao-card .mp-padrao-status{min-width:0;height:40px;box-sizing:border-box;display:flex;align-items:center;padding:7px 12px;border:1px solid #c7d9ec;border-radius:8px;background:#eef5fc;color:var(--text-primary);font-size:11px;line-height:1.2;overflow:hidden}
.mp-etapas-padrao-card .mp-padrao-status::before{content:'i';flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-right:9px;border-radius:50%;background:var(--heading-blue);color:#fff;font-weight:800;font-size:13px}
.mp-etapas-padrao-card .mp-padrao-status strong{color:var(--heading-blue)}
.mp-etapas-padrao-card .mp-padrao-acao{min-width:0;display:flex;align-items:center;gap:7px;height:40px;white-space:nowrap}
.mp-etapas-padrao-card .mp-padrao-acao .mp-padrao-btn-adicionar{width:100%;height:40px;box-sizing:border-box;padding:0 12px;background:var(--accent);border-color:var(--accent-dark);color:#fff;font-weight:700;border-radius:8px;white-space:nowrap}
.mp-etapas-padrao-card .mp-padrao-acao .mp-padrao-btn-adicionar:hover{background:var(--accent-dark);border-color:var(--accent-dark)}
.mp-etapas-padrao-card .mp-padrao-acao .small{white-space:nowrap}
@media(max-width:1050px){.mp-etapas-padrao-card .mp-padrao-selecao{grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(250px,1.35fr) minmax(190px,.9fr);gap:8px}.mp-etapas-padrao-card .mp-padrao-status{font-size:10.5px}}
@media(max-width:780px){.mp-etapas-padrao-card .mp-padrao-selecao{grid-template-columns:1fr 1fr}.mp-etapas-padrao-card .mp-padrao-status,.mp-etapas-padrao-card .mp-padrao-acao{grid-column:1/-1}}

/* V105 — Biblioteca de Etapas Padrão: refinamento visual aprovado */
.mp-etapas-padrao-card .mp-padrao-cabecalho{
  border-bottom:0 !important;
}
.mp-etapas-padrao-card .mp-padrao-campo label{
  font-size:13px !important;
  font-weight:700 !important;
  color:var(--heading-blue) !important;
  margin-bottom:6px !important;
}
.mp-etapas-padrao-card .mp-padrao-selecao{
  grid-template-columns:minmax(190px,1fr) minmax(190px,1fr) minmax(280px,1.35fr) auto !important;
  gap:10px !important;
}
.mp-etapas-padrao-card .mp-padrao-acao{
  justify-content:flex-start !important;
}
.mp-etapas-padrao-card .mp-padrao-acao .mp-padrao-btn-adicionar{
  width:230px !important;
  min-width:230px !important;
  padding:0 14px !important;
  font-size:12px !important;
}
@media(max-width:900px){
  .mp-etapas-padrao-card .mp-padrao-selecao{
    grid-template-columns:minmax(170px,1fr) minmax(170px,1fr) minmax(250px,1.2fr) auto !important;
  }
}
@media(max-width:720px){
  .mp-etapas-padrao-card .mp-padrao-selecao{grid-template-columns:1fr 1fr !important}
  .mp-etapas-padrao-card .mp-padrao-status{grid-column:1/-1 !important}
  .mp-etapas-padrao-card .mp-padrao-acao{grid-column:1/-1 !important}
  .mp-etapas-padrao-card .mp-padrao-acao .mp-padrao-btn-adicionar{width:230px !important}
}

/* V105 — Biblioteca de Etapas: ajuste final solicitado */
.mp-etapas-padrao-card .mp-padrao-cabecalho{
  border-bottom:0 !important;
}
.mp-etapas-padrao-card .mp-padrao-campo label{
  font-size:14px !important;
  line-height:1.2 !important;
  font-weight:700 !important;
  color:var(--heading-blue) !important;
}
.mp-etapas-padrao-card .mp-padrao-acao .mp-padrao-btn-adicionar{
  width:190px !important;
  min-width:190px !important;
  max-width:190px !important;
  height:38px !important;
  padding:0 10px !important;
  font-size:11.5px !important;
}
@media(max-width:720px){
  .mp-etapas-padrao-card .mp-padrao-acao .mp-padrao-btn-adicionar{
    width:190px !important;
    min-width:190px !important;
    max-width:190px !important;
  }
}

/* V106 — Etapas do Processo: cadastro compacto em grade */
.mp-etapas-cadastro-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:4px;
}
.mp-etapa-cadastro-item{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  padding:6px 7px;
  border:1px solid #d6e2ef;
  border-radius:8px;
  background:#f8fbff;
  box-sizing:border-box;
}
.mp-etapa-cadastro-main{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  align-items:center;
  gap:8px;
}
.mp-etapa-cadastro-main .etp-nome-edit{
  width:100%;
  min-width:0;
  height:32px;
  box-sizing:border-box;
  padding:5px 8px !important;
  border:1px solid #bfd1e5;
  border-radius:7px;
  background:#fff;
  color:var(--text-primary);
  font-size:12px;
}
.mp-etapa-ativo{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:4px;
  color:var(--text-muted);
  font-size:10px;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer;
}
.mp-etapa-ativo input{width:auto !important;margin:0}
.mp-etapa-cadastro-acoes{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:4px;
}
.mp-etapa-cadastro-acoes button{
  height:30px !important;
  padding:4px 7px !important;
  font-size:10px !important;
  white-space:nowrap;
}
@media(max-width:1050px){
  .mp-etapas-cadastro-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:700px){
  .mp-etapas-cadastro-grid{grid-template-columns:1fr;}
}

/* V107 — etapas numeradas e acabamento compacto */
.mp-etapa-seq{
  flex:0 0 28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  background:var(--bg-panel-2,#eaf2fb);
  color:var(--heading-blue,#164f8c);
  border:1px solid #c9dbee;
  font-size:10px;
  font-weight:800;
}
.mp-acabamento-form{
  grid-template-columns:minmax(170px,1fr) minmax(190px,1fr) minmax(260px,1.35fr) auto !important;
  gap:10px !important;
  margin:10px 18px !important;
  padding:11px !important;
}
.mp-acabamento-form .field label{font-size:12px;}
.mp-acabamento-form .field small{font-size:10.5px !important;}
.mp-acabamento-form .primary{height:36px !important;padding:0 14px !important;font-size:11.5px !important;}
.mp-acabamento-seq{
  text-align:center;
  font-weight:800;
  color:var(--heading-blue,#164f8c);
  background:var(--bg-panel-2,#eaf2fb);
}
.mp-tratamentos-card .table-compact td{padding:5px 7px;}
.mp-tratamentos-card .table-compact th{padding:7px;}
.mp-tratamentos-card .btn-row-uniforme button{padding:5px 8px !important;font-size:10.5px !important;}
@media(max-width:900px){.mp-acabamento-form{grid-template-columns:1fr 1fr !important;}.mp-acabamento-form > div:last-child{grid-column:1 / -1;justify-content:flex-end;}}
@media(max-width:620px){.mp-acabamento-form{grid-template-columns:1fr !important;}.mp-acabamento-form > div:last-child{grid-column:auto;justify-content:flex-start;}}

/* V108 — Tratamentos/Acabamentos: layout compacto e tipo/modalidade dependente */
.mp-tratamentos-card .mp-section-head{
  border-bottom:0 !important;
  padding:12px 14px !important;
}
.mp-tratamentos-card .mp-section-head h3{font-size:15px !important;}
.mp-tratamentos-card .mp-form-box.mp-acabamento-form{
  display:grid !important;
  grid-template-columns:minmax(220px,1fr) minmax(240px,1fr) minmax(280px,1.2fr) auto !important;
  gap:10px !important;
  margin:10px 14px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  align-items:end !important;
}
.mp-tratamentos-card .mp-acabamento-form .field label{
  display:block !important;
  margin-bottom:5px !important;
  color:var(--heading-blue,#164f8c) !important;
  font-size:13px !important;
  font-weight:700 !important;
}
.mp-tratamentos-card .mp-acabamento-form .field small{
  display:block !important;
  margin-top:3px !important;
  font-size:10.5px !important;
}
.mp-tratamentos-card .mp-acabamento-form input,
.mp-tratamentos-card .mp-acabamento-form select{
  width:100% !important;
  height:38px !important;
  box-sizing:border-box !important;
}
.mp-tratamentos-card .mp-acabamento-form .primary{
  height:38px !important;
  padding:0 16px !important;
  font-size:11.5px !important;
  white-space:nowrap !important;
}
@media(max-width:900px){
  .mp-tratamentos-card .mp-form-box.mp-acabamento-form{grid-template-columns:1fr 1fr !important;}
  .mp-tratamentos-card .mp-acabamento-form > div:last-child{grid-column:1 / -1;justify-content:flex-end;}
}
@media(max-width:620px){
  .mp-tratamentos-card .mp-form-box.mp-acabamento-form{grid-template-columns:1fr !important;}
  .mp-tratamentos-card .mp-acabamento-form > div:last-child{grid-column:auto;justify-content:flex-start;}
}

/* V109 — Tratamentos/Acabamentos: todos os controles em uma única linha no desktop */
.mp-tratamentos-card .mp-form-box.mp-acabamento-form{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.25fr) 150px !important;
  align-items:end !important;
  gap:12px !important;
}
.mp-tratamentos-card .mp-acabamento-form .field{min-width:0 !important;}
.mp-tratamentos-card .mp-acabamento-form .field label{min-height:18px !important;}
.mp-tratamentos-card .mp-acabamento-form input,
.mp-tratamentos-card .mp-acabamento-form select,
.mp-tratamentos-card .mp-acabamento-form .primary{height:38px !important;box-sizing:border-box !important;}
.mp-tratamentos-card .mp-acabamento-form > div:last-child{width:150px !important;min-width:150px !important;}
.mp-tratamentos-card .mp-acabamento-form > div:last-child .primary{width:150px !important;}
@media(max-width:900px){
  .mp-tratamentos-card .mp-form-box.mp-acabamento-form{grid-template-columns:1fr 1fr !important;}
  .mp-tratamentos-card .mp-acabamento-form > div:last-child{width:auto !important;min-width:0 !important;grid-column:1 / -1;}
  .mp-tratamentos-card .mp-acabamento-form > div:last-child .primary{width:auto !important;}
}
@media(max-width:620px){
  .mp-tratamentos-card .mp-form-box.mp-acabamento-form{grid-template-columns:1fr !important;}
  .mp-tratamentos-card .mp-acabamento-form > div:last-child{grid-column:auto;}
}


/* ---- Home gerencial MasterPlating V110 ---- */
.sidebar-group-title{font-size:10px;font-weight:700;letter-spacing:1px;color:var(--sidebar-text-muted);padding:13px 10px 5px;margin-top:3px}
.sidebar-home-item{margin-bottom:2px}
.home-dashboard{max-width:1500px;margin:0 auto;padding:4px 0 28px}
.home-welcome{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:8px 2px 14px;border-bottom:1px solid var(--border);margin-bottom:14px}
.home-eyebrow{font-size:10px;font-weight:700;letter-spacing:1px;color:var(--accent);margin-bottom:2px}
.home-welcome h1{font-size:25px;color:var(--heading-blue);margin:0}
.home-welcome p{margin:2px 0 0;color:var(--text-secondary);font-size:13px}
.home-date{min-width:190px;text-align:right;color:var(--text-secondary);font-size:12px}.home-date strong,.home-date span{display:block}.home-date strong{color:var(--text-primary)}
.home-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px}
.home-kpi{border:1px solid var(--border);background:var(--bg-panel);border-radius:10px;box-shadow:var(--shadow-card);display:flex;align-items:center;gap:10px;text-align:left;padding:12px;cursor:pointer;min-width:0}.home-kpi:hover{border-color:var(--border-strong);transform:translateY(-1px)}
.home-kpi-icon{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;font-size:18px;font-weight:700;flex:0 0 38px}.home-kpi small,.home-kpi b,.home-kpi em{display:block}.home-kpi small{font-size:11px;color:var(--text-secondary)}.home-kpi b{font-size:21px;line-height:1.15;color:var(--text-primary)}.home-kpi em{font-size:10px;color:var(--text-muted);font-style:normal;margin-top:2px}.kpi-blue .home-kpi-icon{background:#e7f0ff;color:#2472d0}.kpi-green .home-kpi-icon{background:#e6f7ee;color:#2f9d6f}.kpi-orange .home-kpi-icon{background:#fff0e3;color:var(--accent)}.kpi-purple .home-kpi-icon{background:#f0eaff;color:#7551c7}.kpi-red .home-kpi-icon{background:#ffe9e8;color:var(--danger)}
.home-main-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:12px;margin-bottom:12px}.home-bottom-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:12px}
.home-card{background:var(--bg-panel);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-card);overflow:hidden}.home-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--border)}.home-card-head h2{font-size:15px;color:var(--heading-blue);margin:0}.home-card-head p{font-size:11px;color:var(--text-muted);margin:1px 0 0}.home-counts{font-size:11px;color:var(--text-secondary);white-space:nowrap}.home-counts b{color:var(--danger)}
.home-pend-list{padding:5px 8px}.home-pend-item{width:100%;display:flex;align-items:center;gap:10px;padding:9px 8px;border:0;border-bottom:1px solid #edf1f6;background:transparent;text-align:left;cursor:pointer}.home-pend-item:last-child{border-bottom:0}.home-pend-item:hover{background:var(--bg-page)}.home-pend-dot{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;flex:0 0 25px}.home-pend-item.danger .home-pend-dot{background:#ffe6e5;color:var(--danger)}.home-pend-item.warning .home-pend-dot{background:#fff0dc;color:#c97910}.home-pend-item.info .home-pend-dot{background:#e7f0ff;color:#2472d0}.home-pend-text{min-width:0;flex:1}.home-pend-text strong{display:block;font-size:12.5px;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-pend-text small{display:block;color:var(--text-muted);font-size:10.5px;margin-top:1px}.home-pend-arrow{font-size:19px;color:var(--text-muted)}.home-card-foot{padding:7px 14px;border-top:1px solid var(--border)}
.link-btn{border:0;background:none;color:#2775d4;font-size:11px;font-weight:600;cursor:pointer;padding:3px}.home-empty{padding:24px 12px;text-align:center;color:var(--success)}.home-empty span{display:block;color:var(--text-muted);font-size:11px;margin-top:3px}
.home-flow{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:24px 14px}.home-flow>div{flex:1;min-width:0;border:1px solid var(--border);border-radius:8px;background:linear-gradient(180deg,#fff,#f7f9fc);padding:13px 7px;text-align:center}.home-flow span{display:block;font-size:10.5px;color:var(--text-secondary);white-space:nowrap}.home-flow b{display:block;font-size:18px;color:var(--heading-blue);margin-top:4px}.home-flow i{font-style:normal;color:var(--accent);font-weight:700}
.home-area-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px}.home-area-list button{border:1px solid var(--border);background:var(--bg-panel);border-radius:8px;padding:10px;display:grid;grid-template-columns:25px 1fr auto;align-items:center;gap:7px;text-align:left;cursor:pointer}.home-area-list button:hover{border-color:var(--border-strong);background:var(--bg-page)}.home-area-list span{font-size:16px}.home-area-list strong{font-size:11.5px;color:var(--text-primary)}.home-area-list b{font-size:16px;color:var(--heading-blue)}
.home-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px}.home-quick button{min-height:48px;border:1px solid var(--border);background:#f8fafd;border-radius:8px;color:var(--heading-blue);font-size:11px;font-weight:600;cursor:pointer}.home-quick button:hover{background:var(--bg-panel-2);border-color:var(--border-strong)}
@media(max-width:1050px){.home-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.home-main-grid,.home-bottom-grid{grid-template-columns:1fr}}
@media(max-width:720px){.home-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.home-welcome{align-items:flex-start}.home-date{display:none}.home-flow{overflow-x:auto;justify-content:flex-start}.home-flow>div{min-width:105px}.home-flow i{flex:0 0 auto}.home-quick{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){.home-kpis{grid-template-columns:1fr}.home-quick{grid-template-columns:1fr}.home-area-list{grid-template-columns:1fr}}

/* V111 — Home gerencial aprovado */
#sidebar .nav-item { color:#eef5ff; font-size:13px; }
#sidebar .nav-item span[style*="flex:1"] { color:#eef5ff !important; }
#sidebar .nav-item:hover { background:#344466; color:#fff; }
#sidebar .nav-item.active { background:#176dcc; color:#fff; box-shadow:inset 3px 0 0 #58a7ff; }
.sidebar-group-title { color:#b9c9df; font-size:10.5px; letter-spacing:1.1px; }
#page-header { color:#f5f8ff; }
.home-approved{max-width:1500px;margin:0 auto;padding:0 0 28px}
.home-hero{position:relative;min-height:148px;border-radius:0 0 12px 12px;overflow:hidden;background:#eef3fa;border-bottom:1px solid var(--border);display:flex;align-items:center;padding:22px 22px;margin-bottom:14px}
.home-hero-photo{position:absolute;inset:0 0 0 38%;background-image:linear-gradient(90deg,#eef3fa 0%,rgba(238,243,250,.9) 16%,rgba(238,243,250,.18) 50%,rgba(18,43,76,.18) 100%),url('../img/hero-home-masterplating.png');background-size:cover;background-position:center;z-index:0}
.home-hero-copy{position:relative;z-index:1;max-width:56%}.home-hero h1{font-size:27px;color:var(--heading-blue);margin:2px 0 2px}.home-hero p{margin:0;color:#315b8f;font-size:14px}.home-eyebrow{font-size:10px;font-weight:700;letter-spacing:1px;color:var(--accent)}
.home-hero-date{position:absolute;right:22px;top:28px;z-index:2;text-align:right;color:#1c2536;font-size:12px}.home-hero-date strong,.home-hero-date span{display:block}.home-hero-date span{color:#5e6c82;margin-top:2px}
.home-main-approved{grid-template-columns:minmax(0,1.35fr) minmax(360px,1fr)}
.home-pend-filters{display:flex;gap:8px;padding:10px 12px 4px}.home-pend-filters button{border:1px solid var(--border);background:#f8fafd;color:var(--heading-blue);border-radius:7px;padding:6px 11px;font-size:11px;font-weight:600;cursor:pointer}.home-pend-filters button.active{background:#eef5ff;border-color:#8bb8ef}
.home-pend-table{padding:0 10px 8px}.home-pend-row{display:grid;grid-template-columns:58px minmax(220px,1.8fr) minmax(90px,.8fr) 100px 62px;align-items:center;gap:8px;padding:7px 7px;border-bottom:1px solid #edf1f6;font-size:11px}.home-pend-head{font-size:9.5px;font-weight:700;color:var(--text-secondary);padding-top:8px}.home-pend-row strong{display:block;font-size:11.5px;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-pend-row small{display:block;color:var(--text-muted);font-size:9.5px}.home-priority-dot{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#ffe7e5;color:var(--danger);font-style:normal;font-weight:800}.home-pend-row.warning .home-priority-dot{background:#fff0dc;color:#c97910}.home-pend-row.info .home-priority-dot{background:#e7f0ff;color:#2472d0}.home-pend-row button{border:1px solid #7eace5;background:#f5f9ff;color:#176dcc;border-radius:6px;padding:5px 7px;font-size:10px;font-weight:700;cursor:pointer}.home-pend-row button:hover{background:#176dcc;color:#fff}.home-deadline{color:var(--danger);font-weight:700}.home-pend-row.warning .home-deadline{color:#c97910}.home-card-foot{display:flex;justify-content:space-between;align-items:center}
.home-area-approved{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.home-area-approved button{display:grid;grid-template-columns:25px 1fr auto;grid-template-rows:auto auto;padding:9px}.home-area-approved button span{grid-row:1/3}.home-area-approved button strong{align-self:end}.home-area-approved button b{font-size:15px}.home-area-approved button small{grid-column:2/4;color:var(--text-muted);font-size:9.5px;margin-top:1px}
.home-quality-banner{margin:0 12px 12px;height:76px;border-radius:8px;overflow:hidden;background:linear-gradient(90deg,rgba(10,40,72,.9),rgba(10,40,72,.28)),url('../img/hero-home-masterplating.png') center/cover;display:flex;align-items:center;padding:0 18px;color:#fff}.home-quality-banner strong{display:block;font-size:17px}.home-quality-banner span{display:block;font-size:10.5px;opacity:.9;margin-top:2px}
@media(max-width:1050px){.home-main-approved{grid-template-columns:1fr}.home-hero-photo{inset:0 0 0 30%}.home-hero-copy{max-width:65%}.home-pend-row{grid-template-columns:45px minmax(180px,1.5fr) minmax(80px,.7fr) 90px 58px}}
@media(max-width:720px){.home-hero{min-height:150px}.home-hero-photo{inset:0}.home-hero-copy{max-width:75%}.home-hero-date{display:none}.home-pend-row{grid-template-columns:28px 1fr 70px}.home-pend-row>span:nth-child(3){display:none}.home-pend-row>span:nth-child(4){display:none}.home-pend-row button{justify-self:end}.home-area-approved{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){.home-area-approved{grid-template-columns:1fr}.home-pend-filters{overflow:auto}.home-hero-copy{max-width:100%}}

/* V122 - Parâmetros de Controle: layout aprovado */
.mp-parametros-card{border-radius:12px;background:#fff;box-shadow:0 6px 18px rgba(25,65,110,.08)}
.mp-parametros-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px 0;background:var(--surface,#fff)}
.mp-parametros-title{background:#dce6f3;color:#0f4b86;font-weight:700;letter-spacing:.45px;font-size:14px;line-height:38px;padding:0 12px;border-bottom:3px solid #ff7a00;flex:1;min-width:0}
.mp-parametros-novo{min-width:160px;height:40px;white-space:nowrap}
.mp-parametros-desc{padding:10px 18px 6px;color:var(--text-secondary,#6f88a5);font-size:12.5px;border-left:2px solid #ff7a00;margin-left:18px}
.mp-parametros-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 18px 10px;border-bottom:1px solid #d5dbe3;color:var(--text-secondary,#6f88a5);font-size:11.5px}
.mp-parametros-filtros{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px 8px}
.mp-parametros-filtros input{flex:1;min-width:260px;max-width:440px;height:38px}
.mp-parametros-filtros select{width:150px;height:38px}
.mp-parametros-table-wrap{padding-bottom:8px}
.mp-parametros-table th{white-space:nowrap;font-size:11px}
.mp-parametros-table td{font-size:12px;vertical-align:middle}
.mp-param-consumo{font-size:10.5px;color:var(--text-muted,#8798ad)}
@media(max-width:900px){.mp-parametros-head{align-items:stretch;flex-direction:column}.mp-parametros-novo{align-self:flex-end}.mp-parametros-filtros{flex-direction:column;align-items:stretch}.mp-parametros-filtros input,.mp-parametros-filtros select{max-width:none;width:100%}.mp-parametros-table{min-width:900px!important}}

/* V123 — Formulário de Parâmetro de Controle: layout aprovado, sem linhas laranja */
.mp-param-form-shell{background:#fff;border-radius:12px;overflow:hidden;border:1px solid var(--border);box-shadow:0 5px 16px rgba(25,65,110,.08)}
.mp-param-form-header{padding:14px 20px 12px;background:linear-gradient(135deg,#0f4f91,#2369ad);color:#fff}
.mp-param-form-kicker{font-size:10px;font-weight:700;letter-spacing:.9px;opacity:.9}
.mp-param-form-header h2{margin:2px 0 0;font-size:20px;color:#fff}
.mp-param-form-header p{margin:2px 0 0;font-size:12px;color:#e7f0fb}
.mp-param-info{display:flex;gap:12px;align-items:flex-start;margin:10px 16px 8px;padding:10px 13px;border:1px solid #b9d5f3;border-radius:8px;background:#eef7ff;color:#174d85;font-size:11.5px;line-height:1.45}
.mp-param-info-icon{width:23px;height:23px;border-radius:50%;background:#1671c9;color:#fff;display:grid;place-items:center;font-weight:800;flex:0 0 23px}
.mp-param-info span{color:#6885a6}
.mp-param-form{padding:0 16px 14px}
.mp-param-section{margin-top:8px;padding:10px 12px 11px;border:1px solid #d6e2ef;border-radius:9px;background:linear-gradient(180deg,#f7faff,#f1f6fb)}
.mp-param-section-title{display:flex;align-items:center;gap:7px;margin-bottom:9px;color:#07549a;font-size:13px;font-weight:800;letter-spacing:.15px}
.mp-param-section-title span{width:25px;height:25px;border-radius:6px;background:#1769ad;color:#fff;display:grid;place-items:center;font-size:13px}
.mp-param-grid{display:grid;gap:10px;align-items:start}.mp-param-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.mp-param-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.mp-param-form .field{min-width:0}.mp-param-form .field label{display:block;margin-bottom:4px;color:#174b7d;font-size:11.5px;font-weight:700}.mp-param-form .field label b{color:#d93025}.mp-param-form .field label span{font-weight:400;color:#7890aa}.mp-param-form .field input,.mp-param-form .field select,.mp-param-form .field textarea{width:100%;box-sizing:border-box;height:36px;border:1px solid #c6d7ea;border-radius:7px;background:#fff;color:#173f69;font-size:12px;padding:7px 10px}.mp-param-form .field p{margin:3px 0 0;color:#7b91a9;font-size:9.5px;line-height:1.3}.mp-param-inline-control{display:flex;gap:6px}.mp-param-inline-control select{flex:1;min-width:0}.mp-param-plus{width:36px;height:36px;border:1px solid #9ebfe2;background:#fff;color:#1769ad;border-radius:7px;font-size:22px;line-height:1;cursor:pointer}.mp-param-plus:hover{background:#eef6ff}
.mp-param-frequency{grid-template-columns:1.05fr 1.05fr .9fr .9fr}.mp-param-status-box{padding:2px 4px}.mp-switch-row{display:flex;align-items:center;gap:7px;color:#173f69;font-size:12px;cursor:pointer}.mp-switch-row input{position:absolute;opacity:0}.mp-switch{width:38px;height:21px;border-radius:14px;background:#b7c6d5;position:relative;display:inline-block}.mp-switch:after{content:"";position:absolute;width:17px;height:17px;top:2px;left:2px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:.15s}.mp-switch-row input:checked + .mp-switch{background:#19ad72}.mp-switch-row input:checked + .mp-switch:after{left:19px}.mp-param-status-box>small{display:block;margin:2px 0 9px 45px;color:#7890aa;font-size:9.5px}.mp-check-row{display:flex;align-items:center;gap:7px;color:#173f69;font-size:11.5px;cursor:pointer}.mp-check-row input{width:15px!important;height:15px!important}.mp-param-observacoes{margin:9px 0 0;padding:0 4px}.mp-param-observacoes label{display:block;color:#174b7d;font-size:12px;font-weight:700;margin-bottom:4px}.mp-param-observacoes label span{font-weight:400;color:#7890aa}.mp-param-observacoes textarea{width:100%;height:58px;box-sizing:border-box;border:1px solid #c6d7ea;border-radius:7px;padding:8px 10px;resize:vertical;font-size:12px}.mp-param-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:10px}.mp-param-actions>div{display:flex;gap:7px}.mp-param-actions button{height:34px;min-width:110px}.mp-param-actions .primary{min-width:125px}
@media(max-width:1050px){.mp-param-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.mp-param-frequency{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.mp-param-grid-3,.mp-param-grid-4,.mp-param-frequency{grid-template-columns:1fr}.mp-param-actions{flex-direction:column;align-items:stretch}.mp-param-actions>div{justify-content:stretch}.mp-param-actions button{flex:1}}

/* V128 — PADRÃO VISUAL GLOBAL DE TÍTULOS
   Regra institucional: títulos e cabeçalhos de conteúdo não usam mais linha laranja inferior.
   Laranja fica reservado para ações primárias, estados de destaque e elementos interativos.
*/
:root{
  --mp-header-bg:#e7eff8;
  --mp-header-bg-soft:#eef4fa;
  --mp-header-border:#d5e2ef;
}

/* Cabeçalhos de páginas/seções */
.topbar{
  border-bottom:0 !important;
  background:var(--mp-header-bg-soft);
  border:1px solid var(--mp-header-border);
  border-radius:10px;
  padding:12px 14px;
  margin-bottom:18px;
}

h3,
.card > h3,
.card h3.titulo-secao,
.section-title{
  border-bottom:0 !important;
  background:var(--mp-header-bg);
  color:var(--heading-blue);
}

/* Títulos de seções em formulários */
.form-espacoso h4.secao-titulo,
h4.secao-titulo,
h4[style*="border-bottom"]{
  border-bottom:0 !important;
  background:var(--mp-header-bg-soft);
  border:1px solid var(--mp-header-border) !important;
  border-radius:8px;
  padding:9px 12px !important;
}

/* Cabeçalhos específicos de Laboratório / Biblioteca */
.mp-section-head,
.mp-etapas-padrao-card .mp-padrao-cabecalho{
  border-bottom:0 !important;
  background:var(--mp-header-bg);
}

/* Cadastro de Parâmetros — mesmo padrão dos demais módulos */
.mp-parametros-head{padding-top:12px !important;}
.mp-parametros-title{
  border-bottom:0 !important;
  background:var(--mp-header-bg) !important;
}
.mp-parametros-desc{
  border-left:0 !important;
  background:var(--mp-header-bg-soft);
  border-radius:8px;
  margin-left:18px;
}

/* Não aplicar a regra de cabeçalho às abas de navegação: a linha da aba ativa é funcional. */
.top-tab.active{border-bottom-color:var(--accent);}

/* ==========================================================
   MASTERPLATING — PADRÃO GLOBAL DE CABEÇALHO DE TABELAS V129
   Cabeçalhos devem ter contraste visual claro em todas as telas.
   ========================================================== */
table thead th,
.table-compact thead th,
.fin-table thead th,
.pessoas-table thead th,
.pricing-table thead th {
  background: #d9e7f5 !important;
  color: #164a7b !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: .045em;
  padding: 9px 10px !important;
  border-top: 1px solid #b7cce1 !important;
  border-bottom: 2px solid #8eacc8 !important;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.75);
}

table thead th:first-child {
  border-top-left-radius: 8px;
}

table thead th:last-child {
  border-top-right-radius: 8px;
}

/* =========================================================
   MASTERPLATING — PADRÃO GLOBAL DE BOTÕES V130
   Objetivo: ações compactas, consistentes e econômicas em espaço.
   Não altera botões de navegação/cards do sistema.
   ========================================================= */
:root{
  --mp-btn-h:32px;
  --mp-btn-h-sm:30px;
  --mp-btn-radius:7px;
  --mp-btn-font:11px;
  --mp-btn-blue:#1766b3;
  --mp-btn-blue-border:#9bb8d8;
  --mp-btn-orange:#f58216;
  --mp-btn-orange-dark:#dd6e0b;
  --mp-btn-green:#18845e;
  --mp-btn-red:#d33b35;
  --mp-btn-gray:#5d7087;
}

/* Ações primárias: mesma altura em todas as telas */
button.primary,
button.btn-primary{
  min-height:var(--mp-btn-h);
  height:var(--mp-btn-h);
  padding:0 13px;
  border-radius:var(--mp-btn-radius);
  font-size:var(--mp-btn-font);
  line-height:1;
  white-space:nowrap;
  box-sizing:border-box;
  font-weight:700;
  background:var(--mp-btn-orange);
  border-color:var(--mp-btn-orange);
  color:#fff;
}
button.primary:hover,
button.btn-primary:hover{background:var(--mp-btn-orange-dark);border-color:var(--mp-btn-orange-dark);}

/* Ações de tabela e ações secundárias */
button.small,
button.edit-ghost,
button.info-ghost,
button.success-ghost,
button.danger-ghost{
  min-height:var(--mp-btn-h-sm);
  height:auto;
  min-width:68px;
  padding:4px 9px;
  border-radius:var(--mp-btn-radius);
  font-size:var(--mp-btn-font);
  line-height:1.15;
  box-sizing:border-box;
  white-space:normal;
  font-weight:600;
}

/* Editar / Ver / ações de consulta */
button.edit-ghost{
  border-color:var(--mp-btn-blue-border);
  color:var(--mp-btn-blue);
  background:#fff;
}
button.edit-ghost:hover{background:#eef5fc;border-color:var(--mp-btn-blue);color:var(--mp-btn-blue);}

/* Informações / enviar / abrir */
button.info-ghost{
  border-color:#9bb8d8;
  color:var(--mp-btn-blue);
  background:#fff;
}
button.info-ghost:hover{background:#eef5fc;border-color:var(--mp-btn-blue);color:var(--mp-btn-blue);}

/* Aprovação / conclusão */
button.success-ghost{
  border-color:#9bcdbb;
  color:var(--mp-btn-green);
  background:#fff;
}
button.success-ghost:hover{background:#eef8f3;border-color:var(--mp-btn-green);color:var(--mp-btn-green);}

/* Exclusão / ações destrutivas */
button.danger-ghost{
  border-color:#e4aaa7;
  color:var(--mp-btn-red);
  background:#fff;
}
button.danger-ghost:hover{background:#fff3f2;border-color:var(--mp-btn-red);color:var(--mp-btn-red);}

/* Botões neutros sem classe: compactos quando usados em linhas de ação */
.btn-row button,
.btn-row-uniforme button,
.receita-actions button,
.receita-footer-left button,
.mp-equip-actions button,
.metro-row-actions button,
.fin-row-actions button,
.fin-actions button,
.obz-head-actions button,
.obz-hero-actions button{
  min-height:var(--mp-btn-h-sm);
  padding:4px 9px;
  border-radius:var(--mp-btn-radius);
  font-size:var(--mp-btn-font);
  line-height:1.15;
  box-sizing:border-box;
}

/* Linhas de ações: sem larguras exageradas e sem ocupar toda a tela */
.btn-row-uniforme{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  justify-content:flex-end;
  align-items:center;
}
.btn-row-uniforme button{
  flex:0 0 auto;
  min-width:68px;
  max-width:112px;
  white-space:normal;
  text-align:center;
}

/* Ações específicas de tabelas: manter compactas e em uma única linha quando possível */
.mp-equip-actions,
.metro-row-actions,
.fin-row-actions{
  gap:5px!important;
  align-items:center;
}
.mp-equip-actions button,
.metro-row-actions button,
.fin-row-actions button{
  min-width:64px!important;
  max-width:105px;
}

/* Botão pequeno genérico */
button.small{font-size:10.5px;padding:4px 8px;}

/* Botões de fechar/ícones não devem herdar o padrão de ações */
.fin-modal-close,
.side-panel-header button,
#mobile-topbar button,
.page-header-profile-toggle{
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  padding:4px!important;
}

/* Em telas estreitas, preservar usabilidade sem aumentar a altura das linhas */
@media(max-width:700px){
  button.primary,button.btn-primary{padding:0 10px;}
  button.small,button.edit-ghost,button.info-ghost,button.success-ghost,button.danger-ghost{min-width:62px;padding:4px 7px;}
  .btn-row-uniforme button{max-width:105px;}
}


/* V278 — Metrologia: ações de tipos sempre lado a lado. */
.metro-tipo-actions{display:flex;align-items:center;justify-content:flex-start;gap:6px;flex-wrap:nowrap;white-space:nowrap;}
.metro-tipo-actions button{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto!important;min-width:68px!important;width:auto!important;margin:0!important;white-space:nowrap!important;}
.metro-tipo-actions button.small{min-height:30px!important;padding:4px 9px!important;}

/* ==========================================================
   MASTERPLATING V131 — TEXTO DE BOTÕES NORMAL
   Padrão global: nenhum botão usa texto em negrito.
   ========================================================== */
button,
button.primary,
button.btn-primary,
button.small,
button.edit-ghost,
button.info-ghost,
button.success-ghost,
button.danger-ghost,
.btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success,
.btn-row button,
.btn-row-uniforme button,
.receita-actions button,
.receita-footer-left button,
.mp-equip-actions button,
.metro-row-actions button,
.fin-row-actions button,
.fin-actions button,
.obz-head-actions button,
.obz-hero-actions button,
.pessoas-quick-actions button,
.home-quick button,
.home-pend-filters button,
.home-pend-row button {
  font-weight: 400 !important;
}

/* ================================================================
   V135 — PADRÃO GLOBAL COMPACTO DE DASHBOARDS / KPIs
   Referência visual oficial: Laboratório Dashboard aprovado
   Objetivo: máxima densidade de informação sem perder legibilidade.
   ================================================================ */
:root{
  --mp-kpi-height:68px;
  --mp-kpi-radius:10px;
  --mp-kpi-gap:10px;
  --mp-kpi-padding:9px 12px;
  --mp-hero-height:96px;
}

/* KPIs genéricos usados pelos módulos */
.metric{
  min-height:68px;
  height:68px;
  box-sizing:border-box;
  padding:9px 12px;
  border-radius:var(--mp-kpi-radius);
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow:hidden;
}
.metric .label{font-size:10.5px;line-height:1.05;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.metric .value{font-size:21px;line-height:1;margin-top:3px}

/* KPIs do design system */
.mp-kpis,.mp-kpi-grid,.home-kpis,.pricing-kpis,.fin-dashboard-kpis,.obz-kpis,.pessoas-kpis{
  gap:var(--mp-kpi-gap) !important;
}
.mp-kpi,.mp-kpi-card,.home-kpi,.pricing-kpi,.fin-dash-kpi,.obz-kpi,.pessoas-kpi{
  min-height:68px !important;
  height:68px !important;
  box-sizing:border-box;
  border-radius:var(--mp-kpi-radius);
}
.mp-kpi{padding:9px 12px !important}
.mp-kpi .value{font-size:22px !important;margin-top:2px}
.mp-kpi .label{font-size:10.5px !important}
.mp-kpi .meta{font-size:9px !important;margin-top:1px}
.mp-kpi-card{padding:8px 11px !important;gap:9px}
.mp-kpi-card .mp-kpi-icon{width:32px;height:32px;font-size:17px}
.mp-kpi-card strong{font-size:21px}
.mp-kpi-card small,.mp-kpi-card>div>span,.mp-kpi-card a{font-size:9.5px}
.home-kpi{padding:8px 10px !important;gap:8px}
.home-kpi-icon{width:32px;height:32px;flex-basis:32px;font-size:16px}
.home-kpi small{font-size:9.5px}
.home-kpi b{font-size:19px}
.home-kpi em{font-size:9px;margin-top:1px}
.pricing-kpi{min-height:78px !important;height:78px !important;padding:9px 12px !important;display:flex !important;flex-direction:column !important;justify-content:center !important;box-sizing:border-box !important}
.fin-dash-kpi{min-height:68px !important;height:68px !important;padding:9px 12px !important}
.fin-dash-kpi span{font-size:10px}
.fin-dash-kpi strong{font-size:21px;margin:3px 0 1px}
.fin-dash-kpi small{font-size:9px}
.obz-kpis .obz-kpi{min-height:68px !important;height:68px !important;padding:9px 12px !important}
.obz-kpis .obz-kpi strong{font-size:21px}
.obz-kpis .obz-kpi span{font-size:10px}
.pessoas-kpi{padding:8px 10px !important;gap:8px}
.pessoas-kpi .kpi-icon{width:32px;height:32px;font-size:16px}
.pessoas-kpi span{font-size:9.5px}
.pessoas-kpi strong{font-size:21px;margin-top:2px}
.pessoas-kpi small{font-size:8.5px;margin-top:1px}

/* Banners/headers de módulos: uma altura única e compacta */
.mp-module-hero,.mp-hero{
  min-height:var(--mp-hero-height) !important;
  height:var(--mp-hero-height);
  box-sizing:border-box;
  padding:12px 18px !important;
  margin-bottom:10px !important;
}
.mp-module-hero:before{top:18px;height:54px}
.mp-module-hero .mp-module-hero-copy{padding-left:4px}
.mp-module-hero .mp-hero-title-row h1,.mp-hero h1{font-size:23px}
.mp-module-hero .mp-hero-icon,.mp-hero .mp-hero-icon{width:38px;height:38px;flex-basis:38px;font-size:21px;border-radius:10px}
.mp-module-hero .mp-hero-title-row p,.mp-hero p{font-size:11px;margin-top:3px}
.mp-module-hero .mp-eyebrow{font-size:9px;margin-bottom:2px}

/* Banners específicos de dashboards */
.fin-dashboard-v2 .fin-hero,
.obz-hero,
.pessoas-dashboard-v3 .pessoas-hero,
.pessoas-dashboard-v2 .pessoas-hero,
.home-hero{
  min-height:var(--mp-hero-height) !important;
  height:var(--mp-hero-height) !important;
  box-sizing:border-box;
}
.fin-dashboard-v2 .fin-hero{height:var(--mp-hero-height) !important;min-height:var(--mp-hero-height) !important}
.pessoas-dashboard-v3 .pessoas-hero{height:var(--mp-hero-height) !important;min-height:var(--mp-hero-height) !important}

/* Laboratório: segue exatamente o mesmo padrão global */
.lab-dashboard-hero{
  min-height:var(--mp-hero-height) !important;
  height:var(--mp-hero-height) !important;
  margin-bottom:10px !important;
}
.lab-dashboard-copy{padding:8px 18px 8px 22px !important}
.lab-dashboard-title-row{gap:9px !important}
.lab-dashboard-icon{width:34px !important;height:34px !important;font-size:20px !important;border-radius:9px !important}
.lab-dashboard-title-row h1{font-size:22px !important}
.lab-dashboard-copy p{font-size:10px !important;margin-top:2px !important}
.lab-dashboard-kicker{font-size:9px !important;margin-bottom:2px !important}
.lab-dashboard-kpis{margin-bottom:10px !important;gap:10px !important}
.lab-dashboard-kpis .metric{min-height:68px !important;height:68px !important;max-height:68px !important}
.lab-dashboard-kpis .metric .label{font-size:10px !important}
.lab-dashboard-kpis .metric .value{font-size:21px !important}

@media(max-width:700px){
  :root{--mp-kpi-height:64px;--mp-hero-height:88px}
  .mp-kpi,.mp-kpi-card,.home-kpi,.pricing-kpi,.fin-dash-kpi,.obz-kpi,.pessoas-kpi,.metric{height:64px !important;min-height:64px !important}
  .lab-dashboard-hero{height:88px !important;min-height:88px !important}
  .lab-dashboard-copy{padding:7px 12px !important}
  .lab-dashboard-title-row h1{font-size:20px !important}
}

/* V196 — Pricing: cards com altura suficiente para título + valor + apoio, sem corte */
.pricing-kpi {
  min-height:78px !important;
  height:78px !important;
  padding:9px 12px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}
.pricing-kpi .k-label {
  font-size:10px !important;
  line-height:1.08 !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  line-clamp:2 !important;
  overflow:hidden !important;
}
.pricing-kpi .k-value {
  font-size:21px !important;
  line-height:1 !important;
  margin-top:4px !important;
}
.pricing-kpi .k-sub {
  font-size:9px !important;
  line-height:1.05 !important;
  margin-top:3px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

/* V136 — padrão global definitivo de KPIs: conteúdo sempre contido no card */
.mp-kpi,
.mp-kpi-card,
.home-kpi,
.pricing-kpi,
.fin-dash-kpi,
.obz-kpi,
.pessoas-kpi,
.lab-dashboard-kpis .metric {
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Rótulos dos KPIs: leitura normal, sem negrito e sem escapar do card */
.mp-kpi .label,
.mp-kpi-card small,
.mp-kpi-card > div > span,
.home-kpi small,
.home-kpi em,
.pricing-kpi .k-label,
.pricing-kpi .k-sub,
.fin-dash-kpi span,
.fin-dash-kpi small,
.obz-kpi span,
.obz-kpi small,
.pessoas-kpi span,
.pessoas-kpi small,
.lab-dashboard-kpis .metric .label {
  font-weight: 400 !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Títulos longos: no máximo duas linhas */
.pessoas-kpi span,
.pricing-kpi .k-label,
.mp-kpi .label,
.mp-kpi-card > div > span,
.home-kpi small,
.fin-dash-kpi span,
.obz-kpi span,
.lab-dashboard-kpis .metric .label {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  line-height: 1.05 !important;
}

/* KPI Pessoas: reserva espaço previsível para título + valor + apoio */
.pessoas-kpi {
  min-height: 68px !important;
  height: 68px !important;
  padding: 6px 9px !important;
  gap: 7px !important;
  align-items: center !important;
}
.pessoas-kpi > div:last-child {
  min-width: 0 !important;
  overflow: hidden !important;
}
.pessoas-kpi .kpi-icon {
  width: 31px !important;
  height: 31px !important;
  flex: 0 0 31px !important;
  font-size: 15px !important;
}
.pessoas-kpi span { font-size: 9px !important; }
.pessoas-kpi strong {
  font-size: 20px !important;
  line-height: 1 !important;
  margin: 2px 0 0 !important;
  font-weight: 600 !important;
}
.pessoas-kpi small {
  font-size: 8px !important;
  line-height: 1 !important;
  margin-top: 1px !important;
  white-space: nowrap !important;
}

/* Demais KPIs: preservar o valor em destaque e manter rótulos leves */
.mp-kpi .value,
.mp-kpi-card strong,
.home-kpi b,
.pricing-kpi .k-value,
.fin-dash-kpi strong,
.obz-kpi strong,
.lab-dashboard-kpis .metric .value {
  font-weight: 600 !important;
}

/* Botões: texto normal em todo o sistema; ícones não são alterados */
button,
.btn,
.primary,
.secondary,
.danger,
.small,
.btn-small,
.link-btn {
  font-weight: 400 !important;
}

@media (max-width:700px) {
  .pessoas-kpi {
    height: 64px !important;
    min-height: 64px !important;
    padding: 5px 8px !important;
  }
  .pessoas-kpi .kpi-icon { width: 29px !important; height: 29px !important; flex-basis: 29px !important; }
  .pessoas-kpi span { font-size: 8.5px !important; }
  .pessoas-kpi strong { font-size: 19px !important; }
  .pessoas-kpi small { font-size: 7.5px !important; }
}

/* V139 — Seletor global de colunas para tabelas extensas */
.mp-column-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin:0 0 6px;position:relative;z-index:20}
.mp-column-picker{position:relative;display:inline-block}
.mp-column-picker>button{height:30px;padding:0 10px;border:1px solid #c6d8eb;background:#fff;color:#174b85;border-radius:7px;font:400 11px/1 var(--font-body,Arial,sans-serif);cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.mp-column-picker>button:hover{background:#f3f7fb;border-color:#9ebfe0}
.mp-column-menu{position:absolute;right:0;top:34px;width:245px;max-height:360px;overflow:auto;background:#fff;border:1px solid #cbdbea;border-radius:9px;box-shadow:0 8px 24px rgba(20,55,95,.16);padding:8px;display:none}
.mp-column-picker.open .mp-column-menu{display:block}
.mp-column-menu-title{font-size:11px;color:#174b85;font-weight:600;padding:3px 4px 7px;border-bottom:1px solid #e3ebf3;margin-bottom:5px}
.mp-column-menu label{display:flex;align-items:center;gap:7px;padding:5px 4px;font-size:11px;font-weight:400;color:#405a73;cursor:pointer;border-radius:5px}
.mp-column-menu label:hover{background:#f4f8fc}
.mp-column-menu input{accent-color:#1767b1;margin:0}
.mp-column-menu-actions{display:flex;gap:5px;padding-top:7px;margin-top:5px;border-top:1px solid #e3ebf3}
.mp-column-menu-actions button{height:27px;padding:0 8px;border:1px solid #c6d8eb;background:#fff;color:#315b7f;border-radius:6px;font:400 10px/1 var(--font-body,Arial,sans-serif);cursor:pointer}
.mp-column-menu-actions button:hover{background:#f3f7fb}
.mp-table-column-hidden{display:none!important}
@media(max-width:700px){.mp-column-toolbar{justify-content:flex-start}.mp-column-menu{left:0;right:auto;width:230px;max-width:calc(100vw - 36px)}}

/* V142 — padrão visual global do seletor de colunas: opções coloridas e texto sempre à esquerda */
.mp-column-menu{padding:7px;text-align:left!important}
.mp-column-menu-title{text-align:left!important;display:block}
.mp-column-menu label.mp-col-option{
  display:flex!important;
  flex-direction:row!important;
  justify-content:flex-start!important;
  align-items:center!important;
  width:100%!important;
  box-sizing:border-box!important;
  min-height:30px;
  margin:2px 0!important;
  padding:5px 7px!important;
  text-align:left!important;
  font-weight:400!important;
  border:1px solid transparent;
}
.mp-column-menu label.mp-col-option span{
  flex:1 1 auto!important;
  display:block!important;
  text-align:left!important;
  white-space:normal!important;
  line-height:1.2!important;
}
.mp-column-menu label.mp-col-option input{
  flex:0 0 auto!important;
  margin:0 8px 0 0!important;
}
.mp-column-menu label.mp-col-option:hover{filter:brightness(.985);border-color:#c8d9ea}
.mp-column-menu .mp-col-0{background:#eaf4ff}
.mp-column-menu .mp-col-1{background:#eaf8f0}
.mp-column-menu .mp-col-2{background:#fff5df}
.mp-column-menu .mp-col-3{background:#f1ecff}
.mp-column-menu .mp-col-4{background:#ffecef}
.mp-column-menu .mp-col-5{background:#e8f8fb}
.mp-column-menu .mp-col-6{background:#edf8ef}
.mp-column-menu .mp-col-7{background:#fff0e3}
.mp-column-menu .mp-col-8{background:#f8eafa}
.mp-column-menu .mp-col-9{background:#edf1f5}
.mp-column-menu-actions{justify-content:flex-start!important;text-align:left!important}
.mp-column-menu-actions button{text-align:left!important}

/* V143 — seletor de colunas: coluna do checkbox compacta */
.mp-column-menu label.mp-col-option{
  display:grid!important;
  grid-template-columns:18px minmax(0,1fr)!important;
  column-gap:6px!important;
  align-items:center!important;
}
.mp-column-menu label.mp-col-option input[type="checkbox"]{
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  max-width:14px!important;
  margin:0!important;
  padding:0!important;
  justify-self:center!important;
}
.mp-column-menu label.mp-col-option span{
  min-width:0!important;
  overflow-wrap:anywhere!important;
}
.mp-column-menu{overflow-x:hidden!important}

/* V144 — padrão global de filtros em dropdown */
.mp-filter-dropdown-list {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  margin: 8px 8px 8px 0 !important;
  vertical-align: middle;
}
.mp-filter-dropdown-list .mp-filter-select {
  min-width: 190px;
  height: 34px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-panel);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 400;
  cursor: pointer;
  outline: none;
}
.mp-filter-dropdown-list .mp-filter-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(47,111,224,.10);
}
@media (max-width: 760px) {
  .mp-filter-dropdown-list { display: flex !important; width: 100%; margin-right: 0 !important; }
  .mp-filter-dropdown-list .mp-filter-select { width: 100%; min-width: 0; }
}

/* V151 — KPIs Financeiro e OBZ: conteúdo integralmente legível */
.fin-dashboard-kpis .fin-dash-kpi,
.obz-kpis .obz-kpi{
  box-sizing:border-box !important;
  height:82px !important;
  min-height:82px !important;
  max-height:none !important;
  padding:10px 13px !important;
  justify-content:center !important;
  overflow:hidden !important;
}
.fin-dashboard-kpis .fin-dash-kpi span,
.obz-kpis .obz-kpi span{
  display:block !important;
  font-size:11px !important;
  line-height:1.15 !important;
  min-height:13px;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
.fin-dashboard-kpis .fin-dash-kpi strong,
.obz-kpis .obz-kpi strong{
  display:block !important;
  font-size:22px !important;
  line-height:1.08 !important;
  margin:3px 0 2px !important;
  white-space:nowrap !important;
}
.fin-dashboard-kpis .fin-dash-kpi small,
.obz-kpis .obz-kpi small{
  display:block !important;
  font-size:10px !important;
  line-height:1.15 !important;
  min-height:12px;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
@media(max-width:700px){
  .fin-dashboard-kpis .fin-dash-kpi,
  .obz-kpis .obz-kpi{height:78px !important;min-height:78px !important;padding:9px 11px !important}
  .fin-dashboard-kpis .fin-dash-kpi strong,
  .obz-kpis .obz-kpi strong{font-size:21px !important}
}


/* ================================================================
   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; }

/* V181 — contraste da Home e padronização do módulo Financeiro */
.home-kpi {
  background:#ffffff !important;
  border:1px solid #c9d7e6 !important;
  box-shadow:0 2px 8px rgba(28,60,100,.10) !important;
}
.home-kpi small { color:#365675 !important; }
.home-kpi b { color:#102f52 !important; }
.home-kpi em { color:#5f7892 !important; }
.home-kpi-icon { border:1px solid rgba(30,70,110,.08); }
.home-card {
  background:#ffffff !important;
  border-color:#c9d7e6 !important;
  box-shadow:0 2px 9px rgba(28,60,100,.09) !important;
}
.home-card-head { border-bottom-color:#d6e1ec !important; }
.home-card-head h2 { color:#123f73 !important; }
.home-card-head p { color:#58718b !important; }
.home-counts { color:#365675 !important; }
.home-flow>div { border-color:#ccd9e6 !important; background:#f8fbfe !important; }
.home-flow span { color:#46637d !important; }
.home-flow b { color:#123f73 !important; }
.home-quick button { border-color:#c9d7e6 !important; background:#f7faff !important; color:#123f73 !important; }
.home-pend-head, .home-pend-table { color:#294965; }

/* 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: 0 !important; }
.financeiro-modulo-item.active { background: var(--accent) !important; color: #fff !important; border-left: 0 !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;
}

/* V158 — Gestão Financeira: seção lateral sempre visível quando o módulo Financeiro está liberado. */
.financeiro-section-label {
  cursor: default !important;
  background: rgba(255,255,255,.06) !important;
  color: #ffffff !important;
  font-weight: 600;
}

/* V187 — Padrão global de navegação:
   - módulo com submenus: pai ativo em laranja; submenu selecionado em azul
   - módulo sem submenus: o próprio item selecionado fica laranja
*/
#sidebar .modulo-item.active {
  background: #f57c00 !important;
  color: #fff !important;
  box-shadow: none !important;
}
#sidebar .modulo-item.active span { color: #fff !important; }
#sidebar .submenu-item.active {
  background: #176dcc !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 #58a7ff;
}
#sidebar .submenu-item.active span { color: #fff !important; }
#sidebar .financeiro-direct-item.active,
#sidebar .financeiro-gestao-item.active {
  background: #176dcc !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 #58a7ff;
}


/* V188 — Login institucional / posicionamento amplo do MasterPlating */
.mp-login-page{min-height:100vh;width:100%;display:grid;grid-template-columns:minmax(250px,0.78fr) minmax(390px,0.95fr) minmax(360px,1fr);background:linear-gradient(135deg,#eef6ff 0%,#f7fbff 48%,#eaf3fb 100%);overflow:hidden;position:relative}
.mp-login-page:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,rgba(255,255,255,.42),transparent 42%,rgba(20,111,204,.05));pointer-events:none}
.mp-login-marketing{display:flex;align-items:center;justify-content:center;padding:48px 34px;position:relative;z-index:1}
.mp-login-marketing-inner{width:min(330px,100%)}
.mp-login-kicker{font-size:11px;font-weight:800;letter-spacing:1.5px;color:#176dcc;margin-bottom:14px}
.mp-login-marketing h1{margin:0;color:#123f73;font-size:38px;line-height:1.08;font-weight:600;letter-spacing:-1px}
.mp-login-marketing h1 strong{color:#147bd1;font-weight:700}
.mp-login-rule{width:54px;height:3px;border-radius:4px;background:#1785df;margin:22px 0 18px}
.mp-login-lead{margin:0;color:#4e6c88;font-size:15px;line-height:1.55;max-width:315px}
.mp-login-benefits{display:grid;gap:16px;margin-top:30px}
.mp-login-benefit{display:flex;align-items:center;gap:13px;color:#123f73}
.mp-login-benefit-icon{width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#e8f3ff;border:1px solid #cfe3f8;color:#147bd1;font-size:19px;font-weight:800;flex:0 0 40px}
.mp-login-benefit b{display:block;font-size:14px;font-weight:700}.mp-login-benefit small{display:block;margin-top:2px;color:#64809a;font-size:11.5px}
.mp-login-slogan{margin-top:46px;color:#176dcc;font-family:"Space Grotesk",Inter,sans-serif;font-size:28px;line-height:1.03;font-style:italic;font-weight:600}
.mp-login-panel{display:flex;align-items:center;justify-content:center;padding:34px 18px;position:relative;z-index:2}
.mp-login-card{width:min(520px,100%);padding:26px 38px 20px;border:1px solid rgba(184,207,230,.8);border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 18px 55px rgba(31,70,108,.16)}
.mp-login-brand{text-align:center}.mp-login-brand img{display:block;width:min(300px,82%);height:auto;max-height:105px;object-fit:contain;margin:0 auto}
.mp-login-divider{height:1px;background:#dbe6f0;margin:8px 0 14px}
.mp-login-welcome{text-align:center}.mp-login-welcome span{display:block;color:#244f7d;font-size:18px;font-weight:600}.mp-login-welcome strong{display:block;color:#123f73;font-size:31px;line-height:1.05;font-weight:700}.mp-login-welcome small{display:block;margin-top:6px;color:#607c96;font-size:13px}
.mp-login-error{margin:15px 0 4px;padding:10px 12px;border:1px solid #f1b8b8;border-radius:9px;background:#fff4f4;color:#a82f2f;font-size:12px}
.mp-login-form{margin-top:20px}.mp-login-field{margin-bottom:14px}.mp-login-field label{display:block;margin-bottom:6px;color:#244f7d;font-size:12px;font-weight:700}
.mp-login-input-wrap{position:relative}.mp-login-input-wrap input{width:100%;height:50px;box-sizing:border-box;padding:0 44px;border:1px solid #bfd3e8;border-radius:9px;background:#fbfdff;color:#173f68;font-size:14px;outline:none;transition:.18s}.mp-login-input-wrap input::placeholder{color:#8aa0b6}.mp-login-input-wrap input:focus{border-color:#4c9be0;box-shadow:0 0 0 3px rgba(20,123,209,.10);background:#fff}
.mp-login-input-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#517799;font-size:17px;z-index:1}.mp-login-eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;background:transparent;color:#527797;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer}
.mp-login-options{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 17px}.mp-login-check{display:flex;align-items:center;gap:7px;color:#315675;font-size:11.5px;cursor:pointer}.mp-login-check input{width:17px;height:17px;accent-color:#176dcc}.mp-login-link{border:0;background:none;padding:0;color:#0878d1;text-decoration:underline;font-size:11.5px;cursor:pointer}
.mp-login-submit{width:100%;height:52px;border:0;border-radius:9px;background:linear-gradient(135deg,#ff8a18,#f36f0b);color:#fff;font-size:15px;font-weight:700;box-shadow:0 7px 16px rgba(243,111,11,.23);cursor:pointer;transition:.18s}.mp-login-submit:hover{filter:brightness(1.03);transform:translateY(-1px)}.mp-login-submit:disabled{opacity:.75;cursor:wait;transform:none}
.mp-login-status{min-height:22px;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:11px;color:#5680a2;font-size:11.5px}.mp-login-spinner{width:13px;height:13px;border:2px solid #c9dff2;border-top-color:#1785df;border-radius:50%;animation:mpLoginSpin .8s linear infinite}@keyframes mpLoginSpin{to{transform:rotate(360deg)}}
.mp-login-footer{border-top:1px solid #e0e9f2;margin-top:12px;padding-top:12px;text-align:center;color:#66809a;font-size:10.5px;line-height:1.5}.mp-login-footer strong{display:block;color:#234f7d;font-size:11px}
.mp-login-visual{position:relative;min-height:100vh;overflow:hidden;background:#dfeefa;z-index:1}.mp-login-visual-image{position:absolute;inset:0;background-image:url('../img/login-business-right.png');background-size:cover;background-position:center center;transform:scale(1.01)}.mp-login-visual-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(234,245,255,.72) 0%,rgba(16,76,125,.05) 32%,rgba(7,50,91,.14) 100%)}@media(max-width:1100px){.mp-login-page{grid-template-columns:minmax(230px,.65fr) minmax(390px,1fr) minmax(260px,.7fr)}.mp-login-marketing{padding:30px 20px}.mp-login-marketing h1{font-size:31px}.mp-login-card{padding:24px 30px 18px}}
@media(max-width:820px){.mp-login-page{display:flex;min-height:100vh}.mp-login-marketing,.mp-login-visual{display:none}.mp-login-panel{width:100%;padding:22px 14px}.mp-login-card{max-width:520px;padding:24px 22px 18px}.mp-login-brand img{width:min(280px,88%)}.mp-login-welcome strong{font-size:28px}}
@media(max-width:480px){.mp-login-card{border-radius:14px;padding:20px 16px 15px}.mp-login-options{align-items:flex-start;flex-direction:column}.mp-login-submit{height:50px}}

/* V190 — Login 100%: ajuste vertical para caber integralmente no viewport */
@media (min-width:821px) and (max-height:760px){
  .mp-login-page{min-height:100dvh;height:100dvh;overflow:hidden}
  .mp-login-marketing{padding:22px 28px}
  .mp-login-kicker{margin-bottom:9px;font-size:10px}
  .mp-login-marketing h1{font-size:31px;line-height:1.04}
  .mp-login-rule{margin:13px 0 11px}
  .mp-login-lead{font-size:13px;line-height:1.4}
  .mp-login-benefits{gap:10px;margin-top:18px}
  .mp-login-benefit{gap:10px}
  .mp-login-benefit-icon{width:34px;height:34px;flex-basis:34px;font-size:16px}
  .mp-login-benefit b{font-size:12.5px}
  .mp-login-benefit small{font-size:10.5px}
  .mp-login-slogan{margin-top:22px;font-size:23px}
  .mp-login-panel{padding:10px 16px}
  .mp-login-card{width:min(500px,100%);padding:14px 32px 10px;border-radius:16px}
  .mp-login-brand img{width:min(270px,78%);max-height:72px}
  .mp-login-divider{margin:4px 0 9px}
  .mp-login-welcome span{font-size:15px}
  .mp-login-welcome strong{font-size:27px}
  .mp-login-welcome small{margin-top:3px;font-size:11px}
  .mp-login-form{margin-top:12px}
  .mp-login-field{margin-bottom:9px}
  .mp-login-field label{margin-bottom:4px;font-size:11px}
  .mp-login-input-wrap input{height:43px;font-size:13px}
  .mp-login-options{margin:0 0 10px}
  .mp-login-check,.mp-login-link{font-size:10.5px}
  .mp-login-submit{height:46px;font-size:14px}
  .mp-login-status{min-height:15px;margin-top:6px;font-size:10.5px}
  .mp-login-footer{margin-top:6px;padding-top:7px;font-size:9.5px;line-height:1.35}
  .mp-login-footer strong{font-size:10px}
}


/* V191 — Login cache/viewport final */
@media (min-width:821px) and (max-height:820px){
  .mp-login-page{min-height:100dvh;height:100dvh;overflow:hidden}
  .mp-login-panel{padding-top:8px;padding-bottom:8px}
  .mp-login-card{max-height:calc(100dvh - 16px);box-sizing:border-box;overflow:hidden}
}
@media (min-width:821px) and (max-height:700px){
  .mp-login-card{padding-top:10px;padding-bottom:7px}
  .mp-login-brand img{max-height:62px}
  .mp-login-welcome strong{font-size:24px}
  .mp-login-form{margin-top:9px}
  .mp-login-field{margin-bottom:7px}
  .mp-login-input-wrap input{height:40px}
  .mp-login-submit{height:43px}
  .mp-login-footer{margin-top:7px;padding-top:7px}
}

/* V198 — Cadastro de Peças: filtros e lista no padrão aprovado */
.peca-page-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:16px;padding:2px 0 16px;border-bottom:1px solid var(--mp-border)}
.peca-page-title{display:flex;align-items:center;gap:12px;min-width:280px}.peca-title-icon{width:42px;height:42px;border-radius:10px;background:#edf5ff;color:var(--mp-blue-600);display:grid;place-items:center;font-size:22px}.peca-page-title h1{margin:0;color:var(--mp-blue-900);font-size:25px}.peca-page-title p{margin:3px 0 0;color:#60748d;font-size:12px}.peca-head-metrics{display:flex;align-items:stretch;gap:10px}.peca-mini-card{min-width:130px;padding:9px 14px;border:1px solid #d5e2f1;border-radius:9px;background:#f7fbff;display:flex;flex-direction:column;justify-content:center}.peca-mini-card strong{font-size:19px;color:var(--mp-blue-900)}.peca-mini-card span{font-size:10.5px;color:#60748d}.peca-mini-card.wide{min-width:185px}.peca-mini-card.wide strong{font-size:13px}.peca-new-btn{height:44px;white-space:nowrap}
.peca-filter-panel{padding:18px 20px}.peca-search-row{display:flex;gap:10px;align-items:center}.peca-search{height:44px;border:1px solid #cbd9ea;border-radius:8px;display:flex;align-items:center;padding:0 12px;flex:1;background:#fff}.peca-search span{font-size:22px;color:#58718e;margin-right:7px}.peca-search input{border:0!important;box-shadow:none!important;height:40px;flex:1;outline:0;font-size:14px}.peca-search-btn,.peca-secondary{height:42px;white-space:nowrap}.peca-secondary{background:#fff;border:1px solid #c7d7e9;color:var(--mp-blue-700);padding:0 14px}.peca-filter-label{font-weight:700;color:var(--mp-blue-900);margin:16px 0 7px}.peca-status-row{display:flex;gap:8px;flex-wrap:wrap}.peca-status-chip{height:34px;padding:0 14px;border:1px solid #c7d7e9;background:#fff;color:var(--mp-blue-700);border-radius:8px}.peca-status-chip.active{background:#1478db;color:#fff;border-color:#1478db}.peca-select-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;margin-top:13px}.peca-select-grid .field label{display:block;margin-bottom:5px}.peca-select-grid select{height:40px;width:100%}.peca-active-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:12px;font-size:12px;color:#526780}.peca-filter-tag{border:0;background:#fff0e5;color:#e36e0d;border-radius:7px;padding:6px 10px}.peca-no-filter{color:#8a9aae}.peca-list-card{padding:0!important;overflow:visible;background:transparent!important;border:0!important;box-shadow:none!important}.peca-list-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px 12px;background:#fff;border:1px solid #d3e0ec;border-bottom:0;border-radius:12px 12px 0 0}.peca-list-head h2{margin:0;color:var(--mp-blue-900);font-size:18px}.peca-list-head h2 span{font-weight:400;color:#73859b;font-size:13px}.peca-list-actions{display:flex;gap:6px}.view-toggle{width:38px;height:36px;border:1px solid #c7d7e9;background:#fff;color:#35608e}.view-toggle.active{background:#1478db;color:#fff;border-color:#1478db}.peca-list-card>.table-wrap{border:1px solid #d3e0ec!important;border-top:1px solid #d3e0ec!important;border-radius:0 0 12px 12px;background:#fff;box-shadow:none}.peca-table{border:0!important}.peca-table th{background:#eaf3fc;color:#17385f}.peca-table td{vertical-align:middle;height:74px}.peca-thumb{width:64px;height:64px;border-radius:7px;object-fit:contain;background:#f5f5f5;border:1px solid #e4e8ee}.peca-thumb-empty{display:grid;place-items:center;color:#9aabba;font-size:22px}.peca-table td strong{display:block;color:#17385f}.peca-table td small{display:block;color:#6f8197;font-size:11px;margin-top:3px}.peca-tags{display:flex;flex-wrap:wrap;gap:4px}.peca-tags span,.peca-finish-tag{display:inline-block;background:#eaf3fc;color:#1766b3;border-radius:14px;padding:5px 9px;font-size:11px}.peca-active-badge{display:inline-flex;align-items:center;gap:5px;background:#e4f7ed;color:#168353;border-radius:14px;padding:5px 10px;font-size:11px}.peca-active-badge i{width:7px;height:7px;border-radius:50%;background:#19a463}.peca-row-actions{display:flex;gap:5px}.peca-row-actions button{width:34px;height:32px;background:#fff;border:1px solid #c9d9eb;color:#1766b3}.peca-list-footer{display:flex;justify-content:space-between;align-items:center;padding:12px 18px;margin-top:8px;color:#60748d;font-size:12px;background:#fff;border:1px solid #d3e0ec;border-radius:12px}.peca-list-footer>div{display:flex;align-items:center;gap:5px}.peca-list-footer button{width:34px;height:32px;background:#fff;border:1px solid #d1deec}.peca-list-footer .page-active{background:#1478db;color:#fff;border-color:#1478db}.peca-list-footer select{height:32px;margin-left:6px}.peca-tip{display:flex;gap:12px;align-items:center;margin-top:12px;padding:12px 16px;border:1px solid #b9daf8;background:#eef7ff;border-radius:8px;color:#1766b3;font-size:11px}.peca-tip>span{width:24px;height:24px;border-radius:50%;background:#1478db;color:#fff;display:grid;place-items:center;font-weight:700}.peca-tip div{display:flex;justify-content:space-between;gap:20px;width:100%}.peca-tip a{color:#1766b3;text-decoration:underline;white-space:nowrap}
@media(max-width:1100px){.peca-page-head{align-items:flex-start;flex-direction:column}.peca-head-metrics{width:100%;flex-wrap:wrap}.peca-select-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}.peca-search-row{flex-wrap:wrap}.peca-search{min-width:280px}.peca-table{min-width:1050px}}
@media(max-width:650px){.peca-select-grid{grid-template-columns:1fr}.peca-head-metrics{display:grid;grid-template-columns:1fr 1fr}.peca-mini-card.wide{grid-column:1/-1}.peca-tip div{flex-direction:column}.peca-list-footer{flex-direction:column;gap:10px;align-items:flex-start}}

/* V204 — Gerenciador de Etapas: grupos como classificação, etapas como operação */
.mp-etp-gerenciador { border:1px solid var(--border,#d7e1ee); border-radius:12px; overflow:hidden; background:#fff; }
.mp-etp-gerenciador-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:12px 14px; background:#edf4fc; border-bottom:1px solid #d7e1ee; }
.mp-etp-gerenciador-head strong { color:#164a80; font-size:14px; }
.mp-etp-gerenciador-head p { margin:4px 0 0; color:var(--text-muted,#718096); font-size:11.5px; }
.mp-etp-tabs { display:flex; gap:8px; padding:10px 12px 0; }
.mp-etp-panel { padding:12px; }
.mp-etp-panel-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.mp-etp-panel-title strong { display:block; color:#173f70; font-size:13px; }
.mp-etp-panel-title span { display:block; margin-top:3px; color:#718096; font-size:11.5px; }
.mp-etp-filtro-grupo { display:grid; grid-template-columns:minmax(220px,300px) 1fr; gap:10px; align-items:end; padding:10px; margin-bottom:10px; border:1px solid #d8e4f2; border-radius:9px; background:#f7faff; }
.mp-etp-filtro-grupo label { grid-column:1 / -1; margin-bottom:-5px; font-size:11px; font-weight:700; color:#42617f; }
.mp-etp-filtro-grupo select { height:36px; }
.mp-etp-filtro-resumo { height:36px; display:flex; align-items:center; padding:0 10px; border:1px solid #d8e4f2; border-radius:7px; background:#fff; color:#61758d; font-size:11.5px; }
.mp-etp-filtro-resumo strong { color:#174d83; margin-right:4px; }
.mp-etp-sub { margin-top:2px; color:#7b8ca1; font-size:10.5px; font-weight:400; }
.mp-etp-info-note { margin-top:10px; padding:8px 10px; border-radius:8px; background:#f7faff; color:#718096; font-size:11px; }
.mp-etp-table th { background:#dbe8f5; }
@media (max-width:800px) { .mp-etp-filtro-grupo { grid-template-columns:1fr; } .mp-etp-filtro-grupo label { grid-column:auto; } .mp-etp-panel-title { align-items:flex-start; flex-direction:column; } }


/* V205 — Etapas & Tratamentos: botão Gerenciar na mesma linha do título */
.mp-etapas-padrao-card .mp-padrao-cabecalho{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
}
.mp-etapas-padrao-card .mp-padrao-cabecalho-titulo{
  min-width:0;
  flex:1 1 auto;
}
.mp-etapas-padrao-card .mp-padrao-cabecalho-titulo p{
  margin:5px 0 0 !important;
}
.mp-etapas-padrao-card .mp-padrao-gerenciar{
  flex:0 0 auto;
  min-height:34px;
  padding:7px 12px;
}
@media(max-width:620px){
  .mp-etapas-padrao-card .mp-padrao-cabecalho{
    align-items:flex-start !important;
  }
  .mp-etapas-padrao-card .mp-padrao-gerenciar{
    margin-top:1px;
  }
}

/* V213 — Etapas & Tratamentos: edição de grupo/etapa sem prompts e ações da biblioteca */
.mp-padrao-acoes{display:flex;gap:6px;justify-content:flex-end;align-items:center;flex-wrap:nowrap}
.mp-etp-modal-backdrop{position:fixed;inset:0;z-index:10000;background:rgba(15,39,67,.42);display:flex;align-items:center;justify-content:center;padding:20px}
.mp-etp-modal{width:min(560px,calc(100vw - 32px));background:#fff;border:1px solid #cddced;border-radius:14px;box-shadow:0 20px 60px rgba(20,55,90,.24);overflow:hidden}
.mp-etp-modal-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:16px 18px;background:#edf4fc;border-bottom:1px solid #d7e1ee}
.mp-etp-modal-head strong{display:block;color:#164a80;font-size:15px}.mp-etp-modal-head span{display:block;margin-top:4px;color:#718096;font-size:11.5px}
.mp-etp-modal-head button{width:32px;height:32px;font-size:18px;line-height:1}
.mp-etp-modal-body{padding:18px}.mp-etp-modal-body .field{margin-bottom:12px}.mp-etp-modal-body input{height:40px;width:100%;box-sizing:border-box}
.mp-etp-modal-grid{display:grid;grid-template-columns:1fr 120px;gap:12px}.mp-etp-modal-summary{padding:11px 12px;border:1px solid #d8e4f2;border-radius:9px;background:#f7faff;color:#61758d;font-size:11.5px}
.mp-etp-modal-summary strong{color:#174d83;font-size:15px}.mp-etp-modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid #e1e8f1;background:#fbfdff}
@media(max-width:650px){.mp-etp-modal-grid{grid-template-columns:1fr}.mp-padrao-acoes{flex-wrap:wrap;justify-content:flex-start}}

/* Cadastro profissional de etapas — sem prompt/alert */
.mp-etp-modal-feedback{display:none;margin-top:10px;padding:9px 11px;border-radius:8px;font-size:12px;line-height:1.35}
.mp-etp-modal-feedback.error{display:block;border:1px solid #f1b4b4;background:#fff5f5;color:#b42318}
.mp-etp-modal-feedback.success{display:block;border:1px solid #b7dfc9;background:#f1fbf5;color:#18794e}
.mp-etp-modal-body .field small{display:block;margin-top:4px;color:#7b8da3;font-size:10.5px}
.mp-etp-modal-body select:focus,.mp-etp-modal-body input:focus{outline:none;border-color:#1976d2;box-shadow:0 0 0 3px rgba(25,118,210,.10)}

/* V237 — regra de marca da sidebar: topo transparente; rodapé somente quando houver parceiro. */
.sidebar-logo-marca {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  max-height: 104px;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  visibility: visible !important;
}
.sidebar-logo-marca img {
  display: block !important;
  width: min(156px, 100%);
  max-width: 100%;
  max-height: 82px;
  width: auto;
  height: auto;
  object-fit: contain;
  visibility: visible !important;
}
.sidebar-logo-masterplating-top img {
  width: min(156px, 100%);
  max-height: 58px;
}
.sidebar-logo-parceiro-top img {
  width: min(156px, 100%);
  max-height: 70px;
}
.sidebar-nav-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
}
.sidebar-masterplating-brand {
  flex-shrink: 0;
  margin: 10px -12px -20px;
  padding: 18px 12px 16px;
  min-height: 82px;
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(0,0,0,0.05);
}
.sidebar-powered-by {
  font-size: 10px;
  line-height: 1;
  color: var(--sidebar-text);
  opacity: .68;
  letter-spacing: .2px;
}
.sidebar-masterplating-brand img {
  display: block;
  width: min(156px, 90%);
  max-height: 48px;
  height: auto;
  object-fit: contain;
}
@media (max-width: 860px) {
  .sidebar-masterplating-brand {
    margin-bottom: -20px;
  }
}

/* V2.84 — Mapas de Processo: usa a identidade visual global do MasterPlating. */
.mp84-wrap{padding:16px 18px 28px;max-width:1500px;margin:0 auto;color:var(--text-primary)}
.mp84-hero,.mp84-page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:18px 20px;background:linear-gradient(135deg,#fff,#f3f8fd);border:1px solid var(--border);border-radius:12px;box-shadow:0 3px 12px rgba(31,61,94,.06)}
.mp84-hero h1,.mp84-page-head h1{margin:2px 0 4px;color:var(--heading-blue);font-size:24px}.mp84-hero p,.mp84-page-head p{margin:0;color:var(--text-secondary);font-size:13px}.mp84-eyebrow{font-size:10px;font-weight:800;letter-spacing:1.1px;color:var(--accent);text-transform:uppercase;margin-bottom:3px}
.mp84-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px}.mp84-kpis>div{background:#fff;border:1px solid var(--border);border-radius:10px;padding:13px 15px;box-shadow:0 2px 8px rgba(31,61,94,.04);border-top:3px solid var(--accent)}.mp84-kpis span{display:block;font-size:11px;color:var(--text-secondary)}.mp84-kpis strong{display:block;font-size:23px;color:var(--heading-blue);margin-top:5px}
.mp84-card,.mp84-section{background:#fff;border:1px solid var(--border);border-radius:11px;margin-bottom:14px;box-shadow:0 2px 8px rgba(31,61,94,.04)}.mp84-card-head,.mp84-section-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid var(--border);background:var(--bg-panel-2)}.mp84-card-head h3{margin:0;color:var(--heading-blue);font-size:15px;background:none;border:0;padding:0;text-transform:none}.mp84-card-head p{margin:4px 0 0;color:var(--text-secondary);font-size:11px}.mp84-flow-mini{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--heading-blue)}.mp84-flow-mini i{color:var(--accent);font-style:normal;font-weight:800}.mp84-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:16px}.mp84-info-grid>div{padding:14px;border:1px solid var(--border);border-radius:9px;background:#fbfcfe}.mp84-info-grid strong{display:block;color:var(--heading-blue);font-size:12px;margin-bottom:5px}.mp84-info-grid span{display:block;color:var(--text-secondary);font-size:11px;line-height:1.45}.mp84-steps{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:16px}.mp84-steps button,.mp84-process-card{border:1px solid var(--border);background:#f8fbfe;border-radius:9px;padding:13px;text-align:left;color:var(--heading-blue);font-weight:700;cursor:pointer}.mp84-steps button:hover,.mp84-process-card:hover{border-color:var(--accent);background:#fff7f0}
.mp84-toolbar{display:flex;gap:10px;margin-bottom:12px}.mp84-toolbar input{flex:1}.mp84-toolbar select{width:190px}.mp84-table-wrap{overflow:auto}.mp84-table{width:100%;border-collapse:collapse;font-size:12px}.mp84-table th{background:#e8f0f8;color:#315b83;font-size:11px;text-transform:uppercase;padding:10px;text-align:left}.mp84-table td{padding:11px 10px;border-top:1px solid #e7edf3;color:var(--text-primary);vertical-align:middle}.mp84-table td strong{display:block;color:var(--heading-blue)}.mp84-table td small{display:block;color:var(--text-muted);margin-top:2px}.mp84-actions{white-space:nowrap}.mp84-status{display:inline-block;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:800}.mp84-status.vigente{background:#e5f6ec;color:#26754b}.mp84-status.em_revisao{background:#fff2d9;color:#a76500}.mp84-status.em_elaboracao{background:#eaf2fb;color:#37638e}.mp84-status.obsoleto,.mp84-status.cancelado{background:#f1f3f5;color:#687786}
.mp84-editor-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:14px}.mp84-editor-head h2{margin:0;color:var(--heading-blue);font-size:22px}.mp84-editor-head p{margin:4px 0 0;color:var(--text-secondary);font-size:12px}.mp84-head-actions{display:flex;gap:7px}.mp84-section-title{padding:12px 15px;background:var(--bg-panel-2);border-bottom:3px solid var(--accent);color:var(--heading-blue);font-size:14px;font-weight:800}.mp84-section>.mp84-grid,.mp84-section>.mp84-lists-grid,.mp84-section>#mp-activities{padding:14px}.mp84-grid{display:grid;gap:12px}.mp84-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.mp84-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.mp84-grid label,.mp84-list-field{font-size:12px;color:var(--text-secondary);font-weight:600}.mp84-grid input,.mp84-grid select,.mp84-grid textarea{margin-top:5px;width:100%;box-sizing:border-box;font-size:13px}.mp84-lists-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mp84-list-field{border:1px solid var(--border);border-radius:9px;background:#fbfcfe;padding:10px}.mp84-list-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;color:var(--heading-blue)}.mp84-list{display:grid;gap:6px}.mp84-list-row{display:flex;gap:5px}.mp84-list-row input{flex:1;min-width:0;font-size:12px;padding:7px 9px}.mp84-list-row button{flex:0 0 auto}
.mp84-act-head,.mp84-act-row{display:grid;grid-template-columns:34px 1.5fr 1fr 1fr 1fr 1.2fr 34px;gap:6px;align-items:center}.mp84-act-head{padding:8px 14px;background:#eef4fa;color:#426583;font-size:10px;font-weight:800;text-transform:uppercase}.mp84-act-row{padding:6px 14px;border-bottom:1px solid #edf1f5}.mp84-act-row input{font-size:12px;padding:7px 8px;min-width:0}.mp84-act-num{font-weight:800;color:var(--accent);text-align:center}.mp84-flow-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px}.mp84-process-card strong{display:block;font-size:13px}.mp84-process-card span{display:block;font-size:10px;color:var(--text-secondary);margin-top:4px}.mp84-flow-card{overflow:hidden}.mp84-flow-canvas{position:relative;min-height:500px;margin:14px;border:1px dashed #bfd0df;border-radius:10px;background:linear-gradient(90deg,rgba(38,49,73,.03) 1px,transparent 1px),linear-gradient(rgba(38,49,73,.03) 1px,transparent 1px);background-size:25px 25px;overflow:auto}.mp84-flow-node{position:absolute;width:170px;min-height:82px;padding:12px 14px;box-sizing:border-box;border:2px solid #7ea5c8;border-radius:10px;background:#eef6fd;box-shadow:0 4px 12px rgba(40,75,110,.08)}.mp84-flow-node span{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--accent);color:#fff;font-size:10px;font-weight:800;margin-right:5px}.mp84-flow-node strong{font-size:12px;color:var(--heading-blue);display:inline}.mp84-flow-node small{display:block;color:var(--text-secondary);font-size:10px;margin-top:7px}.mp84-flow-node i{position:absolute;right:-42px;top:31px;color:var(--accent);font-size:22px;font-style:normal;font-weight:800}
@media(max-width:1100px){.mp84-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.mp84-lists-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mp84-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.mp84-flow-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.mp84-hero,.mp84-page-head,.mp84-editor-head{align-items:flex-start;flex-direction:column}.mp84-grid-2,.mp84-grid-4,.mp84-lists-grid,.mp84-info-grid,.mp84-steps{grid-template-columns:1fr}.mp84-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.mp84-act-head{display:none}.mp84-act-row{grid-template-columns:28px 1fr 28px}.mp84-act-row input:not([data-act="nome"]){display:none}.mp84-flow-picker{grid-template-columns:1fr}}


/* V301 — Fluxograma visual integrado ao mapa de processos. */
.mp84-flow-note{font-size:10px;color:var(--text-muted)}
.mp84-inline-flow{overflow:auto;padding:14px;background:#f8fbfe;border-top:1px solid var(--border)}
.mp84-inline-canvas{position:relative;height:280px;min-height:280px;border:1px dashed #bfd0df;border-radius:10px;background:linear-gradient(90deg,rgba(38,49,73,.035) 1px,transparent 1px),linear-gradient(rgba(38,49,73,.035) 1px,transparent 1px);background-size:25px 25px}
.mp84-inline-node{position:absolute;width:150px;min-height:74px;padding:12px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;text-align:center;border:2px solid #7ea5c8;background:#eef6fd;color:var(--heading-blue);border-radius:10px;box-shadow:0 3px 10px rgba(40,75,110,.08);z-index:2}
.mp84-inline-node.start,.mp84-inline-node.end{width:110px;border-radius:999px;background:#edf7f0;border-color:#63a77a;color:#28623b}
.mp84-inline-node.end{background:#f8f0f0;border-color:#c27a7a;color:#7a3333}
.mp84-inline-node b{font-size:12px;line-height:1.25}.mp84-inline-node small{margin-top:5px;font-size:9px;color:var(--text-secondary)}
.mp84-flow-link{position:absolute;width:72px;height:2px;background:#7ea5c8;z-index:1}.mp84-flow-link:after{content:"";position:absolute;right:-1px;top:-5px;border-left:9px solid #7ea5c8;border-top:6px solid transparent;border-bottom:6px solid transparent}.mp84-flow-link span{display:none}

/* V296 — Cadastro de Peças: tabela e ações funcionais */
.peca-select-cell,.peca-check-head{width:42px;text-align:center}.peca-check-head input,.peca-select-cell input{width:16px;height:16px;accent-color:#1766b3;cursor:pointer}
.peca-selection-info{margin-top:4px;font-size:12px;color:#1766b3}.peca-selection-info button{border:0;background:transparent;color:#1766b3;text-decoration:underline;cursor:pointer;padding:0}
.peca-list-actions .view-toggle{cursor:pointer}.peca-list-actions .peca-secondary{cursor:pointer}.peca-list-actions button:hover,.peca-row-actions button:hover,.peca-list-footer button:not(:disabled):hover{border-color:#1766b3;background:#f2f7fc}.peca-list-footer button:disabled{opacity:.45;cursor:not-allowed}
.peca-row-actions{align-items:center}.peca-row-actions button{border-radius:7px;cursor:pointer;font-size:14px;display:grid;place-items:center}.peca-more-wrap{position:relative}.peca-more-menu{display:none;position:absolute;right:0;top:36px;z-index:30;min-width:150px;padding:5px;background:#fff;border:1px solid #c9d9eb;border-radius:8px;box-shadow:0 8px 22px rgba(22,54,88,.14)}.peca-more-menu.open{display:flex;flex-direction:column}.peca-more-menu button{width:100%;height:32px;border:0;background:#fff;color:#1c2536;text-align:left;padding:0 10px;border-radius:5px;display:block;font-size:12px}.peca-more-menu button:hover{background:#eef5fc}.peca-more-menu button.danger{color:#c0392b}.peca-page-total{color:#7a8da4;margin-left:3px}
.peca-grid-view{padding:4px 18px 18px}.peca-select-all-grid{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#526780;margin:2px 0 12px}.peca-select-all-grid input{accent-color:#1766b3}.peca-grid-view> :not(.peca-select-all-grid){display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:12px}.peca-grid-card{position:relative;border:1px solid #d6e1ee;border-radius:10px;padding:14px;background:#fff;min-width:0}.peca-grid-top{display:flex;justify-content:space-between;align-items:center}.peca-check input{accent-color:#1766b3}.peca-grid-img{width:100%;height:130px;object-fit:contain;background:#f7f9fc;border:1px solid #e4e8ee;border-radius:8px;margin:10px 0}.peca-grid-code{font-size:11px;color:#58718e;margin-bottom:3px}.peca-grid-card>strong{display:block;color:#17385f;font-size:14px}.peca-grid-card>small{display:block;color:#6f8197;margin-top:4px;min-height:18px}.peca-grid-meta{display:flex;gap:6px;flex-wrap:wrap;margin:9px 0}.peca-grid-meta span{font-size:10.5px;padding:4px 7px;border-radius:12px;background:#f0f5fa;color:#49637e}.peca-grid-card .peca-row-actions{margin-top:12px}.peca-grid-empty{text-align:center;padding:35px;color:#73859b}.peca-table tbody tr{transition:background .12s ease}.peca-table tbody tr:hover{background:#f8fbfe}.peca-table td:last-child{min-width:150px}
@media(max-width:900px){.peca-grid-view> :not(.peca-select-all-grid){grid-template-columns:repeat(2,minmax(200px,1fr))}}
@media(max-width:620px){.peca-grid-view> :not(.peca-select-all-grid){grid-template-columns:1fr}.peca-list-actions{flex-wrap:wrap}}

/* V297 — Cadastro de Peças: comandos na mesma linha. */
.peca-list-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:nowrap!important}
.peca-list-actions .peca-columns-toolbar-inline{display:flex!important;align-items:center!important;margin:0!important;position:relative!important;z-index:30!important}
.peca-list-actions .peca-columns-toolbar-inline .mp-column-picker>button{height:36px!important;min-width:88px!important}
@media(max-width:700px){.peca-list-actions{flex-wrap:wrap!important}.peca-list-actions .peca-columns-toolbar-inline{margin-left:0!important}}


/* V304 — Metrologia: tabela compacta, sem rolagem horizontal e comandos na mesma linha */
.metro-table-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:nowrap}
.metro-table-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
.metro-table-head-actions .mp-column-toolbar{margin:0!important;padding:0!important;border:0!important;background:transparent!important;display:flex!important;align-items:center!important}
.metro-table-head-actions .mp-column-picker{position:relative}
.metro-table-head-actions .mp-column-picker>button{height:36px!important;min-width:96px!important}
.metro-table-card .table-wrap{overflow-x:hidden!important;width:100%!important}
.metro-dashboard-table{width:100%!important;min-width:0!important;table-layout:fixed!important;font-size:12px!important}
.metro-dashboard-table th,.metro-dashboard-table td{overflow:hidden}
.metro-dashboard-table th:nth-child(1),.metro-dashboard-table td:nth-child(1){width:7%}
.metro-dashboard-table th:nth-child(2),.metro-dashboard-table td:nth-child(2){width:9%}
.metro-dashboard-table th:nth-child(3),.metro-dashboard-table td:nth-child(3){width:16%}
.metro-dashboard-table th:nth-child(4),.metro-dashboard-table td:nth-child(4){width:11%}
.metro-dashboard-table th:nth-child(5),.metro-dashboard-table td:nth-child(5){width:9%}
.metro-dashboard-table th:nth-child(6),.metro-dashboard-table td:nth-child(6){width:11%}
.metro-dashboard-table th:nth-child(7),.metro-dashboard-table td:nth-child(7){width:17%}
.metro-dashboard-table th:nth-child(8),.metro-dashboard-table td:nth-child(8){width:9%}
.metro-dashboard-table th:nth-child(9),.metro-dashboard-table td:nth-child(9){width:11%}
.metro-dashboard-table td{word-break:break-word}
.metro-dashboard-table td:nth-child(1),.metro-dashboard-table td:nth-child(2),.metro-dashboard-table td:nth-child(4),.metro-dashboard-table td:nth-child(5),.metro-dashboard-table td:nth-child(6),.metro-dashboard-table td:nth-child(8){white-space:nowrap;word-break:normal}
.metro-dashboard-table th{padding:9px 7px!important;font-size:9px!important}
.metro-dashboard-table td{padding:9px 7px!important}
.metro-row-actions{gap:4px!important;flex-wrap:nowrap!important}
.metro-row-actions button{min-width:0!important;padding:5px 7px!important;font-size:10px!important}
@media(max-width:1050px){
  .metro-dashboard-table th:nth-child(1),.metro-dashboard-table td:nth-child(1){width:6%}
  .metro-dashboard-table th:nth-child(2),.metro-dashboard-table td:nth-child(2){width:8%}
  .metro-dashboard-table th:nth-child(3),.metro-dashboard-table td:nth-child(3){width:15%}
  .metro-dashboard-table th:nth-child(4),.metro-dashboard-table td:nth-child(4){width:10%}
  .metro-dashboard-table th:nth-child(5),.metro-dashboard-table td:nth-child(5){width:8%}
  .metro-dashboard-table th:nth-child(6),.metro-dashboard-table td:nth-child(6){width:10%}
  .metro-dashboard-table th:nth-child(7),.metro-dashboard-table td:nth-child(7){width:18%}
  .metro-dashboard-table th:nth-child(8),.metro-dashboard-table td:nth-child(8){width:9%}
  .metro-dashboard-table th:nth-child(9),.metro-dashboard-table td:nth-child(9){width:16%}
}
@media(max-width:760px){
  .metro-table-head{align-items:flex-start;flex-direction:column}
  .metro-table-head-actions{width:100%;justify-content:flex-start}
  .metro-table-card .table-wrap{overflow-x:auto!important}
  .metro-dashboard-table{min-width:900px!important}
}

/* V2.306 — Reagentes: cards compactos, uniformes e responsivos */
.mp-reagentes-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
.mp-reagente-card{min-height:330px;height:330px;display:flex;flex-direction:column;overflow:hidden}
.mp-reagente-lotes{min-height:150px;max-height:150px;overflow:hidden}
.mp-reagente-acoes button{width:100%;white-space:nowrap}
@media (max-width:1200px){.mp-reagentes-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:900px){.mp-reagentes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.mp-reagentes-grid{grid-template-columns:1fr}.mp-reagente-card{height:auto;min-height:0}.mp-reagente-lotes{max-height:none;min-height:0}}

/* V2.309 — Reagentes: cadastro mestre em tabela compacta */
.mp-reagentes-table-card{padding:0;overflow:hidden}
.mp-reagentes-table-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;border-bottom:1px solid var(--border,#d7e2ef)}
.mp-reagentes-table-count{font-size:12px;color:var(--text-muted);white-space:nowrap}
.mp-reagentes-table-wrap{overflow-x:auto!important}
.mp-reagentes-table{width:100%;min-width:980px;border-collapse:collapse;font-size:12px}
.mp-reagentes-table thead th{background:#dce9f6;color:#14508e;font-weight:700;font-size:11px;letter-spacing:.02em;padding:10px 9px;text-align:left;border-bottom:1px solid #b9cde1;white-space:nowrap}
.mp-reagentes-table tbody td{padding:10px 9px;border-bottom:1px solid var(--border,#d7e2ef);vertical-align:middle}
.mp-reagentes-table tbody tr:hover{background:#f7faff}
.mp-reagente-nome{font-weight:700;color:var(--heading-blue);font-size:13px;line-height:1.25}
.mp-reagente-sub{display:block;font-size:10.5px;color:var(--text-muted);margin-top:2px;line-height:1.25}
.mp-reagentes-th-acoes{width:250px}
.mp-reagentes-actions-cell{white-space:nowrap}
.mp-reagentes-actions-cell button{margin-right:4px}
.mp-reagentes-actions-cell button:last-child{margin-right:0}
.mp-reagente-lotes-link{border:0;background:transparent;color:var(--secondary-blue,#1766B3);font-weight:700;cursor:pointer;padding:4px 6px;border-radius:6px}
.mp-reagente-lotes-link:hover{background:#eaf2fb;text-decoration:underline}
.mp-reagente-validade-warning{color:var(--amber,#b9812e)!important}
.mp-reagente-validade-danger{color:var(--danger,#d93a32)!important}
.mp-reagentes-lotes-table{width:100%;border-collapse:collapse;font-size:12px}
.mp-reagentes-lotes-table th{background:#e8f0f8;color:#14508e;font-size:11px;padding:9px;text-align:left}
.mp-reagentes-lotes-table td{padding:9px;border-bottom:1px solid var(--border,#d7e2ef)}
@media (max-width:900px){.mp-reagentes-table-head{align-items:flex-start;flex-direction:column}.mp-reagentes-table-count{align-self:flex-start}}

/* V2.311 — banners fotográficos para Ocorrências, Mapas de Processo e Análise Crítica */
.mp84-photo-head{position:relative;min-height:118px;overflow:hidden;background:#eef4fa url('../img/hero-mapas-processo.png') right center/auto 100% no-repeat!important;border-radius:12px!important}
.mp84-photo-head:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.92) 34%,rgba(255,255,255,.16) 72%,rgba(255,255,255,0) 100%);pointer-events:none}
.mp84-photo-head>div,.mp84-photo-head>button{position:relative;z-index:1}
.ac93-hero{position:relative;min-height:118px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px;padding:20px 22px;overflow:hidden;border:1px solid #d8e3ef;border-radius:12px;background:#eef4fa url('../img/hero-analise-critica.png') right center/auto 100% no-repeat;box-shadow:0 3px 12px rgba(31,61,94,.06)}
.ac93-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.93) 34%,rgba(255,255,255,.18) 72%,rgba(255,255,255,0) 100%);pointer-events:none}
.ac93-hero-copy,.ac93-hero-actions{position:relative;z-index:1}.ac93-eyebrow{font-size:10px;font-weight:800;letter-spacing:1px;color:#f58216;text-transform:uppercase;margin-bottom:4px}.ac93-hero h1{margin:0;color:#1a4c8f;font-size:24px}.ac93-hero p{margin:5px 0 0;color:#66758a;font-size:11px}.ac93-hero-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}
@media(max-width:760px){.mp84-photo-head,.ac93-hero{align-items:flex-start;flex-direction:column;background-position:72% center}.ac93-hero-actions{flex-wrap:wrap}.mp84-photo-head{min-height:145px}.ac93-hero{min-height:145px}}

/* V2.87 — padrão visual aprovado para Cadastro de Processos */
.sgq-page-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;min-height:118px;margin-bottom:12px;padding:18px 22px;border-radius:12px;border:1px solid #d7e3ef;background:#eef4fa var(--sgq-hero-image) right center/auto 100% no-repeat;color:#123d70;box-sizing:border-box;box-shadow:0 3px 12px rgba(31,61,94,.07);isolation:isolate}
.sgq-page-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(238,244,250,.99) 0%,rgba(238,244,250,.97) 25%,rgba(238,244,250,.78) 43%,rgba(238,244,250,.18) 65%,rgba(238,244,250,0) 82%);z-index:0;pointer-events:none}
.sgq-page-hero::after{content:"";position:absolute;left:22px;bottom:0;width:245px;height:4px;background:linear-gradient(90deg,#f58216 0 72px,transparent 72px);border-radius:3px;opacity:.9;pointer-events:none;z-index:1}
.sgq-page-hero .sgq-hero-copy{min-width:0;position:relative;z-index:2;max-width:760px}
.sgq-page-hero .sgq-eyebrow{font-size:10px;font-weight:800;letter-spacing:.65px;color:#35678f;text-transform:uppercase;margin-bottom:5px}
.sgq-page-hero h1{margin:0;font-size:24px;line-height:1.15;font-weight:750;letter-spacing:-.25px;color:#123f73}
.sgq-page-hero p{margin:6px 0 0;font-size:11px;line-height:1.4;color:#4d6176;max-width:760px}
.sgq-page-hero .sgq-hero-extra{margin-top:5px;font-size:9px;color:#66788c;max-width:720px}
.sgq-page-hero .sgq-hero-actions{position:relative;z-index:3;display:flex;align-items:center;gap:7px;flex:0 0 auto;margin-left:18px}
.sgq-page-hero .sgq-hero-actions button,.sgq-page-hero .sgq-hero-actions select{height:34px;border-radius:7px;padding:0 13px;font-size:10px;font-weight:700;border:1px solid #b9d0e6;background:#fff;color:#15558d;box-sizing:border-box;box-shadow:0 1px 2px rgba(31,61,94,.04)}
.sgq-page-hero .sgq-hero-actions .primary,.sgq-page-hero .sgq-hero-actions button.primary{background:#fff;color:#15558d;border-color:#b9d0e6}
.sgq-page-hero .sgq-hero-actions .primary:hover{background:#f5f9fd;border-color:#8fb1d0}
.sgq-page-hero .sgq-hero-actions .success{background:#18a96c;color:#fff;border-color:#18a96c}
.sgq-page-hero .sgq-hero-actions .ghost{background:rgba(255,255,255,.78);color:#15558d;border-color:#b9d0e6}
.sgq-page-hero.sgq-risk{--sgq-hero-image:url('/img/hero-monitoramento-banhos.png')}
.sgq-page-hero.sgq-maps{--sgq-hero-image:url('/img/hero-mapas-processo.png')}
.sgq-page-hero.sgq-occurrences{--sgq-hero-image:url('/img/hero-ocorrencias.png')}
.sgq-page-hero.sgq-review{--sgq-hero-image:url('/img/hero-analise-critica.png')}
.sgq-page-hero.sgq-flows{--sgq-hero-image:url('/img/hero-mapas-processo.png')}
.mp84-toolbar-v287{display:grid!important;grid-template-columns:minmax(320px,1fr) 190px 132px;gap:10px;align-items:center;padding:10px!important;background:#fff;border:1px solid #d7e3ef;border-radius:10px;box-shadow:0 2px 8px rgba(31,61,94,.04);margin-bottom:10px}
.mp84-toolbar-v287 input,.mp84-toolbar-v287 select{height:38px!important;border:1px solid #c9d9e8!important;border-radius:7px!important;background:#fff!important;color:#334e68!important;font-size:12px!important;padding:0 12px!important;box-sizing:border-box}
.mp84-toolbar-v287 input:focus,.mp84-toolbar-v287 select:focus{outline:none;border-color:#77a6cf!important;box-shadow:0 0 0 2px rgba(38,111,173,.08)}
.mp84-more-filters{height:38px;border:1px solid #c9d9e8;border-radius:7px;background:#fff;color:#15558d;font-weight:700;font-size:11px;cursor:pointer}
.mp84-more-filters:hover,.mp84-more-filters.active{background:#f3f8fc;border-color:#8fb1d0}
.mp84-table-v287{min-width:1080px}
.mp84-table-v287 thead th{background:#dce8f4!important;color:#164d82!important;font-weight:800!important;font-size:10.5px!important;text-transform:uppercase;letter-spacing:.02em;padding:11px 10px!important;border-bottom:1px solid #b8cee2!important;white-space:nowrap}
.mp84-table-v287 tbody td{padding:10px!important;border-bottom:1px solid #e0e8f0!important;color:#263f58}
.mp84-table-v287 tbody tr:hover{background:#f7fafd}
.mp84-table-v287 tbody td strong{font-size:12.5px;color:#123f73}
.mp84-table-v287 tbody td small{display:block;font-size:10px;color:#738397;margin-top:3px;line-height:1.25}
.mp84-code{font-size:11px;font-weight:800;color:#45657f;letter-spacing:.2px}
.mp84-activities-count{text-align:center;font-weight:700;color:#234d73}
.mp84-status{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:#edf4fb;color:#28618e;font-size:10px;font-weight:800;white-space:nowrap}
.mp84-status i{display:block;width:7px;height:7px;border-radius:50%;background:#3b8dcc}
.mp84-status.em_revisao{background:#fff3d8;color:#9a6a08}.mp84-status.em_revisao i{background:#f2a51a}
.mp84-status.vigente{background:#e5f6e9;color:#217a36}.mp84-status.vigente i{background:#28a745}
.mp84-status.obsoleto,.mp84-status.cancelado{background:#edf0f3;color:#697889}.mp84-status.obsoleto i,.mp84-status.cancelado i{background:#8a98a8}
.mp84-actions{white-space:nowrap!important}
.mp84-actions button{margin-right:5px!important;border:1px solid #c7d9ea!important;background:#fff!important;color:#15558d!important;border-radius:7px!important;height:31px!important;padding:0 10px!important;font-weight:700!important}
.mp84-actions button:hover{background:#f3f8fc!important;border-color:#91b3d1!important}
.mp84-actions button.icon{width:31px;padding:0!important;font-size:17px!important}
@media(max-width:800px){.sgq-page-hero{align-items:flex-start;flex-direction:column;min-height:155px;padding:16px;background-position:right bottom;background-size:auto 78%}.sgq-page-hero::before{background:linear-gradient(180deg,rgba(238,244,250,.99) 0%,rgba(238,244,250,.9) 48%,rgba(238,244,250,.2) 100%)}.sgq-page-hero .sgq-hero-actions{margin:12px 0 0;flex-wrap:wrap}.sgq-page-hero h1{font-size:22px}.mp84-toolbar-v287{grid-template-columns:1fr}.mp84-more-filters{width:100%}}
/* V332 - Cadastro de Peças: padrão do mockup aprovado */
.peca-hero-panel{position:relative;display:flex;align-items:stretch;min-height:122px;overflow:hidden;background:#fff;border:1px solid #d4dfeb;border-radius:12px;margin:0 0 16px;box-shadow:0 1px 4px rgba(26,53,83,.05)}
.peca-hero-panel:before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:4px;background:#ff7a00;border-radius:0 3px 3px 0;z-index:4}
.peca-hero-copy{position:relative;z-index:3;flex:1;min-width:0;padding:14px 28px 15px 34px;background:linear-gradient(90deg,#fff 0%,#fbfdff 62%,rgba(255,255,255,.68) 100%)}
.peca-hero-breadcrumb{font-size:10px;font-weight:700;letter-spacing:.35px;color:#58769a;text-transform:uppercase;margin-bottom:7px}.peca-hero-breadcrumb span{color:#9aacbf;margin:0 4px}
.peca-hero-main{display:flex;align-items:center;gap:12px}.peca-hero-main h1{margin:0;color:#0c3d78;font-size:28px;line-height:1.05;font-weight:700;letter-spacing:-.35px}.peca-hero-main p{margin:5px 0 0;color:#416486;font-size:12px;line-height:1.35;max-width:680px}
.peca-hero-image{position:absolute;right:0;top:0;width:48%;height:100%;overflow:hidden;z-index:2}.peca-hero-image:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.76) 8%,rgba(255,255,255,.06) 32%,rgba(255,255,255,0) 55%);z-index:1;pointer-events:none}.peca-hero-image img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.peca-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.peca-kpi-card{min-height:104px;border:1px solid #d3e0ec;border-radius:12px;background:#fff;display:flex;align-items:center;gap:15px;padding:14px 18px;box-sizing:border-box;box-shadow:0 1px 4px rgba(26,53,83,.04)}.peca-kpi-icon{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;font-size:24px;font-weight:700;flex:0 0 auto}.peca-kpi-card strong{display:block;color:#123f76;font-size:25px;line-height:1.05;font-weight:800}.peca-kpi-card span{display:block;color:#60748d;font-size:12px;line-height:1.35;margin-top:5px}.kpi-blue .peca-kpi-icon{background:#e7f2ff;color:#1478db}.kpi-green .peca-kpi-icon{background:#e7f8ef;color:#159463}.kpi-purple .peca-kpi-icon{background:#f0eaff;color:#7242d7}.kpi-orange .peca-kpi-icon{background:#fff0df;color:#ef7410}.kpi-purple strong,.kpi-orange strong{font-size:16px}
.peca-toolbar-card{display:grid;grid-template-columns:auto minmax(260px,1fr) 200px auto;gap:12px;align-items:center;background:#fff;border:1px solid #d3e0ec;border-radius:12px;padding:12px 14px;margin-bottom:12px;box-shadow:0 1px 4px rgba(26,53,83,.04)}.peca-toolbar-card .peca-new-btn{height:44px;min-width:142px;font-size:14px;font-weight:700}.peca-search{height:44px;border:1px solid #cbd9ea;border-radius:9px;display:flex;align-items:center;padding:0 13px;background:#fff}.peca-search span{font-size:23px;color:#496d91;margin-right:8px}.peca-search input{border:0!important;box-shadow:none!important;height:40px;flex:1;outline:0;font-size:14px;color:#1e3b59}.peca-search input::placeholder{color:#8293a5}.peca-status-select,.peca-advanced-btn{height:44px;background:#fff;border:1px solid #c7d7e9;border-radius:9px;color:#173f6a;font-size:13px;padding:0 13px;text-align:left;cursor:pointer}.peca-status-select{display:flex;justify-content:space-between;align-items:center}.peca-status-select span{font-size:18px;color:#71859b}.peca-advanced-btn{white-space:nowrap;font-weight:600}.peca-search-btn-hidden,.peca-clear-hidden{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.peca-filter-panel-compact{padding:14px 16px;background:#f8fbff;border:1px solid #dce7f1;border-radius:10px;margin-bottom:14px}.peca-filter-panel-compact .peca-filter-label{margin:0 0 7px}.peca-page-head{display:none!important}
@media(max-width:1100px){.peca-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.peca-toolbar-card{grid-template-columns:auto 1fr auto}.peca-status-select{grid-column:3}.peca-advanced-btn{grid-column:1/-1;justify-self:end}}
@media(max-width:700px){.peca-hero-panel{min-height:122px}.peca-hero-image{width:44%}.peca-hero-copy{padding-right:20px}.peca-hero-main h1{font-size:23px}.peca-hero-main p{font-size:11px;max-width:470px}.peca-kpi-grid{grid-template-columns:1fr}.peca-toolbar-card{grid-template-columns:1fr}.peca-status-select,.peca-advanced-btn{grid-column:auto;width:100%}}


/* V333 — Gestão Estratégica: layout de tabs e KPIs fixo em linha no desktop */
.ge-v333{width:100%;display:flex;flex-direction:column;gap:14px;color:#123a63;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;}
.ge-tabs-v333{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #cbd9e7;border-radius:12px;padding:5px 7px;min-height:48px;box-shadow:0 2px 8px rgba(20,55,90,.04);}
.ge-tab-list-v333{display:flex;align-items:center;gap:6px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap;}
.ge-tab-list-v333::-webkit-scrollbar{display:none;}
.ge-tab-v333{height:38px;flex:0 0 auto;border:1px solid #c9d7e6;background:#fff;color:#365774;border-radius:9px;padding:0 16px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;}
.ge-tab-v333:hover{background:#f3f8fd;border-color:#9fb9d4;}
.ge-tab-v333.is-active{background:#eaf4ff;border-color:#1294ed;color:#075da2;box-shadow:inset 0 -3px 0 #078ce8;}
.ge-tab-actions-v333{margin-left:auto;flex:0 0 auto;display:flex;align-items:center;}
.ge-action-v333,.ge-small-action-v333{border:0;border-radius:9px;background:#ff830d;color:#fff;font-weight:700;cursor:pointer;white-space:nowrap;box-shadow:0 3px 7px rgba(255,131,13,.2);}
.ge-action-v333{height:38px;padding:0 16px;font-size:13px;}
.ge-small-action-v333{height:34px;padding:0 13px;font-size:12px;}
.ge-action-v333:hover,.ge-small-action-v333:hover{filter:brightness(.97);transform:translateY(-1px);}
.ge-kpis-v333{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:12px;width:100%;}
.ge-kpi-v333{min-width:0;min-height:94px;border:1px solid #cbd9e7;border-radius:12px;background:#fff;display:flex;align-items:center;gap:14px;padding:14px 18px;box-shadow:0 2px 8px rgba(20,55,90,.04);border-left:4px solid #1b70bf;}
.ge-kpi-v333.green{border-left-color:#18a665}.ge-kpi-v333.slate{border-left-color:#6e8593}.ge-kpi-v333.orange{border-left-color:#ff8508}
.ge-kpi-ico-v333{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:#edf6ff;color:#0876cd;font-size:21px;font-weight:800;flex:0 0 auto;}
.ge-kpi-v333.green .ge-kpi-ico-v333{background:#edf9f3;color:#19a568}.ge-kpi-v333.slate .ge-kpi-ico-v333{background:#f0f4f6;color:#66808f}.ge-kpi-v333.orange .ge-kpi-ico-v333{background:#fff4e7;color:#f17d00}
.ge-kpi-v333 span{display:block;font-size:12px;font-weight:700;color:#345776}.ge-kpi-v333 strong{display:block;font-size:26px;line-height:1.05;color:#123f6e;margin:5px 0 2px}.ge-kpi-v333 small{font-size:11px;color:#7290aa;display:block;}
.ge-grid-v333{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,.85fr);gap:14px;}
.ge-card-v333{background:#fff;border:1px solid #cbd9e7;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(20,55,90,.04);}
.ge-card-v333>header{min-height:52px;padding:0 15px;display:flex;align-items:center;justify-content:space-between;background:#f4f8fc;border-bottom:1px solid #d5e1ec;gap:12px;}
.ge-card-v333>header>div strong{display:block;font-size:14px;color:#16466e}.ge-card-v333>header>div small{display:block;font-size:11px;color:#7590a7;margin-top:3px}.ge-card-v333>header>span{font-size:11px;color:#7590a7;white-space:nowrap}.ge-body-v333{padding:14px;}
.ge-perspectives-v333{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ge-perspective-v333{border:1px solid #d5e1ec;border-left:4px solid #1c73c0;border-radius:10px;padding:13px;background:#fbfdff;min-height:102px;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;column-gap:10px;}.ge-perspective-v333.p1{border-left-color:#19a568}.ge-perspective-v333.p2{border-left-color:#7866b5}.ge-perspective-v333.p3{border-left-color:#f1840b}.ge-perspective-v333 strong{font-size:14px;color:#153f66;display:block}.ge-perspective-v333 small{font-size:11px;color:#758ea4;display:block;margin-top:4px}.ge-perspective-v333>b{font-size:24px;color:#153f66;align-self:center}.ge-perspective-v333>span{font-size:10px;color:#7a93a8;align-self:end}.ge-integration-v333{margin-top:11px;border-left:4px solid #1c73c0;background:#f4f9fe;border-radius:8px;padding:10px 12px}.ge-integration-v333 strong{font-size:12px;color:#17466d;margin-right:6px}.ge-integration-v333 span{font-size:11px;color:#607b94;}
.ge-cycle-v333{display:flex;flex-direction:column;gap:9px}.ge-cycle-step-v333{min-height:63px;border:1px solid #d7e2ec;border-radius:10px;background:#fff;padding:10px;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px}.ge-cycle-step-v333>b{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:#eaf4ff;color:#1671bb;font-size:13px}.ge-cycle-step-v333.s1>b{background:#eaf9f1;color:#17935b}.ge-cycle-step-v333.s2>b{background:#fff2e4;color:#ec7900}.ge-cycle-step-v333.s3>b{background:#eeeafb;color:#6e59a5}.ge-cycle-step-v333 strong{display:block;font-size:13px;color:#163f65}.ge-cycle-step-v333 small{display:block;font-size:10.5px;color:#758ea5;margin-top:3px}.ge-cycle-step-v333 em{font-style:normal;font-size:10px;font-weight:700;color:#587691;background:#f0f5f9;border-radius:8px;padding:7px 8px;white-space:nowrap;}
.ge-table-wrap-v333{overflow:auto}.ge-table-v333{width:100%;border-collapse:collapse;font-size:12px}.ge-table-v333 th{background:#edf4fa;color:#294f70;text-align:left;padding:11px 10px;font-size:11px}.ge-table-v333 td{padding:11px 10px;border-bottom:1px solid #e0e8ef;color:#365775;vertical-align:middle}.ge-table-v333 td strong{display:block;color:#173f65}.ge-table-v333 td small{display:block;font-size:10px;color:#7891a7;margin-top:3px}.ge-status-v333{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:700;background:#eef3f7;color:#567089}.ge-status-v333.progress{background:#eaf4ff;color:#0f6db4}.ge-status-v333.done{background:#ebf8ef;color:#16834f}.ge-status-v333.late{background:#fff0df;color:#cc6900}.ge-status-v333.planned{background:#f0f2f5;color:#65788a}.ge-delete-v333{border:1px solid #d5e0ea;background:#fff;color:#b34848;border-radius:7px;padding:6px 9px;font-size:10px;cursor:pointer}.ge-empty-v333{min-height:190px;border:1px dashed #b9d0e4;border-radius:10px;background:#f8fbfe;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;text-align:center;padding:24px}.ge-empty-v333 b{font-size:16px;color:#1c4a70}.ge-empty-v333 span{font-size:12px;color:#6e879e;max-width:570px}.ge-secondary-v333{height:36px;padding:0 13px;border:1px solid #bdcedd;background:#fff;color:#315a79;border-radius:8px;font-weight:700;cursor:pointer;}
.ge-feature-grid-v333,.ge-report-grid-v333,.ge-bsc-grid-v333{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.ge-feature-grid-v333 article,.ge-report-grid-v333 article,.ge-bsc-grid-v333 article{border:1px solid #d5e2ec;border-radius:10px;padding:14px;background:#fbfdff;min-height:110px}.ge-feature-grid-v333 article b,.ge-report-grid-v333 article b,.ge-bsc-grid-v333 article strong{display:block;font-size:13px;color:#173f65}.ge-feature-grid-v333 article span,.ge-report-grid-v333 article span,.ge-bsc-grid-v333 article span{display:block;font-size:11px;line-height:1.45;color:#738da4;margin-top:5px}.ge-bsc-grid-v333 article b{display:block;margin-top:12px;font-size:10px;color:#52718e}.ge-bsc-grid-v333 .b0{border-top:4px solid #1c73c0}.ge-bsc-grid-v333 .b1{border-top:4px solid #19a568}.ge-bsc-grid-v333 .b2{border-top:4px solid #7866b5}.ge-bsc-grid-v333 .b3{border-top:4px solid #f1840b}.ge-feature-grid-v333 article:nth-child(2){border-top:4px solid #19a568}.ge-feature-grid-v333 article:nth-child(3){border-top:4px solid #f1840b}.ge-report-grid-v333 article:nth-child(2){border-top:4px solid #19a568}.ge-report-grid-v333 article:nth-child(3){border-top:4px solid #7866b5}
.ge-modal-v333{position:fixed;inset:0;background:rgba(13,39,66,.42);display:grid;place-items:center;z-index:9999;padding:20px}.ge-modal-card-v333{width:min(720px,100%);background:#fff;border-radius:14px;box-shadow:0 20px 50px rgba(0,0,0,.22);overflow:hidden}.ge-modal-head-v333{padding:15px 18px;background:#f3f8fc;border-bottom:1px solid #d7e3ed;display:flex;justify-content:space-between;align-items:center}.ge-modal-head-v333 span{font-size:10px;font-weight:800;color:#567892}.ge-modal-head-v333 h3{font-size:19px;color:#123f6c;margin:4px 0 0}.ge-close-v333{border:0;background:transparent;font-size:28px;color:#6f8498;cursor:pointer}.ge-form-v333{padding:18px}.ge-form-grid-v333{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ge-form-grid-v333 label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:700;color:#355a78}.ge-form-grid-v333 .full{grid-column:1/-1}.ge-form-grid-v333 input,.ge-form-grid-v333 select,.ge-form-grid-v333 textarea{width:100%;border:1px solid #c6d7e6;border-radius:8px;padding:10px 11px;font:inherit;font-weight:500;color:#294d6c;background:#fff;box-sizing:border-box}.ge-modal-actions-v333{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
@media (max-width:1050px){.ge-kpis-v333{grid-template-columns:repeat(2,minmax(0,1fr)) !important}.ge-grid-v333{grid-template-columns:1fr}.ge-feature-grid-v333,.ge-report-grid-v333,.ge-bsc-grid-v333{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){.ge-tabs-v333{align-items:stretch}.ge-tab-actions-v333{margin-left:0}.ge-tab-list-v333{flex:none;width:100%}.ge-tabs-v333{flex-wrap:wrap}.ge-tab-actions-v333{width:100%}.ge-action-v333{width:100%}.ge-kpis-v333{grid-template-columns:1fr !important}.ge-perspectives-v333,.ge-feature-grid-v333,.ge-report-grid-v333,.ge-bsc-grid-v333{grid-template-columns:1fr}.ge-form-grid-v333{grid-template-columns:1fr}.ge-form-grid-v333 .full{grid-column:auto}.ge-modal-card-v333{max-height:calc(100vh - 30px);overflow:auto}}


/* V347 - Nova Análise: execução guiada e legível */
.na-layout-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px;align-items:start}
.na-main-column,.na-side-column{min-width:0}
.na-context-card,.na-progress-card,.na-side-card,.na-history-card,.na-param-card{border:1px solid var(--border);border-radius:12px;box-shadow:0 3px 12px rgba(17,51,85,.06)}
.na-context-card{background:linear-gradient(180deg,#f7fbff,#edf5fb);padding:14px 16px;margin-bottom:12px}
.na-panel-title{display:flex;align-items:center;gap:8px;color:var(--primary,#0c3d78);font-size:15px;margin-bottom:12px}
.na-title-icon{display:inline-flex;width:24px;height:24px;border-radius:7px;align-items:center;justify-content:center;background:#e5f1fb;color:#0872d8;font-size:10px}
.na-context-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.na-context-grid>div{padding:5px 13px;border-right:1px solid #d8e5ef;min-width:0}
.na-context-grid>div:first-child{padding-left:0}.na-context-grid>div:last-child{border-right:0}
.na-context-grid span{display:block;font-size:11px;color:#67809a;margin-bottom:4px}.na-context-grid strong{display:block;color:#163e69;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.na-context-grid small{display:block;font-size:10.5px;color:#7a91a8;margin-top:2px}
.na-context-full{grid-column:1/-1;border-right:0!important;padding:10px 0 0!important;margin-top:8px;border-top:1px solid #d8e5ef}
.na-param-card{padding:0;overflow:hidden}.na-param-header,.na-card-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:15px 16px 13px;border-bottom:1px solid var(--border);background:#fff}
.na-param-header h3,.na-card-heading h3{margin:2px 0 4px;color:#123f73;font-size:20px}.na-param-header p{margin:0;color:#6b8299;font-size:12.5px}.na-section-kicker{font-size:10px;letter-spacing:.04em;font-weight:800;color:#58769a}
.na-progress-inline{min-width:130px;text-align:right}.na-progress-inline strong{display:block;font-size:19px;color:#0c3d78}.na-progress-inline span{font-size:10.5px;color:#7489a0}
.na-table-wrap{border:0;border-radius:0}.na-param-table{width:100%;border-collapse:collapse;table-layout:fixed}.na-param-table th{background:#dfeaf4;color:#17466f;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.01em;padding:10px 9px;text-align:left;border-bottom:1px solid #b7ccdf}.na-param-table th span{font-weight:600;color:#64809a;text-transform:none}.na-param-table td{padding:11px 9px;border-bottom:1px solid #e1eaf1;vertical-align:top;color:#274a6a;font-size:12px;background:#fff}.na-param-table tr:last-child td{border-bottom:0}.na-param-name strong{display:block;font-size:13px;color:#143f6d}.na-param-name span,.na-method span,.na-method small{display:block;color:#72889e;font-size:10.5px;margin-top:2px}.na-range{display:flex;align-items:center;gap:5px;white-space:nowrap}.na-range strong{color:#153f6d}.na-range span{color:#1d7f4f;font-weight:800}.na-range small{color:#7c90a4;margin-left:3px}.na-method strong{display:block;color:#244a6d;font-size:11.5px}.na-inputs-cell{min-width:180px}.na-titulacao-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.na-titulacao-grid label,.na-direct-input label,.na-lote-inline{font-size:10.5px;font-weight:700;color:#5a7590}.na-titulacao-grid input,.na-direct-input input,.na-lote-inline select,.na-result-cell input{width:100%;box-sizing:border-box;margin-top:4px}.na-consumo-chip{grid-column:1/-1;padding:5px 7px;border-radius:7px;background:#eef7f1;color:#32704f;font-size:10px}.na-lote-inline{display:block;margin-top:7px}.na-result-cell{white-space:nowrap}.na-result-cell input{min-width:86px}.na-result-cell small{display:block;color:#7890a7;font-size:9.5px;margin-top:2px}.na-result-placeholder{display:inline-block;padding:7px 9px;border-radius:7px;background:#f4f7fa;color:#8095a8}.na-status-cell{text-align:center}.na-status{display:inline-flex;align-items:center;min-height:28px;padding:4px 8px;border-radius:999px;background:#edf2f6;color:#71879d;font-weight:700;font-size:10.5px;white-space:nowrap}.na-status.normal{background:#dcf4e7;color:#27784d}.na-status.atencao{background:#fff1cf;color:#9c6b08}.na-status.critico{background:#ffe0dd;color:#b63a31}.na-row-menu{width:26px;text-align:center;color:#7a91a7;font-size:18px}.na-progress-card{background:#eff9f3;border-color:#c7e7d4;padding:14px 15px;margin-bottom:12px}.na-progress-head{display:flex;align-items:center;gap:7px;color:#215f43}.na-progress-head strong{flex:1;font-size:14px}.na-progress-head b{font-size:18px}.na-status-dot{width:10px;height:10px;background:#26a566;border-radius:50%;display:inline-block}.na-progress-bar{height:8px;background:#d7e5ec;border-radius:999px;overflow:hidden;margin:10px 0 7px}.na-progress-bar span{display:block;height:100%;background:#25a565;border-radius:999px;transition:width .2s ease}.na-progress-card small{color:#61816f;font-size:10.5px}.na-side-card{padding:13px 14px;background:#fff;margin-bottom:12px}.na-card-title{font-size:14px;font-weight:800;color:#1a466f;margin-bottom:10px}.na-readonly-box{background:#f3f7fa;border-radius:8px;padding:8px 10px;color:#3b5772;font-size:12px}.na-side-card .field{margin-bottom:9px}.na-side-card label{font-size:11px}.na-side-card select,.na-side-card input,.na-side-card textarea{font-size:12.5px}.na-side-card textarea{min-height:76px;resize:vertical}.na-side-card>small{font-size:10.5px;color:#7890a6}.na-pecas-wrap{margin-top:7px;border:1px solid var(--border);padding:7px;border-radius:8px}.na-pecas-wrap select{width:100%}.na-actions-bar{display:flex;justify-content:flex-end;gap:8px;position:sticky;bottom:8px;padding:10px;border:1px solid var(--border);border-radius:12px;background:rgba(244,249,253,.96);backdrop-filter:blur(8px);box-shadow:0 4px 16px rgba(20,54,88,.08)}.na-actions-bar button{min-height:38px}.na-actions-bar .primary{min-width:140px}.na-history-card{margin-top:12px;overflow:hidden}.na-card-heading button{white-space:nowrap}.na-history-placeholder{padding:12px 14px}.na-history-table{width:100%;border-collapse:collapse}.na-history-table th{padding:9px 8px;background:#e7f0f7;color:#245276;font-size:10px;text-transform:uppercase}.na-history-table td{padding:8px;border-top:1px solid #e4ebf1;font-size:11px;color:#46627d}.na-history-empty{padding:18px;color:#8195a8;font-size:12px;text-align:center}.na-hidden-trace{display:none!important}
@media (max-width:1100px){.na-layout-grid{grid-template-columns:1fr}.na-side-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.na-progress-card{grid-column:1/-1;margin-bottom:0}.na-actions-bar{grid-column:1/-1}.na-side-card{margin-bottom:0}.na-context-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.na-context-grid>div{border-right:0;padding:5px 0}.na-context-full{grid-column:1/-1}}
@media (max-width:760px){.na-side-column{grid-template-columns:1fr}.na-param-header,.na-card-heading{align-items:flex-start;flex-direction:column}.na-param-table{min-width:980px}.na-table-wrap{overflow-x:auto}.na-context-grid{grid-template-columns:1fr}.na-context-full{grid-column:auto}.na-actions-bar{position:static;flex-wrap:wrap}.na-actions-bar button{flex:1}.na-actions-bar .primary{min-width:0}}

/* V349 — Nova Análise: etapa redundante removida, lote único e campos de medição maiores */
.na-selection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:end}
.na-selection-grid .field{margin-bottom:0}
.na-param-header{padding:14px 18px 12px;align-items:flex-end}
.na-param-header>div:first-child{min-width:0}
.na-param-header h3{font-size:21px;line-height:1.18;margin:3px 0 4px;color:#123f73;letter-spacing:.01em}
.na-param-header p{font-size:12px;max-width:760px}
.na-section-kicker{font-size:10px;letter-spacing:.05em}
.na-progress-inline{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;min-width:120px;padding:7px 8px;border-left:1px solid #d9e5ee}
.na-progress-inline strong{font-size:24px;line-height:1;color:#123f73}
.na-progress-inline span{font-size:10px;color:#718aa1;margin-top:4px;white-space:nowrap}
.na-param-table{table-layout:fixed}
.na-param-table th:nth-child(1){width:12%}
.na-param-table th:nth-child(2){width:13%}
.na-param-table th:nth-child(3){width:24%}
.na-param-table th:nth-child(4){width:27%}
.na-param-table th:nth-child(5){width:12%}
.na-param-table th:nth-child(6){width:10%}
.na-param-table th:nth-child(7){width:2%}
.na-param-table th{font-size:11px;padding:11px 10px;line-height:1.15}
.na-param-table td{font-size:12.5px;padding:14px 10px;vertical-align:middle}
.na-inputs-cell{min-width:0}
.na-titulacao-grid{grid-template-columns:minmax(135px,1fr) minmax(135px,1fr);gap:10px;align-items:end}
.na-titulacao-grid label,.na-direct-input label{font-size:12px}
.na-titulacao-grid input,.na-direct-input input,.na-result-cell input{min-height:52px;font-size:16px;padding:10px 12px;border-radius:9px}
.na-direct-input input{width:min(100%,260px)!important}
.na-result-cell input{min-width:145px!important;width:145px!important;font-size:17px;font-weight:700}
.na-result-cell{vertical-align:middle}
.na-result-cell small{font-size:10px;margin-top:4px}
.na-status-cell{white-space:nowrap}
.na-status{min-height:31px;padding:5px 10px;font-size:11px}
.na-consumo-chip{font-size:11px;padding:7px 9px;grid-column:1/-1}
.na-method strong{font-size:12.5px;line-height:1.18}
.na-method span,.na-method small,.na-param-name span{font-size:11px;line-height:1.2}
.na-param-name strong{font-size:15px;line-height:1.18}
.na-range{gap:6px;font-size:12.5px}
.na-history-card{margin-top:14px}
.na-side-card .field{margin-bottom:10px}
.na-side-card select,.na-side-card input,.na-side-card textarea{font-size:13px;min-height:40px}
.na-side-card .na-readonly-box{font-size:13px;padding:9px 11px}
@media(max-width:760px){
  .na-selection-grid{grid-template-columns:1fr}
  .na-param-header{align-items:flex-start;flex-direction:column}
  .na-progress-inline{align-items:flex-start;border-left:0;border-top:1px solid #d9e5ee;width:100%;padding:8px 0 0;margin-top:4px}
  .na-inputs-cell{min-width:300px}
  .na-titulacao-grid{grid-template-columns:1fr 1fr}
  .na-result-cell input{min-width:125px!important;width:125px!important}
}


/* V352 — Nova Análise: alinhamento final conforme modelo aprovado */
.na-context-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important}
.na-context-grid>div{padding:5px 13px!important;border-right:1px solid #d8e5ef!important;min-width:0!important}
.na-context-grid>div:first-child{padding-left:0!important}
.na-context-grid>div:last-child{border-right:0!important}
.na-context-grid .na-context-os{grid-column:auto!important;border-right:0!important;border-top:0!important;margin-top:0!important;padding-top:5px!important}
.na-context-grid .na-context-os span{display:block!important}
.na-context-grid .na-context-os strong{display:block!important}
.na-param-header{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:18px!important;padding:15px 16px 13px!important}
.na-param-header>div:first-child{flex:1 1 auto;min-width:0}
.na-param-header h3{font-size:22px!important;line-height:1.12!important;margin:3px 0 4px!important}
.na-param-header p{font-size:12.5px!important;line-height:1.35!important}
.na-progress-inline{flex:0 0 120px!important;min-width:120px!important;text-align:center!important;border-left:1px solid #d8e5ef!important;padding-left:12px!important}
.na-progress-inline strong{font-size:24px!important;line-height:1!important}
.na-progress-inline span{font-size:10.5px!important;white-space:nowrap!important}
.na-param-table th,.na-param-table td{font-size:12px!important}
.na-param-table th:nth-child(1),.na-param-table td:nth-child(1){width:13%!important}
.na-param-table th:nth-child(2),.na-param-table td:nth-child(2){width:14%!important}
.na-param-table th:nth-child(3),.na-param-table td:nth-child(3){width:18%!important}
.na-param-table th:nth-child(4),.na-param-table td:nth-child(4){width:27%!important}
.na-param-table th:nth-child(5),.na-param-table td:nth-child(5){width:13%!important}
.na-param-table th:nth-child(6),.na-param-table td:nth-child(6){width:11%!important}
.na-param-table th:nth-child(7),.na-param-table td:nth-child(7){width:4%!important}
.na-inputs-cell{min-width:235px!important}
.na-titulacao-grid{grid-template-columns:1fr 1fr!important;gap:9px!important}
.na-titulacao-grid label,.na-direct-input label{font-size:11px!important}
.na-titulacao-grid input,.na-direct-input input,.na-result-cell input{height:42px!important;min-height:42px!important;font-size:15px!important;padding:0 11px!important}
.na-result-cell input{min-width:104px!important}
.na-result-cell{padding-left:12px!important;padding-right:12px!important}
@media (max-width:1100px){
  .na-context-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .na-context-grid>div{border-right:0!important;padding:5px 0!important}
}
@media (max-width:760px){
  .na-context-grid{grid-template-columns:1fr!important}
  .na-param-header{align-items:flex-start!important;flex-direction:column!important}
  .na-progress-inline{border-left:0!important;border-top:1px solid #d8e5ef!important;width:100%!important;padding:8px 0 0!important;text-align:left!important}
  .na-inputs-cell{min-width:235px!important}
}

/* V355 - Nova Analise: contexto unico, tipografia recuperada do padrao anterior. */
.na-initial-context-card .na-context-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  padding-top:10px;
  margin-top:8px;
  border-top:1px solid #d8e5ef;
}
.na-initial-context-card .na-context-summary-grid > div{
  min-width:0;
  padding:6px 13px;
  border-right:1px solid #d8e5ef;
}
.na-initial-context-card .na-context-summary-grid > div:first-child{padding-left:0}
.na-initial-context-card .na-context-summary-grid > div:last-child{border-right:0}
.na-initial-context-card .na-context-summary-grid span{
  display:block;
  margin:0 0 4px;
  color:#67809a;
  font-size:11px;
  line-height:1.2;
}
.na-initial-context-card .na-context-summary-grid strong{
  display:block;
  color:#163e69;
  font-size:14px;
  font-weight:700;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.na-initial-context-card .na-context-summary-grid small{
  display:block;
  margin-top:2px;
  color:#7a91a8;
  font-size:10.5px;
  line-height:1.2;
}
@media (max-width:900px){
  .na-initial-context-card .na-context-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .na-initial-context-card .na-context-summary-grid > div{border-right:0;padding:6px 0}
}
@media (max-width:560px){
  .na-initial-context-card .na-context-summary-grid{grid-template-columns:1fr}
}


/* V356 — Nova Análise: seleção Linha/Tanque na mesma linha e remoção do cabeçalho redundante dos parâmetros. */
.na-context-selection-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  align-items:end;
  margin-bottom:8px;
}
.na-context-selection-grid .field{margin:0;min-width:0}
.na-context-selection-grid label{display:block;margin-bottom:6px;font-size:11px;font-weight:700;color:#355a78}
.na-context-selection-grid select{width:100%;box-sizing:border-box;min-height:40px;font-size:13px}
.na-context-selection-grid-service{grid-template-columns:repeat(3,minmax(0,1fr))}
.na-param-card>.na-table-wrap{margin-top:0}
.na-param-card>.na-table-wrap .na-param-table{border-top:0}
@media(max-width:760px){
  .na-context-selection-grid,.na-context-selection-grid-service{grid-template-columns:1fr}
}

/* V358 — Nova Análise: uma única entrada por parâmetro */
.na-single-input{display:flex;flex-direction:column;gap:6px;min-width:180px}
.na-single-input label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:var(--text-primary)}
.na-single-input input.na-value-input,.na-result-input{min-height:48px;min-width:150px;padding:10px 12px;font-size:18px;font-weight:600;box-sizing:border-box}
.na-input-help{font-size:11px;color:var(--text-muted);line-height:1.3}
.na-result-value{display:flex;align-items:center;gap:6px}
.na-result-value small{font-size:12px;color:var(--text-muted)}

/* V364 — Nova Análise: tabela compacta sem rolagem horizontal */
.na-param-table{table-layout:fixed;width:100%;min-width:0}
.na-param-table th,.na-param-table td{box-sizing:border-box}
.na-param-table th:nth-child(1),.na-param-table td:nth-child(1){width:24%}
.na-param-table th:nth-child(2),.na-param-table td:nth-child(2){width:20%}
.na-param-table th:nth-child(3),.na-param-table td:nth-child(3){width:28%}
.na-param-table th:nth-child(4),.na-param-table td:nth-child(4){width:14%}
.na-param-table th:nth-child(5),.na-param-table td:nth-child(5){width:12%}
.na-param-table th:nth-child(6),.na-param-table td:nth-child(6){width:2%;padding-left:2px;padding-right:2px}
.na-param-table td{padding:9px 8px}
.na-param-name .na-param-main{display:flex;align-items:baseline;gap:5px;min-width:0;flex-wrap:wrap}
.na-param-name .na-param-main strong{font-size:13px;line-height:1.15}
.na-param-name .na-param-main span{font-size:10px;margin:0;color:#72889e}
.na-param-range-cell .na-range{margin-top:6px;display:flex;align-items:center;gap:5px;white-space:nowrap}
.na-param-range-cell .na-range strong,.na-param-range-cell .na-range span{font-size:11px}
.na-param-range-cell .na-range small{font-size:9px}
.na-inputs-cell{min-width:0}
.na-single-input{min-width:0}
.na-single-input label{display:block;font-size:10.5px;font-weight:700;color:#5a7590;white-space:nowrap}
.na-single-input input.na-value-input{width:130px;max-width:100%;height:38px;box-sizing:border-box;margin-top:4px;padding:7px 10px;font-size:14px;font-weight:700}
.na-result-cell input.na-result-input{width:94px;max-width:100%;height:38px;min-width:0;padding:7px 8px;font-size:13px}
.na-result-cell{overflow:hidden}
.na-result-placeholder{font-size:10px;max-width:100%;white-space:normal}
.na-input-help{display:block;font-size:9.5px;line-height:1.2;color:#7b90a5;margin-top:4px}
.na-table-wrap{overflow-x:hidden!important}
@media(max-width:1100px){.na-param-table th:nth-child(1),.na-param-table td:nth-child(1){width:24%}.na-param-table th:nth-child(2),.na-param-table td:nth-child(2){width:20%}.na-param-table th:nth-child(3),.na-param-table td:nth-child(3){width:27%}.na-param-table th:nth-child(4),.na-param-table td:nth-child(4){width:15%}.na-param-table th:nth-child(5),.na-param-table td:nth-child(5){width:12%}.na-param-table th:nth-child(6),.na-param-table td:nth-child(6){width:2%}}
@media(max-width:760px){.na-table-wrap{overflow-x:auto!important}.na-param-table{min-width:760px}}

/* V364.1 — faixa no mesmo alinhamento do parâmetro */
.na-param-range-cell{display:flex;align-items:center;gap:10px;min-width:0}
.na-param-range-cell .na-param-main{flex:1 1 auto;min-width:0}
.na-param-range-cell .na-range{flex:0 0 auto;margin-top:0;display:flex;align-items:center;gap:4px;white-space:nowrap}
.na-param-range-cell .na-range strong,.na-param-range-cell .na-range span{font-size:10.5px}
.na-param-range-cell .na-range small{font-size:8.5px}
.na-param-table th:nth-child(1),.na-param-table td:nth-child(1){width:24%}
.na-param-table th:nth-child(2),.na-param-table td:nth-child(2){width:21%}
.na-param-table th:nth-child(3),.na-param-table td:nth-child(3){width:26%}
.na-param-table th:nth-child(4),.na-param-table td:nth-child(4){width:14%}
.na-param-table th:nth-child(5),.na-param-table td:nth-child(5){width:12%}
.na-param-table th:nth-child(6),.na-param-table td:nth-child(6){width:3%;padding-left:2px;padding-right:2px}


/* V365 — grade Nova Análise: compacta, alinhada e sem rolagem horizontal no desktop */
.na-param-table{width:100%;table-layout:fixed;border-collapse:collapse}
.na-param-table th,.na-param-table td{box-sizing:border-box}
.na-param-table th:nth-child(1),.na-param-table td:nth-child(1){width:27%}
.na-param-table th:nth-child(2),.na-param-table td:nth-child(2){width:20%}
.na-param-table th:nth-child(3),.na-param-table td:nth-child(3){width:25%}
.na-param-table th:nth-child(4),.na-param-table td:nth-child(4){width:13%}
.na-param-table th:nth-child(5),.na-param-table td:nth-child(5){width:12%}
.na-param-table th:nth-child(6),.na-param-table td:nth-child(6){width:3%;padding-left:2px;padding-right:2px}
.na-param-table td{padding:10px 7px;vertical-align:middle}
.na-param-range-cell{display:grid!important;grid-template-columns:minmax(0,1fr) 86px;align-items:center;column-gap:7px;min-width:0}
.na-param-range-cell .na-param-main{min-width:0}
.na-param-range-cell .na-param-main strong{font-size:12.5px;line-height:1.12;display:block;overflow-wrap:anywhere}
.na-param-range-cell .na-param-main span{font-size:9.5px;display:block;margin-top:2px}
.na-param-range-cell .na-range{display:grid!important;grid-template-columns:repeat(3,max-content) 1fr;align-items:center;gap:3px;margin:0!important;min-width:0;white-space:nowrap}
.na-param-range-cell .na-range strong,.na-param-range-cell .na-range span{font-size:10px;line-height:1;color:#153f6d}
.na-param-range-cell .na-range span{color:#1d7f4f;font-weight:800}
.na-param-range-cell .na-range small{font-size:8px;margin-left:1px}
.na-method strong{font-size:11px;line-height:1.12}
.na-method span,.na-method small{font-size:9.5px;line-height:1.15}
.na-inputs-cell{min-width:0}
.na-single-input label{font-size:9.5px;line-height:1.1;white-space:normal}
.na-single-input input.na-value-input{width:110px;max-width:100%;height:34px;margin-top:3px;padding:5px 8px;font-size:13px}
.na-input-help{font-size:8.5px;line-height:1.1;margin-top:3px;max-width:145px}
.na-result-cell input.na-result-input{width:82px;height:34px;font-size:12px;padding:5px 7px}
.na-result-placeholder{font-size:9px;padding:6px 7px}
.na-status{min-height:25px;padding:3px 7px;font-size:9.5px}
.na-table-wrap{overflow-x:hidden!important;width:100%}
@media(max-width:1100px){
  .na-param-table th:nth-child(1),.na-param-table td:nth-child(1){width:27%}
  .na-param-table th:nth-child(2),.na-param-table td:nth-child(2){width:20%}
  .na-param-table th:nth-child(3),.na-param-table td:nth-child(3){width:25%}
  .na-param-table th:nth-child(4),.na-param-table td:nth-child(4){width:13%}
  .na-param-table th:nth-child(5),.na-param-table td:nth-child(5){width:12%}
  .na-param-table th:nth-child(6),.na-param-table td:nth-child(6){width:3%}
}
@media(max-width:760px){
  .na-table-wrap{overflow-x:auto!important}
  .na-param-table{min-width:760px}
}


/* V366 — Nova Análise: grade estável, sem compressão vertical do parâmetro */
.na-param-table{table-layout:fixed;width:100%;min-width:0}
.na-param-table th:nth-child(1),.na-param-table td:nth-child(1){width:29%}
.na-param-table th:nth-child(2),.na-param-table td:nth-child(2){width:22%}
.na-param-table th:nth-child(3),.na-param-table td:nth-child(3){width:24%}
.na-param-table th:nth-child(4),.na-param-table td:nth-child(4){width:14%}
.na-param-table th:nth-child(5),.na-param-table td:nth-child(5){width:9%}
.na-param-table th:nth-child(6),.na-param-table td:nth-child(6){width:2%;padding-left:2px;padding-right:2px}
.na-param-table td{padding:10px 8px;vertical-align:middle}
.na-param-range-cell{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center;column-gap:8px;min-width:0}
.na-param-range-cell .na-param-main{min-width:0;display:block!important}
.na-param-range-cell .na-param-main strong{font-size:12.5px;line-height:1.15;display:block;white-space:normal;overflow-wrap:normal;word-break:normal}
.na-param-range-cell .na-param-main span{font-size:9.5px;display:block;margin-top:2px;white-space:nowrap}
.na-param-range-cell .na-range{display:flex!important;align-items:center;gap:3px;margin:0!important;white-space:nowrap;flex:0 0 auto}
.na-param-range-cell .na-range strong,.na-param-range-cell .na-range span{font-size:9.5px;line-height:1}
.na-param-range-cell .na-range small{font-size:8px;margin-left:1px}
.na-method{min-width:0}
.na-method strong{font-size:10.5px;line-height:1.15;display:block;white-space:normal;overflow-wrap:break-word;word-break:normal}
.na-method span,.na-method small{display:block;font-size:9px;line-height:1.15;overflow-wrap:break-word;word-break:normal}
.na-single-input{min-width:0;display:flex;flex-direction:column;gap:3px}
.na-single-input label{font-size:9px;line-height:1.1;white-space:normal;display:block}
.na-single-input input.na-value-input{width:105px;max-width:100%;height:34px;margin-top:3px;padding:5px 8px;font-size:13px}
.na-input-help{font-size:8px;line-height:1.15;margin-top:2px;max-width:135px}
.na-result-cell{min-width:0;overflow:visible}
.na-result-cell input.na-result-input{width:78px;max-width:100%;height:34px;font-size:12px;padding:5px 6px}
.na-result-value{display:flex;align-items:center;gap:4px;white-space:nowrap}
.na-result-value small{font-size:9px}
.na-status-cell{white-space:nowrap;overflow:visible}
.na-status{font-size:9px;padding:3px 6px;white-space:nowrap}
.na-table-wrap{width:100%;overflow-x:hidden!important}
@media(max-width:1100px){
  .na-param-table th:nth-child(1),.na-param-table td:nth-child(1){width:29%}
  .na-param-table th:nth-child(2),.na-param-table td:nth-child(2){width:22%}
  .na-param-table th:nth-child(3),.na-param-table td:nth-child(3){width:24%}
  .na-param-table th:nth-child(4),.na-param-table td:nth-child(4){width:14%}
  .na-param-table th:nth-child(5),.na-param-table td:nth-child(5){width:9%}
  .na-param-table th:nth-child(6),.na-param-table td:nth-child(6){width:2%}
}
@media(max-width:760px){
  .na-table-wrap{overflow-x:auto!important}
  .na-param-table{min-width:760px}
}


/* V367 — Nova Análise em tela integral: abre pela navegação lateral sem comprimir o conteúdo */
.na-fullscreen-page{
  position:fixed;
  inset:0;
  z-index:200;
  width:auto;
  height:100vh;
  overflow:auto;
  overflow-x:hidden;
  box-sizing:border-box;
  padding:14px 18px 28px;
  background:var(--bg-page,#f2f7fc);
  color:var(--text-primary,#173f70);
}
.na-fullscreen-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:58px;
  padding:4px 2px 10px;
  border-bottom:2px solid var(--mp-orange,#f58216);
}
.na-fullscreen-title{display:flex;align-items:center;gap:10px;min-width:0}
.na-fullscreen-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;background:#e9f3fd;color:#1766b3;font-size:20px;border:1px solid #c9def1;flex:none}
.na-fullscreen-header h1{margin:0;color:#173f70;font-size:27px;line-height:1.1;font-weight:800}
.na-fullscreen-header p{margin:4px 0 0;color:#5e7590;font-size:12px}
.na-fullscreen-close{width:38px;height:38px;min-height:38px;border:1px solid #c8d9e9;border-radius:9px;background:#fff;color:#17466f;font-size:27px;line-height:1;cursor:pointer;flex:none}
.na-fullscreen-close:hover{background:#edf5fc}
.na-fullscreen-page .na-context-card{margin-top:12px}
.na-fullscreen-page .na-layout-grid{grid-template-columns:minmax(0,1fr) 360px;gap:14px}
.na-fullscreen-page .na-main-column{min-width:0}
.na-fullscreen-page .na-side-column{min-width:0}
.na-fullscreen-page .na-param-card{overflow:hidden}
.na-fullscreen-page .na-table-wrap{overflow-x:hidden!important}
.na-fullscreen-page .na-history-card{margin-bottom:0}
.na-fullscreen-page .na-actions-bar{position:sticky;bottom:8px;z-index:3}
.na-trend-card{margin-top:12px;padding:14px 16px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 3px 12px rgba(17,51,85,.06)}
.na-trend-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.na-trend-head strong{color:#17466f;font-size:14px}
.na-trend-head small{color:#7489a0;font-size:10px}
.na-trend-chart{height:150px;display:flex;align-items:flex-end;gap:7px;padding:12px 4px 4px;border-top:1px solid #edf2f6}
.na-trend-bar{flex:1;min-width:8px;background:#2b78c5;border-radius:4px 4px 1px 1px;position:relative;max-width:34px}
.na-trend-bar span{position:absolute;bottom:calc(100% + 3px);left:50%;transform:translateX(-50%);font-size:8px;color:#57718c;white-space:nowrap}
@media(max-width:1050px){
  .na-fullscreen-page .na-layout-grid{grid-template-columns:minmax(0,1fr) 310px}
}
@media(max-width:800px){
  .na-fullscreen-page{padding:10px 10px 24px}
  .na-fullscreen-header h1{font-size:23px}
  .na-fullscreen-page .na-layout-grid{grid-template-columns:1fr}
  .na-fullscreen-page .na-table-wrap{overflow-x:auto!important}
}

/* V368 — Nova Análise: reprodução do modelo visual aprovado em tela integral */
.na-fullscreen-page{width:auto!important;padding:12px 18px 22px!important;background:#f3f7fb!important;box-sizing:border-box!important;overflow-x:hidden!important}
.na-fullscreen-header{min-height:62px!important;padding:0 2px 9px!important}
.na-fullscreen-header h1{font-size:30px!important;font-weight:800!important}
.na-fullscreen-header p{font-size:12.5px!important}
.na-fullscreen-page .na-context-card{margin-top:12px!important;padding:14px 16px!important}
.na-fullscreen-page .na-context-selection-grid{grid-template-columns:1fr 1fr!important;gap:14px!important}
.na-fullscreen-page .na-context-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.na-fullscreen-page .na-layout-grid{grid-template-columns:minmax(0,1fr) 350px!important;gap:14px!important;align-items:start!important}
.na-fullscreen-page .na-param-card{border-radius:12px!important;overflow:hidden!important}
.na-fullscreen-page .na-param-table{table-layout:fixed!important;width:100%!important;min-width:0!important}
.na-fullscreen-page .na-param-table th:nth-child(1),.na-fullscreen-page .na-param-table td:nth-child(1){width:24%!important}
.na-fullscreen-page .na-param-table th:nth-child(2),.na-fullscreen-page .na-param-table td:nth-child(2){width:22%!important}
.na-fullscreen-page .na-param-table th:nth-child(3),.na-fullscreen-page .na-param-table td:nth-child(3){width:22%!important}
.na-fullscreen-page .na-param-table th:nth-child(4),.na-fullscreen-page .na-param-table td:nth-child(4){width:14%!important}
.na-fullscreen-page .na-param-table th:nth-child(5),.na-fullscreen-page .na-param-table td:nth-child(5){width:14%!important}
.na-fullscreen-page .na-param-table th:nth-child(6),.na-fullscreen-page .na-param-table td:nth-child(6){width:4%!important}
.na-fullscreen-page .na-param-table td{padding:11px 10px!important;vertical-align:middle!important}
.na-fullscreen-page .na-param-range-cell{display:block!important;min-width:0!important}
.na-fullscreen-page .na-param-range-cell .na-param-main{display:block!important;min-width:0!important}
.na-fullscreen-page .na-param-range-cell .na-param-main strong{font-size:13px!important;line-height:1.18!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}
.na-fullscreen-page .na-param-range-cell .na-param-main span{display:block!important;font-size:10px!important;margin-top:2px!important;white-space:nowrap!important}
.na-fullscreen-page .na-param-range-cell .na-range{display:flex!important;align-items:center!important;gap:4px!important;margin-top:4px!important;white-space:nowrap!important}
.na-fullscreen-page .na-param-range-cell .na-range strong,.na-fullscreen-page .na-param-range-cell .na-range span{font-size:10px!important;line-height:1!important}
.na-fullscreen-page .na-method strong{font-size:11.5px!important;line-height:1.2!important;white-space:normal!important;word-break:normal!important}
.na-fullscreen-page .na-method span,.na-fullscreen-page .na-method small{font-size:9.5px!important;line-height:1.2!important}
.na-fullscreen-page .na-single-input input.na-value-input{width:150px!important;max-width:100%!important;height:38px!important;font-size:14px!important}
.na-fullscreen-page .na-input-help{font-size:8.5px!important;max-width:180px!important}
.na-fullscreen-page .na-result-cell input.na-result-input{width:88px!important;height:36px!important;font-size:13px!important}
.na-fullscreen-page .na-status{font-size:10px!important;padding:5px 8px!important}
.na-fullscreen-page .na-side-column{display:flex!important;flex-direction:column!important;gap:12px!important}
.na-fullscreen-page .na-side-card{margin:0!important}
.na-fullscreen-page .na-actions-bar{position:static!important;display:flex!important;gap:8px!important;justify-content:flex-end!important;padding:10px!important;background:#fff!important;border:1px solid var(--border)!important;border-radius:12px!important}
.na-bottom-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:14px;margin-top:14px}
.na-bottom-grid .na-history-card,.na-bottom-grid .na-trend-card{margin:0!important;min-width:0}
.na-trend-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:#17466f;font-size:12px}
.na-trend-label select{width:55%;height:32px;font-size:11px}
.na-trend-chart-line{height:130px;display:flex;align-items:flex-end;gap:8px;padding:8px 6px 4px;border:1px solid #e3ebf3;border-radius:8px;background:linear-gradient(to top,#f7fbff,#fff)}
.na-trend-point{flex:1;min-width:8px;max-width:28px;background:#2678c5;border-radius:4px 4px 1px 1px;position:relative}
.na-trend-point span{position:absolute;bottom:calc(100% + 3px);left:50%;transform:translateX(-50%);font-size:8px;color:#55708d;white-space:nowrap}
.na-trend-legend,.na-trend-empty{font-size:10px;color:#71879d;margin-top:7px}
@media(max-width:1050px){
 .na-fullscreen-page .na-layout-grid{grid-template-columns:minmax(0,1fr) 310px!important}
 .na-fullscreen-page .na-param-table th:nth-child(1),.na-fullscreen-page .na-param-table td:nth-child(1){width:23%!important}
 .na-fullscreen-page .na-param-table th:nth-child(2),.na-fullscreen-page .na-param-table td:nth-child(2){width:21%!important}
 .na-fullscreen-page .na-param-table th:nth-child(3),.na-fullscreen-page .na-param-table td:nth-child(3){width:23%!important}
 .na-fullscreen-page .na-param-table th:nth-child(4),.na-fullscreen-page .na-param-table td:nth-child(4){width:13%!important}
 .na-fullscreen-page .na-param-table th:nth-child(5),.na-fullscreen-page .na-param-table td:nth-child(5){width:16%!important}
 .na-fullscreen-page .na-param-table th:nth-child(6),.na-fullscreen-page .na-param-table td:nth-child(6){width:4%!important}
}
@media(max-width:800px){
 .na-fullscreen-page .na-context-selection-grid{grid-template-columns:1fr!important}
 .na-fullscreen-page .na-context-summary-grid{grid-template-columns:1fr 1fr!important}
 .na-fullscreen-page .na-layout-grid{grid-template-columns:1fr!important}
 .na-bottom-grid{grid-template-columns:1fr!important}
 .na-fullscreen-page .na-table-wrap{overflow-x:auto!important}
 .na-fullscreen-page .na-param-table{min-width:780px!important}
}


/* V369 — Nova Análise: grade definitiva, sem compressão do parâmetro */
.na-fullscreen-page .na-param-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}
.na-fullscreen-page .na-param-table .na-col-param{width:24%!important}
.na-fullscreen-page .na-param-table .na-col-method{width:22%!important}
.na-fullscreen-page .na-param-table .na-col-input{width:22%!important}
.na-fullscreen-page .na-param-table .na-col-result{width:14%!important}
.na-fullscreen-page .na-param-table .na-col-status{width:14%!important}
.na-fullscreen-page .na-param-table .na-col-actions{width:4%!important}
.na-fullscreen-page .na-param-table th,.na-fullscreen-page .na-param-table td{box-sizing:border-box!important}
.na-fullscreen-page .na-param-table td{padding:12px 10px!important;vertical-align:middle!important;overflow:hidden!important}
.na-fullscreen-page .na-param-range-cell{display:block!important;width:100%!important;min-width:0!important;overflow:visible!important}
.na-fullscreen-page .na-param-range-cell .na-param-main{display:block!important;width:100%!important;min-width:0!important}
.na-fullscreen-page .na-param-range-cell .na-param-main strong{display:block!important;font-size:13px!important;line-height:1.18!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important}
.na-fullscreen-page .na-param-range-cell .na-param-main span{display:block!important;font-size:10px!important;line-height:1.2!important;margin-top:3px!important;white-space:nowrap!important}
.na-fullscreen-page .na-param-range-cell .na-range{display:flex!important;align-items:center!important;gap:4px!important;margin-top:5px!important;width:max-content!important;max-width:100%!important;white-space:nowrap!important}
.na-fullscreen-page .na-param-range-cell .na-range strong,.na-fullscreen-page .na-param-range-cell .na-range span{font-size:11px!important;line-height:1!important}
.na-fullscreen-page .na-param-range-cell .na-range small{font-size:9px!important;line-height:1!important}
.na-fullscreen-page .na-method{min-width:0!important;overflow:hidden!important}
.na-fullscreen-page .na-method strong{display:block!important;font-size:11.5px!important;line-height:1.2!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}
.na-fullscreen-page .na-method span,.na-fullscreen-page .na-method small{display:block!important;font-size:9.5px!important;line-height:1.2!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}
.na-fullscreen-page .na-inputs-cell{min-width:0!important;overflow:hidden!important}
.na-fullscreen-page .na-single-input{min-width:0!important}
.na-fullscreen-page .na-single-input input.na-value-input{width:120px!important;max-width:100%!important;height:38px!important;font-size:14px!important}
.na-fullscreen-page .na-input-help{max-width:170px!important;font-size:8.5px!important;line-height:1.2!important}
.na-fullscreen-page .na-result-cell{min-width:0!important;overflow:hidden!important}
.na-fullscreen-page .na-result-cell input.na-result-input{width:90px!important;max-width:100%!important;height:36px!important}
.na-fullscreen-page .na-result-placeholder{display:inline-block!important;max-width:100%!important;white-space:normal!important}
.na-fullscreen-page .na-status-cell{min-width:0!important;text-align:left!important;overflow:visible!important}
.na-fullscreen-page .na-status{display:inline-flex!important;white-space:nowrap!important}
.na-fullscreen-page .na-row-menu{width:auto!important;text-align:center!important;white-space:nowrap!important}
@media(max-width:800px){
  .na-fullscreen-page .na-table-wrap{overflow-x:auto!important}
  .na-fullscreen-page .na-param-table{min-width:780px!important}
}

/* V370 - Nova Analise: grade final compacta e campos numericos sem setas */
.na-fullscreen-page .na-param-table .na-col-param{width:28%!important}
.na-fullscreen-page .na-param-table .na-col-method{width:23%!important}
.na-fullscreen-page .na-param-table .na-col-input{width:20%!important}
.na-fullscreen-page .na-param-table .na-col-result{width:13%!important}
.na-fullscreen-page .na-param-table .na-col-status{width:12%!important}
.na-fullscreen-page .na-param-table .na-col-actions{width:4%!important}
.na-fullscreen-page .na-param-table td:first-child{padding-right:18px!important}
.na-fullscreen-page .na-param-range-cell .na-param-main strong{font-size:14px!important;line-height:1.2!important;word-break:normal!important;overflow-wrap:break-word!important;white-space:normal!important}
.na-fullscreen-page .na-param-range-cell .na-param-main span{font-size:10.5px!important}
.na-fullscreen-page .na-param-range-cell .na-range{margin-top:5px!important;gap:4px!important}
.na-fullscreen-page .na-single-input input.na-value-input{width:105px!important;max-width:105px!important;height:34px!important;padding:5px 8px!important;font-size:13px!important;box-sizing:border-box!important}
.na-fullscreen-page .na-single-input input.na-value-input::-webkit-inner-spin-button,
.na-fullscreen-page .na-single-input input.na-value-input::-webkit-outer-spin-button,
.na-fullscreen-page .na-result-cell input.na-result-input::-webkit-inner-spin-button,
.na-fullscreen-page .na-result-cell input.na-result-input::-webkit-outer-spin-button{appearance:none!important;-webkit-appearance:none!important;margin:0!important}
.na-fullscreen-page .na-single-input input.na-value-input,
.na-fullscreen-page .na-result-cell input.na-result-input{-moz-appearance:textfield!important;appearance:textfield!important}
.na-fullscreen-page .na-input-help{display:none!important}
.na-fullscreen-page .na-single-input label{font-size:10px!important;white-space:nowrap!important}
.na-fullscreen-page .na-result-cell input.na-result-input{width:105px!important;min-width:105px!important;height:34px!important;font-size:13px!important}
.na-fullscreen-page .na-result-placeholder{padding:6px 8px!important;font-size:10px!important;white-space:nowrap!important}
@media (max-width:900px){
  .na-fullscreen-page .na-param-table .na-col-param{width:26%!important}
  .na-fullscreen-page .na-param-table .na-col-method{width:23%!important}
  .na-fullscreen-page .na-param-table .na-col-input{width:21%!important}
  .na-fullscreen-page .na-param-table .na-col-result{width:13%!important}
  .na-fullscreen-page .na-param-table .na-col-status{width:13%!important}
  .na-fullscreen-page .na-param-table .na-col-actions{width:4%!important}
}

/* V371 — grade Nova Análise reconstruída com CSS Grid; evita colapso de colunas */
.na-param-grid{width:100%;display:block;border:1px solid #d5e1ee;border-radius:12px;overflow:hidden;background:#fff;box-sizing:border-box}
.na-param-grid-head,.na-param-grid-row{display:grid;grid-template-columns:minmax(190px,1.25fr) minmax(190px,1.35fr) minmax(190px,1.2fr) minmax(105px,.72fr) minmax(92px,.58fr) 28px;align-items:stretch;box-sizing:border-box}
.na-param-grid-head{background:#dceaf7;color:#163f6c;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.02em;min-height:48px;border-bottom:1px solid #a9c3dd}
.na-param-grid-head>div{padding:10px 12px;display:flex;align-items:center;line-height:1.15;box-sizing:border-box}
.na-param-grid-head>div:first-child{flex-direction:column;align-items:flex-start;justify-content:center}
.na-param-grid-head span{font-size:11px;font-weight:600;text-transform:none;color:#617a95;margin-top:2px}
.na-param-grid-body{width:100%}
.na-param-grid-row{min-height:112px;border-bottom:1px solid #dce5ef;background:#fff}
.na-param-grid-row:nth-child(even){background:#f7faff}
.na-param-grid-row:last-child{border-bottom:0}
.na-param-grid-row>div{min-width:0;padding:12px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;overflow:hidden}
.na-param-cell{align-items:flex-start}
.na-param-title{font-size:15px;font-weight:800;line-height:1.18;color:#173f70;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none}
.na-param-unit{font-size:11px;color:#6c8197;margin-top:3px}
.na-range-inline{display:flex;align-items:baseline;gap:5px;margin-top:7px;font-size:12px;color:#234e77;white-space:nowrap}
.na-range-inline b{font-weight:800}.na-range-inline span{font-weight:800;color:#163f6c}.na-range-inline small{font-size:10px;color:#6c8197;margin-left:2px}
.na-method{gap:2px;line-height:1.2;color:#4d6b87;font-size:11px}
.na-method strong{font-size:13px;color:#173f70;line-height:1.2;white-space:normal;word-break:normal;overflow-wrap:break-word}
.na-method span{font-size:11px}.na-method small{font-size:10px;color:#617b96;line-height:1.2}
.na-inputs-cell{align-items:flex-start!important;justify-content:center!important}
.na-entry-label{font-size:11px;font-weight:700;color:#49657f;display:flex;flex-direction:column;gap:5px;width:100%;max-width:145px}
.na-single-input{width:auto}.na-single-input .na-input-help{display:none}
.na-value-input,.na-single-input input.na-value-input{width:118px!important;max-width:118px!important;height:38px!important;min-height:38px!important;padding:7px 9px!important;border:1px solid #bfd0e1!important;border-radius:8px!important;background:#fff!important;font-size:15px!important;font-weight:700!important;color:#173f70!important;box-sizing:border-box!important}
.na-value-input::placeholder{color:#8294a7;font-weight:600}
/* campos numéricos sem setas */
.na-value-input::-webkit-outer-spin-button,.na-value-input::-webkit-inner-spin-button,.na-result-input::-webkit-outer-spin-button,.na-result-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.na-value-input[type=number],.na-result-input[type=number]{-moz-appearance:textfield;appearance:textfield}
.na-result-cell{align-items:flex-start!important;justify-content:center!important;flex-direction:row!important;gap:5px;overflow:visible!important}
.na-result-value{display:flex;align-items:center;gap:5px}
.na-result-input{width:105px!important;max-width:105px!important;height:38px!important;min-height:38px!important;padding:7px 9px!important;font-size:14px!important;border-radius:8px!important}
.na-result-value small{font-size:10px;color:#6c8197}
.na-result-placeholder{display:inline-block;padding:9px 10px;border-radius:8px;background:#f2f6fa;color:#71859a;font-size:10px;line-height:1.2;max-width:108px}
.na-status-cell{align-items:flex-start!important;justify-content:center!important}
.na-status{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;font-size:11px;padding:6px 10px;border-radius:999px;background:#edf2f6;color:#5c7084;font-weight:700}
.na-row-menu{align-items:center!important;justify-content:center!important;padding-left:2px!important;padding-right:2px!important;color:#4f6a83;font-size:18px}
.na-table-wrap{overflow:visible!important}
@media(max-width:1050px){
 .na-param-grid-head,.na-param-grid-row{grid-template-columns:minmax(165px,1.15fr) minmax(165px,1.25fr) minmax(165px,1.15fr) minmax(95px,.7fr) minmax(88px,.6fr) 24px}
 .na-param-grid-row>div{padding:10px 9px}.na-param-title{font-size:14px}.na-method strong{font-size:12px}
}
@media(max-width:760px){
 .na-param-grid{overflow-x:auto}.na-param-grid-head,.na-param-grid-row{min-width:860px}
}


/* V372 — Nova Análise: progress card aligned above the analysis grid; table proportions match approved visual */
.na-analysis-progress-top{
  width:100%;
  display:flex;
  justify-content:flex-end;
  margin:0 0 10px;
  box-sizing:border-box;
}
.na-analysis-progress-top .na-progress-card{
  width:min(350px,100%);
  box-sizing:border-box;
}
.na-layout-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 350px!important;
  gap:14px!important;
  align-items:start!important;
}
.na-main-column{min-width:0!important}
.na-side-column{min-width:0!important}
.na-param-grid-head,.na-param-grid-row{
  grid-template-columns:23% 24% 22% 14% 14% 3%!important;
}
.na-param-grid-row{min-height:112px!important}
.na-param-grid-row>div{padding:12px 10px!important}
.na-param-title{font-size:15px!important;line-height:1.16!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}
.na-range-inline{font-size:12px!important;gap:4px!important;margin-top:7px!important}
.na-method strong{font-size:13px!important}
.na-method span{font-size:10.5px!important}
.na-method small{font-size:9.5px!important}
.na-single-input input.na-value-input,.na-value-input,.na-result-input{
  width:118px!important;max-width:118px!important;height:38px!important;min-height:38px!important;
}
.na-result-input{width:105px!important;max-width:105px!important}
.na-result-placeholder{max-width:108px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.na-status{font-size:10.5px!important;padding:6px 9px!important}
.na-row-menu{font-size:16px!important}
@media(max-width:1100px){
  .na-layout-grid{grid-template-columns:minmax(0,1fr) 320px!important}
  .na-analysis-progress-top .na-progress-card{width:320px}
}
@media(max-width:820px){
  .na-analysis-progress-top{justify-content:stretch}
  .na-analysis-progress-top .na-progress-card{width:100%}
  .na-layout-grid{grid-template-columns:1fr!important}
}

/* V375 — Nova Análise: Linha + Tanque + Progresso na mesma linha */
.na-fullscreen-page .na-context-selection-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(300px,350px)!important;
  align-items:end!important;
  gap:14px!important;
  width:100%!important;
}
.na-fullscreen-page .na-context-selection-grid .na-context-progress{
  grid-column:auto!important;
  min-width:0!important;
  align-self:end!important;
  margin:0!important;
}
.na-fullscreen-page .na-context-selection-grid .na-progress-card{
  width:100%!important;
  box-sizing:border-box!important;
  margin:0!important;
}
.na-fullscreen-page .na-context-selection-grid-service{
  grid-template-columns:minmax(0,0.8fr) minmax(0,1fr) minmax(0,1fr) minmax(300px,350px)!important;
}
@media(max-width:1050px){
  .na-fullscreen-page .na-context-selection-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(280px,320px)!important;
  }
  .na-fullscreen-page .na-context-selection-grid-service{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  }
  .na-fullscreen-page .na-context-selection-grid-service .na-context-progress{
    grid-column:1 / -1!important;
  }
}
@media(max-width:820px){
  .na-fullscreen-page .na-context-selection-grid,
  .na-fullscreen-page .na-context-selection-grid-service{
    grid-template-columns:1fr!important;
  }
  .na-fullscreen-page .na-context-selection-grid-service .na-context-progress,
  .na-fullscreen-page .na-context-selection-grid .na-context-progress{
    grid-column:auto!important;
  }
}


/* V376 -> V377: progresso ocupa o lugar da Ordem de Produção no resumo */
.na-initial-context-card .na-context-selection-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
.na-initial-context-card .na-context-summary-with-progress{grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch!important;}
.na-initial-context-card .na-context-summary-with-progress .na-summary-progress-slot{padding:0 0 0 13px!important;border-right:0!important;display:flex!important;align-items:stretch!important;min-width:0!important;}
.na-initial-context-card .na-context-summary-with-progress .na-summary-progress-slot .na-progress-card{width:100%!important;margin:0!important;box-sizing:border-box!important;}
.na-initial-context-card .na-context-summary-with-progress .na-summary-progress-slot .na-progress-head{margin-bottom:7px!important;}
@media(max-width:760px){
 .na-initial-context-card .na-context-selection-grid{grid-template-columns:1fr!important;}
 .na-initial-context-card .na-context-summary-with-progress{grid-template-columns:1fr!important;}
 .na-initial-context-card .na-context-summary-with-progress .na-summary-progress-slot{padding:8px 0 0!important;border-top:1px solid #d8e5ef!important;}
}

/* V378 — Nova Análise: Reagente e grade lado a lado no desktop */
.na-fullscreen-page .na-analysis-workspace{
  display:grid!important;
  grid-template-columns:minmax(270px,30%) minmax(0,1fr)!important;
  gap:14px!important;
  align-items:stretch!important;
  width:100%!important;
  box-sizing:border-box!important;
}
.na-fullscreen-page .na-analysis-workspace .na-reagent-panel{
  grid-column:1!important;
  grid-row:1!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.na-fullscreen-page .na-analysis-workspace .na-param-card{
  grid-column:2!important;
  grid-row:1!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.na-fullscreen-page .na-param-grid{width:100%!important;max-width:100%!important}
.na-fullscreen-page .na-param-grid-head,
.na-fullscreen-page .na-param-grid-row{width:100%!important}
.na-fullscreen-page .na-analysis-tools{
  display:grid!important;
  grid-template-columns:minmax(0,1.1fr) minmax(280px,.85fr) minmax(300px,1fr)!important;
  gap:14px!important;
  width:100%!important;
  margin-top:14px!important;
  align-items:stretch!important;
}
.na-fullscreen-page .na-analysis-tools .na-side-card{
  margin:0!important;
  min-width:0!important;
  height:100%!important;
  box-sizing:border-box!important;
}
@media(max-width:980px){
  .na-fullscreen-page .na-analysis-workspace{grid-template-columns:minmax(245px,32%) minmax(0,1fr)!important}
  .na-fullscreen-page .na-analysis-tools{grid-template-columns:1fr 1fr!important}
  .na-fullscreen-page .na-analysis-tools .na-observations-card{grid-column:1/-1!important}
}
@media(max-width:760px){
  .na-fullscreen-page .na-analysis-workspace{grid-template-columns:1fr!important}
  .na-fullscreen-page .na-analysis-workspace .na-reagent-panel,
  .na-fullscreen-page .na-analysis-workspace .na-param-card{grid-column:1!important;grid-row:auto!important}
  .na-fullscreen-page .na-analysis-tools{grid-template-columns:1fr!important}
  .na-fullscreen-page .na-analysis-tools .na-observations-card{grid-column:auto!important}
}

/* V380 — Nova Análise: evidência visual real do bloco de reagente/lote */
.na-fullscreen-page .na-reagent-panel{
  padding:16px 16px 17px!important;
  border:1px solid #c8dbea!important;
  border-radius:12px!important;
  background:#ffffff!important;
}
.na-fullscreen-page .na-reagent-panel .na-card-title{
  font-size:16px!important;
  line-height:1.25!important;
  font-weight:900!important;
  color:#123f69!important;
  margin:0 0 14px!important;
  letter-spacing:.1px!important;
}
.na-fullscreen-page .na-reagent-panel .field{
  margin-bottom:11px!important;
}
.na-fullscreen-page .na-reagent-panel .field>label{
  display:block!important;
  margin:0 0 6px!important;
  font-size:11.5px!important;
  line-height:1.2!important;
  font-weight:800!important;
  color:#274f73!important;
}
.na-fullscreen-page .na-reagent-panel .na-readonly-box{
  padding:11px 12px!important;
  min-height:42px!important;
  box-sizing:border-box!important;
  border:1px solid #d6e2ec!important;
  border-radius:9px!important;
  background:#edf4f9!important;
  color:#17466f!important;
  font-size:13px!important;
  line-height:1.35!important;
  font-weight:700!important;
}
.na-fullscreen-page .na-reagent-panel .na-readonly-box b,
.na-fullscreen-page .na-reagent-panel .na-readonly-box strong{
  color:#0e3f6d!important;
  font-weight:900!important;
}
.na-fullscreen-page .na-reagent-panel #na-lote-select,
.na-fullscreen-page .na-reagent-panel #na-lote-reagente{
  width:100%!important;
  min-height:42px!important;
  box-sizing:border-box!important;
  border:1px solid #c7d9e8!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#183f61!important;
  font-size:13px!important;
  font-weight:600!important;
  padding:9px 11px!important;
}
.na-fullscreen-page .na-reagent-panel #na-lote-select.na-filled,
.na-fullscreen-page .na-reagent-panel #na-lote-reagente.na-filled{
  background:#e8f7ef!important;
  border-color:#2eaa70!important;
  color:#125b3b!important;
  font-weight:800!important;
  box-shadow:0 0 0 2px rgba(46,170,112,.08)!important;
}
.na-fullscreen-page .na-reagent-panel #na-lote-select.na-filled option:checked{
  color:#125b3b!important;
  font-weight:800!important;
}
.na-fullscreen-page .na-reagent-panel #na-lote-reagente::placeholder{
  color:#607b94!important;
  font-weight:600!important;
  opacity:1!important;
}
.na-fullscreen-page .na-reagent-panel #na-lote-aviso-vencido{
  font-size:11px!important;
  font-weight:700!important;
}

/* V381 — Nova Análise: valores centralizados e status em semáforo visual */
.na-value-input,.na-result-input{
  text-align:center !important;
  font-variant-numeric:tabular-nums;
}
.na-result-cell,.na-inputs-cell{
  align-items:center !important;
}
.na-entry-label{
  align-items:center;
  text-align:center;
}
.na-value-normal{background:#e9f7ef !important;border-color:#4dbb83 !important;color:#126b45 !important;}
.na-value-atencao{background:#fff5d9 !important;border-color:#e6b44c !important;color:#8b6500 !important;}
.na-value-critico{background:#fde9e7 !important;border-color:#e35a52 !important;color:#a92f28 !important;}
.na-status{
  width:32px !important;
  height:32px !important;
  min-height:32px !important;
  padding:0 !important;
  border-radius:50% !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box;
  font-size:0 !important;
  border:2px solid transparent;
  box-shadow:0 1px 3px rgba(22,55,88,.12);
}
.na-status-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;height:100%;
  border-radius:50%;
  color:#fff;
  font-size:18px;
  line-height:1;
  font-weight:900;
}
.na-status.pending{background:#edf2f6 !important;border-color:#c9d6e2 !important;}
.na-status.pending .na-status-icon{background:#8da0b2;}
.na-status.normal{background:#dff5e8 !important;border-color:#38a86f !important;}
.na-status.normal .na-status-icon{background:#20a465;}
.na-status.atencao{background:#fff2d0 !important;border-color:#e5b23c !important;}
.na-status.atencao .na-status-icon{background:#e3a51b;}
.na-status.critico{background:#fde3e1 !important;border-color:#df5148 !important;}
.na-status.critico .na-status-icon{background:#d93e35;}
.na-status-cell{text-align:center !important;align-items:center !important;justify-content:center !important;}
.na-result-placeholder{max-width:105px !important;text-align:center;line-height:1.15;}
@media(max-width:1050px){.na-status{width:30px !important;height:30px !important;min-height:30px !important}.na-status-icon{font-size:16px}}

/* V383 — Nova Análise: campo preenchido com a cor do semáforo + respiro entre cards e ações */
.na-fullscreen-page .na-value-input.na-value-normal,
.na-fullscreen-page .na-result-input.na-value-normal{
  background:#e9f7ef !important; border-color:#38a86f !important; color:#126b45 !important;
}
.na-fullscreen-page .na-value-input.na-value-atencao,
.na-fullscreen-page .na-result-input.na-value-atencao{
  background:#fff5d9 !important; border-color:#e3a51b !important; color:#805f00 !important;
}
.na-fullscreen-page .na-value-input.na-value-critico,
.na-fullscreen-page .na-result-input.na-value-critico{
  background:#fde3e1 !important; border-color:#d93e35 !important; color:#a92f28 !important;
}
.na-fullscreen-page .na-actions-bar{
  margin-top:16px !important;
}


/* V384 - Nova Análise: semáforo corrigido e faixa sem unidade */
.na-fullscreen-page .na-param-cell{padding-right:18px!important;}
.na-fullscreen-page .na-range-inline{display:flex!important;align-items:baseline!important;gap:6px!important;white-space:nowrap!important;}
.na-fullscreen-page .na-range-inline b{font-weight:800!important;color:#234e77!important;}
.na-fullscreen-page .na-range-inline span{font-weight:900!important;color:#163f6c!important;}
.na-fullscreen-page .na-param-unit{display:none!important;}
.na-fullscreen-page .na-range-inline small{display:none!important;}
.na-fullscreen-page .na-value-input,.na-fullscreen-page .na-result-input{transition:background-color .15s ease,border-color .15s ease,color .15s ease!important;}
.na-fullscreen-page .na-value-normal,.na-fullscreen-page .na-result-input.na-value-normal{background:#e9f7ef!important;border:1px solid #43b67b!important;color:#126b45!important;}
.na-fullscreen-page .na-value-atencao,.na-fullscreen-page .na-result-input.na-value-atencao{background:#fff3cf!important;border:1px solid #e5b23c!important;color:#8b6500!important;}
.na-fullscreen-page .na-value-fora,.na-fullscreen-page .na-result-input.na-value-fora{background:#fde7e5!important;border:1px solid #df5148!important;color:#a92f28!important;}
.na-fullscreen-page .na-status.normal .na-status-icon{background:#20a465!important;}
.na-fullscreen-page .na-status.atencao .na-status-icon{background:#e3a51b!important;}
.na-fullscreen-page .na-status.fora .na-status-icon{background:#d93e35!important;}
.na-fullscreen-page .na-status.normal,.na-fullscreen-page .na-status.atencao,.na-fullscreen-page .na-status.fora{background:transparent!important;border:0!important;padding:0!important;}

/* V387 — Nova Análise: contexto exatamente em uma única linha no desktop.
   A folha realmente carregada pelo index.html é css/styles.css; esta regra
   prevalece sobre regras anteriores e mantém Linha, Tanque, Receita e Progresso
   na mesma linha. */
.na-initial-context-card .na-context-main-row{
  display:grid !important;
  grid-template-columns:minmax(260px,1fr) minmax(260px,1fr) minmax(240px,1fr) minmax(300px,1fr) !important;
  gap:14px !important;
  align-items:stretch !important;
  width:100% !important;
  margin:0 !important;
}
.na-initial-context-card .na-context-main-row > .field,
.na-initial-context-card .na-context-recipe,
.na-initial-context-card .na-context-progress-slot{
  min-width:0 !important;
  width:auto !important;
}
.na-initial-context-card .na-context-main-row > .field{
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end !important;
  margin:0 !important;
}
.na-initial-context-card .na-context-recipe{
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  padding:8px 14px !important;
  border-left:1px solid #d6e2ec !important;
}
.na-initial-context-card .na-context-progress-slot{
  display:flex !important;
  align-items:stretch !important;
}
.na-initial-context-card .na-context-progress-slot .na-progress-card{
  width:100% !important;
  height:100% !important;
  margin:0 !important;
  box-sizing:border-box !important;
}
@media (max-width: 1100px){
  .na-initial-context-card .na-context-main-row{
    grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) !important;
  }
  .na-initial-context-card .na-context-recipe,
  .na-initial-context-card .na-context-progress-slot{
    grid-column:span 1 !important;
  }
}
@media (max-width: 700px){
  .na-initial-context-card .na-context-main-row{
    grid-template-columns:1fr !important;
  }
  .na-initial-context-card .na-context-recipe{
    border-left:0 !important;
    border-top:1px solid #d6e2ec !important;
  }
}

/* V392 — Contexto da análise: aumento leve de altura mantendo o layout compacto. */
.na-initial-context-card{
  padding:18px 18px 20px!important;
}
.na-initial-context-card .na-panel-title{
  margin-bottom:14px!important;
}
.na-initial-context-card .na-context-main-row{
  min-height:64px!important;
}
.na-initial-context-card .na-context-main-row .field select{
  min-height:44px!important;
}
.na-initial-context-card .na-context-recipe{
  min-height:70px!important;
}
.na-initial-context-card .na-context-progress-slot .na-progress-card{
  min-height:82px!important;
}

.na-initial-context-card .na-panel-title{
  margin-bottom:12px!important;
}
.na-initial-context-card .na-context-main-row{
  grid-template-columns:minmax(260px,1.15fr) minmax(260px,1.15fr) minmax(240px,.95fr) minmax(300px,320px)!important;
  gap:16px!important;
  align-items:center!important;
}
.na-initial-context-card .na-context-main-row > .field{
  justify-content:center!important;
}
.na-initial-context-card .na-context-main-row > .field label{
  font-size:12px!important;
  margin-bottom:7px!important;
}
.na-initial-context-card .na-context-main-row > .field select{
  min-height:42px!important;
  padding:9px 13px!important;
}
.na-initial-context-card .na-context-recipe{
  min-height:66px!important;
  justify-content:center!important;
  padding:8px 18px!important;
}
.na-initial-context-card .na-context-recipe span{font-size:12px!important;margin-bottom:4px!important}
.na-initial-context-card .na-context-recipe strong{font-size:15px!important}
.na-initial-context-card .na-context-recipe small{font-size:10.5px!important}
.na-initial-context-card .na-context-progress-slot{align-items:center!important}
.na-initial-context-card .na-context-progress-slot .na-progress-card{
  min-height:78px!important;
  height:auto!important;
  padding:12px 15px!important;
  border-radius:12px!important;
}
@media(max-width:1050px){
  .na-initial-context-card .na-context-main-row{
    grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) minmax(220px,.9fr)!important;
  }
  .na-initial-context-card .na-context-progress-slot{grid-column:1/-1!important}
}
@media(max-width:760px){
  .na-initial-context-card .na-context-main-row{grid-template-columns:1fr 1fr!important}
  .na-initial-context-card .na-context-progress-slot{grid-column:1/-1!important}
}
@media(max-width:560px){
  .na-initial-context-card .na-context-main-row{grid-template-columns:1fr!important}
  .na-initial-context-card .na-context-progress-slot{grid-column:auto!important}
}

/* V391 — Nova Análise: Contexto compacto conforme mockup aprovado.
   Reduz altura e espaçamentos sem alterar a lógica Linha -> Tanque -> Receita -> Progresso. */
.na-initial-context-card{
  padding:10px 14px 12px!important;
  border-radius:12px!important;
}
.na-initial-context-card .na-panel-title{
  margin-bottom:7px!important;
  min-height:24px!important;
}
.na-initial-context-card .na-context-main-row{
  grid-template-columns:minmax(240px,1.08fr) minmax(240px,1.08fr) minmax(220px,.9fr) minmax(280px,300px)!important;
  gap:10px!important;
  align-items:center!important;
}
.na-initial-context-card .na-context-main-row > .field{
  justify-content:center!important;
}
.na-initial-context-card .na-context-main-row > .field label{
  font-size:11px!important;
  line-height:1.1!important;
  margin:0 0 5px!important;
}
.na-initial-context-card .na-context-main-row > .field select{
  min-height:36px!important;
  height:36px!important;
  padding:7px 11px!important;
  font-size:12px!important;
  border-radius:8px!important;
}
.na-initial-context-card .na-context-recipe{
  min-height:54px!important;
  padding:5px 12px!important;
  border-left:1px solid #d6e2ec!important;
}
.na-initial-context-card .na-context-recipe span{
  font-size:10.5px!important;
  line-height:1.1!important;
  margin-bottom:3px!important;
}
.na-initial-context-card .na-context-recipe strong{
  font-size:13px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.na-initial-context-card .na-context-recipe small{
  font-size:9.5px!important;
  line-height:1.1!important;
}
.na-initial-context-card .na-context-progress-slot{
  align-items:center!important;
}
.na-initial-context-card .na-context-progress-slot .na-progress-card{
  min-height:64px!important;
  height:64px!important;
  padding:9px 12px!important;
  border-radius:10px!important;
}
.na-initial-context-card .na-progress-head{
  line-height:1.05!important;
  margin-bottom:6px!important;
}
.na-initial-context-card .na-progress-head strong{
  font-size:12px!important;
}
.na-initial-context-card .na-progress-head b{
  font-size:17px!important;
}
.na-initial-context-card .na-progress-bar{
  height:6px!important;
  margin:0 0 5px!important;
}
.na-initial-context-card .na-progress-card small{
  font-size:9.5px!important;
}
@media(max-width:1050px){
  .na-initial-context-card .na-context-main-row{
    grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) minmax(220px,.9fr)!important;
  }
  .na-initial-context-card .na-context-progress-slot{grid-column:1/-1!important}
}
@media(max-width:760px){
  .na-initial-context-card .na-context-main-row{grid-template-columns:1fr 1fr!important}
  .na-initial-context-card .na-context-progress-slot{grid-column:1/-1!important}
}
@media(max-width:560px){
  .na-initial-context-card .na-context-main-row{grid-template-columns:1fr!important}
  .na-initial-context-card .na-context-progress-slot{grid-column:auto!important}
}


/* V393 — Nova Análise: unidade de medida visível + variáveis mais evidentes. */
.na-fullscreen-page .na-param-title{
  font-size:17px!important;
  font-weight:900!important;
  line-height:1.12!important;
  color:#123f70!important;
}
.na-fullscreen-page .na-param-unit{
  display:block!important;
  margin-top:3px!important;
  font-size:12px!important;
  line-height:1.1!important;
  font-weight:800!important;
  color:#58718a!important;
}
.na-fullscreen-page .na-range-inline{
  margin-top:7px!important;
  gap:7px!important;
  font-size:13px!important;
  font-weight:800!important;
}
.na-fullscreen-page .na-range-inline b{
  font-size:13px!important;
  font-weight:900!important;
  color:#234e77!important;
}
.na-fullscreen-page .na-range-inline span{
  font-size:14px!important;
  font-weight:950!important;
  color:#0f477e!important;
}
.na-fullscreen-page .na-param-cell{
  padding-left:14px!important;
  padding-right:18px!important;
}
.na-fullscreen-page .na-entry-label{
  font-weight:800!important;
  color:#244f78!important;
}
.na-fullscreen-page .na-value-input,.na-fullscreen-page .na-result-input{
  font-size:16px!important;
  font-weight:850!important;
}


/* V394 — Nova Análise: identificação visual por parâmetro + unidade junto à faixa. */
.na-fullscreen-page .na-param-cell{padding:10px 12px!important;overflow:visible!important;}
.na-fullscreen-page .na-param-visual{display:flex;align-items:center;gap:10px;width:100%;min-width:0;}
.na-fullscreen-page .na-param-photo,.na-fullscreen-page .na-param-photo-placeholder{width:58px;height:58px;min-width:58px;border-radius:9px;object-fit:cover;border:1px solid #d2dfeb;background:#eef4f9;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.na-fullscreen-page .na-param-photo{display:block;}
.na-fullscreen-page .na-param-photo-placeholder{font-size:24px;color:#6c8aa4;}
.na-fullscreen-page .na-param-info{min-width:0;display:flex;flex-direction:column;justify-content:center;}
.na-fullscreen-page .na-param-title{font-size:16px!important;font-weight:900!important;line-height:1.12!important;color:#123f70!important;margin:0!important;}
.na-fullscreen-page .na-range-inline{display:flex!important;align-items:center!important;gap:6px!important;margin-top:6px!important;white-space:nowrap!important;font-size:13px!important;line-height:1!important;}
.na-fullscreen-page .na-range-inline i{font-style:normal;color:#8aa0b4;font-weight:600;}
.na-fullscreen-page .na-range-inline b{font-size:13px!important;font-weight:900!important;color:#234e77!important;}
.na-fullscreen-page .na-range-inline .na-range-ideal{font-size:14px!important;font-weight:950!important;color:#0f477e!important;}
.na-fullscreen-page .na-range-inline .na-range-unit{font-size:11px!important;font-weight:900!important;color:#5c7891!important;background:#eef4f9;border-radius:5px;padding:3px 5px;margin-right:1px;}
.na-fullscreen-page .na-param-grid-row{min-height:108px!important;}
.na-fullscreen-page .na-value-input,.na-fullscreen-page .na-result-input{font-size:16px!important;font-weight:900!important;text-align:center!important;}
.na-fullscreen-page .na-value-input.na-value-normal,.na-fullscreen-page .na-result-input.na-value-normal{background:#e9f7ef!important;border-color:#43b67b!important;color:#126b45!important;}
.na-fullscreen-page .na-value-input.na-value-atencao,.na-fullscreen-page .na-result-input.na-value-atencao{background:#fff3cf!important;border-color:#e5b23c!important;color:#8b6500!important;}
.na-fullscreen-page .na-value-input.na-value-critico,.na-fullscreen-page .na-result-input.na-value-critico{background:#fde7e5!important;border-color:#df5148!important;color:#a92f28!important;}
.na-fullscreen-page .na-status{width:34px!important;height:34px!important;min-width:34px!important;padding:0!important;border-radius:50%!important;border:0!important;background:#edf2f6!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.na-fullscreen-page .na-status-icon{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;font-weight:900;}
.na-fullscreen-page .na-status.normal .na-status-icon{background:#20a465!important;}
.na-fullscreen-page .na-status.atencao .na-status-icon{background:#e3a51b!important;}
.na-fullscreen-page .na-status.critico .na-status-icon{background:#d93e35!important;}
@media(max-width:1050px){
 .na-fullscreen-page .na-param-photo,.na-fullscreen-page .na-param-photo-placeholder{width:50px;height:50px;min-width:50px;}
 .na-fullscreen-page .na-param-title{font-size:15px!important;}
}

/* V395 — Nova Análise: maior espaçamento horizontal entre imagem, parâmetro e demais colunas. */
.na-fullscreen-page .na-param-grid-head,
.na-fullscreen-page .na-param-grid-row{
  grid-template-columns:minmax(235px,1.42fr) minmax(220px,1.34fr) minmax(210px,1.22fr) minmax(125px,.76fr) minmax(105px,.62fr) 34px!important;
}
.na-fullscreen-page .na-param-grid-row>div{
  padding-left:16px!important;
  padding-right:16px!important;
}
.na-fullscreen-page .na-param-cell{
  padding-left:18px!important;
  padding-right:18px!important;
}
.na-fullscreen-page .na-param-visual{
  gap:15px!important;
}
.na-fullscreen-page .na-param-photo,
.na-fullscreen-page .na-param-photo-placeholder{
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
}
.na-fullscreen-page .na-param-info{
  padding-left:2px!important;
}
.na-fullscreen-page .na-method{
  padding-left:20px!important;
}
.na-fullscreen-page .na-input-cell{
  padding-left:20px!important;
}
@media(max-width:1200px){
  .na-fullscreen-page .na-param-grid-head,
  .na-fullscreen-page .na-param-grid-row{
    grid-template-columns:minmax(220px,1.35fr) minmax(205px,1.3fr) minmax(195px,1.18fr) minmax(115px,.74fr) minmax(100px,.62fr) 32px!important;
  }
}


/* V397 — Nova Análise: imagem padrão e largura mínima para títulos dos parâmetros. */
.na-fullscreen-page .na-param-grid-head,
.na-fullscreen-page .na-param-grid-row{
  grid-template-columns:minmax(280px,1.55fr) minmax(220px,1.25fr) minmax(200px,1.12fr) minmax(125px,.72fr) minmax(82px,.52fr) 34px!important;
}
.na-fullscreen-page .na-param-visual{
  align-items:center!important;
  gap:14px!important;
}
.na-fullscreen-page .na-param-info{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:100%!important;
}
.na-fullscreen-page .na-param-title{
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
  white-space:normal!important;
}
.na-fullscreen-page .na-param-photo-placeholder{
  background:#eef4f9!important;
}
@media(max-width:1200px){
 .na-fullscreen-page .na-param-grid-head,
 .na-fullscreen-page .na-param-grid-row{
   grid-template-columns:minmax(260px,1.5fr) minmax(205px,1.25fr) minmax(185px,1.1fr) minmax(115px,.7fr) minmax(78px,.5fr) 32px!important;
 }
}

/* V400 — Nova Análise: colunas de entrada, resultado e status perfeitamente alinhadas.
   Resultados numéricos usam a convenção brasileira: vírgula para decimais. */
.na-fullscreen-page .na-param-grid-row > .na-inputs-cell,
.na-fullscreen-page .na-param-grid-row > .na-result-cell,
.na-fullscreen-page .na-param-grid-row > .na-status-cell {
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
.na-fullscreen-page .na-inputs-cell .na-entry-label {
  align-items:center!important;
  width:100%!important;
  max-width:170px!important;
  text-align:center!important;
}
.na-fullscreen-page .na-value-input,
.na-fullscreen-page .na-result-input {
  text-align:center!important;
  font-variant-numeric:tabular-nums!important;
  letter-spacing:.01em!important;
}
.na-fullscreen-page .na-result-value {
  width:100%!important;
  justify-content:center!important;
  gap:7px!important;
}
.na-fullscreen-page .na-result-value .na-result-input {
  width:108px!important;
  max-width:108px!important;
}
.na-fullscreen-page .na-result-value small {
  min-width:30px!important;
  text-align:left!important;
}
.na-fullscreen-page .na-status-cell {
  padding-left:8px!important;
  padding-right:8px!important;
}

/* V401 — Nova Análise: correção definitiva do alinhamento dos campos e resultado.
   Mantém Entrada → Resultado → Status em colunas estáveis, sem compressão/overflow. */
.na-fullscreen-page .na-param-grid-head,
.na-fullscreen-page .na-param-grid-row{
  grid-template-columns:minmax(250px,1.48fr) minmax(205px,1.22fr) minmax(185px,1.08fr) minmax(150px,.92fr) minmax(70px,.48fr) 30px!important;
}
.na-fullscreen-page .na-inputs-cell,
.na-fullscreen-page .na-result-cell,
.na-fullscreen-page .na-status-cell{
  min-width:0!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
}
.na-fullscreen-page .na-inputs-cell .na-entry-label{
  width:100%!important;
  max-width:125px!important;
  margin:0 auto!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
}
.na-fullscreen-page .na-value-input{
  width:118px!important;
  max-width:118px!important;
  box-sizing:border-box!important;
  margin:0 auto!important;
}
.na-fullscreen-page .na-result-value{
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  white-space:nowrap!important;
}
.na-fullscreen-page .na-result-value .na-result-input{
  flex:0 0 105px!important;
  width:105px!important;
  max-width:105px!important;
  min-width:105px!important;
  box-sizing:border-box!important;
  margin:0!important;
  text-align:center!important;
}
.na-fullscreen-page .na-result-value small{
  flex:0 0 auto!important;
  min-width:22px!important;
  width:auto!important;
  margin:0!important;
  text-align:left!important;
  white-space:nowrap!important;
}
.na-fullscreen-page .na-status-cell{
  padding-left:4px!important;
  padding-right:4px!important;
}
.na-fullscreen-page .na-status{
  flex:0 0 34px!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  margin:0 auto!important;
}
.na-fullscreen-page .na-fullscreen-close{
  flex:0 0 38px!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid #c9d9e9!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#173f69!important;
  font-size:25px!important;
  line-height:1!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
}
.na-fullscreen-page .na-fullscreen-close:hover{
  background:#f2f7fc!important;
  border-color:#9fb9d2!important;
}
@media(max-width:1200px){
 .na-fullscreen-page .na-param-grid-head,
 .na-fullscreen-page .na-param-grid-row{
   grid-template-columns:minmax(225px,1.35fr) minmax(190px,1.18fr) minmax(175px,1.05fr) minmax(145px,.9fr) minmax(66px,.45fr) 30px!important;
 }
}


/* V404 — Nova Análise: diagnóstico pós-salvar, cards estáveis e cache alinhado */
.na-diagnostico-area {
  width:100%;
  margin-top:16px;
  box-sizing:border-box;
}
.na-diagnostico-area > .card {
  display:block;
  width:100%;
  box-sizing:border-box;
  background:#fff;
  border:1px solid #d6e2ec;
  border-radius:12px;
  box-shadow:0 3px 12px rgba(17,51,85,.06);
  overflow:hidden;
}
.na-diagnostico-area .metric-success {
  margin:12px 14px 14px !important;
  background:#edf9f3 !important;
  border-left:4px solid #20a568 !important;
  border-radius:10px !important;
  color:#164b35 !important;
}
.na-diagnostico-header {
  display:flex;
  align-items:center;
  min-height:38px;
  padding:8px 14px;
  box-sizing:border-box;
  background:#e7f0f8;
  border-top:1px solid #d7e3ed;
  border-bottom:1px solid #d2e0eb;
  color:#16466e;
  font-size:13px;
  font-weight:800;
  letter-spacing:.02em;
}
.na-diagnostico-content {
  padding:12px 14px 14px;
  box-sizing:border-box;
}
.na-diagnostico-content > p { margin:0 0 12px !important; }
.na-cards-linha {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:12px !important;
  width:100% !important;
  margin:0 !important;
  box-sizing:border-box;
}
.na-diagnostico-card {
  min-width:0;
  min-height:96px;
  padding:12px 14px;
  box-sizing:border-box;
  background:#f7fafc;
  border:1px solid #d5e2ec;
  border-left:4px solid #7d93a8;
  border-radius:10px;
  box-shadow:0 1px 4px rgba(24,61,91,.04);
}
.na-diagnostico-card .label {
  color:#244c6e;
  font-size:12px;
  font-weight:800;
  line-height:1.25;
  margin-bottom:5px;
}
.na-diagnostico-card .value {
  color:#123f69;
  font-size:20px;
  font-weight:800;
  line-height:1.1;
}
.na-diagnostico-card .value span {
  color:#6c8398 !important;
  font-size:11px !important;
  font-weight:600;
}
.na-diagnostico-card .diag-label {
  margin-top:5px;
  font-size:11.5px;
  font-weight:800;
}
.na-diagnostico-card.normal { border-left-color:#20a568; background:#f4fbf7; }
.na-diagnostico-card.atencao { border-left-color:#e7a315; background:#fffaf0; }
.na-diagnostico-card.critico { border-left-color:#df3b35; background:#fff7f6; }
.na-diagnostico-card.normal .diag-label { color:#198653; }
.na-diagnostico-card.atencao .diag-label { color:#a06b00; }
.na-diagnostico-card.critico .diag-label { color:#cf342f; }
.na-diagnostico-card .correcao {
  margin-top:5px;
  color:#607990;
  font-size:11px;
  line-height:1.3;
}
.na-resultado-sem-itens {
  padding:12px 14px;
  margin-bottom:12px;
  border:1px dashed #c7d7e4;
  border-radius:8px;
  background:#f7fafc;
  color:#607990;
  font-size:12px;
}
@media (max-width:900px){
  .na-cards-linha { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width:620px){
  .na-cards-linha { grid-template-columns:1fr !important; }
}

/* V408 — Agenda de Análises: padrão visual aprovado */
.agenda-v408 .agenda-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.agenda-v408 .agenda-title{display:flex;gap:12px;align-items:flex-start}
.agenda-v408 .agenda-title-mark{width:4px;height:48px;border-radius:4px;background:var(--primary);display:block;margin-top:2px}
.agenda-v408 .agenda-title-icon{width:42px;height:42px;border:1px solid #bcd5f4;border-radius:10px;display:grid;place-items:center;font-size:24px;background:#f5f9ff}
.agenda-v408 .agenda-title h1{margin:0 0 3px;font-size:23px}
.agenda-v408 .agenda-title p{margin:0;color:var(--text-muted);font-size:12px}
.agenda-v408 .agenda-help{white-space:nowrap}
.agenda-v408 .agenda-date-card{display:flex;align-items:center;justify-content:center;gap:18px;padding:16px;margin-top:14px}
.agenda-v408 .agenda-date-main{min-width:310px;height:44px;border:1px solid #c9d8ec;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;gap:10px;font-weight:700;color:#17385f}
.agenda-v408 .agenda-date-main button{border:0;background:transparent;font-size:18px;cursor:pointer;color:#17385f}
.agenda-v408 .agenda-date-card > button{min-width:134px;height:44px}
.agenda-v408 .agenda-filters{display:grid;grid-template-columns:1.15fr 1.05fr .8fr 1.7fr auto;gap:16px;align-items:end;margin-top:14px;padding:16px}
.agenda-v408 .agenda-filter-field{margin:0}
.agenda-v408 .agenda-filter-field label{display:block;margin-bottom:6px;font-weight:700;color:#17385f;font-size:12px}
.agenda-v408 .agenda-filter-field select,.agenda-v408 .agenda-filter-field input{height:40px;width:100%;box-sizing:border-box}
.agenda-v408 .agenda-filter-action{height:40px;white-space:nowrap}
.agenda-v408 .agenda-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:14px}
.agenda-v408 .agenda-kpi{min-height:82px;border:1px solid #d5e3f4;border-radius:10px;padding:14px 18px;display:flex;align-items:center;gap:13px;background:#fff}
.agenda-v408 .agenda-kpi-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;font-size:24px;background:#eef6ff}
.agenda-v408 .agenda-kpi strong{display:block;font-size:25px;line-height:1;color:#0d2748}
.agenda-v408 .agenda-kpi span{display:block;margin-top:5px;font-size:12px;color:#17385f}
.agenda-v408 .agenda-kpi small{display:block;margin-top:2px;color:var(--text-muted);font-size:11px}
.agenda-v408 .agenda-kpi.pending{background:#fff8f8;border-color:#f1cfd2}.agenda-v408 .agenda-kpi.pending .agenda-kpi-icon{background:#ffe7e9}.agenda-v408 .agenda-kpi.pending strong{color:#c8242b}
.agenda-v408 .agenda-kpi.done{background:#f5fff8;border-color:#cfead9}.agenda-v408 .agenda-kpi.done .agenda-kpi-icon{background:#ddf7e5}.agenda-v408 .agenda-kpi.done strong{color:#138a46}
.agenda-v408 .agenda-kpi.late{background:#fffdf3;border-color:#f1df9e}.agenda-v408 .agenda-kpi.late .agenda-kpi-icon{background:#fff2c8}.agenda-v408 .agenda-kpi.late strong{color:#d98400}
.agenda-v408 .agenda-table-card{margin-top:14px;padding:12px}
.agenda-v408 .agenda-table-wrap{overflow:auto;border:1px solid #d7e3f1;border-radius:8px}
.agenda-v408 table.agenda-table{width:100%;border-collapse:collapse;min-width:980px}
.agenda-v408 .agenda-table th{background:#edf6ff;color:#164b82;font-size:11px;text-align:left;padding:10px 12px;border-bottom:1px solid #bfd5ec;white-space:nowrap}
.agenda-v408 .agenda-table td{padding:9px 12px;border-bottom:1px solid #e1e9f2;font-size:12px;color:#17385f;vertical-align:middle}
.agenda-v408 .agenda-table tbody tr:hover{background:#f8fbff}
.agenda-v408 .agenda-param{display:flex;align-items:center;gap:8px;font-weight:600;color:#183b64}
.agenda-v408 .agenda-param-icon{width:25px;text-align:center;font-size:17px}
.agenda-v408 .agenda-status{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:8px;font-size:11px;font-weight:600;background:#fff5df;color:#c87900}
.agenda-v408 .agenda-status.done{background:#e8f8ee;color:#138a46}.agenda-v408 .agenda-status.late{background:#ffe9e9;color:#c8242b}
.agenda-v408 .agenda-analyze{min-width:76px}
.agenda-v408 .agenda-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 2px 2px;color:#31547a;font-size:12px}
.agenda-v408 .agenda-today{margin-left:auto}
@media (max-width:1000px){.agenda-v408 .agenda-filters{grid-template-columns:1fr 1fr}.agenda-v408 .agenda-kpis{grid-template-columns:1fr 1fr}.agenda-v408 .agenda-hero{flex-direction:column}.agenda-v408 .agenda-help{align-self:flex-end}}
@media (max-width:620px){.agenda-v408 .agenda-filters,.agenda-v408 .agenda-kpis{grid-template-columns:1fr}.agenda-v408 .agenda-date-card{flex-wrap:wrap}.agenda-v408 .agenda-date-main{min-width:220px}.agenda-v408 .agenda-footer{flex-direction:column;align-items:flex-start;gap:8px}}

/* V422 — Confirmações padronizadas em todo o sistema */
.mp-confirm-overlay{position:fixed;inset:0;z-index:20000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.48);backdrop-filter:blur(2px);opacity:0;transition:opacity .12s ease}
.mp-confirm-overlay.open{opacity:1}
.mp-confirm-overlay.closing{opacity:0}
.mp-confirm-dialog{width:min(500px,calc(100vw - 32px));background:#fff;border:1px solid #d8e2ee;border-radius:14px;box-shadow:0 24px 70px rgba(15,23,42,.22);overflow:hidden;transform:translateY(8px) scale(.985);transition:transform .12s ease;font-family:inherit}
.mp-confirm-overlay.open .mp-confirm-dialog{transform:translateY(0) scale(1)}
.mp-confirm-header{display:flex;align-items:center;gap:12px;padding:18px 20px 14px;border-bottom:1px solid #e6edf5;background:#f8fbff}
.mp-confirm-icon{width:38px;height:38px;flex:0 0 38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;background:#eaf3ff;color:#1769aa;border:1px solid #cfe2f7}
.mp-confirm-type-danger .mp-confirm-icon{background:#fff2f2;color:#c62828;border-color:#f2c7c7}
.mp-confirm-heading{min-width:0;flex:1}.mp-confirm-heading h3{margin:0;color:#173f70;font-size:16px;line-height:1.25;font-weight:700}.mp-confirm-heading span{display:block;margin-top:3px;color:#74869a;font-size:11px}
.mp-confirm-close{border:0;background:transparent;color:#708399;font-size:25px;line-height:1;padding:2px 4px;cursor:pointer;border-radius:7px}.mp-confirm-close:hover{background:#eaf1f8;color:#173f70}
.mp-confirm-body{padding:18px 20px 16px}.mp-confirm-body p{margin:0;color:#43566b;font-size:13px;line-height:1.6;white-space:normal}
.mp-confirm-footer{display:flex;justify-content:flex-end;gap:9px;padding:13px 20px;background:#f8fafc;border-top:1px solid #e6edf5}
.mp-confirm-btn{min-width:92px;height:36px;padding:0 15px;border-radius:8px;border:1px solid #c8d6e5;font:600 12px inherit;cursor:pointer;transition:.15s ease}.mp-confirm-btn:focus-visible{outline:3px solid rgba(25,111,190,.2);outline-offset:1px}.mp-confirm-secondary{background:#fff;color:#4d637a}.mp-confirm-secondary:hover{background:#f2f6fa}.mp-confirm-primary{background:#176fb7;color:#fff;border-color:#176fb7}.mp-confirm-primary:hover{background:#125d99}.mp-confirm-danger{background:#d63b3b;color:#fff;border-color:#d63b3b}.mp-confirm-danger:hover{background:#b92d2d}
@media(max-width:560px){.mp-confirm-overlay{padding:12px}.mp-confirm-dialog{width:100%}.mp-confirm-header{padding:15px 16px 12px}.mp-confirm-body{padding:15px 16px}.mp-confirm-footer{padding:11px 16px}.mp-confirm-btn{flex:1}}


/* V433 — Ações das receitas: padrão visual efetivamente carregado pela tela. */
.receita-acoes-uniforme{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  min-height:32px!important;
  white-space:normal!important;
}
.receita-acoes-uniforme button{
  flex:0 0 104px!important;
  width:104px!important;
  min-width:104px!important;
  max-width:104px!important;
  height:32px!important;
  min-height:32px!important;
  max-height:32px!important;
  box-sizing:border-box!important;
  padding:2px 7px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:normal!important;
  overflow:hidden!important;
  line-height:1.05!important;
  font-size:10px!important;
  font-weight:500!important;
  border-radius:6px!important;
  margin:0!important;
  box-shadow:none!important;
}
.receita-acoes-uniforme button.edit-ghost,
.receita-acoes-uniforme button.info-ghost,
.receita-acoes-uniforme button:not(.success-ghost):not(.danger-ghost){
  background:#fff!important;
  border:1px solid #9bb8d8!important;
  color:#1766b3!important;
}
.receita-acoes-uniforme button.success-ghost{
  background:#fff!important;
  border:1px solid #9bcdbb!important;
  color:#2b8a62!important;
}
.receita-acoes-uniforme button.danger-ghost{
  background:#fff!important;
  border:1px solid #e4aaa7!important;
  color:#d33a34!important;
}
.receita-acoes-uniforme button.edit-ghost:hover,
.receita-acoes-uniforme button.info-ghost:hover,
.receita-acoes-uniforme button:not(.success-ghost):not(.danger-ghost):hover{
  background:#eef5fc!important;
  border-color:#1766b3!important;
  color:#1766b3!important;
}
.receita-acoes-uniforme button.success-ghost:hover{
  background:#eef8f3!important;
  border-color:#2b8a62!important;
  color:#2b8a62!important;
}
.receita-acoes-uniforme button.danger-ghost:hover{
  background:#fff3f2!important;
  border-color:#d33a34!important;
  color:#d33a34!important;
}
@media(max-width:900px){
  .receita-acoes-uniforme{flex-wrap:wrap!important;}
  .receita-acoes-uniforme button{flex-basis:100px!important;width:100px!important;min-width:100px!important;max-width:100px!important;}
}


/* V434 — Nova Análise: entrada e resultado com o mesmo eixo vertical.
   O resultado calculado não possui rótulo acima do campo, então reserva a mesma
   altura do rótulo da entrada para manter os dois campos perfeitamente alinhados. */
.na-fullscreen-page .na-inputs-cell,
.na-fullscreen-page .na-result-cell{
  align-items:center!important;
  justify-content:flex-start!important;
  box-sizing:border-box!important;
}
.na-fullscreen-page .na-inputs-cell .na-entry-label{
  height:59px!important;
  justify-content:flex-start!important;
  box-sizing:border-box!important;
}
.na-fullscreen-page .na-result-cell{
  padding-top:27px!important;
}
.na-fullscreen-page .na-result-value{
  height:38px!important;
  min-height:38px!important;
  align-items:center!important;
}
.na-fullscreen-page .na-value-input,
.na-fullscreen-page .na-result-value .na-result-input{
  height:38px!important;
  min-height:38px!important;
}

/* V436 — seletor de acabamento e carregamento sob demanda */
.mp-tratamento-seletor-card { margin-bottom: 14px; }
.mp-tratamento-seletor-card .field-help { display:block; margin-top:6px; color:var(--text-muted); font-size:11.5px; }
.mp-loading-context { min-height:56px; display:flex; align-items:center; justify-content:center; color:var(--text-muted); font-size:12px; }

/* V488 — Menu lateral no padrão visual aprovado: lista única, módulo ativo laranja,
   submenu selecionado azul, com opção de recolher para modo somente ícones. */
#sidebar {
  width: 208px;
  min-width: 208px;
  padding: 12px 10px;
  gap: 3px;
  transition: width .18s ease, min-width .18s ease, padding .18s ease;
}
#sidebar .sidebar-logo-wrap {
  padding: 12px 10px 10px;
  margin-bottom: 2px;
  background: transparent;
}
#sidebar .nav-item {
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 10px;
  gap: 10px;
}
#sidebar .submenu-item {
  padding: 7px 10px 7px 22px;
  border-radius: 7px;
}
#sidebar .sidebar-nav-scroll {
  scrollbar-width: thin;
}
#sidebar .sidebar-collapse-wrap {
  padding: 8px 2px 2px;
  margin-top: auto;
}
#sidebar .sidebar-collapse-btn {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #eef5ff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 11px;
}
#sidebar .sidebar-collapse-btn:hover { background: rgba(255,255,255,.11); }
#sidebar .sidebar-collapse-btn span:first-child { display:flex; }
#sidebar.sidebar-recolhida {
  width: 68px;
  min-width: 68px;
  padding: 12px 8px;
}
#sidebar.sidebar-recolhida .sidebar-logo-wrap {
  padding: 10px 4px;
  display: flex;
  justify-content: center;
}
#sidebar.sidebar-recolhida .sidebar-logo-wrap img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}
#sidebar.sidebar-recolhida .sidebar-nav-label,
#sidebar.sidebar-recolhida .sidebar-group-title,
#sidebar.sidebar-recolhida .sidebar-collapse-label,
#sidebar.sidebar-recolhida .financeiro-tree-icon,
#sidebar.sidebar-recolhida .sidebar-powered-by,
#sidebar.sidebar-recolhida .sidebar-masterplating-brand img { display:none !important; }
#sidebar.sidebar-recolhida .nav-item {
  justify-content: center;
  padding: 8px 6px;
  gap: 0;
}
#sidebar.sidebar-recolhida .submenu-item { padding-left: 6px; }
#sidebar.sidebar-recolhida .nav-item > span:first-child { flex: 0 0 auto !important; }
#sidebar.sidebar-recolhida .financeiro-sidebar-tree { padding: 2px 0 6px; }
#sidebar.sidebar-recolhida .sidebar-collapse-btn { width: 38px; margin: 0 auto; }
#sidebar .sidebar-masterplating-brand { margin: 6px 0 0; }

@media (max-width: 900px) {
  #sidebar.sidebar-recolhida { width: 68px; min-width: 68px; }
}

/* V489 — Menu lateral: controle no topo, somente seta; ícones no padrão aprovado;
   módulo ativo laranja, submenu ativo azul; título do menu via tooltip nativo
   quando recolhido (atributo title/aria-label nos itens). */
#sidebar {
  position: relative;
}
#sidebar .sidebar-top-controls {
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2px;
  flex: 0 0 28px;
}
#sidebar .sidebar-collapse-btn {
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #dce7f5;
  border-radius: 6px;
  font-size: 17px;
  line-height: 26px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 700;
}
#sidebar .sidebar-collapse-btn:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
#sidebar .sidebar-nav-scroll {
  min-height: 0;
}
#sidebar .nav-icon-wrap {
  color: #dbe6f4;
  display: flex;
  align-items: center;
  justify-content: center;
}
#sidebar .nav-icon-wrap svg { display:block; }
#sidebar .nav-item:hover .nav-icon-wrap { color:#fff; }
#sidebar .nav-item.modulo-item.active {
  background: #f57c00 !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 #ff9a3d;
}
#sidebar .nav-item.modulo-item.active .nav-icon-wrap,
#sidebar .nav-item.modulo-item.active .sidebar-nav-label {
  color:#fff !important;
}
#sidebar .nav-item.submenu-item.active {
  background: #176dcc !important;
  color:#fff !important;
  box-shadow: inset 2px 0 0 #58a7ff;
}
#sidebar .nav-item.submenu-item.active .nav-icon-wrap,
#sidebar .nav-item.submenu-item.active .sidebar-nav-label {
  color:#fff !important;
}
#sidebar .sidebar-nav-chevron {
  flex: 0 0 auto;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}
#sidebar.sidebar-recolhida .sidebar-top-controls {
  justify-content: center;
}
#sidebar.sidebar-recolhida .sidebar-collapse-btn {
  width: 28px;
  height: 26px;
  font-size: 17px;
}
#sidebar.sidebar-recolhida .nav-item {
  position: relative;
  justify-content: center;
}
#sidebar.sidebar-recolhida .nav-item .nav-icon-wrap {
  width: 22px;
  height: 22px;
}
#sidebar.sidebar-recolhida .nav-item.modulo-item.active,
#sidebar.sidebar-recolhida .nav-item.submenu-item.active {
  border-radius: 8px;
}
#sidebar.sidebar-recolhida .sidebar-nav-scroll .nav-item {
  cursor: pointer;
}

/* V490 — Identidade da sidebar recolhida: somente o símbolo fornecido.
   Em modo aberto permanece o logo completo. */
#sidebar .sidebar-logo-expanded { display:block; }
#sidebar .sidebar-logo-collapsed { display:none; }
#sidebar.sidebar-recolhida .sidebar-logo-expanded { display:none !important; }
#sidebar.sidebar-recolhida .sidebar-logo-collapsed {
  display:block !important;
  width:42px;
  height:52px;
  object-fit:contain;
  object-position:center;
  margin:0 auto;
}

/* V491 — Estado do logotipo da sidebar:
   aberta = logotipo completo; recolhida = somente símbolo do Pingo. */
#sidebar .sidebar-logo-marca {
  min-height: 80px !important;
  max-height: 108px !important;
  padding: 8px 6px 10px !important;
}
#sidebar .sidebar-logo-expanded {
  display: block !important;
  width: 176px !important;
  max-width: 100% !important;
  max-height: 78px !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}
#sidebar .sidebar-logo-collapsed {
  display: none !important;
}
#sidebar.sidebar-recolhida .sidebar-logo-marca {
  min-height: 56px !important;
  max-height: 64px !important;
  padding: 4px 0 6px !important;
}
#sidebar.sidebar-recolhida .sidebar-logo-expanded {
  display: none !important;
}
#sidebar.sidebar-recolhida .sidebar-logo-collapsed {
  display: block !important;
  width: 40px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 54px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto !important;
}

/* V518 — Nova Análise: melhoria visual SOMENTE no bloco Contexto da análise. */
.na-fullscreen-page .na-context-enhanced{
  padding:14px 16px 16px!important;
  background:linear-gradient(180deg,#f8fbff 0%,#f1f7fc 100%)!important;
}
.na-context-enhanced .na-enhanced-section-title{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  min-height:30px!important;
  margin-bottom:12px!important;
  color:#173f70!important;
}
.na-context-enhanced .na-step-badge{
  width:24px!important;
  height:24px!important;
  border-radius:50%!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#2d8be8!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:800!important;
  flex:none!important;
}
.na-context-enhanced .na-enhanced-section-title strong{font-size:15px!important;font-weight:800!important;}
.na-context-enhanced .na-section-hint{font-size:10.5px!important;color:#71869b!important;font-weight:500!important;margin-left:3px!important;}
.na-context-enhanced .na-enhanced-top-grid{
  display:grid!important;
  grid-template-columns:minmax(220px,1.05fr) minmax(240px,1.15fr) minmax(230px,1fr) minmax(260px,1.05fr)!important;
  gap:12px!important;
  align-items:stretch!important;
}
.na-context-enhanced .na-enhanced-top-grid-service{
  grid-template-columns:minmax(200px,.9fr) minmax(210px,1fr) minmax(230px,1.05fr) minmax(230px,1fr) minmax(260px,1.05fr)!important;
}
.na-context-enhanced .na-enhanced-field{margin:0!important;min-width:0!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;}
.na-context-enhanced .na-enhanced-field label{font-size:11px!important;font-weight:700!important;color:#355a78!important;margin:0 0 5px!important;}
.na-context-enhanced .na-enhanced-field label em{font-style:normal;color:#d94b45!important;}
.na-context-enhanced .na-enhanced-field label small{font-weight:500;color:#74889c;font-size:9.5px;}
.na-context-enhanced .na-enhanced-field select{min-height:38px!important;height:38px!important;padding:8px 11px!important;font-size:12px!important;border-radius:8px!important;}
.na-context-enhanced .na-context-automatic-box{
  min-width:0!important;
  min-height:64px!important;
  box-sizing:border-box!important;
  padding:9px 12px!important;
  border:1px solid #d8e5ef!important;
  border-radius:9px!important;
  background:#f4f8fb!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}
.na-context-enhanced .na-context-automatic-box span{font-size:10px!important;color:#6c8398!important;line-height:1.15!important;margin-bottom:4px!important;}
.na-context-enhanced .na-context-automatic-box strong{font-size:13px!important;color:#173f70!important;line-height:1.18!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.na-context-enhanced .na-context-automatic-box small{font-size:9.5px!important;color:#7b8fa3!important;line-height:1.15!important;margin-top:3px!important;}
.na-context-enhanced .na-enhanced-bottom-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important;margin-top:12px!important;}
.na-context-enhanced .na-context-params-box{background:#eef6fd!important;border-color:#cfe2f4!important;}
.na-context-enhanced .na-context-progress-slot{display:flex!important;align-items:stretch!important;min-width:0!important;}
.na-context-enhanced .na-context-progress-slot .na-progress-card{width:100%!important;min-height:64px!important;height:auto!important;margin:0!important;box-sizing:border-box!important;padding:9px 12px!important;border-radius:10px!important;}
.na-context-enhanced .na-progress-head strong{font-size:12px!important;}
.na-context-enhanced .na-progress-head b{font-size:17px!important;}
.na-context-enhanced .na-progress-bar{height:6px!important;margin:6px 0 5px!important;}
.na-context-enhanced .na-progress-card small{font-size:9.5px!important;}
@media(max-width:1100px){
  .na-context-enhanced .na-enhanced-top-grid,.na-context-enhanced .na-enhanced-top-grid-service{grid-template-columns:1fr 1fr!important;}
  .na-context-enhanced .na-context-progress-slot{grid-column:1/-1!important;}
}
@media(max-width:760px){
  .na-context-enhanced .na-enhanced-top-grid,.na-context-enhanced .na-enhanced-top-grid-service,.na-context-enhanced .na-enhanced-bottom-grid{grid-template-columns:1fr!important;}
  .na-context-enhanced .na-context-progress-slot{grid-column:auto!important;}
  .na-context-enhanced .na-section-hint{display:none!important;}
}

/* V559 — Cabeçalho Gestão Preventiva também nas abas internas */
.gp-shared-head{margin-bottom:14px;}
.gp-shared-head .fp-head-photo img{object-fit:cover;}

/* V570 — Convite de Empresa Âncora/Auditor: mesmo fundo visual da tela de Login */
.mp-login-invite-page{background:linear-gradient(135deg,#eef6ff 0%,#f7fbff 48%,#eaf3fb 100%)}
.mp-login-invite-page:before{background:linear-gradient(115deg,rgba(255,255,255,.42),transparent 42%,rgba(20,111,204,.05))}
.mp-login-invite-page .mp-login-invite-spacer{position:relative;z-index:1;min-width:0}
@media(max-width:820px){.mp-login-invite-page .mp-login-invite-spacer{display:none}.mp-login-invite-page .mp-login-visual{display:none}.mp-login-invite-page .mp-login-panel{width:100%}}

/* ---------------------------------------------------------------- V583: barra superior por papel da empresa */
#page-header.topo-v583 { gap: 16px; padding: 10px 20px 10px 24px; min-height: 64px; box-sizing: border-box; }
#page-header.topo-v583 h1.topo-trilha { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 16px; color: #fff; padding-left: 14px; }
#page-header.topo-v583 h1.topo-trilha::before { background: var(--accent); }
.topo-trilha-pai { color: #9fb0c8; font-weight: 500; font-size: 14px; white-space: nowrap; }
.topo-trilha-sep { color: #6e7f99; font-weight: 400; }
.topo-trilha-atual { color: #fff; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topo-direita { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.topo-empresa { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid #34425e; border-radius: 10px; background: rgba(255,255,255,0.04); color: #fff; font-size: 14px; font-weight: 600; max-width: 260px; }
.topo-empresa svg { color: #9fb0c8; flex-shrink: 0; }
.topo-empresa span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topo-selos { display: inline-flex; align-items: center; gap: 8px; }
.topo-selos:empty { display: none; }
.topo-selo { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid; font-family: inherit; cursor: pointer; }
span.topo-selo { cursor: default; }
.topo-selo.ancora { background: #1e3f73; border-color: #4c80d6; color: #d6e6ff; }
.topo-selo.fornecedor { background: #15432e; border-color: #2e8b57; color: #c4f0d6; }
.topo-selo.auditor { background: #3b2f63; border-color: #7a64c9; color: #e2dbff; }
.topo-selo.leitura { background: #39445a; border-color: #5b6781; color: #e3e8f1; }
button.topo-selo:hover { filter: brightness(1.15); }
button.topo-selo:focus-visible, .topo-sino:focus-visible { outline: 3px solid #0191eb; outline-offset: 2px; }
.topo-selo-ponto { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 5px; background: #f2555a; border: 2px solid var(--sidebar-bg); }
.topo-sep { width: 1px; height: 28px; background: #34425e; }
.topo-notif-wrap { position: relative; }
.topo-sino { position: relative; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #d5dce8; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.topo-sino:hover, .topo-sino.aberto { background: rgba(255,255,255,0.08); }
.topo-sino-contador { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #f28c28; color: #1a1206; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.topo-sino-contador[hidden] { display: none; }
.topo-notif-painel { position: absolute; right: 0; top: calc(100% + 8px); width: 400px; max-width: calc(100vw - 24px); max-height: 70vh; overflow: auto; background: #fff; border: 1px solid #dce3ec; border-radius: 14px; box-shadow: 0 18px 44px rgba(18,33,68,0.22); z-index: 70; color: #1b2433; }
.topo-notif-painel[hidden] { display: none; }
.topo-notif-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; position: sticky; top: 0; background: #fff; }
.topo-notif-cab strong { font-size: 15px; color: #12315e; }
.topo-link { border: 0; background: none; padding: 0; min-height: 0; color: #1f6fb2; font-size: 12.5px; font-weight: 600; text-decoration: underline; cursor: pointer; font-family: inherit; }
.topo-link:hover { color: #e8741c; }
.topo-notif-lista { list-style: none; margin: 0; padding: 0; }
.topo-notif-lista li { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid #edf1f5; }
.topo-notif-lista li.nova { background: #f5f9ff; }
.topo-notif-ponto { width: 8px; height: 8px; margin-top: 6px; border-radius: 4px; flex-shrink: 0; background: #1f6fb2; }
.topo-notif-ponto.green { background: #2e8b57; } .topo-notif-ponto.amber { background: #d99a16; } .topo-notif-ponto.red { background: #c8372d; }
.topo-notif-txt { flex-grow: 1; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-width: 0; }
.topo-notif-txt strong { font-size: 13.5px; color: #1b2433; }
.topo-notif-txt span { font-size: 12px; color: #4f5b6d; }
.topo-notif-quando { font-size: 11.5px; color: #6b7c8f; white-space: nowrap; }
.topo-notif-vazio { padding: 16px; margin: 0; font-size: 13px; color: #4f5b6d; border-top: 1px solid #edf1f5; }
.topo-v583 .page-header-profile-info { text-align: left; }
@media (max-width: 1280px) {
  .topo-selo { width: 34px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .topo-selo svg { width: 16px; height: 16px; }
  .topo-empresa { max-width: 180px; }
}
@media (max-width: 860px) {
  #page-header.topo-v583 { padding: 8px 12px; }
  .topo-empresa, .topo-sep, .topo-trilha-pai, .topo-trilha-sep { display: none; }
  .topo-v583 .page-header-profile-info { display: none; }
}

/* ---------------------------------------------------------------- V584: seletor de empresa e faixa do administrador */
.topo-faixa-admin { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 20px; box-sizing: border-box; background: #ffe3a3; color: #4a3200; font-size: 13.5px; flex-shrink: 0; }
.topo-faixa-admin svg { color: #7a5200; flex-shrink: 0; }
.topo-faixa-admin span { flex-grow: 1; }
.topo-faixa-admin button { height: 30px; min-height: 30px; padding: 0 14px; border: 1px solid #7a5200; border-radius: 8px; background: transparent; color: #4a3200; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.topo-faixa-admin button:hover { background: rgba(122,82,0,0.1); }
.topo-empresa-wrap { position: relative; }
button.topo-empresa { font-family: inherit; cursor: pointer; }
button.topo-empresa:hover, button.topo-empresa[aria-expanded="true"] { border-color: #4c80d6; background: rgba(76,128,214,0.14); }
button.topo-empresa:focus-visible { outline: 3px solid #0191eb; outline-offset: 2px; }
.topo-empresa.externa { border-color: #7a64c9; }
.topo-empresa-painel { position: absolute; left: 0; top: calc(100% + 8px); width: 350px; max-width: min(350px, calc(100vw - 24px)); max-height: 56vh; overflow: auto; background: #fff; border: 1px solid #dce3ec; border-radius: 14px; box-shadow: 0 18px 44px rgba(18,33,68,0.22); z-index: 70; color: #1b2433; }
.topo-empresa-painel[hidden] { display: none; }
.topo-emp-busca { padding: 10px 14px; position: sticky; top: 0; background: #fff; }
.topo-emp-busca label { display: block; font-size: 11.5px; font-weight: 700; color: #4f5b6d; margin-bottom: 6px; }
.topo-emp-busca div { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 9px; border: 1px solid #c5cfdc; border-radius: 8px; color: #6b7c8f; }
.topo-emp-busca input { border: 0; outline: none; font-family: inherit; font-size: 13px; width: 100%; height: 34px; padding: 0; box-shadow: none; }
.topo-emp-lista { list-style: none; margin: 0; padding: 0; }
.topo-emp-lista li[hidden] { display: none; }
.topo-emp-item { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 7px 14px; border: 0; border-top: 1px solid #edf1f5; background: #fff; font-family: inherit; text-align: left; cursor: pointer; color: #4f5b6d; border-radius: 0; }
.topo-emp-item:hover { background: #f5f9ff; }
.topo-emp-item.atual { background: #eef4fc; color: #1f6fb2; }
.topo-emp-txt { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.topo-emp-txt strong { font-size: 13.5px; color: #1b2433; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-emp-txt small { font-size: 10.75px; color: #6b7c8f; }
.topo-emp-grupo { padding: 7px 14px; background: #f6f8fb; font-size: 11px; font-weight: 800; color: #7a5200; text-transform: uppercase; letter-spacing: .03em; border-top: 1px solid #edf1f5; }
.topo-emp-rodape { padding: 8px 14px; border-top: 1px solid #edf1f5; position: sticky; bottom: 0; background: #fff; }
.topo-sino svg { width: 20px !important; height: 20px !important; }

/* ---------------------------------------------------------------- V607: seletor de fornecedor da Empresa Âncora */
.topo-empresa-prefixo { font-size: 11px; font-weight: 700; color: #9fb0c8; text-transform: uppercase; letter-spacing: .03em; }
.topo-empresa.fornecedor-sel { border-color: #2e8b57; background: rgba(46,139,87,0.16); }
.topo-empresa.fornecedor-sel .topo-empresa-prefixo { color: #8fe0b0; }
.topo-faixa-ancora { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 20px; box-sizing: border-box; background: #dcebfb; color: #12315e; font-size: 13.5px; flex-shrink: 0; }
.topo-faixa-ancora svg { color: #1f4f8f; flex-shrink: 0; }
.topo-faixa-ancora span { flex-grow: 1; }
.topo-faixa-ancora button { height: 30px; min-height: 30px; padding: 0 14px; border: 1px solid #1f4f8f; border-radius: 8px; background: transparent; color: #12315e; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.topo-faixa-ancora button:hover { background: rgba(31,79,143,0.1); }
.topo-empresa .topo-empresa-prefixo { flex-shrink: 0; overflow: visible; }
.topo-empresa.fornecedor-sel, .topo-empresa-wrap .topo-empresa { max-width: 340px; }

/* ---------------------------------------------------------------- V608: cabeçalho em duas linhas */
#page-header.topo-v608 { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "trilha direita" "contexto contexto"; align-items: center; column-gap: 16px; row-gap: 8px; padding: 10px 24px 10px; }
.topo-v608 h1.topo-trilha { grid-area: trilha; min-width: 0; }
.topo-v608 .topo-trilha-atual { white-space: normal; overflow: visible; }
.topo-v608 .topo-direita { grid-area: direita; }
.topo-v608 .topo-contexto { grid-area: contexto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.08); }
.topo-v608 .topo-empresa { height: 34px; font-size: 13.5px; }
.topo-v608 .topo-selo { height: 28px; }
/* com a linha própria, os selos mantêm o texto até telas estreitas */
@media (max-width: 1280px) {
  .topo-v608 .topo-selo { width: auto; padding: 0 12px; font-size: 12.5px; gap: 6px; }
  .topo-v608 .topo-empresa { max-width: 340px; }
}
@media (max-width: 860px) {
  #page-header.topo-v608 { padding: 8px 12px; }
  .topo-v608 .topo-contexto .topo-empresa { display: inline-flex; }
  .topo-v608 .topo-selo { width: 34px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
}

/* ---------------------------------------------------------------- V608: acesso do Administrador do Sistema */
.acessar-empresa-btn { border: 1px solid #7a5200 !important; background: #fff5d7 !important; color: #4a3200 !important; font-weight: 700; }
.acesso-modal-fundo { position: fixed; inset: 0; background: rgba(18,33,68,0.45); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.acesso-modal { width: 460px; max-width: 100%; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(18,33,68,0.28); padding: 20px; display: flex; flex-direction: column; gap: 12px; color: #1b2433; }
.acesso-modal h2 { margin: 0; font-size: 17px; color: #12315e; display: flex; align-items: center; gap: 8px; }
.acesso-modal h2 svg { color: #7a5200; }
.acesso-modal p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #39445a; }
.acesso-modal input { height: 40px; }
.acesso-modal-acoes { display: flex; justify-content: flex-end; gap: 8px; }
.acesso-modal-acoes button { height: 40px; padding: 0 16px; }

/* V610: linha de empresa/selos alinhada à direita */
.topo-v608 .topo-contexto { justify-content: flex-end; }

/* ---------------------------------------------------------------- V611: linha 1 = caminho + empresa; linha 2 = selos, notificações e usuário */
#page-header.topo-v611 { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "trilha empresa" "linha2 linha2"; }
.topo-v611 .topo-empresa-slot { grid-area: empresa; display: flex; justify-content: flex-end; min-width: 0; }
.topo-v611 .topo-linha2 { grid-area: linha2; display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.08); }
.topo-v611 .topo-linha2 .topo-sep { width: 1px; height: 28px; background: #34425e; }
.topo-v611 .topo-selos:empty + .topo-sep { display: none; }
.topo-v611 .topo-empresa { height: 36px; }
@media (max-width: 860px) {
  .topo-v611 .topo-linha2 .topo-sep { display: none; }
}
.topo-v611 .topo-empresa-painel { left: auto; right: 0; }

/* ---------------------------------------------------------------- V626: saudação, busca rápida e recentes */
.topo-saudacao { grid-area: trilha; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.topo-saudacao h1 { margin: 0; font-size: 20px; font-weight: 700; color: #fff; padding: 0; }
.topo-saudacao h1::before { display: none; }
.topo-saudacao span { font-size: 13px; color: #9fb0c8; }
.topo-saudacao span::first-letter { text-transform: uppercase; }
.topo-inicio { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 8px; background: rgba(255,255,255,0.06); color: #9fb0c8; cursor: pointer; flex-shrink: 0; }
.topo-inicio:hover { background: rgba(255,255,255,0.12); color: #fff; }
.topo-inicio:focus-visible, .topo-busca:focus-visible { outline: 3px solid #0191eb; outline-offset: 2px; }
.topo-v611 .topo-empresa-slot { gap: 10px; align-items: center; }
.topo-busca { display: inline-flex; align-items: center; gap: 8px; height: 36px; min-height: 36px; padding: 0 12px; border: 1px solid #34425e; border-radius: 10px; background: #1b2540; color: #b6c3d8; font-family: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.topo-busca:hover { border-color: #4c80d6; color: #fff; }
.topo-busca.larga { width: 380px; max-width: 42vw; height: 38px; }
.topo-busca.larga span { flex-grow: 1; text-align: left; }
.topo-busca kbd, .busca-entrada kbd { font-family: var(--mono, ui-monospace, monospace); font-size: 11px; padding: 1px 6px; border: 1px solid #4c5b7a; border-radius: 5px; color: #9fb0c8; background: transparent; }
.busca-fundo { position: fixed; inset: 0; background: rgba(18,33,68,0.45); z-index: 300; display: flex; justify-content: center; align-items: flex-start; padding: 70px 16px 16px; }
.busca-caixa { width: 600px; max-width: 100%; max-height: calc(100vh - 100px); display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(18,33,68,0.35); overflow: hidden; color: #1b2433; }
.busca-entrada { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 54px; border-bottom: 1px solid #edf1f5; color: #4f5b6d; flex-shrink: 0; }
.busca-entrada input { border: 0; outline: none; box-shadow: none; font-family: inherit; font-size: 16px; flex-grow: 1; height: 50px; padding: 0; color: #1b2433; background: transparent; }
.busca-entrada kbd { border-color: #c5cfdc; color: #6b7c8f; }
.sr-only-topo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.busca-resultados { list-style: none; margin: 0; padding: 6px 8px 10px; overflow: auto; }
.busca-grupo { padding: 10px 12px 4px; font-size: 11px; font-weight: 800; color: #6b7c8f; text-transform: uppercase; letter-spacing: .04em; }
.busca-item { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; font-family: inherit; text-align: left; cursor: pointer; color: #1b2433; min-height: 44px; }
.busca-item:hover, .busca-item.sel { background: #eef4fc; }
.busca-item strong { font-size: 13.5px; }
.busca-item small { font-size: 12px; color: #6b7c8f; }
.busca-vazio { padding: 16px 12px; color: #6b7c8f; font-size: 13px; }
.busca-rodape { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid #edf1f5; font-size: 12px; color: #6b7c8f; flex-shrink: 0; }
.home-recentes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.home-recentes h2 { margin: 0; font-size: 15px; color: var(--text-primary, #12315e); }
.home-recentes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-recente { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--border, #dce3ec); border-radius: 12px; font-family: inherit; text-align: left; cursor: pointer; color: #1b2433; min-height: 64px; }
.home-recente:hover { border-color: #4c80d6; }
.home-recente-ico { width: 36px; height: 36px; border-radius: 10px; background: #eaf1fb; color: #12315e; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.home-recente-txt { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }
.home-recente-txt strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-recente-txt small { font-size: 12px; color: #4f5b6d; }
@media (max-width: 900px) { .home-recentes-grid { grid-template-columns: 1fr; } .topo-busca.larga { width: auto; } .topo-busca span { display: none; } }
#page-header .topo-saudacao h1 { color: #fff !important; padding-left: 0 !important; font-size: 20px !important; }

/* V627: aviso da âncora sem fornecedor escolhido */


/* ---------------------------------------------------------------- V635: cabeçalho Empresa Âncora conforme padrão visual aprovado
   Faixa azul = contexto do acesso; cabeçalho escuro = breadcrumb + ferramentas. */
#page-header.topo-v635 {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:"trilha" "linha2";
  align-items:center;
  gap:0;
  padding:8px 18px 9px 24px;
  min-height:112px;
  box-sizing:border-box;
}
#page-header.topo-v635 h1.topo-trilha { grid-area:trilha; width:100%; min-height:34px; }
#page-header.topo-v635 .topo-linha2 {
  grid-area:linha2;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:nowrap;
  padding-top:8px;
  margin-top:4px;
  border-top:1px solid rgba(255,255,255,.08);
}
.topo-toolbar-left,.topo-toolbar-right { display:flex; align-items:center; gap:10px; min-width:0; }
.topo-toolbar-left { flex:1 1 auto; }
.topo-toolbar-right { flex:0 0 auto; justify-content:flex-end; }
#page-header.topo-v635 .topo-empresa { height:36px; max-width:320px; }
#page-header.topo-v635 .topo-busca { width:258px; flex:0 0 258px; }
#page-header.topo-v635 .topo-selos { gap:8px; }
#page-header.topo-v635 .topo-selo { height:30px; }
.topo-leitura { width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center; border:1px solid #4b5d7a; border-radius:10px; background:rgba(255,255,255,.04); color:#d4deec; flex:0 0 auto; box-sizing:border-box; }
.topo-leitura svg { width:18px; height:18px; }
.topo-faixa-ancora { position:relative; }
.topo-faixa-ancora .topo-programa-ancora {
  display:grid; grid-template-columns:16px minmax(0,1fr) auto 14px; grid-template-rows:1fr 1fr;
  align-items:center; column-gap:6px; width:188px; min-width:188px; height:38px; margin-left:auto;
  padding:2px 9px; border:1px solid #7b9ac1; border-radius:9px; background:#eef5fc; color:#163f6d;
  text-align:left; box-sizing:border-box;
}
.topo-programa-ancora svg:first-child { grid-row:1 / span 2; color:#46688f; }
.topo-programa-ancora-main { grid-column:2; grid-row:1; font-size:12px; font-weight:700; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.topo-programa-ancora-sub { grid-column:3; grid-row:1 / span 2; font-size:9px; font-weight:800; text-transform:uppercase; color:#5f7c9d; white-space:nowrap; }
.topo-programa-ancora svg:last-child { grid-column:4; grid-row:1 / span 2; color:#5f7896; }
.topo-programa-ancora:hover { border-color:#4c80d6; background:#e5f0fb; }
.sidebar-com-topo-ancora .sidebar-collapse-btn {
  position:absolute; right:-10px; top:136px; z-index:120; width:26px; height:26px; min-height:26px;
  padding:0; background:transparent; color:#eef5ff; border-radius:6px;
}
.sidebar-com-topo-ancora .sidebar-collapse-btn:hover { background:rgba(255,255,255,.08); }
@media(max-width:1180px){
  #page-header.topo-v635 .topo-busca { width:220px; flex-basis:220px; }
  .topo-faixa-ancora .topo-programa-ancora { width:168px; min-width:168px; }
  .topo-programa-ancora-sub { display:none; }
}
@media(max-width:900px){
  #page-header.topo-v635 { min-height:94px; padding:8px 12px; }
  #page-header.topo-v635 .topo-linha2 { gap:8px; }
  #page-header.topo-v635 .topo-busca { width:170px; flex-basis:170px; }
  #page-header.topo-v635 .topo-empresa { max-width:230px; }
  .sidebar-com-topo-ancora .sidebar-collapse-btn { top:116px; }
}
@media(max-width:700px){
  #page-header.topo-v635 .topo-busca { width:42px; flex-basis:42px; padding:0; justify-content:center; }
  #page-header.topo-v635 .topo-busca span, #page-header.topo-v635 .topo-busca kbd { display:none; }
  .topo-toolbar-right .topo-selos { display:none; }
  .topo-leitura { width:36px; height:36px; }
  .topo-faixa-ancora { flex-wrap:wrap; }
  .topo-faixa-ancora span { min-width:140px; }
}

/* ---------------------------------------------------------------- V637: cabeçalho Empresa Âncora — referência aprovada
   1) faixa azul somente contexto + voltar
   2) linha escura: buscar | fornecedor | leitura | notificações | usuário */
#page-header.topo-v637 .topo-linha2 {
  justify-content:flex-start;
  align-items:center;
  flex-wrap:nowrap;
  gap:12px;
}
#page-header.topo-v637 .topo-toolbar-left {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:0 0 auto;
}
#page-header.topo-v637 .topo-toolbar-right {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  margin-left:auto;
  flex:0 0 auto;
}
#page-header.topo-v637 .topo-busca {
  width:320px;
  flex:0 0 320px;
}
#page-header.topo-v637 .topo-sep-ancora {
  width:1px;
  height:30px;
  flex:0 0 1px;
  background:#34425e;
}
#page-header.topo-v637 .topo-empresa {
  width:340px;
  max-width:340px;
  height:36px;
  font-size:13.5px;
}
#page-header.topo-v637 .topo-toolbar-right .topo-selos:empty {
  display:none;
}
#page-header.topo-v637 .topo-leitura {
  width:42px;
  height:42px;
}

.topo-faixa-ancora {
  min-height:57px;
  padding:8px 18px 8px 20px;
}
.topo-faixa-ancora > span {
  line-height:1.35;
  min-width:0;
}
.topo-faixa-ancora > button[data-action="sair-acesso-ancora"] {
  flex:0 0 auto;
  margin-left:auto;
}

@media(max-width:1180px){
  #page-header.topo-v637 .topo-busca { width:260px; flex-basis:260px; }
  #page-header.topo-v637 .topo-empresa { width:300px; max-width:300px; }
}
@media(max-width:920px){
  #page-header.topo-v637 .topo-busca { width:210px; flex-basis:210px; }
  #page-header.topo-v637 .topo-empresa { width:250px; max-width:250px; }
}
@media(max-width:760px){
  #page-header.topo-v637 .topo-busca { width:42px; flex-basis:42px; padding:0; justify-content:center; }
  #page-header.topo-v637 .topo-busca span,
  #page-header.topo-v637 .topo-busca kbd { display:none; }
  #page-header.topo-v637 .topo-empresa { width:auto; max-width:220px; }
  #page-header.topo-v637 .topo-sep-ancora { display:none; }
}


/* V638: ajuste do espaço entre fornecedor e ações do cabeçalho Âncora */
#page-header.topo-v637 .topo-toolbar-right {
  margin-left: 26px;
}
#page-header.topo-v637 .topo-toolbar-left {
  gap: 12px;
}
@media (max-width: 920px) {
  #page-header.topo-v637 .topo-toolbar-right { margin-left: 18px; }
}
@media (max-width: 760px) {
  #page-header.topo-v637 .topo-toolbar-right { margin-left: 10px; }
}

/* ---------------------------------------------------------------- V641: compactação da faixa Acesso Empresa Âncora
   Otimiza espaço vertical sem alterar o conteúdo ou os controles. */
.topo-faixa-ancora:not(.aviso) {
  min-height: 50px;
  padding: 6px 16px 6px 18px;
  gap: 8px;
  font-size: 12px;
}
.topo-faixa-ancora:not(.aviso) > span {
  line-height: 1.22;
}
.topo-faixa-ancora:not(.aviso) > span strong {
  font-size: 12px;
}
.topo-faixa-ancora:not(.aviso) > svg {
  width: 14px;
  height: 14px;
}
.topo-faixa-ancora:not(.aviso) > button[data-action="sair-acesso-ancora"] {
  height: 28px;
  min-height: 28px;
  padding: 0 12px;
  font-size: 11.5px;
  border-radius: 7px;
}
@media (max-width: 760px) {
  .topo-faixa-ancora:not(.aviso) {
    min-height: 46px;
    padding: 5px 10px 5px 12px;
    gap: 6px;
    font-size: 11.5px;
  }
  .topo-faixa-ancora:not(.aviso) > span,
  .topo-faixa-ancora:not(.aviso) > span strong {
    font-size: 11.5px;
  }
  .topo-faixa-ancora:not(.aviso) > button[data-action="sair-acesso-ancora"] {
    height: 26px;
    min-height: 26px;
    padding: 0 9px;
    font-size: 11px;
  }
}

/* V642: compactação adicional da faixa Acesso Empresa Âncora */
.topo-faixa-ancora:not(.aviso) {
  min-height: 42px;
  padding: 4px 12px 4px 14px;
  gap: 6px;
  font-size: 11px;
}
.topo-faixa-ancora:not(.aviso) > span {
  line-height: 1.14;
}
.topo-faixa-ancora:not(.aviso) > span strong {
  font-size: 11px;
}
.topo-faixa-ancora:not(.aviso) > svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}
.topo-faixa-ancora:not(.aviso) > button[data-action="sair-acesso-ancora"] {
  height: 24px;
  min-height: 24px;
  padding: 0 10px;
  font-size: 10.5px;
  border-radius: 6px;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .topo-faixa-ancora:not(.aviso) {
    min-height: 38px;
    padding: 3px 8px 3px 10px;
    gap: 5px;
    font-size: 10.5px;
  }
  .topo-faixa-ancora:not(.aviso) > span,
  .topo-faixa-ancora:not(.aviso) > span strong {
    font-size: 10.5px;
  }
  .topo-faixa-ancora:not(.aviso) > button[data-action="sair-acesso-ancora"] {
    height: 23px;
    min-height: 23px;
    padding: 0 8px;
    font-size: 10px;
  }
}
/* V643: faixa Âncora ultracompacta — todo o contexto em uma única linha com o botão. */
.topo-faixa-ancora:not(.aviso) {
  min-height: 34px;
  height: 34px;
  padding: 3px 12px 3px 14px;
  gap: 6px;
  flex-wrap: nowrap !important;
  overflow: hidden;
  font-size: 10.5px;
}
.topo-faixa-ancora:not(.aviso) > span {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}
.topo-faixa-ancora:not(.aviso) > span strong {
  font-size: 10.5px;
}
.topo-faixa-ancora:not(.aviso) > svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}
.topo-faixa-ancora:not(.aviso) > button[data-action="sair-acesso-ancora"] {
  flex: 0 0 auto;
  margin-left: auto;
  height: 22px;
  min-height: 22px;
  padding: 0 9px;
  font-size: 10px;
  line-height: 1;
  border-radius: 6px;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .topo-faixa-ancora:not(.aviso) {
    min-height: 32px;
    height: 32px;
    padding: 2px 8px 2px 10px;
    gap: 5px;
    font-size: 10px;
  }
  .topo-faixa-ancora:not(.aviso) > span,
  .topo-faixa-ancora:not(.aviso) > span strong {
    font-size: 10px;
  }
  .topo-faixa-ancora:not(.aviso) > svg {
    width: 11px;
    height: 11px;
    flex-basis: 11px;
  }
  .topo-faixa-ancora:not(.aviso) > button[data-action="sair-acesso-ancora"] {
    height: 21px;
    min-height: 21px;
    padding: 0 7px;
    font-size: 9.5px;
  }
}


/* V647: faixa de aviso "Nenhum fornecedor escolhido" removida da renderização. */

/* V648: mover o chip de regras para o cabeçalho do gráfico e alinhar usuário à direita */
.gpd-graph-card .gpd-graph-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin-bottom:2px}
.gpd-graph-card .gpd-graph-head h4{min-width:0;margin:0;flex:1 1 auto}
.gpd-graph-card .gpd-graph-head .gpd-chip{flex:0 0 auto;white-space:nowrap}
#page-header.topo-v637 .page-header-profile-info{text-align:right}
#page-header.topo-v637 .page-header-profile-toggle{justify-content:flex-end}
#page-header.topo-v637 .page-header-profile{margin-left:auto}
@media(max-width:760px){.gpd-graph-card .gpd-graph-head{gap:7px}.gpd-graph-card .gpd-graph-head .gpd-chip{font-size:9.5px;padding:0 7px}}

/* V649: usuário alinhado à esquerda dentro do conjunto de ações do cabeçalho.
   Remove o deslocamento automático para a extremidade direita e preserva a sequência
   visual: fornecedor → leitura → notificações → usuário. */
#page-header.topo-v637 .page-header-profile {
  margin-left: auto !important;
}
#page-header.topo-v637 .page-header-profile-toggle {
  justify-content: flex-end !important;
}
#page-header.topo-v637 .page-header-profile-info {
  text-align: left !important;
}

/* ---------------------------------------------------------------- V651: cabeçalho Âncora unificado conforme referência visual aprovada.
   A faixa de contexto passa para dentro do cabeçalho escuro e ocupa a primeira linha;
   abaixo ficam breadcrumb e ferramentas, com o usuário ancorado à direita. */
#page-header.topo-v651-ancora {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 42px 42px 58px;
  grid-template-areas: "contexto" "trilha" "linha2";
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  padding: 0 16px 0 24px;
  min-height: 142px;
  height: 142px;
  box-sizing: border-box;
  background: var(--sidebar-bg);
}
#page-header.topo-v651-ancora .topo-contexto-ancora {
  grid-area: contexto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0 -16px 0 0;
  padding: 0 10px 0 0;
  color: #c8d7eb;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
#page-header.topo-v651-ancora .topo-contexto-ancora svg {
  width: 14px; height: 14px; flex: 0 0 14px; color: #c9d8eb;
}
#page-header.topo-v651-ancora .topo-contexto-ancora > span {
  min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#page-header.topo-v651-ancora .topo-contexto-ancora strong { color: #eef5ff; }
#page-header.topo-v651-ancora .topo-contexto-programa { color: #9fb3cd; font-weight: 500; }
#page-header.topo-v651-ancora .topo-contexto-ancora > button {
  flex: 0 0 auto;
  height: 28px; min-height: 28px; padding: 0 12px;
  border: 1px solid #4f6586; border-radius: 6px;
  background: transparent; color: #dbe7f5;
  font: inherit; font-size: 11px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
#page-header.topo-v651-ancora .topo-contexto-ancora > button:hover { background: rgba(255,255,255,.06); border-color: #6d86a9; }
#page-header.topo-v651-ancora h1.topo-trilha {
  grid-area: trilha; align-self: stretch; width: 100%; min-height: 0;
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
#page-header.topo-v651-ancora h1.topo-trilha::before { left: 0; top: 12px; bottom: 12px; width: 3px; }
#page-header.topo-v651-ancora .topo-linha2 {
  grid-area: linha2; width: 100%; padding: 0; margin: 0; border-top: 0;
  display: flex; align-items: center; justify-content: flex-start;
  gap: 12px; flex-wrap: nowrap;
  min-width: 0;
}
#page-header.topo-v651-ancora .topo-toolbar-left {
  display:flex; align-items:center; gap:12px; flex:0 0 auto; min-width:0;
}
#page-header.topo-v651-ancora .topo-toolbar-right {
  display:flex; align-items:center; gap:10px; flex:1 1 auto; justify-content:flex-start; margin-left:0 !important; min-width:0;
}
#page-header.topo-v651-ancora .topo-busca { width:320px; flex:0 0 320px; }
#page-header.topo-v651-ancora .topo-empresa { width:330px; max-width:330px; height:36px; }
#page-header.topo-v651-ancora .page-header-profile { margin-left:auto !important; }
#page-header.topo-v651-ancora .page-header-profile-toggle { justify-content:flex-end !important; }
#page-header.topo-v651-ancora .page-header-profile-info { text-align:right !important; }
#page-header.topo-v651-ancora .topo-leitura { width:40px; height:40px; }
@media(max-width:1100px){
  #page-header.topo-v651-ancora { grid-template-rows: 42px 42px 58px; min-height:142px; height:142px; }
  #page-header.topo-v651-ancora .topo-busca { width:250px; flex-basis:250px; }
  #page-header.topo-v651-ancora .topo-empresa { width:280px; max-width:280px; }
}
@media(max-width:860px){
  #page-header.topo-v651-ancora { padding:0 10px 0 14px; }
  #page-header.topo-v651-ancora .topo-contexto-ancora { margin-right:-10px; padding-right:8px; font-size:11px; }
  #page-header.topo-v651-ancora .topo-busca { width:210px; flex-basis:210px; }
  #page-header.topo-v651-ancora .topo-empresa { width:240px; max-width:240px; }
}
@media(max-width:700px){
  #page-header.topo-v651-ancora { grid-template-rows: 38px 38px 52px; min-height:128px; height:128px; }
  #page-header.topo-v651-ancora .topo-contexto-ancora { font-size:10px; }
  #page-header.topo-v651-ancora .topo-contexto-ancora > button { height:24px; min-height:24px; padding:0 8px; font-size:10px; }
  #page-header.topo-v651-ancora .topo-busca { width:42px; flex-basis:42px; padding:0; justify-content:center; }
  #page-header.topo-v651-ancora .topo-busca span, #page-header.topo-v651-ancora .topo-busca kbd { display:none; }
  #page-header.topo-v651-ancora .topo-empresa { width:auto; max-width:210px; }
}

/* ---------------------------------------------------------------- V652: refinamento do cabeçalho Âncora
   Espaço entre a barra laranja e o breadcrumb, fornecedor mais equilibrado,
   sino mais próximo do usuário. */
#page-header.topo-v651-ancora h1.topo-trilha{
  padding-left:10px;
}
#page-header.topo-v651-ancora h1.topo-trilha::before{
  left:0;
}
#page-header.topo-v651-ancora .topo-toolbar-left{
  gap:8px;
}
#page-header.topo-v651-ancora .topo-empresa{
  width:310px;
  max-width:310px;
}
#page-header.topo-v651-ancora .topo-toolbar-right{
  gap:6px;
}
#page-header.topo-v651-ancora .topo-sino{
  width:38px;
  height:38px;
}
#page-header.topo-v651-ancora .page-header-profile{
  margin-left:-2px !important;
}
#page-header.topo-v651-ancora .topo-sep{
  margin-left:0;
  margin-right:0;
}
@media(max-width:1100px){
  #page-header.topo-v651-ancora .topo-empresa{width:280px;max-width:280px}
}
@media(max-width:860px){
  #page-header.topo-v651-ancora h1.topo-trilha{padding-left:8px}
  #page-header.topo-v651-ancora .topo-toolbar-left{gap:6px}
  #page-header.topo-v651-ancora .topo-empresa{width:250px;max-width:250px}
  #page-header.topo-v651-ancora .topo-toolbar-right{gap:4px}
}

/* ---------------------------------------------------------------- V653: usuário à direita e sino levemente ampliado
   Mantém o fornecedor no mesmo bloco e ancora o conjunto final no limite direito. */
#page-header.topo-v651-ancora .topo-toolbar-right{
  margin-left:auto !important;
  justify-content:flex-end !important;
  flex:1 1 auto;
  min-width:0;
}
#page-header.topo-v651-ancora .page-header-profile{
  margin-left:auto !important;
  margin-right:0 !important;
  flex:0 0 auto;
}
#page-header.topo-v651-ancora .topo-sino{
  width:42px;
  height:42px;
}
#page-header.topo-v651-ancora .topo-sino svg{
  width:22px !important;
  height:22px !important;
}
#page-header.topo-v651-ancora .topo-sino-contador{
  min-width:19px;
  height:19px;
  border-radius:10px;
  top:3px;
  right:2px;
}
@media(max-width:860px){
  #page-header.topo-v651-ancora .topo-toolbar-right{
    margin-left:auto !important;
  }
}

/* V654 — Aproxima sino do bloco do usuário no cabeçalho Âncora. */
#page-header.topo-v651-ancora .topo-notif-wrap{
  margin-right:-7px !important;
}
#page-header.topo-v651-ancora .page-header-profile{
  margin-left:0 !important;
}

/* V655 — ampliar seletor de fornecedor até próximo do controle de visualização. */
#page-header.topo-v651-ancora .topo-empresa {
  width: 420px;
  max-width: 420px;
}
#page-header.topo-v651-ancora .topo-toolbar-left {
  gap: 10px;
}
#page-header.topo-v651-ancora .topo-linha2 {
  gap: 10px;
}
@media (max-width: 1180px) {
  #page-header.topo-v651-ancora .topo-empresa {
    width: 360px;
    max-width: 360px;
  }
}
@media (max-width: 980px) {
  #page-header.topo-v651-ancora .topo-empresa {
    width: 300px;
    max-width: 300px;
  }
}
@media (max-width: 760px) {
  #page-header.topo-v651-ancora .topo-empresa {
    width: auto;
    max-width: 220px;
  }
}

/* ---------------------------------------------------------------- V656: aproximar fornecedor do controle de visualização
   Mantém o usuário no extremo direito, mas elimina o vão excessivo entre
   o seletor de fornecedor e o botão do olho. */
#page-header.topo-v651-ancora .topo-toolbar-right{
  margin-left:0 !important;
  justify-content:flex-start !important;
  flex:1 1 auto !important;
  gap:8px !important;
}
#page-header.topo-v651-ancora .page-header-profile{
  margin-left:auto !important;
  margin-right:0 !important;
}
#page-header.topo-v651-ancora .topo-sep{
  margin-left:0 !important;
  margin-right:0 !important;
}
@media(max-width:860px){
  #page-header.topo-v651-ancora .topo-toolbar-right{
    gap:6px !important;
  }
}

/* V657 — reduzir o espaço vertical entre a barra de navegação superior e o conteúdo do painel. */
#page-header.topo-v651-ancora + #top-tabs + #main {
  padding-top: 10px !important;
}
@media (max-width: 860px) {
  #page-header.topo-v651-ancora + #top-tabs + #main {
    padding-top: 8px !important;
  }
}

/* V668 — cabeçalho Empresa Âncora: conteúdo sem espaço superior e sino junto ao usuário. */
#page-header.topo-v651-ancora + #top-tabs + #main {
  padding-top: 0 !important;
}

/* V670 — tela de seleção da Empresa Âncora: quando ainda não há fornecedor
   selecionado, não reservar a linha vazia de contexto no topo.
   Mantém um pequeno respiro entre as abas e o card de fornecedores. */
#page-header.topo-v651-ancora:has(.topo-contexto-ancora) + #top-tabs + #main {}
#page-header.topo-v651-ancora:not(:has(.topo-contexto-ancora)) {
  grid-template-rows: 0 42px 58px;
  min-height: 100px;
  height: 100px;
}
@media(max-width:1100px){
  #page-header.topo-v651-ancora:not(:has(.topo-contexto-ancora)) {
    grid-template-rows: 0 42px 58px;
    min-height: 100px;
    height: 100px;
  }
}
@media(max-width:700px){
  #page-header.topo-v651-ancora:not(:has(.topo-contexto-ancora)) {
    grid-template-rows: 0 38px 52px;
    min-height: 90px;
    height: 90px;
  }
}
#main .fp-anchor-choice {
  padding-top: 8px;
}
#main .fp-anchor-choice > .card {
  margin-top: 0 !important;
}

#page-header.topo-v651-ancora .topo-toolbar-right {
  justify-content: flex-end !important;
  gap: 6px !important;
}

#page-header.topo-v651-ancora .page-header-profile {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#page-header.topo-v651-ancora .topo-notif-wrap {
  margin-right: -2px !important;
}

#page-header.topo-v651-ancora .page-header-profile-toggle {
  gap: 7px !important;
}


/* ---------------------------------------------------------------- V671: cabeçalho do tenant visualizado pela Empresa Âncora conforme referência.
   Ao entrar no tenant, a linha de contexto é retirada. O breadcrumb ocupa a primeira
   linha, o botão de retorno fica no extremo direito e as ferramentas permanecem
   concentradas na segunda linha. */
#page-header.topo-v651-ancora.topo-ancora-selecionado {
  grid-template-rows: 44px 56px;
  grid-template-areas: "trilha" "linha2";
  min-height: 100px;
  height: 100px;
}
#page-header.topo-v651-ancora.topo-ancora-selecionado .topo-contexto-ancora {
  display: none !important;
}
#page-header.topo-v651-ancora.topo-ancora-selecionado h1.topo-trilha {
  position: relative;
  padding-right: 210px;
}
#page-header.topo-v651-ancora .topo-ancora-voltar {
  position: absolute;
  top: 8px;
  right: 16px;
  z-index: 5;
  height: 28px;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid #4f6586;
  border-radius: 6px;
  background: transparent;
  color: #dbe7f5;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
#page-header.topo-v651-ancora .topo-ancora-voltar:hover {
  background: rgba(255,255,255,.06);
  border-color: #6d86a9;
}
@media(max-width:700px){
  #page-header.topo-v651-ancora.topo-ancora-selecionado {
    grid-template-rows: 38px 52px;
    min-height: 90px;
    height: 90px;
  }
  #page-header.topo-v651-ancora.topo-ancora-selecionado h1.topo-trilha {
    padding-right: 150px;
  }
  #page-header.topo-v651-ancora .topo-ancora-voltar {
    top: 7px;
    right: 10px;
    height: 24px;
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }
}

/* V687: campo obrigatório não preenchido ao salvar a Nova Análise */
.na-campo-pendente{border-color:#c8372d!important;box-shadow:0 0 0 3px rgba(200,55,45,.18)!important;background:#fff7f6!important}

/* ---------------------------------------------------------------- V691: ajustes do topo da Gestão Preventiva
   A: espaço entre a faixa de abas e o conteúdo.
   B: painel "Escolher fornecedor" alinhado ao botão e com a mesma largura.
   C: sino maior (o ícone estava sendo espremido para 10 px de largura). */
#fp-area{ padding-top:18px; }
#page-header .topo-empresa-wrap .topo-empresa-painel{
  left:0 !important; right:auto !important;
  width:max(100%, 350px); max-width:calc(100vw - 24px);
}
#page-header .topo-sino{ width:48px !important; height:48px !important; }
#page-header .topo-sino svg{ width:26px !important; height:26px !important; min-width:26px; flex:0 0 26px; }
#page-header .topo-sino-contador{ top:4px; right:3px; min-width:20px; height:20px; border-radius:10px; font-size:11.5px; }


/* V692: Gestão Preventiva da Empresa Âncora com submenus na lateral e navegação sem reload. */
.gp-sidebar-tree {
  margin: 2px 0 6px;
  padding: 2px 0 4px 8px;
  border-left: 1px solid rgba(170,185,210,.34);
}
.gp-sidebar-item {
  margin: 2px 0;
  padding: 7px 10px 7px 14px;
  border-radius: 7px;
  background: transparent;
  color: #d8e0ec;
}
.gp-sidebar-item:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}
#sidebar .gp-sidebar-item.active {
  background: #176dcc !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 #58a7ff;
}
#sidebar .gp-sidebar-item.active span { color:#fff !important; }
@media (max-width: 700px) {
  .gp-sidebar-tree { padding-left: 6px; }
  .gp-sidebar-item { padding-left: 12px; }
}

/* V694 — Cabeçalho da Empresa Âncora: conjunto de notificações mais próximo do usuário.
   Remove divisores verticais redundantes e compacta o bloco sino + usuário. */
#page-header.topo-v651-ancora .topo-toolbar-right > .topo-sep {
  display: none !important;
}
#page-header.topo-v651-ancora .topo-notif-wrap {
  margin-left: 0 !important;
  margin-right: -1px !important;
}
#page-header.topo-v651-ancora .page-header-profile {
  margin-left: 0 !important;
}
#page-header.topo-v651-ancora .topo-toolbar-right {
  gap: 3px !important;
}
#page-header.topo-v651-ancora .page-header-profile-toggle {
  padding-left: 3px !important;
  gap: 6px !important;
}
@media (max-width: 860px) {
  #page-header.topo-v651-ancora .topo-toolbar-right { gap: 2px !important; }
}

/* V695 — Correção de overflow do cabeçalho na visão Empresa Âncora.
   Mantém todos os controles dentro do quadro, sem cortar o usuário. */
#page-header.topo-v651-ancora .topo-linha2{
  min-width:0 !important;
  overflow:hidden !important;
}
#page-header.topo-v651-ancora .topo-toolbar-left{
  flex:1 1 620px !important;
  min-width:0 !important;
}
#page-header.topo-v651-ancora .topo-busca{
  width:290px !important;
  flex:0 1 290px !important;
  min-width:180px !important;
}
#page-header.topo-v651-ancora .topo-empresa{
  width:300px !important;
  max-width:300px !important;
  flex:0 1 300px !important;
  min-width:180px !important;
}
#page-header.topo-v651-ancora .topo-toolbar-right{
  flex:0 1 450px !important;
  min-width:390px !important;
  max-width:450px !important;
  margin-left:0 !important;
  justify-content:flex-end !important;
  overflow:hidden !important;
}
#page-header.topo-v651-ancora .topo-selos{
  min-width:0 !important;
  display:flex !important;
  overflow:hidden !important;
}
#page-header.topo-v651-ancora .topo-selo{
  max-width:190px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
#page-header.topo-v651-ancora .page-header-profile{
  flex:0 0 auto !important;
  min-width:170px !important;
  max-width:205px !important;
  margin-left:0 !important;
}
#page-header.topo-v651-ancora .page-header-profile-toggle{
  max-width:205px !important;
  box-sizing:border-box !important;
}
@media(max-width:1180px){
  #page-header.topo-v651-ancora .topo-busca{width:250px !important;flex-basis:250px !important}
  #page-header.topo-v651-ancora .topo-empresa{width:260px !important;max-width:260px !important;flex-basis:260px !important}
  #page-header.topo-v651-ancora .topo-toolbar-right{min-width:360px !important;flex-basis:400px !important}
}
@media(max-width:980px){
  #page-header.topo-v651-ancora .topo-busca{width:210px !important;flex-basis:210px !important}
  #page-header.topo-v651-ancora .topo-empresa{width:230px !important;max-width:230px !important;flex-basis:230px !important}
  #page-header.topo-v651-ancora .topo-toolbar-right{min-width:320px !important;flex-basis:360px !important}
}

/* V696 — correção definitiva do overflow horizontal no cabeçalho Âncora.
   O bloco de usuário nunca pode ultrapassar a largura útil do #content-col. */
#page-header.topo-v651-ancora{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}
#page-header.topo-v651-ancora .topo-linha2{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  overflow:hidden !important;
}
#page-header.topo-v651-ancora .topo-toolbar-left{
  flex:1 1 auto !important;
  width:auto !important;
  min-width:0 !important;
  overflow:hidden !important;
}
#page-header.topo-v651-ancora .topo-toolbar-right{
  flex:0 1 auto !important;
  width:auto !important;
  min-width:0 !important;
  max-width:50% !important;
  overflow:hidden !important;
  gap:4px !important;
}
#page-header.topo-v651-ancora .topo-selos{
  flex:0 1 auto !important;
  max-width:190px !important;
  min-width:0 !important;
}
#page-header.topo-v651-ancora .topo-notif-wrap{
  flex:0 0 48px !important;
  width:48px !important;
  min-width:48px !important;
}
#page-header.topo-v651-ancora .page-header-profile{
  flex:0 1 190px !important;
  width:190px !important;
  min-width:150px !important;
  max-width:190px !important;
  overflow:hidden !important;
}
#page-header.topo-v651-ancora .page-header-profile-toggle{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}
#page-header.topo-v651-ancora .page-header-profile-info{
  min-width:0 !important;
  overflow:hidden !important;
}
#page-header.topo-v651-ancora .page-header-profile-nome,
#page-header.topo-v651-ancora .page-header-profile-cargo{
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
#page-header.topo-v651-ancora .topo-sino{
  flex:0 0 48px !important;
  width:48px !important;
  max-width:48px !important;
}
@media(max-width:1180px){
  #page-header.topo-v651-ancora .topo-toolbar-right{max-width:48% !important}
  #page-header.topo-v651-ancora .page-header-profile{width:178px !important;max-width:178px !important}
}
@media(max-width:980px){
  #page-header.topo-v651-ancora .topo-toolbar-right{max-width:46% !important}
  #page-header.topo-v651-ancora .page-header-profile{width:165px !important;max-width:165px !important}
}

/* V697 — correção estrutural do cabeçalho para impedir overflow horizontal.
   O ajuste anterior estava restrito ao cabeçalho Âncora; o cabeçalho padrão/home
   ainda podia somar larguras fixas de busca + empresa + ações + usuário e empurrar
   o perfil para fora do #content-col. Agora o conjunto é elástico e os textos
   podem truncar antes de gerar overflow. */
#page-header.topo-v583,
#page-header.topo-v608,
#page-header.topo-v611,
#page-header.topo-v636,
#page-header.topo-v637 {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
#page-header .topo-linha2 {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
#page-header .topo-toolbar-left {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
#page-header .topo-toolbar-right {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 48% !important;
  overflow: hidden !important;
}
#page-header .topo-busca {
  flex: 0 1 380px !important;
  width: 380px;
  min-width: 170px !important;
  max-width: 100% !important;
}
#page-header .topo-busca.larga {
  flex: 0 1 380px !important;
  width: 380px;
  min-width: 190px !important;
}
#page-header .topo-empresa-wrap {
  flex: 0 1 340px !important;
  min-width: 0 !important;
  max-width: 340px !important;
}
#page-header .topo-empresa-wrap .topo-empresa {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
#page-header .topo-selos {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 42% !important;
  overflow: hidden !important;
}
#page-header .topo-selo {
  min-width: 0 !important;
  max-width: 180px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
#page-header .topo-notif-wrap {
  flex: 0 0 44px !important;
  width: 44px !important;
  min-width: 44px !important;
}
#page-header .page-header-profile {
  flex: 0 1 190px !important;
  width: 190px !important;
  min-width: 145px !important;
  max-width: 190px !important;
  overflow: hidden !important;
}
#page-header .page-header-profile-toggle {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
#page-header .page-header-profile-info {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
#page-header .page-header-profile-nome,
#page-header .page-header-profile-cargo {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
@media (max-width: 1100px) {
  #page-header .topo-busca { flex-basis: 300px !important; width: 300px; }
  #page-header .topo-busca.larga { flex-basis: 300px !important; width: 300px; }
  #page-header .topo-empresa-wrap { flex-basis: 280px !important; max-width: 280px !important; }
  #page-header .topo-toolbar-right { max-width: 46% !important; }
  #page-header .page-header-profile { width: 175px !important; max-width: 175px !important; }
}
@media (max-width: 900px) {
  #page-header .topo-busca { flex-basis: 230px !important; width: 230px; }
  #page-header .topo-busca.larga { flex-basis: 230px !important; width: 230px; }
  #page-header .topo-empresa-wrap { flex-basis: 230px !important; max-width: 230px !important; }
  #page-header .topo-toolbar-right { max-width: 44% !important; }
  #page-header .page-header-profile { width: 160px !important; max-width: 160px !important; }
}
@media (max-width: 760px) {
  #page-header .topo-toolbar-right { max-width: 46% !important; }
  #page-header .topo-busca { min-width: 42px !important; flex-basis: 42px !important; width: 42px; }
  #page-header .topo-busca.larga { min-width: 42px !important; flex-basis: 42px !important; width: 42px; }
  #page-header .topo-empresa-wrap { flex-basis: 200px !important; max-width: 200px !important; }
  #page-header .page-header-profile { min-width: 42px !important; width: 42px !important; max-width: 42px !important; }
}

/* V698 — ajuste fino do campo de busca no cabeçalho inicial.
   Reduz levemente a largura do campo sem alterar o restante do cabeçalho. */
#page-header .topo-busca.larga {
  flex-basis: 340px !important;
  width: 340px !important;
  max-width: 340px !important;
}
@media (max-width: 1100px) {
  #page-header .topo-busca.larga {
    flex-basis: 280px !important;
    width: 280px !important;
    max-width: 280px !important;
  }
}
@media (max-width: 900px) {
  #page-header .topo-busca.larga {
    flex-basis: 220px !important;
    width: 220px !important;
    max-width: 220px !important;
  }
}

/* V700 — Sidebar mais compacta e botão de recolher reposicionado. */
#sidebar { width: 190px; min-width: 190px; padding: 12px 8px; }
#sidebar .sidebar-logo-wrap { padding: 8px 6px 10px; margin-bottom: 3px; }
#sidebar .sidebar-logo-expanded { width: 150px !important; max-height: 64px !important; }
#sidebar .sidebar-top-controls { position: static; width: 0; height: 0; padding: 0; overflow: visible; }
#sidebar .sidebar-collapse-btn {
  position: absolute; right: -13px; top: 110px; z-index: 130;
  width: 26px; height: 26px; min-height: 26px; padding: 0;
  background: transparent; border: 0; border-radius: 6px;
}
#sidebar.sidebar-recolhida { width: 62px; min-width: 62px; padding: 10px 6px; }
#sidebar.sidebar-recolhida .sidebar-collapse-btn { right: -13px; top: 82px; width: 26px; height: 26px; }
@media (max-width: 900px) {
  #sidebar { width: 190px; min-width: 190px; }
  #sidebar.sidebar-recolhida { width: 62px; min-width: 62px; }
}
/* Âncora: manter o controle no mesmo ponto compacto, sem sobrepor o topo. */
.sidebar-com-topo-ancora .sidebar-collapse-btn { right: -13px !important; top: 110px !important; }
@media (max-width: 900px) { .sidebar-com-topo-ancora .sidebar-collapse-btn { top: 94px !important; } }

/* V707 — Cadastro de Processos: tabela refinada e ações funcionais */
.mp84-hero-v706{min-height:122px!important;background-image:url('../img/hero-mapas-processo-v706.png')!important;background-size:auto 100%!important;background-position:right center!important}
.mp84-toolbar-v706{display:grid!important;grid-template-columns:minmax(280px,1fr) 190px 125px auto;gap:8px;align-items:center;padding:9px!important;background:#fff;border:1px solid #d7e3ef;border-radius:10px;box-shadow:0 2px 8px rgba(31,61,94,.04);margin-bottom:10px}
.mp84-toolbar-v706 input,.mp84-toolbar-v706 select{height:36px!important;border:1px solid #c9d9e8!important;border-radius:7px!important;background:#fff!important;color:#334e68!important;font-size:12px!important;padding:0 11px!important;box-sizing:border-box}
.mp84-clear-filters,.mp84-columns-btn{height:36px;border:1px solid #c9d9e8;border-radius:7px;background:#fff;color:#15558d;font-weight:700;font-size:11px;cursor:pointer;padding:0 11px;white-space:nowrap}
.mp84-clear-filters:hover,.mp84-columns-btn:hover{background:#f3f8fc;border-color:#8fb1d0}
.mp84-columns-wrap{position:relative;justify-self:end}.mp84-columns-menu{display:none;position:absolute;right:0;top:42px;width:175px;background:#fff;border:1px solid #cbdbe9;border-radius:9px;padding:8px;box-shadow:0 12px 30px rgba(20,55,90,.16);z-index:50}.mp84-columns-menu.open{display:grid;gap:5px}.mp84-columns-menu label{font-size:11px;color:#315a79;padding:5px 6px;border-radius:6px;cursor:pointer}.mp84-columns-menu label:hover{background:#f3f8fc}.mp84-columns-menu input{width:auto!important;height:auto!important;margin-right:5px}
.mp84-table-card-v706{overflow:visible}.mp84-table-summary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 14px;border-bottom:1px solid #dbe6ef;background:#f8fbfe}.mp84-table-summary>div:first-child{display:flex;align-items:baseline;gap:7px}.mp84-table-summary strong{font-size:18px;color:#123f73}.mp84-table-summary span,.mp84-table-hint{font-size:10.5px;color:#71869a}.mp84-table-hint b{color:#315f84}.mp84-table-wrap{overflow:auto;border-radius:0 0 10px 10px}.mp84-table-v706{min-width:1080px}.mp84-table-v706 thead th{position:sticky;top:0;background:#dbe9f5!important;color:#164d82!important;font-size:10px!important;font-weight:800!important;padding:10px 9px!important;border-bottom:1px solid #aec8df!important;white-space:nowrap}.mp84-table-v706 tbody tr:nth-child(even){background:#fbfdff}.mp84-table-v706 tbody tr:hover{background:#f2f8fd}.mp84-table-v706 tbody td{padding:9px!important;border-bottom:1px solid #e1e9f0!important}.mp84-table-v706 tbody td strong{font-size:12px}.mp84-table-v706 .center{text-align:center}.mp84-activities-count span{display:inline-grid;place-items:center;min-width:28px;height:25px;border-radius:7px;background:#edf5fc;color:#1e6395;font-weight:800}.mp84-actions{position:relative}.mp84-actions button{height:30px!important;padding:0 9px!important;font-size:10.5px!important}.mp84-actions button.icon{font-size:16px!important}.mp84-row-menu{display:none;position:absolute;right:8px;top:43px;min-width:135px;background:#fff;border:1px solid #cbdbe9;border-radius:8px;box-shadow:0 10px 25px rgba(20,55,90,.16);z-index:30;padding:5px}.mp84-row-menu.open{display:grid}.mp84-row-menu button{height:30px!important;border:0!important;text-align:left!important;background:#fff!important;color:#315a79!important;border-radius:5px!important;margin:0!important;padding:0 9px!important;cursor:pointer}.mp84-row-menu button:hover{background:#f2f7fb!important}.mp84-row-menu button.danger{color:#b34b4b!important}.mp84-row-menu button.danger:hover{background:#fff3f3!important}
@media(max-width:900px){.mp84-toolbar-v706{grid-template-columns:1fr 170px auto}.mp84-columns-wrap{grid-column:1/-1;justify-self:end}.mp84-table-summary{align-items:flex-start;flex-direction:column;gap:3px}}
@media(max-width:700px){.mp84-toolbar-v706{grid-template-columns:1fr}.mp84-clear-filters,.mp84-columns-btn{width:100%}.mp84-columns-wrap{width:100%}.mp84-columns-menu{left:0;right:auto}.mp84-table-summary{padding:9px 11px}}

/* V709 — Tabela de Processos: sem rolagem horizontal e melhor aproveitamento da largura. */
.mp84-table-wrap{overflow-x:hidden!important;overflow-y:visible!important;width:100%!important;}
.mp84-table-v706{width:100%!important;min-width:0!important;table-layout:fixed!important;}
.mp84-table-v706 th,.mp84-table-v706 td{box-sizing:border-box;}
.mp84-table-v706 th:nth-child(1),.mp84-table-v706 td:nth-child(1){width:7%;}
.mp84-table-v706 th:nth-child(2),.mp84-table-v706 td:nth-child(2){width:29%;}
.mp84-table-v706 th:nth-child(3),.mp84-table-v706 td:nth-child(3){width:8%;}
.mp84-table-v706 th:nth-child(4),.mp84-table-v706 td:nth-child(4){width:13%;}
.mp84-table-v706 th:nth-child(5),.mp84-table-v706 td:nth-child(5){width:11%;}
.mp84-table-v706 th:nth-child(6),.mp84-table-v706 td:nth-child(6){width:13%;}
.mp84-table-v706 th:nth-child(7),.mp84-table-v706 td:nth-child(7){width:7%;}
.mp84-table-v706 th:nth-child(8),.mp84-table-v706 td:nth-child(8){width:12%;}
.mp84-table-v706 tbody td{overflow:hidden;text-overflow:ellipsis;}
.mp84-table-v706 td[data-mp-col="processo"] strong,.mp84-table-v706 td[data-mp-col="processo"] small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.mp84-table-v706 td[data-mp-col="responsavel"],.mp84-table-v706 td[data-mp-col="area"],.mp84-table-v706 td[data-mp-col="revisao"]{white-space:nowrap;}
.mp84-actions{display:flex!important;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap;overflow:visible!important;}
.mp84-actions button{flex:0 0 auto;min-width:0!important;}
.mp84-actions button.icon{width:30px!important;padding:0!important;}
.mp84-table-summary{min-height:48px;box-sizing:border-box;}
@media(max-width:1000px){
  .mp84-table-v706 th:nth-child(3),.mp84-table-v706 td:nth-child(3),
  .mp84-table-v706 th:nth-child(5),.mp84-table-v706 td:nth-child(5){display:none;}
  .mp84-table-v706 th:nth-child(1),.mp84-table-v706 td:nth-child(1){width:9%;}
  .mp84-table-v706 th:nth-child(2),.mp84-table-v706 td:nth-child(2){width:35%;}
  .mp84-table-v706 th:nth-child(4),.mp84-table-v706 td:nth-child(4){width:16%;}
  .mp84-table-v706 th:nth-child(6),.mp84-table-v706 td:nth-child(6){width:14%;}
  .mp84-table-v706 th:nth-child(7),.mp84-table-v706 td:nth-child(7){width:8%;}
  .mp84-table-v706 th:nth-child(8),.mp84-table-v706 td:nth-child(8){width:18%;}
}
@media(max-width:720px){
  .mp84-table-v706 th:nth-child(4),.mp84-table-v706 td:nth-child(4),
  .mp84-table-v706 th:nth-child(7),.mp84-table-v706 td:nth-child(7){display:none;}
  .mp84-table-v706 th:nth-child(1),.mp84-table-v706 td:nth-child(1){width:12%;}
  .mp84-table-v706 th:nth-child(2),.mp84-table-v706 td:nth-child(2){width:43%;}
  .mp84-table-v706 th:nth-child(6),.mp84-table-v706 td:nth-child(6){width:17%;}
  .mp84-table-v706 th:nth-child(8),.mp84-table-v706 td:nth-child(8){width:28%;}
  .mp84-actions button:not(.icon){padding:0 6px!important;font-size:9.5px!important;}
}

/* V711 — Cadastro de Processos: visual inspirado no mockup aprovado */
.mp711-wrap{max-width:100%;padding-bottom:18px}
.mp711-hero{position:relative;min-height:142px;overflow:hidden;border:1px solid #d5e1ef;border-radius:12px;background:linear-gradient(90deg,#fff 0%,#f7fbff 55%,#eaf3fb 100%);box-shadow:0 2px 10px rgba(25,61,100,.06);display:flex;align-items:center;margin-bottom:12px}
.mp711-hero:before{content:"";position:absolute;left:0;top:28px;width:4px;height:78px;background:#f58220;border-radius:0 4px 4px 0;z-index:3}
.mp711-hero-copy{position:relative;z-index:3;padding:18px 26px 18px 30px;max-width:62%}
.mp711-eyebrow{font-size:10px;letter-spacing:.8px;font-weight:800;color:#4d7095;margin-bottom:7px}.mp711-eyebrow span{color:#a1b4c8;padding:0 4px}
.mp711-title-row{display:flex;align-items:center;gap:12px}.mp711-title-row h1{margin:0;color:#0d3f76;font-size:27px;line-height:1.08;font-weight:700}.mp711-title-row p{margin:5px 0 0;color:#5d7590;font-size:12.5px}.mp711-hero-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#eef5fd;color:#f58220;border:1px solid #dce8f5;font-size:28px}
.mp711-hero-image{position:absolute;right:0;top:0;height:100%;width:57%;z-index:1;overflow:hidden;mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.28) 12%,#000 31%,#000 100%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.28) 12%,#000 31%,#000 100%)}.mp711-hero-image img{width:100%;height:100%;object-fit:cover;object-position:center right;display:block}
.mp711-command{display:grid;grid-template-columns:auto minmax(250px,1fr) auto;gap:18px;align-items:center;background:#fff;border:1px solid #d9e4f0;border-radius:12px;padding:12px 14px;margin-bottom:12px;box-shadow:0 2px 9px rgba(25,61,100,.05)}
.mp711-kpis{display:flex;align-items:center;gap:0}.mp711-kpi{display:flex;align-items:center;gap:9px;padding:0 16px;border-right:1px solid #e1e8f1;min-width:105px}.mp711-kpi:first-child{padding-left:2px}.mp711-kpi:last-child{border-right:0}.mp711-kpi-icon{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#e9f2ff;color:#1477d4;font-size:20px;font-weight:800}.mp711-kpi.ok .mp711-kpi-icon{background:#e5f6ee;color:#22a06b}.mp711-kpi.warn .mp711-kpi-icon{background:#fff2dc;color:#f09a16}.mp711-kpi.danger .mp711-kpi-icon{background:#fde8e8;color:#e54b48}.mp711-kpi strong{display:block;font-size:24px;line-height:1;color:#103f73}.mp711-kpi small{display:block;font-size:10px;line-height:1.15;color:#6e8299;margin-top:3px;white-space:nowrap}
.mp711-search{height:42px;border:1px solid #cbd9e9;border-radius:10px;display:flex;align-items:center;gap:9px;padding:0 13px;background:#fff;min-width:0}.mp711-search span{font-size:21px;color:#2f5578}.mp711-search input{border:0;outline:0;width:100%;font-size:13px;color:#28496a;background:transparent}.mp711-search input::placeholder{color:#8a9bb0}
.mp711-command-actions{display:flex;gap:9px;align-items:center;white-space:nowrap}.mp711-btn{height:42px;border:1px solid #8db4de;border-radius:9px;background:#fff;color:#144b80;padding:0 16px;font-weight:700;font-size:12.5px;cursor:pointer}.mp711-btn:hover{background:#f5f9fe}.mp711-btn.primary{background:#f58220;border-color:#f58220;color:#fff}.mp711-btn.primary:hover{background:#db6e10}
.mp711-table-card{background:#fff;border:1px solid #d6e2ef;border-radius:12px;box-shadow:0 2px 10px rgba(25,61,100,.06);overflow:visible}.mp711-table-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 14px 10px}.mp711-table-top strong{display:inline-block;color:#143f6d;font-size:12px;margin-right:7px}.mp711-table-top span{color:#7a8da4;font-size:10.5px}.mp711-columns-btn{height:34px;border:1px solid #b9cee6;border-radius:8px;background:#fff;color:#174b7e;font-size:11px;font-weight:700;padding:0 12px;cursor:pointer}.mp711-table-wrap{overflow-x:hidden;padding:0 10px}.mp711-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:12px}.mp711-table th{background:#eaf3fb;color:#154a7d;text-transform:uppercase;font-size:10px;letter-spacing:.35px;font-weight:800;padding:10px 10px;border-top:1px solid #cdddec;border-bottom:1px solid #c2d5e8;text-align:left}.mp711-table th:first-child{border-radius:8px 0 0 0}.mp711-table th:last-child{border-radius:0 8px 0 0}.mp711-table td{padding:10px 10px;border-bottom:1px solid #e2e9f2;color:#173b60;vertical-align:middle;overflow:hidden;text-overflow:ellipsis}.mp711-table tbody tr:nth-child(even){background:#fbfdff}.mp711-table tbody tr:hover{background:#f2f7fc}.mp711-table th:nth-child(1),.mp711-table td:nth-child(1){width:7%}.mp711-table th:nth-child(2),.mp711-table td:nth-child(2){width:31%}.mp711-table th:nth-child(3),.mp711-table td:nth-child(3){width:10%}.mp711-table th:nth-child(4),.mp711-table td:nth-child(4){width:13%}.mp711-table th:nth-child(5),.mp711-table td:nth-child(5){width:12%}.mp711-table th:nth-child(6),.mp711-table td:nth-child(6){width:13%}.mp711-table th:nth-child(7),.mp711-table td:nth-child(7){width:7%}.mp711-table th:nth-child(8),.mp711-table td:nth-child(8){width:17%}.mp711-table td:nth-child(2) strong,.mp711-table td:nth-child(2) small,.mp711-table td:nth-child(5) strong,.mp711-table td:nth-child(5) small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mp711-table td:nth-child(2) strong{color:#12457b;font-size:13px}.mp711-table td:nth-child(2) small,.mp711-table td:nth-child(5) small{color:#8496aa;font-size:10px;margin-top:3px}.mp711-code{color:#31587c;font-weight:700}.mp711-owner{white-space:nowrap}.mp711-status{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;background:#eaf3ff;color:#1670c4;font-size:10px;font-weight:700;white-space:nowrap}.mp711-status i{width:7px;height:7px;border-radius:50%;background:#267bd1}.mp711-status.vigente{background:#e4f6ed;color:#16805b}.mp711-status.vigente i{background:#1fa46f}.mp711-status.em_revisao{background:#fff1d9;color:#b96b0c}.mp711-status.em_revisao i{background:#f19a16}.mp711-status.obsoleto{background:#fde8e8;color:#d54242}.mp711-status.obsoleto i{background:#e44b49}.mp711-activity{font-size:12px;color:#0d4c82;white-space:nowrap}.mp711-activity b{font-size:12px}.mp711-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;position:relative;white-space:nowrap;overflow:visible!important}.mp711-action{height:32px;border:1px solid #b8cfe7;background:#fff;color:#174c7f;border-radius:8px;padding:0 10px;font-size:10.5px;font-weight:700;cursor:pointer;white-space:nowrap}.mp711-action:hover{background:#eef6ff;border-color:#8fb5dc}.mp711-action.icon{width:32px;padding:0;font-size:18px}.mp711-footer{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;color:#657c96;font-size:10.5px}.mp711-pagination{display:flex;align-items:center;gap:7px}.mp711-pagination select{height:30px;border:1px solid #c4d5e7;border-radius:7px;padding:0 8px;background:#fff;color:#355a7d}.mp711-pagination button,.mp711-pagination b{width:30px;height:30px;border:0;border-radius:7px;background:#fff;color:#2d557a;display:inline-flex;align-items:center;justify-content:center}.mp711-pagination button{border:1px solid #c5d7e9;cursor:pointer}.mp711-pagination button:disabled{opacity:.35;cursor:not-allowed}.mp711-pagination b{background:#1e78d0;color:#fff}
.mp711-table-card .mp84-row-menu{z-index:50}.mp711-wrap .mp84-columns-menu{z-index:60}
@media(max-width:1200px){.mp711-command{grid-template-columns:1fr;gap:10px}.mp711-kpis{justify-content:space-between}.mp711-command-actions{justify-content:flex-end}.mp711-hero-copy{max-width:68%}}
@media(max-width:850px){.mp711-hero{min-height:125px}.mp711-hero-copy{max-width:78%;padding-left:24px}.mp711-title-row h1{font-size:23px}.mp711-hero-image{width:48%;opacity:.7}.mp711-kpis{overflow:auto}.mp711-kpi{min-width:120px}.mp711-table-wrap{overflow-x:auto}.mp711-table{min-width:900px}}
@media(max-width:620px){.mp711-hero-image{display:none}.mp711-hero-copy{max-width:100%;padding:16px 18px}.mp711-command-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.mp711-btn.primary{grid-column:1/-1}.mp711-table-top{align-items:flex-start;flex-direction:column}.mp711-footer{align-items:flex-start;flex-direction:column;gap:8px}}

/* V713 — Cadastro de Processos: refinamento visual conforme modelo aprovado */
.mp711-command{grid-template-columns:minmax(0,1fr) minmax(220px,260px) auto;gap:12px;padding:10px 14px;overflow:hidden}
.mp711-kpis{min-width:0;overflow:hidden}
.mp711-kpi{min-width:92px;padding:0 12px;flex:1}
.mp711-kpi-icon{width:36px;height:36px}
.mp711-command-actions{gap:8px;flex-shrink:0}
.mp711-btn{padding:0 13px}
.mp711-table-card{position:relative;padding-top:0;overflow:visible}
.mp711-table-top{padding:11px 14px 9px;min-height:42px;padding-right:130px}
.mp711-table-top strong{font-size:11px}
.mp711-table-top span{font-size:10px}
.mp711-table-card > .mp-column-toolbar{position:absolute;top:9px;right:10px;z-index:20;margin:0}
.mp711-table-card > .mp-column-toolbar .mp-column-picker > button{height:32px;border:1px solid #bfd3e8;border-radius:8px;background:#fff;color:#174b7e;font-size:11px;font-weight:700;padding:0 12px}
.mp711-table-wrap{padding:0 10px;overflow:hidden}
.mp711-table{font-size:11.5px;border-collapse:separate;border-spacing:0;table-layout:fixed}
.mp711-table th{background:#dfeef9;color:#174d7e;padding:9px 10px;border-top:1px solid #c8dced;border-bottom:1px solid #b9d0e5;font-size:9.5px;letter-spacing:.3px}
.mp711-table td{padding:8px 10px;border-bottom:1px solid #e3ebf3;color:#183d60;height:42px}
.mp711-table tbody tr:nth-child(even){background:#f8fbfe}
.mp711-table tbody tr:hover{background:#f0f6fc}
.mp711-table th:nth-child(1),.mp711-table td:nth-child(1){width:7%}
.mp711-table th:nth-child(2),.mp711-table td:nth-child(2){width:31%}
.mp711-table th:nth-child(3),.mp711-table td:nth-child(3){width:9%}
.mp711-table th:nth-child(4),.mp711-table td:nth-child(4){width:15%}
.mp711-table th:nth-child(5),.mp711-table td:nth-child(5){width:11%}
.mp711-table th:nth-child(6),.mp711-table td:nth-child(6){width:12%}
.mp711-table th:nth-child(7),.mp711-table td:nth-child(7){width:7%}
.mp711-table th:nth-child(8),.mp711-table td:nth-child(8){width:18%}
.mp711-owner{display:flex;align-items:center;gap:7px;min-width:0;white-space:nowrap}
.mp711-avatar{width:26px;height:26px;min-width:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#e7f1fc;color:#1762a2;font-size:9px;font-style:normal;font-weight:800}
.mp711-owner{font-size:11px}
.mp711-status{padding:5px 9px;font-size:9.5px;gap:6px}
.mp711-status i{width:6px;height:6px}
.mp711-activity{font-size:11px;text-align:center}
.mp711-actions{gap:6px;justify-content:flex-start}
.mp711-action{height:30px;padding:0 10px;font-size:10px;border-radius:7px}
.mp711-action.icon{width:30px;padding:0;font-size:17px}
.mp711-footer{padding:9px 14px 11px}
.mp711-pagination{gap:6px}
.mp711-pagination button,.mp711-pagination b{width:30px;height:30px}
.mp711-table-card .mp84-row-menu{right:0;top:34px;min-width:170px}
@media(max-width:1180px){
  .mp711-command{grid-template-columns:minmax(0,1fr) minmax(200px,240px);}
  .mp711-command-actions{grid-column:1/-1;justify-content:flex-end}
}
@media(max-width:850px){
  .mp711-command{grid-template-columns:1fr}
  .mp711-command-actions{grid-column:auto;justify-content:flex-start;flex-wrap:wrap}
  .mp711-table-wrap{overflow-x:auto}
  .mp711-table{min-width:900px}
}

/* V714 - tabela de processos alinhada ao modelo aprovado */
.mp711-table-card{overflow:visible}
.mp711-table-wrap{overflow:hidden;padding:0 10px}
.mp711-table th,.mp711-table td{box-sizing:border-box}
.mp711-table th:nth-child(7),.mp711-table td:nth-child(7){text-align:center}
.mp711-table th:nth-child(8),.mp711-table td:nth-child(8){padding-left:6px;padding-right:6px}
.mp711-actions{gap:4px;justify-content:flex-start}
.mp711-action{padding:0 8px}
.mp711-action.icon{width:28px;min-width:28px;padding:0}
.mp711-footer{min-height:48px;padding:8px 14px}
.mp711-pagination{margin-left:auto}
.mp711-pagination>span{white-space:nowrap}
.mp711-pagination select{min-width:76px}
@media(max-width:1100px){.mp711-table th:nth-child(2),.mp711-table td:nth-child(2){width:23%}.mp711-table th:nth-child(8),.mp711-table td:nth-child(8){width:17%}}
/* V716 - Henkaten: cockpit executivo refinado */
.hk-shell{display:flex;flex-direction:column;gap:12px;max-width:100%;box-sizing:border-box}
.hk-hero{min-height:145px;border:1px solid #d4e1ef;border-radius:14px;background:#fff;display:flex;overflow:hidden;position:relative;box-shadow:0 3px 12px rgba(18,49,94,.055)}
.hk-hero-copy{padding:18px 24px;flex:1;min-width:0;position:relative;z-index:1}
.hk-kicker{font-size:10px;font-weight:800;letter-spacing:.75px;color:#28598c;margin-bottom:5px;text-transform:uppercase}
.hk-title-row{display:flex;gap:12px;align-items:center}.hk-title-icon{width:44px;height:44px;border-radius:11px;background:#fff1e3;color:#f58216;display:grid;place-items:center;font-size:23px;border:1px solid #ffd7b1;flex:0 0 auto}
.hk-title-row h2{margin:0;color:#0e3767;font-size:25px;letter-spacing:.15px}.hk-title-row p{margin:2px 0 0;color:#5e7591;font-size:12px}.hk-hero-text{margin:10px 0 0;color:#667d97;font-size:12px;line-height:1.45;max-width:780px}
.hk-hero-art{width:43%;min-width:390px;background-image:linear-gradient(90deg,rgba(255,255,255,1) 0%,rgba(255,255,255,.18) 35%,rgba(255,255,255,0) 100%),url('/img/hero-henkaten.png?v=740');background-size:cover;background-position:center right}
.hk-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.hk-kpi{background:#fff;border:1px solid #d6e2ef;border-radius:12px;padding:11px 15px;display:flex;align-items:center;gap:11px;min-height:62px;box-sizing:border-box}.hk-kpi-icon{width:38px;height:38px;border-radius:10px;background:#eaf3ff;color:#0c70c9;display:grid;place-items:center;font-weight:800;font-size:17px;flex:0 0 auto}.hk-kpi strong{display:block;font-size:23px;color:#0d3766;line-height:1}.hk-kpi small{display:block;color:#71849b;font-size:11px;margin-top:4px}.hk-warn .hk-kpi-icon{background:#fff3d7;color:#e28a00}.hk-warn strong{color:#e28a00}.hk-ok .hk-kpi-icon{background:#e5f6ed;color:#178454}.hk-ok strong{color:#178454}.hk-danger .hk-kpi-icon{background:#fde9e7;color:#cf332a}.hk-danger strong{color:#cf332a}
.hk-toolbar{display:grid;grid-template-columns:auto auto minmax(280px,1fr) auto;align-items:center;gap:14px;background:#fff;border:1px solid #d6e2ef;border-radius:12px;padding:10px 14px;box-sizing:border-box}.hk-new{height:40px;white-space:nowrap}.hk-check{display:flex;align-items:center;gap:8px;color:#38536f;font-size:12px;white-space:nowrap}.hk-search{height:40px;box-sizing:border-box;border:1px solid #cfdceb;border-radius:9px;display:flex;align-items:center;gap:8px;padding:0 11px;min-width:0}.hk-search span{font-size:20px;color:#5d7895}.hk-search input{border:0;outline:0;width:100%;min-width:0;font:inherit;color:#294967;background:transparent}.hk-export{height:40px;padding:0 16px;border:1px solid #b9cde3;border-radius:9px;background:#fff;color:#174d7e;font-weight:700;white-space:nowrap}/* MasterPlating V1046 — Henkaten no padrão visual global */
.hk-table-card{background:#fff;border:1px solid #d4e0ee;border-radius:14px;overflow:hidden;box-shadow:0 3px 12px rgba(24,58,96,.055)}
.hk-table-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;border-bottom:1px solid #e5edf6;color:#29435f;font-size:12px;min-height:62px}
.hk-table-title{display:flex;align-items:center;gap:10px;min-width:0}
.hk-table-title-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:8px;background:#eaf2fc;color:#176bc1;font-size:15px}
.hk-table-title strong{font-size:15px;color:#163b63}
.hk-table-title small{display:block;margin-top:3px;color:#75869b;font-size:11px}
.hk-table-head-right{display:flex;align-items:center;justify-content:flex-end;min-width:0}
.hk-head-note{color:#71839a;font-size:11px;display:flex;align-items:center;gap:7px}
.hk-table-wrap{overflow-x:auto;overscroll-behavior-x:contain}
.hk-table{width:100%;min-width:990px;border-collapse:separate;border-spacing:0;table-layout:fixed}
.hk-table th{background:#f3f6fa;color:#23466d;text-align:left;font-size:10.5px;font-weight:750;padding:11px 12px;border-bottom:1px solid #d8e3ef;white-space:nowrap}
.hk-table th:first-child{border-top-left-radius:8px}.hk-table th:last-child{border-top-right-radius:8px}
.hk-table td{padding:12px;border-bottom:1px solid #e7edf5;color:#29445f;font-size:12px;line-height:1.45;vertical-align:middle;overflow-wrap:anywhere;white-space:normal}
.hk-table tbody tr:nth-child(even){background:#fafcff}.hk-table tbody tr:hover{background:#f1f7ff}
.hk-table th:nth-child(1),.hk-table td:nth-child(1){width:9%;white-space:nowrap}
.hk-table th:nth-child(2),.hk-table td:nth-child(2){width:10%}
.hk-table th:nth-child(3),.hk-table td:nth-child(3){width:22%}
.hk-table th:nth-child(4),.hk-table td:nth-child(4){width:15%}
.hk-table th:nth-child(5),.hk-table td:nth-child(5){width:12%}
.hk-table th:nth-child(6),.hk-table td:nth-child(6){width:13%}
.hk-table th:nth-child(7),.hk-table td:nth-child(7){width:10%}
.hk-table th:nth-child(8),.hk-table td:nth-child(8){width:9%;white-space:nowrap}
.hk-table td:nth-child(3)>strong{font-weight:650;color:#183b61}
.hk-table td:nth-child(4){overflow-wrap:anywhere}
.hk-date{color:#153f69;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.hk-type{font-weight:700;color:#214f7b}.hk-emergency{display:block;color:#b43128;font-size:9.5px;margin-top:3px}.hk-badge,.hk-status{display:inline-block;padding:4px 8px;border-radius:999px;font-size:9.5px;font-weight:800;white-space:nowrap}.hk-sub{display:block;color:#7c8da0;font-size:9.5px;margin-top:3px}.hk-status-open{background:#fff0cf;color:#986300}.hk-status-done{background:#e6f6ed;color:#187246}.hk-status-cancel{background:#eef1f5;color:#68788a}.hk-actions{display:flex;gap:6px;align-items:center;justify-content:flex-start;white-space:nowrap}.hk-actions .small{font-size:9.5px;padding:6px 8px;white-space:nowrap}.hk-cancelled{opacity:.58}.hk-empty{text-align:center;padding:42px 20px 45px}.hk-empty-icon{width:56px;height:56px;margin:0 auto 10px;border-radius:50%;background:#edf5fc;color:#2870aa;display:grid;place-items:center;font-size:25px}.hk-empty h3{margin:0;color:#123b68;font-size:19px}.hk-empty p{margin:6px auto 18px;color:#71849a;font-size:12px;max-width:720px}.hk-footer{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;color:#6d8096;font-size:11px}.hk-page{display:flex;align-items:center;gap:8px}.hk-page select{border:1px solid #cddceb;border-radius:7px;padding:5px 8px;background:#fff}.hk-page b{background:#1477d4;color:#fff;border-radius:7px;padding:6px 9px}
@media(max-width:1050px){.hk-hero-art{width:36%;min-width:280px}.hk-toolbar{grid-template-columns:auto 1fr;}.hk-search{grid-column:1/-1}.hk-export{grid-column:2;justify-self:end}.hk-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.hk-hero-art{display:none}.hk-kpis{grid-template-columns:1fr}.hk-toolbar{grid-template-columns:1fr;align-items:stretch}.hk-search,.hk-export{grid-column:auto;width:100%}.hk-table-wrap{overflow-x:auto}.hk-table{min-width:900px}.hk-footer{flex-direction:column;align-items:flex-start;gap:8px}}


/* V717 — Henkaten: CSS servido/forçado + refinamento de layout */
.hk-shell{width:100%;max-width:none}
.hk-hero{width:100%;box-sizing:border-box}
.hk-hero-copy{flex:1 1 57%;min-width:0}
.hk-hero-art{flex:0 0 43%;min-width:0;max-width:43%}
.hk-kpis{width:100%}
.hk-toolbar{width:100%;grid-template-columns:auto auto minmax(320px,1fr) auto}
.hk-table-card{width:100%}
.hk-table-wrap{width:100%;overflow-x:hidden}
.hk-table{min-width:0}
@media(max-width:1050px){.hk-toolbar{grid-template-columns:auto 1fr}.hk-search{grid-column:1/-1}.hk-export{grid-column:2}.hk-hero-art{flex-basis:36%;max-width:36%}.hk-hero-copy{flex-basis:64%}}
@media(max-width:700px){.hk-hero-art{display:none}.hk-hero-copy{flex-basis:100%}.hk-toolbar{grid-template-columns:1fr}.hk-search,.hk-export{grid-column:auto}.hk-table-wrap{overflow-x:auto}.hk-table{min-width:900px}}

/* ---------------------------------------------------------------- V720: menus e painéis do topo aparecem inteiros
   As correções de estouro do cabeçalho (V695/V696) colocaram overflow:hidden no cabeçalho e
   nos seus blocos. Isso também cortava o que desce do topo: a LISTA de fornecedores do
   "Escolher fornecedor" (só a busca aparecia), o painel do sino e o menu do usuário (Sair).
   O corte passa a ser só horizontal no cabeçalho e na linha 2 (continua sem estourar a página);
   os blocos internos não cortam nada. */
#page-header, #page-header.topo-v651-ancora,
#page-header .topo-linha2, #page-header.topo-v651-ancora .topo-linha2{
  overflow-x:clip !important;
  overflow-y:visible !important;
}
#page-header .topo-toolbar-left, #page-header.topo-v651-ancora .topo-toolbar-left,
#page-header .topo-toolbar-right, #page-header.topo-v651-ancora .topo-toolbar-right,
#page-header .page-header-profile, #page-header.topo-v651-ancora .page-header-profile,
#page-header .topo-empresa-wrap, #page-header.topo-v651-ancora .topo-empresa-wrap{
  overflow:visible !important;
}
#page-header .page-header-profile-menu,
#page-header .topo-notif-painel,
#page-header .topo-empresa-painel{ z-index:1000 !important; }
#page-header{ position:relative; z-index:60; }
/* V721: rótulos das opções de participação em uma linha */
label:has(> [name=pp-part]){ white-space:nowrap; }

/* ---------------------------------------------------------------- V723: menu do usuário (Sair) no cabeçalho do tenant
   Uma regra posterior (#page-header.topo-v637 { overflow:hidden !important }) é mais específica
   que a correção da V720 e voltava a cortar tudo o que desce do topo no cabeçalho do tenant.
   "#page-header#page-header" tem especificidade maior que qualquer regra do cabeçalho, sem
   depender da classe de versão aplicada ao topo. */
#page-header#page-header,
#page-header#page-header .topo-linha2{
  overflow-x:clip !important;
  overflow-y:visible !important;
}
#page-header#page-header .topo-toolbar-left,
#page-header#page-header .topo-toolbar-right,
#page-header#page-header .topo-empresa-wrap,
#page-header#page-header .topo-notif-wrap,
#page-header#page-header .page-header-profile{
  overflow:visible !important;
}
/* o menu do usuário nunca passa da borda direita da janela */
#page-header#page-header .page-header-profile-menu{
  right:0 !important; left:auto !important; max-width:calc(100vw - 16px); z-index:1000 !important;
}

/* ---------------------------------------------------------------- V723: FMEA mais compacto
   Filtros numa linha (o padrão global de largura 100% empilhava busca e selects) e
   seletor "Exibir" do tamanho do conteúdo. */
.fmea-card .fmea-filterbar{ display:flex !important; flex-wrap:wrap; align-items:center; gap:8px; }
.fmea-card .fmea-filterbar > input,
.fmea-card .fmea-filterbar > select{ width:auto !important; max-width:none; margin:0 !important; flex:0 0 auto; }
.fmea-card .fmea-filterbar > input{ flex:1 1 260px !important; min-width:220px; }
.fmea-card .fmea-filterbar > select{ min-width:150px; }
.fmea-card .fmea-filterbar > button{ white-space:nowrap; margin:0 !important; }
.fmea-card .fmea-filterbar > span{ display:none; }
.fmea-card .fmea-filterbar > [data-action=fmea-add-linha]{ margin-left:auto !important; }
.fmea-card .fmea-pagination select{ width:auto !important; display:inline-block; }
.fmea-card .fmea-tabs{ overflow:visible !important; flex-wrap:wrap !important; }
.fmea-card .fmea-tab{ white-space:nowrap; }
.fmea-card [data-fmea-falhas] .fmea-table{ min-width:1100px; }
.fmea-card .fmea-oculto{ display:none !important; }
.fmea-card .fmea-tab:focus, .fmea-card .fmea-tab:hover{ background:transparent !important; }
.fmea-card .fmea-tab:focus-visible{ outline:2px solid #1f6fb2; outline-offset:2px; }

/* ---------------------------------------------------------------- V725: FMEA -- abas em cartões e resumo */
.fmea-card .fmea-tabs{ display:flex; gap:8px; border-bottom:0 !important; margin-top:14px; padding-bottom:2px; }
.fmea-card .fmea-tab{ display:inline-flex; align-items:center; gap:8px; padding:8px 12px !important; border:1px solid #d7e3ef !important; border-radius:10px;
  background:#f7faff !important; color:#3d5875; font-size:12.5px; font-weight:600; min-height:40px; border-bottom-width:1px !important; }
.fmea-card .fmea-tab:hover{ border-color:#9db6d6 !important; background:#eef4fc !important; }
.fmea-card .fmea-tab.active{ background:#e6f0fc !important; border-color:#1d5fd1 !important; color:#12315e; box-shadow:inset 0 -3px 0 #1d5fd1; }
.fmea-card .fmea-tab .fmt-ico{ display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:6px; background:#fff; color:#1d5fd1; font-size:12px; border:1px solid #d7e3ef; }
.fmea-card .fmea-tab .fmt-num{ display:inline-flex; align-items:center; min-width:22px; height:20px; padding:0 7px; border-radius:10px; background:#dce8f7; color:#12315e; font-size:11.5px; font-weight:700; justify-content:center; }
.fmea-card .fmea-tab.active .fmt-num{ background:#1d5fd1; color:#fff; }
.fmea-stepbar .fmea-step{ cursor:pointer; transition:border-color .15s, box-shadow .15s; }
.fmea-stepbar .fmea-step:hover{ border-color:#9db6d6; box-shadow:0 2px 10px rgba(18,49,94,.08); }
.fmea-stepbar .fmea-step:focus-visible{ outline:2px solid #1f6fb2; outline-offset:2px; }

.fmea-card .fmea-summary.fmr{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:12px; margin-top:14px; }
.fmr .fmr-card{ border:1px solid #d7e3ef; border-radius:12px; background:#fff; padding:14px 16px; display:flex; flex-direction:column; gap:10px; }
.fmr .fmr-larga{ grid-column:span 2; }
.fmr .fmr-card header{ display:flex; gap:10px; align-items:center; }
.fmr .fmr-card h5{ margin:0; font-size:13.5px; color:#12315e; }
.fmr .fmr-card header small{ display:block; font-size:11.5px; color:#6b7c90; }
.fmr .fmr-ico{ display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:9px; font-size:15px; flex-shrink:0; }
.fmr .fmr-kpis{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.fmr .fmr-kpis > div{ background:#f6f9fd; border-radius:10px; padding:10px 12px; display:flex; flex-direction:column; gap:2px; }
.fmr .fmr-kpis label{ font-size:11px; color:#5b6576; font-weight:600; margin:0; }
.fmr .fmr-kpis strong{ font-size:24px; color:#13254a; line-height:1.15; }
.fmr .fmr-kpis small{ font-size:11px; color:#6b7c90; }
.fmr .fmr-barra{ height:8px; border-radius:6px; background:#edf1f6; overflow:hidden; }
.fmr .fmr-barra i{ display:block; height:100%; border-radius:6px; }
.fmr .fmr-linha{ display:grid; grid-template-columns:130px 1fr 28px 38px; gap:10px; align-items:center; }
.fmr .fmr-rot{ display:flex; gap:8px; align-items:center; }
.fmr .fmr-rot i{ width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.fmr .fmr-rot b{ display:block; font-size:12.5px; color:#1b2433; }
.fmr .fmr-rot small{ display:block; font-size:10.5px; color:#6b7c90; }
.fmr .fmr-linha strong{ font-size:15px; color:#13254a; text-align:right; }
.fmr .fmr-pct{ font-size:11px; color:#6b7c90; text-align:right; }
.fmr .fmr-acoes{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.fmr .fmr-acoes > div{ background:#f6f9fd; border-radius:10px; padding:8px 6px; text-align:center; }
.fmr .fmr-acoes strong{ display:block; font-size:20px; color:#13254a; }
.fmr .fmr-acoes span{ display:block; font-size:10.5px; color:#5b6576; line-height:1.2; }
.fmr .fmr-nota{ font-size:11.5px; color:#6b7c90; margin:0; }
.fmr .fmr-top{ display:grid; grid-template-columns:26px 1fr auto 120px; gap:10px; align-items:center; padding:8px 0; border-top:1px solid #edf1f6; }
.fmr .fmr-top:first-of-type{ border-top:0; }
.fmr .fmr-top b{ display:block; font-size:12.5px; color:#1b2433; }
.fmr .fmr-top small{ display:block; font-size:11px; color:#6b7c90; }
.fmr .fmr-pos{ display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:#13254a; color:#fff; font-size:11.5px; font-weight:700; }
.fmr .fmr-npr{ font-weight:800; font-size:12px; padding:3px 9px; border-radius:8px; white-space:nowrap; }
@media(max-width:1100px){ .fmea-card .fmea-summary.fmr{ grid-template-columns:1fr 1fr; } .fmr .fmr-card:first-child{ grid-column:span 2; } }
@media(max-width:760px){ .fmea-card .fmea-summary.fmr{ grid-template-columns:1fr; } .fmr .fmr-larga, .fmr .fmr-card:first-child{ grid-column:auto; } .fmr .fmr-kpis{ grid-template-columns:repeat(2,1fr); } }
/* V725: grade do resumo -- Resumo (2/3) + Distribuição; Maiores riscos (2/3) + Ações; Falhas na largura toda */
.fmea-card .fmea-summary.fmr{ grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
.fmr .fmr-total{ grid-column:1 / -1; }
.fmr .fmr-total .fmr-acoes{ grid-template-columns:repeat(4,minmax(0,180px)); }
.fmr .fmr-barra > i{ display:block !important; height:8px !important; }
.fmr .fmr-linha .fmr-barra{ min-width:40px; }
@media(max-width:1100px){ .fmea-card .fmea-summary.fmr{ grid-template-columns:1fr 1fr !important; } .fmr .fmr-larga{ grid-column:1 / -1; } }
@media(max-width:760px){ .fmea-card .fmea-summary.fmr{ grid-template-columns:1fr !important; } }


/* V765: FMEA sem barras horizontais na lista de linhas de risco.
   A antiga tabela tinha 15 colunas e forçava rolagem horizontal.
   Agora cada risco é um cartão responsivo, preservando todos os campos. */
.fmea-risco-list{display:grid;grid-template-columns:1fr;gap:10px;margin-top:8px;width:100%;}
.fmea-risco-item{border:1px solid #d7e3ef;border-radius:12px;background:#fff;padding:12px 13px;box-shadow:0 1px 4px rgba(18,49,94,.04);min-width:0;}
.fmea-risco-item[style*="display: none"]{display:none !important;}
.fmea-risco-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding-bottom:10px;border-bottom:1px solid #edf1f6;}
.fmea-risco-id{display:flex;align-items:center;gap:9px;min-width:0;}
.fmea-risco-id>span{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#123f76;color:#fff;font-size:11px;font-weight:800;flex:0 0 28px;}
.fmea-risco-id strong{display:block;color:#143f74;font-size:12.5px;line-height:1.2;}
.fmea-risco-id small{display:block;color:#7a8ca0;font-size:10px;margin-top:2px;}
.fmea-risco-badges{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end;}
.fmea-risco-grid{display:grid;gap:9px;margin-top:10px;}
.fmea-risco-main{grid-template-columns:1.1fr 1fr 1.25fr;}
.fmea-risco-secondary,.fmea-risco-controls{grid-template-columns:1fr 1fr;}
.fmea-risco-grid>div{min-width:0;background:#f7faff;border:1px solid #e4edf6;border-radius:9px;padding:8px 9px;}
.fmea-risco-grid label,.fmea-risco-footer label,.fmea-risco-metrics label{display:block;font-size:9.5px;color:#70839a;font-weight:700;text-transform:none;margin-bottom:4px;}
.fmea-risco-grid p,.fmea-risco-footer p{margin:0;color:#29445f;font-size:11px;line-height:1.35;overflow-wrap:anywhere;}
.fmea-risco-metrics{display:grid;grid-template-columns:repeat(5,minmax(70px,1fr));gap:7px;margin-top:10px;}
.fmea-risco-metrics>div{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:7px 6px;background:#fff;border:1px solid #e2eaf3;border-radius:9px;min-width:0;}
.fmea-risco-metrics strong{font-size:18px;color:#143f74;line-height:1;}
.fmea-risco-footer{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end;margin-top:10px;padding-top:10px;border-top:1px solid #edf1f6;}
.fmea-risco-footer small{display:block;color:#7a8ca0;font-size:9.5px;margin-top:4px;line-height:1.35;overflow-wrap:anywhere;}
.fmea-risco-actions{display:flex;align-items:flex-end;justify-content:flex-end;}
.fmea-especial-tag{display:inline-block;margin-left:5px;padding:2px 6px;border-radius:999px;background:#fff0d5;color:#9a5a00;font-size:9px;font-weight:800;vertical-align:middle;}
@media(max-width:900px){
  .fmea-risco-main{grid-template-columns:1fr 1fr;}
  .fmea-risco-main>div:nth-child(3){grid-column:1 / -1;}
  .fmea-risco-metrics{grid-template-columns:repeat(5,minmax(54px,1fr));}
}
@media(max-width:620px){
  .fmea-risco-main,.fmea-risco-secondary,.fmea-risco-controls{grid-template-columns:1fr;}
  .fmea-risco-metrics{grid-template-columns:repeat(3,minmax(58px,1fr));}
  .fmea-risco-footer{grid-template-columns:1fr;}
  .fmea-risco-actions{justify-content:flex-start;}
}

/* ---------------------------------------------------------------- V732: topo da âncora e menu lateral
   - sem a linha vertical ao lado dos submenus da Gestão Preventiva;
   - campo verde do fornecedor um pouco maior (nome menos cortado), sem estourar a largura;
   - o olho de "somente leitura" fica à esquerda do campo do fornecedor. */
.gp-sidebar-tree{ border-left:0 !important; }
#page-header#page-header .topo-empresa-wrap .topo-empresa{
  width:clamp(300px, 30vw, 440px) !important; max-width:clamp(300px, 30vw, 440px) !important; flex-basis:auto !important;
}
#page-header#page-header .topo-toolbar-left .topo-leitura{ flex-shrink:0; margin-right:2px; }
@media (max-width:1100px){
  #page-header#page-header .topo-empresa-wrap .topo-empresa{ width:260px !important; max-width:260px !important; }
}

/* ---------------------------------------------------------------- V734: PADRÃO DO SISTEMA -- campos numéricos só para digitação
   Sem as setas de aumentar/diminuir em todos os campos numéricos (Chrome, Edge, Safari e Firefox). */
input[type="number"]{ -moz-appearance:textfield; appearance:textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button{ -webkit-appearance:none; appearance:none; margin:0; }
/* V735: vínculos e evidências dos problemas potenciais (FMEA) */
.fp-chip{display:inline-block;margin:0 6px 4px 0;padding:2px 8px;border-radius:9px;background:#f3eefc;color:#5b3a9a;font-size:11.5px;font-weight:600}
.fp-ajuda{display:block;font-size:11px;color:var(--text-muted);margin-top:4px}
.fp-evid{margin-top:8px;padding:10px 12px;border-radius:8px;background:#fbf8ff;border:1px solid #e6dcf5;font-size:12.5px}
.fp-evid p{margin:0 0 6px}

/* ---------------------------------------------------------------- V736: grupo "Comercial" no menu lateral */
.sidebar-grupo-filhos{ margin:2px 0 4px 14px; padding-left:6px; display:flex; flex-direction:column; gap:2px; }
.sidebar-grupo-filhos[hidden]{ display:none !important; }
.sidebar-grupo-filhos .modulo-item .sidebar-nav-label{ font-size:12.5px !important; }
.sidebar-grupo-chevron{ font-size:11px; opacity:.75; }
body.sidebar-recolhida .sidebar-grupo-filhos, .sidebar-recolhida .sidebar-grupo-filhos{ margin-left:0; padding-left:0; }

/* ---------------------------------------------------------------- V737: PADRÃO DO MENU LATERAL
   Todo módulo com submenus mostra a seta à direita: ▸ fechado, ▾ aberto (mesmo formato do Comercial). */
#sidebar .modulo-item .sidebar-grupo-chevron{ display:inline-flex !important; align-items:center; justify-content:flex-end; width:8px; margin-left:2px;
  font-size:10px; line-height:1; opacity:.7; color:inherit; flex-shrink:0; }
#sidebar .modulo-item.active .sidebar-grupo-chevron, #sidebar .modulo-item[aria-expanded="true"] .sidebar-grupo-chevron{ opacity:.95; }
#sidebar.sidebar-recolhida .sidebar-grupo-chevron{ display:none !important; }
#sidebar.sidebar-recolhida .sidebar-grupo-filhos{ margin-left:0; padding-left:0; }
#sidebar .modulo-item{ gap:8px; }
#sidebar .modulo-item .sidebar-nav-label{ letter-spacing:-.1px; }
/* V739: parâmetros afetados no Henkaten */
.hk-params{display:flex;flex-wrap:wrap;gap:4px 14px;border:1px solid var(--border);border-radius:8px;padding:8px;max-height:120px;overflow:auto}
.hk-params label{display:inline-flex;gap:6px;align-items:center;width:auto;margin:0;font-weight:400;font-size:12.5px}
/* V740: formulário do Henkaten -- checkbox alinhado e riscos da mudança */
.hk-check{display:flex !important;align-items:center;gap:8px;width:auto !important;font-size:13px;margin:0}
.hk-check input{width:18px !important;height:18px;margin:0;flex-shrink:0}
.hk-check small{color:var(--text-muted)}
.hk-riscos-box{border:1px solid var(--border);border-radius:10px;padding:10px 12px;background:#fbfcfe}
.hk-riscos-cab{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.hk-riscos-cab h4{margin:0;color:#12315e;font-size:14px}
.hk-risco{display:grid;grid-template-columns:minmax(0,1.6fr) 56px minmax(0,1.3fr) 32px;gap:6px;margin-top:8px}
.hk-risco input{margin:0}
.hk-params label{display:inline-flex !important;flex-direction:row !important;align-items:center;gap:6px;width:auto !important;margin:0 !important;font-weight:400;font-size:12.5px}
.hk-params label input{width:16px !important;height:16px;margin:0 !important;flex:0 0 auto}
.hk-risco{grid-template-columns:56px minmax(0,1fr) 32px !important}
.hk-risco [data-r="descricao"]{grid-column:1 / -1}
.hk-risco [data-r-rem]{padding:0;height:100%}


/* ---------------------------------------------------------------- V743: HENKATEN — correção definitiva do layout da tabela
   O V742 havia aplicado o refinamento em frontend/styles.css, mas a aplicação serve
   frontend/css/styles.css. V743 replica e corrige aqui, eliminando o duplicado de Colunas,
   evitando corte da coluna Ações e impedindo quebra do seletor de paginação. */
.hk-table-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 16px 14px;min-height:72px;box-sizing:border-box}
.hk-table-head-right{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;flex:0 0 auto}
.hk-head-note{display:flex;align-items:center;gap:7px;font-size:11px;color:#54708d;white-space:nowrap}
.hk-head-note b{color:#174f83}
.hk-info-icon{width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:#1477d4;color:#fff;font-weight:800;font-size:13px;flex:0 0 auto}
.hk-table th span{float:right;color:#1a5a91;font-size:11px;opacity:.85}
.hk-table th{padding:11px 10px;background:#dceaf7;vertical-align:middle}
.hk-table td{padding:12px 10px;font-size:11.5px;vertical-align:middle}
.hk-table th:nth-child(1),.hk-table td:nth-child(1){width:8%}
.hk-table th:nth-child(2),.hk-table td:nth-child(2){width:9%}
.hk-table th:nth-child(3),.hk-table td:nth-child(3){width:21%}
.hk-table th:nth-child(4),.hk-table td:nth-child(4){width:12%}
.hk-table th:nth-child(5),.hk-table td:nth-child(5){width:12%}
.hk-table th:nth-child(6),.hk-table td:nth-child(6){width:12%}
.hk-table th:nth-child(7),.hk-table td:nth-child(7){width:11%}
.hk-table th:nth-child(8),.hk-table td:nth-child(8){width:15%;white-space:nowrap}
.hk-actions{display:flex!important;justify-content:center;align-items:center;gap:7px;overflow:visible!important;white-space:nowrap;min-width:0}
.hk-icon-btn{width:36px;height:36px;min-width:36px;padding:0;border:1px solid #c9dced;border-radius:8px;background:#fff;color:#1761a0;font-size:16px;display:grid;place-items:center;cursor:pointer;box-sizing:border-box;flex:0 0 36px}
.hk-icon-btn:hover{background:#f1f7fd;border-color:#9fc1df}
.hk-page{margin-left:auto;display:flex;align-items:center;gap:9px;white-space:nowrap}
.hk-page>span{white-space:nowrap;display:inline-block}
.hk-page select{height:36px;min-width:72px;padding:0 10px;font-size:12px;white-space:nowrap}
.hk-page button,.hk-page b{width:36px;height:36px;display:grid;place-items:center;border:1px solid #d2dfeb;border-radius:8px;background:#fff;color:#7890a7;font-weight:700;box-sizing:border-box;flex:0 0 36px}
.hk-page b{background:#1477d4;border-color:#1477d4;color:#fff}
/* O seletor global vira o único botão de Colunas e fica dentro do cabeçalho do Henkaten. */
.hk-table-head-right .mp-column-toolbar-henkaten{display:flex!important;align-items:center;margin:0!important;padding:0!important;border:0!important;background:transparent!important;min-height:0!important}
.hk-table-head-right .mp-column-toolbar-henkaten .mp-column-picker{position:relative}
.hk-table-head-right .mp-column-toolbar-henkaten .mp-column-picker>button{height:38px;padding:0 13px;border:1px solid #c9dced;border-radius:9px;background:#fff;color:#15558d;font-weight:700;font-size:11px;white-space:nowrap}
@media(max-width:900px){
  .hk-head-note{display:none}
  .hk-table-head-right{gap:0}
  .hk-table-wrap{overflow-x:auto}
  .hk-table{min-width:1040px}
  .hk-footer{flex-direction:row}
  .hk-page{margin-left:auto}
}
@media(max-width:700px){
  .hk-table-head{align-items:flex-start}
  .hk-table-head-right{width:auto}
  .hk-footer{flex-direction:column;align-items:flex-start;gap:10px}
  .hk-page{margin-left:0}
}


/* ================================================================
   V750 — CORREÇÃO DEFINITIVA DO CADASTRO NOVA EMPRESA
   O aplicativo carrega frontend/css/styles.css.
   Esta seção aplica o layout do mockup aprovado ao arquivo efetivamente servido.
   ================================================================ */
.mp-ne-wizard{color:var(--text-primary,#28445f);min-width:0;font-family:Inter,Arial,sans-serif;}
.mp-ne-intro{display:flex!important;gap:12px!important;align-items:center!important;background:linear-gradient(100deg,#eaf4fc,#f4f9fd)!important;border:1px solid #d8e6f4!important;border-radius:11px!important;padding:13px 15px!important;margin-bottom:14px!important;}
.mp-ne-intro-icon{width:38px!important;height:38px!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#dceefd!important;color:#1766b3!important;font-size:21px!important;flex:0 0 auto!important;}
.mp-ne-intro strong{display:block!important;color:#17385f!important;font-size:13px!important;margin-bottom:3px!important;}
.mp-ne-intro span{display:block!important;color:#60748d!important;font-size:10.8px!important;line-height:1.4!important;}
.mp-ne-layout{display:grid!important;grid-template-columns:minmax(170px,190px) minmax(420px,1fr) minmax(250px,285px)!important;gap:14px!important;align-items:start!important;width:100%!important;}
.mp-ne-steps{background:#f7faff!important;border:1px solid #dbe6f2!important;border-radius:11px!important;padding:8px!important;position:sticky!important;top:0!important;display:flex!important;flex-direction:column!important;gap:2px!important;}
.mp-ne-step{width:100%!important;display:grid!important;grid-template-columns:32px 1fr!important;gap:9px!important;text-align:left!important;border:0!important;background:transparent!important;color:#17385f!important;padding:11px 8px!important;border-radius:9px!important;min-height:72px!important;box-shadow:none!important;align-items:start!important;}
.mp-ne-step:hover{background:#edf5fd!important;box-shadow:none!important;}
.mp-ne-step.active{background:#fff3e8!important;box-shadow:inset 3px 0 0 #f58220!important;}
.mp-ne-step-number{width:28px!important;height:28px!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#dbe4ee!important;color:#17385f!important;font-weight:700!important;font-size:11px!important;margin-top:1px!important;}
.mp-ne-step.active .mp-ne-step-number{background:#f58220!important;color:#fff!important;}
.mp-ne-step.done .mp-ne-step-number{background:#18845e!important;color:#fff!important;}
.mp-ne-step strong{display:block!important;font-size:11.5px!important;line-height:1.25!important;margin-bottom:3px!important;}
.mp-ne-step small{display:block!important;font-size:9.2px!important;line-height:1.35!important;color:#71849b!important;font-weight:400!important;}
.mp-ne-main{min-width:0!important;}
.mp-ne-section{background:#fff!important;border:1px solid #d8e3f0!important;border-radius:10px!important;margin-bottom:12px!important;overflow:hidden!important;box-shadow:0 2px 8px rgba(20,55,95,.035)!important;}
.mp-ne-section-head{display:flex!important;align-items:center!important;gap:9px!important;padding:10px 13px!important;background:#edf5fc!important;border-bottom:1px solid #d8e3f0!important;}
.mp-ne-section-head>span{color:#1766b3!important;font-size:17px!important;width:20px!important;text-align:center!important;}
.mp-ne-section-head h3{margin:0!important;color:#17385f!important;font-size:13px!important;font-weight:700!important;}
.mp-ne-section-head small{color:#6a7f97!important;font-size:9px!important;}
.mp-ne-section-head b{color:#d33b35!important;}
.mp-ne-section>.grid,.mp-ne-section>.field,.mp-ne-section>.mp-ne-contact-card,.mp-ne-section>.mp-ne-toggle,.mp-ne-section>.mp-ne-logo-box{margin-left:13px!important;margin-right:13px!important;}
.mp-ne-section>.grid{margin-top:9px!important;margin-bottom:0!important;}
.mp-ne-section>.field{margin-top:9px!important;}
.mp-ne-section>.grid:last-child,.mp-ne-section>.field:last-child{margin-bottom:12px!important;}
.mp-ne-field{min-width:0!important;}
.mp-ne-field label{font-size:10.5px!important;font-weight:600!important;color:#28445f!important;margin-bottom:4px!important;display:block!important;}
.mp-ne-required{color:#d33b35!important;}
.mp-ne-field input,.mp-ne-field select,.mp-ne-field textarea{width:100%!important;box-sizing:border-box!important;min-height:36px!important;border:1px solid #c7d8ea!important;border-radius:7px!important;background:#fff!important;color:#28445f!important;font-size:11px!important;padding:8px 10px!important;outline:none!important;}
.mp-ne-field input:focus,.mp-ne-field select:focus,.mp-ne-field textarea:focus{border-color:#1766b3!important;box-shadow:0 0 0 2px rgba(23,102,179,.08)!important;}
.mp-ne-field textarea{min-height:68px!important;resize:vertical!important;}
.mp-ne-textarea-field{grid-column:1/-1!important;}
.mp-ne-contact-card{border:1px solid #e2e9f1!important;border-radius:8px!important;padding:8px 9px!important;margin-top:9px!important;margin-bottom:0!important;background:#fbfdff!important;}
.mp-ne-contact-title{font-size:10.5px!important;font-weight:700!important;color:#17385f!important;margin-bottom:4px!important;}
.mp-ne-contact-card .grid{margin:0!important;}
.mp-ne-contact-card .field{margin-bottom:0!important;}
.mp-ne-toggle{display:flex!important;align-items:flex-start!important;gap:9px!important;padding:9px 10px!important;margin-top:9px!important;border:1px solid #d8e3f0!important;border-radius:8px!important;background:#f8fbfe!important;cursor:pointer!important;}
.mp-ne-toggle input{width:auto!important;min-height:auto!important;margin-top:3px!important;accent-color:#f58220!important;}
.mp-ne-toggle strong{display:block!important;font-size:10.8px!important;color:#17385f!important;}
.mp-ne-toggle small{display:block!important;color:#71849b!important;font-size:9px!important;line-height:1.35!important;margin-top:2px!important;}
.mp-ne-logo-box{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;border:1px dashed #b9cce0!important;background:#fbfdff!important;border-radius:8px!important;padding:9px 10px!important;margin-top:9px!important;}
.mp-ne-logo-box strong{display:block!important;font-size:10.5px!important;color:#17385f!important;}
.mp-ne-logo-box small{display:block!important;color:#71849b!important;font-size:9px!important;margin-top:2px!important;}
.mp-ne-logo-box input{max-width:230px!important;font-size:10px!important;}
.mp-ne-summary{border:1px solid #d8e3f0!important;border-radius:11px!important;background:#fff!important;box-shadow:0 2px 10px rgba(20,55,95,.05)!important;overflow:hidden!important;position:sticky!important;top:0!important;}
.mp-ne-summary-head{display:flex!important;gap:9px!important;align-items:center!important;padding:12px!important;border-bottom:1px solid #d8e3f0!important;}
.mp-ne-summary-head>span{width:32px!important;height:32px!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#e3f3fb!important;color:#1766b3!important;font-size:16px!important;}
.mp-ne-summary-head strong{display:block!important;font-size:10.5px!important;color:#17385f!important;}
.mp-ne-summary-head small{display:block!important;font-size:8.5px!important;color:#71849b!important;margin-top:2px!important;}
.mp-ne-summary-item{display:flex!important;gap:8px!important;padding:10px 12px!important;border-bottom:1px solid #edf1f5!important;}
.mp-ne-summary-icon{width:28px!important;height:28px!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#edf4fa!important;color:#1766b3!important;font-size:12px!important;flex:0 0 auto!important;}
.mp-ne-summary-item small{display:block!important;font-size:8px!important;color:#71849b!important;margin-bottom:2px!important;}
.mp-ne-summary-item strong{display:block!important;font-size:10.5px!important;color:#17385f!important;line-height:1.25!important;}
.mp-ne-summary-item em{display:block!important;font-size:8.3px!important;color:#71849b!important;font-style:normal!important;margin-top:2px!important;line-height:1.25!important;}
.mp-ne-summary-note{display:flex!important;gap:8px!important;margin:10px!important;background:#eaf4fc!important;border-radius:8px!important;padding:9px!important;}
.mp-ne-summary-note>span{color:#18845e!important;font-size:15px!important;font-weight:700!important;}
.mp-ne-summary-note strong{font-size:9.5px!important;color:#17385f!important;}
.mp-ne-summary-note p{font-size:8.5px!important;color:#60748d!important;line-height:1.35!important;margin:3px 0 0!important;}
.mp-ne-next{margin:0 10px 10px!important;background:#eef8f3!important;border-radius:8px!important;padding:9px!important;color:#28674d!important;}
.mp-ne-next strong{display:block!important;font-size:9.5px!important;margin-bottom:5px!important;}
.mp-ne-next div{font-size:8.5px!important;margin-top:4px!important;color:#355f4e!important;}
.mp-ne-next span{display:inline-flex!important;width:17px!important;height:17px!important;border-radius:50%!important;background:#d8eee3!important;align-items:center!important;justify-content:center!important;font-weight:700!important;margin-right:4px!important;}
.mp-ne-footer{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;border-top:1px solid #d8e3f0!important;background:#fff!important;padding:10px 0 0!important;margin-top:2px!important;position:sticky!important;bottom:0!important;z-index:2!important;}
.mp-ne-footer>div{display:flex!important;gap:7px!important;}
.mp-ne-footer button{min-height:36px!important;padding:0 14px!important;font-size:11px!important;}
.mp-ne-footer .primary{min-width:150px!important;}
.mp-ne-security{display:flex!important;gap:9px!important;align-items:flex-start!important;background:#eaf4fc!important;border:1px solid #d8e6f4!important;border-radius:9px!important;padding:10px 12px!important;margin-bottom:12px!important;}
.mp-ne-security>span{width:24px!important;height:24px!important;border-radius:50%!important;background:#1766b3!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:700!important;flex:0 0 auto!important;}
.mp-ne-security strong{font-size:10.5px!important;color:#17385f!important;}
.mp-ne-security p{font-size:8.8px!important;line-height:1.4!important;color:#60748d!important;margin:3px 0 0!important;}
/* O mockup aprovado é o padrão desktop. Só reduzimos o layout em telas realmente estreitas. */
@media(max-width:760px){.mp-ne-layout{grid-template-columns:150px minmax(0,1fr) 235px!important;gap:8px!important}.mp-ne-summary-head{padding:9px!important}.mp-ne-summary-item{padding:8px!important}.mp-ne-step{padding:9px 6px!important}.mp-ne-step strong{font-size:10.5px!important}.mp-ne-step small{font-size:8.5px!important}}
@media(max-width:600px){.mp-ne-layout{grid-template-columns:1fr!important}.mp-ne-steps{position:static!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:4px!important}.mp-ne-step{grid-template-columns:1fr!important;min-height:66px!important;text-align:center!important;justify-items:center!important;padding:8px 4px!important}.mp-ne-step small{display:none!important}.mp-ne-summary{position:static!important}.mp-ne-footer{position:sticky!important;bottom:0!important}.mp-ne-footer .primary{min-width:120px!important}}

/* V755 — Ambiente Master/DEV + Suporte controlado */
.topo-faixa-suporte{display:flex;align-items:center;gap:10px;padding:8px 18px;background:#fff7e6;border-bottom:1px solid #f1c27d;color:#6d4b00;font-size:12px}.topo-faixa-suporte svg{flex:0 0 auto}.topo-faixa-suporte span{flex:1}.topo-faixa-suporte button{border:1px solid #d18a00;background:#fff;color:#8a5a00;border-radius:7px;padding:5px 10px;font-size:11px;font-weight:700;cursor:pointer}.topo-empresa.master{color:#1e4f91}.topo-empresa.suporte{color:#8a5a00}.support-flow-step{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--border)}.support-flow-step:last-child{border-bottom:none}.support-flow-step b{display:inline-flex;width:24px;height:24px;border-radius:50%;align-items:center;justify-content:center;background:#1e5799;color:#fff;flex:0 0 auto}.support-policy-box{padding:16px;background:#f4f8fc;border:1px solid #d9e6f3;border-radius:10px;font-size:12px;color:var(--text-secondary)}.support-policy-box strong{color:#1f4f8c}.support-info-banner{margin-bottom:14px;padding:12px 14px;background:#eef6ff;border:1px solid #cfe1f6;border-radius:9px;color:#284f79;font-size:12px}.support-check{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid #d9e2ef;border-radius:9px;background:#f9fbfd}.support-check input{margin-top:2px;width:auto}.support-check span{display:flex;flex-direction:column;gap:3px}.support-check small{font-weight:400;color:var(--text-muted)}

/* V759 — Edição completa: salvar sempre disponível e ações não podem desaparecer. */
.mp-ne-footer-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:nowrap!important;min-width:0!important;}
.mp-ne-footer-actions button{white-space:nowrap!important;flex:0 0 auto!important;}
.mp-ne-footer .mp-ne-save-edit{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:150px!important;}
.mp-ne-footer{position:sticky!important;bottom:0!important;background:#fff!important;box-shadow:0 -2px 8px rgba(20,55,95,.06)!important;padding-bottom:8px!important;}
@media(max-width:760px){.mp-ne-footer-actions{flex-wrap:wrap!important}.mp-ne-footer .mp-ne-save-edit{min-width:145px!important}}

/* V758 — Wizard: navegação entre cards sem salvar e rodapé sem sobrepor conteúdo */
.mp-ne-wizard{height:100%;display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important;}
.mp-ne-intro{flex:0 0 auto!important;}
.mp-ne-layout{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;padding-right:2px!important;}
.mp-ne-main{min-width:0!important;min-height:0!important;}
.mp-ne-step{cursor:pointer!important;}
.mp-ne-footer{position:static!important;flex:0 0 auto!important;margin-top:10px!important;padding:10px 0 0!important;}


/* ---------------------------------------------------------------- V766: quadro de linha de risco no padrão visual aprovado.
   Estrutura horizontal compacta, sem rolagem, com leitura executiva e correlação opcional. */
.fmea-risk-board{border:1px solid #d9e4f0;border-radius:14px;background:#fff;box-shadow:0 2px 10px rgba(20,54,95,.06);overflow:hidden;min-width:0;}
.fmea-risk-board-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #e5edf5;background:linear-gradient(90deg,#ffffff 0%,#fbfcff 100%);}
.fmea-risk-board-title{display:flex;align-items:center;gap:9px;min-width:0;}
.fmea-risk-board-chip{width:32px;height:32px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;background:#5b37b7;color:#fff;font-size:17px;flex:0 0 32px;}
.fmea-risk-board-title strong{display:block;font-size:12.5px;letter-spacing:.04em;color:#4d2aa5;}
.fmea-risk-board-title small{display:block;color:#7a8da4;font-size:10px;margin-top:2px;}
.fmea-risk-board-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end;}
.fmea-risk-board-actions .fmea-link{height:32px;}
.fmea-risk-overview{display:grid;grid-template-columns:1.2fr 1.3fr 1.45fr repeat(4,58px) 105px;gap:0;border-bottom:1px solid #e6edf4;align-items:stretch;}
.fmea-risk-overview-field{padding:10px 11px;border-right:1px solid #edf2f7;min-width:0;}
.fmea-risk-overview-field label,.fmea-risk-score label,.fmea-risk-ap label,.fmea-risk-effect label,.fmea-risk-action-highlight label,.fmea-risk-detail-grid label,.fmea-risk-meta-row label{display:block;font-size:9px;font-weight:800;letter-spacing:.02em;color:#7a8da4;margin-bottom:4px;}
.fmea-risk-overview-field strong{display:block;color:#172d4d;font-size:11.5px;line-height:1.25;overflow-wrap:anywhere;}
.fmea-risk-overview-field small{display:block;color:#8798ac;font-size:9.5px;margin-top:2px;}
.fmea-risk-special{display:inline-block;margin-top:4px;padding:2px 6px;border-radius:999px;background:#fff0d5;color:#9a5a00;font-size:8.5px;font-weight:800;}
.fmea-risk-score{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 5px;background:#fbfcfe;border-right:1px solid #edf2f7;min-width:0;}
.fmea-risk-score strong{font-size:18px;color:#203a60;line-height:1;}
.fmea-risk-score-npr{background:#fff7f6;}
.fmea-risk-score-npr strong{color:#c92c31;}
.fmea-risk-ap{display:flex;flex-direction:column;justify-content:center;padding:8px 9px;background:#fff7f7;min-width:0;}
.fmea-risk-ap span{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:8px;background:#fde4e2;color:#c92c31;font-size:10px;font-weight:800;white-space:nowrap;}
.fmea-risk-correlation{padding:10px 12px 12px;background:#fcfbff;border-bottom:1px solid #e7e6f2;}
.fmea-risk-correlation-title{display:flex;align-items:center;gap:8px;color:#4d2aa5;font-size:11.5px;margin-bottom:8px;}
.fmea-risk-correlation-title span{width:26px;height:26px;border-radius:8px;background:#6b44c5;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:15px;}
.fmea-risk-correlation-body{border:1px solid #e1daf6;border-radius:10px;background:#fff;padding:8px;}
.fmea-risk-corr-chips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:8px;}
.fmea-risk-corr-chips span{padding:5px 8px;border-radius:999px;background:#f0f4fb;color:#5f6f84;font-size:9.5px;font-weight:700;}
.fmea-risk-corr-chips .fmea-risk-corr-rule{background:#e5efff;color:#1758aa;}
.fmea-risk-corr-label{font-size:8.5px;font-weight:800;color:#75869a;margin:5px 0 6px;}
.fmea-risk-corr-row{display:grid;grid-template-columns:24px 1.2fr .9fr 1fr 20px 1.2fr;gap:7px;align-items:center;padding:5px 6px;border:1px solid #e2e8f1;border-radius:8px;background:#fbfdff;margin-top:5px;min-width:0;}
.fmea-risk-corr-row>b{width:22px;height:22px;border-radius:50%;background:#5f3fc0;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:9px;}
.fmea-risk-corr-row>strong{font-size:10px;color:#1b2940;overflow-wrap:anywhere;}
.fmea-risk-corr-row>span,.fmea-risk-corr-row>em{font-size:9px;color:#61748c;font-style:normal;overflow-wrap:anywhere;}
.fmea-risk-corr-row>em{padding:4px 6px;border-radius:7px;background:#eaf2ff;color:#1559a8;font-weight:700;text-align:center;}
.fmea-risk-corr-row>i{text-align:center;color:#7d8ea3;font-style:normal;}
.fmea-risk-corr-row>small{font-size:9.5px;color:#445b77;overflow-wrap:anywhere;}
.fmea-risk-effect-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px 12px;border-bottom:1px solid #edf2f7;}
.fmea-risk-effect,.fmea-risk-action-highlight{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;min-width:0;}
.fmea-risk-effect{background:#fff7eb;border:1px solid #ffd39a;}
.fmea-risk-action-highlight{background:#effaf4;border:1px solid #b9e3cb;}
.fmea-risk-effect>span,.fmea-risk-action-highlight>span{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:14px;flex:0 0 30px;}
.fmea-risk-effect>span{background:#fff0d9;color:#dc7b00;}.fmea-risk-action-highlight>span{background:#ddf4e7;color:#198754;}
.fmea-risk-effect strong,.fmea-risk-action-highlight strong{display:block;font-size:11.5px;line-height:1.3;color:#1d3556;overflow-wrap:anywhere;}
.fmea-risk-detail-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:10px 12px 4px;}
.fmea-risk-detail-grid>div{background:#f8fbff;border:1px solid #e1eaf4;border-radius:9px;padding:8px;min-width:0;}
.fmea-risk-detail-grid p,.fmea-risk-meta-row p{margin:0;color:#4e6480;font-size:10px;line-height:1.35;overflow-wrap:anywhere;}
.fmea-risk-meta-row{display:grid;grid-template-columns:1.4fr .9fr .8fr 1.1fr .9fr;gap:8px;padding:4px 12px 12px;}
.fmea-risk-meta-row>div{padding:8px 0 0;min-width:0;}
.fmea-risk-status-cell .fmea-status{display:inline-flex;margin-top:2px;padding:4px 8px;border-radius:999px;background:#fff0d5;color:#9a5a00;font-size:9px;font-weight:800;}
.fmea-risk-status-cell .fmea-status.done{background:#e4f6eb;color:#1f7a48;}
@media(max-width:1050px){
  .fmea-risk-overview{grid-template-columns:1.1fr 1.2fr 1.25fr repeat(4,50px) 95px;}
  .fmea-risk-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .fmea-risk-meta-row{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:780px){
  .fmea-risk-board-head{align-items:flex-start;flex-direction:column;}
  .fmea-risk-board-actions{justify-content:flex-start;}
  .fmea-risk-overview{grid-template-columns:1fr 1fr 1fr 1fr;}
  .fmea-risk-overview-field:nth-child(1),.fmea-risk-overview-field:nth-child(2),.fmea-risk-overview-field:nth-child(3){grid-column:span 2;}
  .fmea-risk-score:nth-last-of-type(-n+2){grid-column:span 1;}
  .fmea-risk-ap{grid-column:span 2;}
  .fmea-risk-effect-row{grid-template-columns:1fr;}
  .fmea-risk-detail-grid{grid-template-columns:1fr 1fr;}
  .fmea-risk-meta-row{grid-template-columns:1fr 1fr;}
  .fmea-risk-corr-row{grid-template-columns:24px 1fr 1fr;}
  .fmea-risk-corr-row>em,.fmea-risk-corr-row>i,.fmea-risk-corr-row>small{grid-column:2 / -1;}
}
@media(max-width:560px){
  .fmea-risk-overview{grid-template-columns:1fr 1fr;}
  .fmea-risk-overview-field:nth-child(1),.fmea-risk-overview-field:nth-child(2),.fmea-risk-overview-field:nth-child(3),.fmea-risk-ap{grid-column:span 2;}
  .fmea-risk-detail-grid,.fmea-risk-meta-row{grid-template-columns:1fr;}
}


/* ---------------------------------------------------------------- V767: rastreabilidade de análise — cliente + OS no tanque.
   Cartão executivo sem rolagem horizontal, espelha o mockup aprovado. */
.rastreio-analise-card{border:1px solid #dbe6f1;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(20,54,95,.06);overflow:hidden;margin:12px 0;min-width:0;}
.rastreio-analise-head{padding:12px 14px;border-bottom:1px solid #e4edf6;background:linear-gradient(90deg,#f9fbff,#fff);}
.rastreio-analise-title{display:flex;align-items:center;gap:10px;min-width:0;}
.rastreio-analise-title a{font-size:18px;font-weight:900;color:#1749a6;text-decoration:none;}
.rastreio-analise-title a:hover{text-decoration:underline;}
.rastreio-analise-title small{display:block;color:#7a8aa0;font-size:10.5px;margin-top:2px;}
.rastreio-analise-icon{width:38px;height:38px;border-radius:10px;background:#e9f2ff;color:#1769d1;display:inline-flex;align-items:center;justify-content:center;font-size:19px;flex:0 0 38px;}
.rastreio-status-badge{margin-left:auto;padding:6px 10px;border-radius:999px;background:#e9f2ff;color:#1758a9;font-size:9px;font-weight:800;text-transform:uppercase;white-space:nowrap;}
.rastreio-section-title{display:flex;align-items:center;gap:7px;padding:9px 12px;background:#e5f0fc;color:#174c88;font-size:12px;font-weight:900;letter-spacing:.02em;}
.rastreio-trace-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #e7eef5;}
.rastreio-trace-item{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border-right:1px solid #edf2f7;min-width:0;}
.rastreio-trace-item:nth-child(4n){border-right:0;}
.rastreio-trace-item>span{width:28px;height:28px;border-radius:8px;background:#edf5ff;color:#1769d1;display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;font-size:13px;}
.rastreio-trace-item label{display:block;font-size:8.5px;font-weight:800;color:#7890ab;margin-bottom:3px;}
.rastreio-trace-item strong{display:block;font-size:10.5px;line-height:1.25;color:#203754;overflow-wrap:anywhere;}
.rastreio-warning{margin:8px 12px 0;padding:7px 10px;border:1px solid #f6c77a;background:#fff7e9;color:#9a5a00;border-radius:8px;font-size:10px;font-weight:700;}
.rastreio-param-table{padding:8px 12px 12px;overflow-x:hidden;}
.rastreio-param-table table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;border:1px solid #dbe5ef;border-radius:10px;overflow:hidden;}
.rastreio-param-table th{background:#e9f3fe;color:#174c88;font-size:9px;font-weight:900;text-transform:uppercase;padding:8px;text-align:left;border-bottom:1px solid #c8d9ea;}
.rastreio-param-table td{padding:8px;border-bottom:1px solid #e9eef4;color:#304a66;font-size:10px;vertical-align:middle;word-break:break-word;}
.rastreio-param-table tr:last-child td{border-bottom:0;}
.rastreio-param-table th:nth-child(1),.rastreio-param-table td:nth-child(1){width:23%;}
.rastreio-param-table th:nth-child(2),.rastreio-param-table td:nth-child(2){width:15%;}
.rastreio-param-table th:nth-child(3),.rastreio-param-table td:nth-child(3){width:21%;}
.rastreio-param-table th:nth-child(4),.rastreio-param-table td:nth-child(4){width:11%;}
.rastreio-param-table th:nth-child(5),.rastreio-param-table td:nth-child(5){width:17%;}
.rastreio-param-table th:nth-child(6),.rastreio-param-table td:nth-child(6){width:13%;text-align:center;}
.rastreio-result{display:inline-flex;align-items:center;justify-content:center;min-width:54px;padding:6px 8px;border-radius:8px;background:#edf4fe;color:#1b5da8;font-size:13px;font-weight:900;}
.rastreio-result.fora{background:#fde8e7;color:#c92c31;}
.rastreio-result.atencao{background:#fff1d9;color:#c07800;}
.rastreio-result.normal{background:#e5f6ec;color:#1f7a48;}
.rastreio-trend-placeholder{display:inline-flex;width:25px;height:20px;border-radius:5px;background:#f2f6fb;color:#9eb0c4;align-items:center;justify-content:center;font-weight:900;}
.rastreio-correc-title{background:#256bb2;color:#fff;}
.rastreio-corrections{padding:8px 12px 12px;display:flex;flex-direction:column;gap:8px;}
.rastreio-correction{display:grid;grid-template-columns:34px 1.4fr 1fr 1fr 1.2fr 1fr 1fr;gap:9px;align-items:center;padding:9px 10px;border:1px solid #d9e5ef;border-left:4px solid #f0a400;border-radius:10px;background:#fbfdff;min-width:0;}
.rastreio-correction.danger{border-left-color:#d93a32;}
.rastreio-corr-flag{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff0d7;color:#c07600;font-weight:900;}
.rastreio-correction.danger .rastreio-corr-flag{background:#fde3e2;color:#c92c31;}
.rastreio-corr-main strong,.rastreio-correction>div>strong{display:block;color:#1e3657;font-size:10.5px;line-height:1.2;overflow-wrap:anywhere;}
.rastreio-corr-main span{display:block;color:#657b94;font-size:9px;margin-top:2px;}
.rastreio-correction label{display:block;color:#7c90a4;font-size:8px;font-weight:800;margin-bottom:2px;}
.rastreio-corr-obs{grid-column:2 / -1;color:#697d91;font-size:9px;padding-top:4px;border-top:1px solid #e8eef4;}
.rastreio-side-trace{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0 10px;}
.rastreio-side-trace>div{padding:8px;border:1px solid #e0e8f2;border-radius:8px;background:#f8fbff;min-width:0;}
.rastreio-side-trace label{display:block;font-size:8px;color:#7a8da4;font-weight:800;margin-bottom:3px;}
.rastreio-side-trace strong{display:block;font-size:10px;color:#203754;overflow-wrap:anywhere;}
@media(max-width:1050px){
  .rastreio-trace-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .rastreio-trace-item:nth-child(4n){border-right:1px solid #edf2f7;}
  .rastreio-trace-item:nth-child(2n){border-right:0;}
  .rastreio-correction{grid-template-columns:34px 1.2fr 1fr 1fr 1fr 1fr;}
  .rastreio-correction>div:nth-child(7){grid-column:2 / -1;}
}
@media(max-width:700px){
  .rastreio-trace-grid{grid-template-columns:1fr;}
  .rastreio-trace-item,.rastreio-trace-item:nth-child(n){border-right:0;border-bottom:1px solid #edf2f7;}
  .rastreio-param-table{overflow-x:visible;}
  .rastreio-param-table table{font-size:9px;}
  .rastreio-param-table th:nth-child(6),.rastreio-param-table td:nth-child(6){display:none;}
  .rastreio-param-table th:nth-child(5),.rastreio-param-table td:nth-child(5){width:20%;}
  .rastreio-correction{grid-template-columns:30px 1fr 1fr;}
  .rastreio-correction>div:nth-child(n+4){grid-column:2 / -1;}
  .rastreio-corr-obs{grid-column:2 / -1;}
  .rastreio-side-trace{grid-template-columns:1fr;}
}


/* V829 — padronização complementar de cabeçalhos: Agenda, Analytics, Henkaten, FMEA, Indicadores e Ocorrências. */
.fmea-standard-header .fmea-header-context{min-width:260px;max-width:360px;padding:8px 12px;border:1px solid #c7d5e5;border-radius:8px;background:#f8fbff;display:flex;flex-direction:column;gap:2px;box-sizing:border-box;}
.fmea-standard-header .fmea-header-context span{font-size:9px;text-transform:uppercase;letter-spacing:.4px;color:#6f8499;font-weight:700;}
.fmea-standard-header .fmea-header-context strong{font-size:12px;color:#123f73;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.fmea-standard-header .fmea-header-context small{font-size:10px;color:#66788c;}
@media(max-width:760px){.fmea-standard-header .fmea-header-context{width:100%;max-width:none;min-width:0}.fmea-standard-header .mp-header-actions{width:100%}}


/* V1009 — Marca da empresa no menu e MasterPlating no cabeçalho superior. */
#sidebar .sidebar-logo-empresa-top {
  display:flex; align-items:center; justify-content:center; min-height:76px;
  padding:10px 8px; margin:2px 0 8px; background:#fff; border:1px solid rgba(188,207,228,.9);
  border-radius:8px; box-shadow:0 2px 8px rgba(13,39,72,.08);
}
#sidebar .sidebar-logo-empresa-top .sidebar-logo-expanded {
  width:100%; max-width:180px; max-height:66px; object-fit:contain;
}
#sidebar .sidebar-logo-empresa-top .sidebar-logo-collapsed {
  display:none; max-width:100%; max-height:40px; object-fit:contain;
}
#sidebar.sidebar-recolhida .sidebar-logo-empresa-top { min-height:48px; padding:5px; background:#fff; }
#sidebar.sidebar-recolhida .sidebar-logo-empresa-top .sidebar-logo-expanded { display:none!important; }
#sidebar.sidebar-recolhida .sidebar-logo-empresa-top .sidebar-logo-collapsed { display:block!important; }
.topo-masterplating-brand { display:flex; align-items:center; justify-content:center; flex:0 0 auto; padding-left:8px; margin-left:2px; }
.topo-masterplating-brand img { display:block; width:112px; max-width:112px; max-height:36px; object-fit:contain; }
#page-header .topo-toolbar-right { gap:10px; }
@media (max-width:1100px) { .topo-masterplating-brand img { width:92px; max-width:92px; max-height:30px; } }
@media (max-width:860px) { .topo-masterplating-brand { display:none; } }
@media (max-width:600px) { #sidebar .sidebar-logo-empresa-top { min-height:58px; } }

/* V1009 — área de upload com pré-visualização persistente no Cadastro Master. */
.mp-ne-logo-manager { margin:10px 13px 14px; padding:13px; border:1px solid #c8d9ea; border-radius:10px; background:linear-gradient(135deg,#fff,#f6faff); }
.mp-ne-logo-manager-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px; }
.mp-ne-logo-manager-head strong { display:block; color:#17385f; font-size:13px; font-weight:800; }
.mp-ne-logo-manager-head small { display:block; margin-top:4px; color:#6d8198; font-size:11px; line-height:1.45; }
.mp-ne-logo-badge { flex:0 0 auto; border-radius:999px; padding:5px 8px; background:#e8f2fc; color:#285d91; font-size:10px; font-weight:800; }
.mp-ne-logo-manager-body { display:grid; grid-template-columns:minmax(220px,.85fr) minmax(240px,1.15fr); gap:12px; }
.mp-ne-logo-upload { min-height:118px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; border:1px dashed #9db8d6; border-radius:8px; background:#fff; cursor:pointer; text-align:center; padding:12px; color:#244e79; }
.mp-ne-logo-upload:hover { border-color:#f58212; background:#fffaf5; }
.mp-ne-logo-upload-icon { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#e9f3ff; color:#1d5e9c; font-size:20px; font-weight:700; }
.mp-ne-logo-upload strong { font-size:12px; }
.mp-ne-logo-upload small { color:#70849b; font-size:10px; }
.mp-ne-logo-upload input { max-width:100%; font-size:10px; margin-top:4px; }
.mp-ne-logo-preview-wrap { display:flex; flex-direction:column; gap:7px; min-width:0; }
.mp-ne-logo-preview-label { color:#526b85; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.4px; }
.mp-ne-logo-preview { display:flex; align-items:center; justify-content:center; min-height:84px; padding:10px; border:1px solid #dbe5ef; border-radius:8px; background:#fff; }
.mp-ne-logo-preview img { display:block; max-width:100%; width:auto; max-height:78px; object-fit:contain; }
.mp-ne-logo-empty { color:#8a9bae; font-size:11px; }
#ne-logo-remove { align-self:flex-start; }
@media(max-width:680px) { .mp-ne-logo-manager-body { grid-template-columns:1fr; } .mp-ne-logo-manager-head { flex-direction:column; } }


/* V1010 — Ajuste de posição das marcas no shell principal. */
#sidebar .sidebar-logo-empresa-top { margin-top: -18px !important; }
#sidebar .sidebar-logo-masterplating-top { margin-top: -18px !important; }
#page-header .topo-masterplating-brand {
  position: absolute !important;
  top: 8px !important;
  right: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 5 !important;
}
#page-header .topo-masterplating-brand img {
  width: 112px !important; max-width: 112px !important; max-height: 34px !important;
}
#page-header .topo-saudacao { padding-right: 145px !important; box-sizing: border-box; }
@media (max-width: 1100px) {
  #page-header .topo-masterplating-brand { right: 12px !important; top: 8px !important; }
  #page-header .topo-masterplating-brand img { width: 92px !important; max-width: 92px !important; max-height: 28px !important; }
  #page-header .topo-saudacao { padding-right: 112px !important; }
}
@media (max-width: 860px) {
  #page-header .topo-masterplating-brand { display: none !important; }
  #page-header .topo-saudacao { padding-right: 0 !important; }
}

/* V1013 — Aumenta ligeiramente o logotipo MasterPlating no cabeçalho, mantendo-o alinhado à saudação. */
#page-header .topo-masterplating-brand {
  top: 6px !important;
  right: 18px !important;
}
#page-header .topo-masterplating-brand img {
  width: 132px !important;
  max-width: 132px !important;
  max-height: 40px !important;
}
#page-header .topo-saudacao { padding-right: 166px !important; }
@media (max-width: 1100px) {
  #page-header .topo-masterplating-brand { right: 12px !important; top: 6px !important; }
  #page-header .topo-masterplating-brand img { width: 102px !important; max-width: 102px !important; max-height: 32px !important; }
  #page-header .topo-saudacao { padding-right: 122px !important; }
}


/* V1014 — logotipo da empresa integrado ao fundo azul-marinho, sem cartão branco. */
#sidebar .sidebar-logo-empresa-top,
#sidebar.sidebar-recolhida .sidebar-logo-empresa-top {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
#sidebar .sidebar-logo-empresa-top .sidebar-logo-expanded,
#sidebar .sidebar-logo-empresa-top .sidebar-logo-collapsed,
#mobile-topbar img {
  background: transparent !important;
}
.mp-ne-logo-preview { background-color:#26334d !important; background-image:linear-gradient(45deg,rgba(255,255,255,.045) 25%,transparent 25%,transparent 75%,rgba(255,255,255,.045) 75%),linear-gradient(45deg,rgba(255,255,255,.045) 25%,transparent 25%,transparent 75%,rgba(255,255,255,.045) 75%) !important; background-position:0 0,8px 8px !important; background-size:16px 16px !important; }


/* V1016 — selo de fornecedor ligeiramente maior, com texto geometricamente centralizado */
#page-header .topo-selo.fornecedor {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 36px !important;
  min-height: 36px !important;
  min-width: 205px !important;
  max-width: 230px !important;
  padding: 0 30px !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}
#page-header .topo-selo.fornecedor > svg {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  flex: 0 0 auto !important;
}
#page-header .topo-selo.fornecedor .topo-selo-label {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: center !important;
  line-height: 1.15 !important;
}
@media (max-width: 1180px) {
  #page-header .topo-selo.fornecedor { min-width: 185px !important; max-width: 205px !important; }
}
@media (max-width: 900px) {
  #page-header .topo-selo.fornecedor { min-width: 0 !important; max-width: 190px !important; padding: 0 10px !important; }
  #page-header .topo-selo.fornecedor > svg { display: none !important; }
}

/* V1017 — busca ligeiramente menor e selo de fornecedor sem corte do rótulo. */
#page-header .topo-busca.larga {
  flex: 0 1 310px !important;
  width: 310px !important;
  min-width: 190px !important;
  max-width: 310px !important;
}
#page-header .topo-toolbar-right {
  max-width: 52% !important;
  overflow: visible !important;
}
#page-header .topo-selos {
  flex: 0 0 auto !important;
  max-width: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
}
#page-header .topo-selo.fornecedor {
  flex: 0 0 auto !important;
  min-width: 215px !important;
  width: 215px !important;
  max-width: 235px !important;
  padding-left: 32px !important;
  padding-right: 12px !important;
  overflow: visible !important;
}
#page-header .topo-selo.fornecedor .topo-selo-label {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  text-align: center !important;
}
@media (max-width: 1100px) {
  #page-header .topo-busca.larga { flex-basis: 260px !important; width: 260px !important; max-width: 260px !important; }
  #page-header .topo-selo.fornecedor { width: 205px !important; min-width: 205px !important; }
  #page-header .topo-toolbar-right { max-width: 54% !important; }
}
@media (max-width: 900px) {
  #page-header .topo-busca.larga { flex-basis: 205px !important; width: 205px !important; max-width: 205px !important; }
  #page-header .topo-selo.fornecedor { width: auto !important; min-width: 180px !important; max-width: 195px !important; padding: 0 10px !important; }
  #page-header .topo-selo.fornecedor > svg { display: none !important; }
}
@media (max-width: 760px) {
  #page-header .topo-selo.fornecedor { min-width: 34px !important; width: 34px !important; max-width: 34px !important; padding: 0 !important; }
  #page-header .topo-selo.fornecedor .topo-selo-label { display: none !important; }
}


/* V1031 — Catálogo de reagentes: filtros e tabela compactos, ações alinhadas; colunas fixas. */
.mp-reagentes-filter-card{padding:12px 14px;margin-bottom:10px}
.mp-reagentes-filter-grid{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;align-items:end;gap:12px}
.mp-reagentes-filter-grid .field{margin:0;min-width:0}
.mp-reagentes-filter-grid .field label{display:block;margin-bottom:5px;font-size:11px;font-weight:700;color:var(--text-muted,#5d7690)}
.mp-reagentes-filter-grid .field input,.mp-reagentes-filter-grid .field select{width:100%;height:34px;min-height:34px;box-sizing:border-box}
.mp-reagentes-filter-action{display:flex;align-items:flex-end;justify-content:flex-end;white-space:nowrap}
.mp-reagentes-filter-action button{height:34px;min-height:34px;padding:0 13px;border-radius:8px;font-size:12px;font-weight:700}
.mp-reagentes-table-head{padding:10px 14px!important;min-height:52px}
.mp-reagentes-table-head h3{font-size:13px!important;letter-spacing:.01em}
.mp-reagentes-table-head p{font-size:11px!important}
.mp-reagentes-table{min-width:940px!important;font-size:11.5px!important}
.mp-reagentes-table thead th{padding:8px 9px!important;font-size:10px!important}
.mp-reagentes-table tbody td{padding:7px 9px!important}
.mp-reagente-nome{font-size:12px!important}
.mp-reagente-sub{font-size:10px!important}
.mp-reagentes-actions-cell button{padding:4px 7px!important;min-height:27px;font-size:10.5px!important}
.mp-reagentes-table-card .mp-column-toolbar{display:none!important}
@media(max-width:760px){.mp-reagentes-filter-grid{grid-template-columns:1fr 1fr}.mp-reagentes-filter-action{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:520px){.mp-reagentes-filter-grid{grid-template-columns:1fr}.mp-reagentes-filter-action{grid-column:auto;justify-content:stretch}.mp-reagentes-filter-action button{width:100%}}


/* V1032 — Formulário de reagentes: seções claras, campos consistentes e ações fixas. */
.mp-reagente-form{display:flex;flex-direction:column;gap:12px;padding:2px 1px 10px}
.mp-reagente-section{border:1px solid var(--border,#d7e2ef);border-radius:10px;padding:12px 14px;background:var(--surface,#fff);min-width:0}
.mp-reagente-section-title{display:flex;align-items:center;gap:9px;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #e6edf5}
.mp-reagente-section-title>span{display:flex;align-items:center;justify-content:center;width:25px;height:25px;flex:0 0 25px;border-radius:8px;background:#eaf2fb;color:#1766b3;font-size:12px;font-weight:800}
.mp-reagente-section-title strong{display:block;color:var(--heading-blue,#17395f);font-size:13px;line-height:1.3}
.mp-reagente-section-title small{display:block;color:var(--text-muted,#71849b);font-size:10.5px;margin-top:2px;line-height:1.35}
.mp-reagente-form .field{margin:0 0 10px;min-width:0}
.mp-reagente-form .field:last-child{margin-bottom:0}
.mp-reagente-form .field label{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:5px;color:#526b86;font-size:11.5px;font-weight:700;line-height:1.35}
.mp-reagente-form .field input:not([type=checkbox]),.mp-reagente-form .field select,.mp-reagente-form .field textarea{width:100%;box-sizing:border-box;min-height:38px;border:1px solid #c9d8ea;border-radius:8px;padding:8px 10px;background:#fff;color:#183653;font:inherit;font-size:12.5px;transition:border-color .15s,box-shadow .15s}
.mp-reagente-form .field textarea{min-height:72px;resize:vertical}
.mp-reagente-form .field input:focus,.mp-reagente-form .field select:focus,.mp-reagente-form .field textarea:focus{outline:none;border-color:#2875cb;box-shadow:0 0 0 3px rgba(40,117,203,.12)}
.mp-reagente-form .grid.grid-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.mp-reagente-form .grid.grid-2 .field{margin-bottom:10px}
.mp-required{padding:2px 6px;border-radius:5px;background:#fff0e5;color:#b95b08;font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.02em}
.mp-reagente-form .mp-reagente-active{display:flex!important;align-items:center;gap:9px!important;padding:9px 10px;border-radius:8px;background:#f4f8fc;border:1px solid #e0eaf4;cursor:pointer}
.mp-reagente-active input[type=checkbox]{width:16px;height:16px;margin:0;flex:0 0 auto}
.mp-reagente-active span strong{display:block;color:#17395f;font-size:12px}
.mp-reagente-active span small{display:block;color:#71849b;font-size:10.5px;font-weight:400;margin-top:2px}
.mp-reagente-form-actions{position:sticky;bottom:0;z-index:2;display:flex;justify-content:flex-end;gap:8px;padding:10px 0 2px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 24%)}
.mp-reagente-form-actions button{min-height:36px;padding:0 16px;border-radius:8px;font-size:12px;font-weight:700}
@media(max-width:600px){.mp-reagente-section{padding:10px}.mp-reagente-form .grid.grid-2{grid-template-columns:1fr;gap:0}.mp-reagente-form-actions{padding-top:12px}.mp-reagente-form-actions button{flex:1}}


/* V1033 — Corrige corte dos filtros do catálogo de reagentes. */
.mp-reagentes-filter-card{width:100%;max-width:100%;box-sizing:border-box;overflow:visible!important;padding:12px 14px!important}
.mp-reagentes-filter-grid{width:100%;max-width:100%;box-sizing:border-box;grid-template-columns:minmax(0,1fr) minmax(0,1fr) max-content!important;gap:12px!important;align-items:end!important}
.mp-reagentes-filter-grid>.field{min-width:0!important;width:100%;box-sizing:border-box}
.mp-reagentes-filter-grid .field input,.mp-reagentes-filter-grid .field select{display:block;width:100%!important;max-width:100%;min-width:0;box-sizing:border-box;height:36px!important;min-height:36px!important;line-height:normal!important;padding:7px 10px!important;vertical-align:middle}
.mp-reagentes-filter-grid .field select{padding-right:30px!important;text-overflow:ellipsis;white-space:nowrap}
.mp-reagentes-filter-action{min-width:max-content;max-width:100%;align-self:end;box-sizing:border-box}
.mp-reagentes-filter-action button{box-sizing:border-box;max-width:100%;white-space:nowrap;height:36px!important;min-height:36px!important;padding:0 12px!important}
@media(max-width:900px){.mp-reagentes-filter-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.mp-reagentes-filter-action{grid-column:1/-1;justify-self:end}}
@media(max-width:560px){.mp-reagentes-filter-grid{grid-template-columns:minmax(0,1fr)!important}.mp-reagentes-filter-action{grid-column:auto;justify-self:stretch}.mp-reagentes-filter-action button{width:100%;justify-content:center}}


/* V1039 — Rastreabilidade: análises em linhas compactas com expansão local */
.rastreio-analise-collapsible{margin:8px 0!important;overflow:hidden;border:1px solid #d7e3f1;border-radius:10px;background:#fff}
.rastreio-analise-collapsible .rastreio-analise-head{margin:0!important;padding:11px 14px!important;background:#fff;border:0!important}
.rastreio-analise-collapsible .rastreio-analise-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap;width:100%;min-width:0}
.rastreio-analise-summary-main{display:flex;flex-direction:column;gap:3px;min-width:112px}
.rastreio-analise-summary-main strong{font-size:13px;font-weight:800;color:#173d68}
.rastreio-analise-summary-main small{font-size:10px;color:#6d8199}
.rastreio-analise-collapsible .rastreio-status-badge{margin-left:0;white-space:nowrap}
.rastreio-summary-client,.rastreio-summary-tank,.rastreio-summary-count{font-size:11px;color:#4e6681;padding:5px 8px;background:#f4f7fb;border-radius:6px;overflow-wrap:anywhere}
.rastreio-summary-client{font-weight:700;color:#25496f}
.rastreio-summary-count{white-space:nowrap}
.rastreio-view-toggle{margin-left:auto;display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid #b9d0eb;border-radius:7px;background:#f7fbff;color:#155da8;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}
.rastreio-view-toggle:hover,.rastreio-analise-collapsible.is-expanded .rastreio-view-toggle{background:#eaf3ff;border-color:#78a9df}
.rastreio-view-toggle span{font-size:14px;line-height:1}
.rastreio-analise-details[hidden]{display:none!important}
.rastreio-analise-details{padding:0 12px 12px;border-top:1px solid #e7edf5}
.rastreio-analise-details .rastreio-section-title:first-child{margin-top:10px}
.rastreio-analise-collapsible.is-expanded{border-color:#a9c9ec;box-shadow:0 3px 10px rgba(24,70,120,.06)}
@media(max-width:760px){.rastreio-analise-collapsible .rastreio-analise-title{align-items:flex-start}.rastreio-summary-client,.rastreio-summary-tank{width:calc(50% - 8px)}.rastreio-view-toggle{margin-left:auto}.rastreio-analise-details{padding:0 8px 9px}}


/* V1041 — Rastreabilidade: resumo da OS padronizado com cabeçalho e metadados do sistema. */
.rastreio-os-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px!important;padding:16px 18px!important;position:relative;overflow:hidden;border:1px solid #d5e2f1!important;border-radius:12px!important;background:linear-gradient(105deg,#fff 0%,#fbfdff 72%,#f2f7fd 100%)!important;box-shadow:0 3px 12px rgba(25,58,95,.055)!important;min-width:0}
.rastreio-os-summary:before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:4px;background:#ff8615;border-radius:0 3px 3px 0}
.rastreio-os-summary-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:10px;padding-left:3px}
.rastreio-os-heading{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.rastreio-os-kicker{font-size:9px;font-weight:800;letter-spacing:.08em;color:#6d829b}
.rastreio-os-heading h2{margin:0!important;font-size:19px!important;line-height:1.2;color:#173d68;font-weight:800}
.rastreio-os-meta{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px 18px;min-width:0}
.rastreio-os-meta>span{display:flex;flex-direction:column;gap:2px;min-width:0;max-width:100%}
.rastreio-os-meta small{font-size:10px;line-height:1.2;color:#7488a0}
.rastreio-os-meta strong{font-size:12px;line-height:1.35;color:#294968;font-weight:700;overflow-wrap:anywhere}
.rastreio-os-meta .rastreio-os-piece{flex:1 1 250px}
.rastreio-os-meta .rastreio-os-status{display:inline-flex;align-self:flex-start;padding:3px 9px;border-radius:999px;background:#e6f5ec;color:#17764a;font-size:10px;text-transform:capitalize}
.rastreio-os-export{flex:0 0 auto;display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 13px!important;border:1px solid #b9d0eb!important;border-radius:8px!important;background:#fff!important;color:#155da8!important;font-weight:700!important;white-space:nowrap;box-shadow:none!important}
.rastreio-os-export:hover{background:#edf5ff!important;border-color:#7faadd!important}
.rastreio-os-export span{font-size:14px}
@media(max-width:760px){.rastreio-os-summary{align-items:stretch;flex-direction:column;gap:12px;padding:14px!important}.rastreio-os-meta{gap:9px 14px}.rastreio-os-meta .rastreio-os-piece{flex-basis:100%}.rastreio-os-export{align-self:flex-start}}


/* V1042 — Rastreabilidade: linhas de análise no padrão visual MasterPlating. */
.rastreio-analise-collapsible{
  margin:8px 0;
  border:1px solid #d4e0ef;
  border-radius:10px;
  background:#fff;
  box-shadow:0 2px 7px rgba(22,52,89,.045);
  overflow:hidden;
  transition:border-color .16s ease,box-shadow .16s ease;
}
.rastreio-analise-collapsible .rastreio-analise-head{
  padding:0;
  border:0;
  background:#fff;
}
.rastreio-analise-collapsible .rastreio-analise-title{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:62px;
  padding:10px 12px;
}
.rastreio-analise-collapsible .rastreio-analise-icon{
  width:34px;height:34px;flex:0 0 34px;
  border-radius:9px;
  background:#edf4fc;
  color:#1c67ad;
  font-size:17px;
}
.rastreio-analise-summary-main{display:flex;flex-direction:column;gap:3px;min-width:112px;flex:0 0 auto}
.rastreio-analise-summary-main strong{font-size:13px;font-weight:800;color:#17365b;line-height:1.25}
.rastreio-analise-summary-main small{font-size:10.5px;color:#70839b;line-height:1.3}
.rastreio-analise-collapsible .rastreio-status-badge{
  margin:0;padding:5px 9px;border-radius:6px;
  background:#fff2e5;color:#a65308;border:1px solid #f7d4b1;
  font-size:10px;font-weight:800;letter-spacing:.01em;
}
.rastreio-summary-client,.rastreio-summary-tank,.rastreio-summary-count{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:28px;padding:5px 9px;border-radius:6px;
  background:#f3f6fa;border:1px solid #e5ebf3;
  color:#294765;font-size:11px;line-height:1.25;
}
.rastreio-summary-client{font-weight:700}
.rastreio-summary-tank{color:#315777}
.rastreio-summary-count{white-space:nowrap;color:#526b85}
.rastreio-view-toggle{
  flex:0 0 auto;margin-left:auto;min-width:90px;min-height:32px;
  justify-content:center;padding:6px 10px;
  border:1px solid #c8d7e9;border-radius:7px;
  background:#fff;color:#185da8;font-size:11px;font-weight:700;
}
.rastreio-view-toggle:hover,.rastreio-analise-collapsible.is-expanded .rastreio-view-toggle{
  background:#edf5ff;border-color:#91b8e5;color:#124a86;
}
.rastreio-analise-collapsible.is-expanded{
  border-color:#f28a26;
  box-shadow:0 3px 10px rgba(24,70,120,.07);
}
.rastreio-analise-collapsible.is-expanded .rastreio-analise-head{
  border-left:3px solid #f58220;
}
.rastreio-analise-details{background:#fff}
@media(max-width:1000px){
  .rastreio-analise-collapsible .rastreio-analise-title{flex-wrap:wrap;gap:7px;padding:10px}
  .rastreio-analise-summary-main{min-width:130px}
  .rastreio-view-toggle{margin-left:auto}
}
@media(max-width:600px){
  .rastreio-analise-collapsible .rastreio-analise-title{align-items:center}
  .rastreio-analise-summary-main{flex:1 1 calc(100% - 50px)}
  .rastreio-summary-client,.rastreio-summary-tank,.rastreio-summary-count{max-width:100%;white-space:normal;justify-content:flex-start}
  .rastreio-view-toggle{width:100%;margin-left:0}
}


/* V1043 — Henkaten: tabela legível, colunas equilibradas e sem seletor redundante. */
.hk-table-head{gap:12px;padding:13px 16px;min-height:60px}
.hk-table-head-right{display:none!important}
.hk-table-wrap{overflow-x:auto!important}
.hk-table{width:100%;min-width:980px;table-layout:fixed}
.hk-table th,.hk-table td{box-sizing:border-box}
.hk-table th{padding:11px 10px;font-size:10.5px;white-space:normal;line-height:1.25}
.hk-table td{padding:12px 10px;font-size:11.5px;line-height:1.4;overflow-wrap:anywhere;vertical-align:middle}
.hk-table th:nth-child(1),.hk-table td:nth-child(1){width:9.5%;white-space:nowrap}
.hk-table th:nth-child(2),.hk-table td:nth-child(2){width:9%}
.hk-table th:nth-child(3),.hk-table td:nth-child(3){width:19%}
.hk-table th:nth-child(4),.hk-table td:nth-child(4){width:15%}
.hk-table th:nth-child(5),.hk-table td:nth-child(5){width:12%}
.hk-table th:nth-child(6),.hk-table td:nth-child(6){width:13%}
.hk-table th:nth-child(7),.hk-table td:nth-child(7){width:11%}
.hk-table th:nth-child(8),.hk-table td:nth-child(8){width:11.5%;white-space:nowrap}
.hk-table td:nth-child(3) strong{display:block;font-weight:700;line-height:1.45}
.hk-actions{gap:6px;justify-content:flex-start}
.hk-icon-btn{width:32px;height:32px;min-width:32px;flex-basis:32px;border-radius:8px}
.hk-footer{gap:12px;flex-wrap:wrap}
@media(max-width:700px){.hk-table-head{padding:12px}.hk-table{min-width:980px}.hk-footer{align-items:flex-start}}

/* V1044 — Henkaten: formulário lateral mais largo para evitar rolagem horizontal. */
#side-panel.hk-panel-wide{width:min(900px,96vw)}
@media(max-width:760px){#side-panel.hk-panel-wide{width:96vw;max-width:96vw}.hk-risco{grid-template-columns:minmax(0,1fr) 52px!important}.hk-risco [data-r="contencao"]{grid-column:1/-1}.hk-risco [data-r-rem]{grid-column:2;grid-row:1}}


/* V1047 — Henkaten: largura de 1100px aplicada diretamente e responsiva. */
#side-panel.hk-panel-wide{width:min(1100px,96vw)!important;max-width:96vw}
#side-panel.hk-panel-wide .side-panel-body{min-width:0;overflow-x:hidden}
#side-panel.hk-panel-wide .hk-riscos-box{min-width:0}
#side-panel.hk-panel-wide .hk-risco{grid-template-columns:minmax(0,1.2fr) 64px minmax(0,1fr) 36px!important;min-width:0}
#side-panel.hk-panel-wide .hk-risco input{min-width:0;width:100%;box-sizing:border-box}
#side-panel.hk-panel-wide .hk-risco [data-r="descricao"]{grid-column:auto}
#side-panel.hk-panel-wide .hk-risco [data-r-rem]{grid-column:auto;grid-row:auto}
@media(max-width:760px){
  #side-panel.hk-panel-wide{width:96vw!important;max-width:96vw}
  #side-panel.hk-panel-wide .hk-risco{grid-template-columns:minmax(0,1fr) 56px 36px!important}
  #side-panel.hk-panel-wide .hk-risco [data-r="descricao"]{grid-column:1/-1}
  #side-panel.hk-panel-wide .hk-risco [data-r="contencao"]{grid-column:1/-1}
  #side-panel.hk-panel-wide .hk-risco [data-r-rem]{grid-column:3;grid-row:2}
}


/* V1047 — Regra final do painel de edição Henkaten: largura ampla e sem rolagem horizontal. */
#side-panel.hk-panel-wide{width:min(1100px,96vw)!important;max-width:96vw!important}
#side-panel.hk-panel-wide .side-panel-body{min-width:0;overflow-x:hidden}
@media(max-width:760px){#side-panel.hk-panel-wide{width:96vw!important;max-width:96vw!important}}


/* V1090 — Dashboard Resumo do FMEA: hierarquia visual e grade equilibrada no padrão MasterPlating. */
.fmea-card .fmea-summary.fmr{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(300px,1fr)!important;gap:12px!important;margin-top:14px!important;align-items:stretch}
.fmr .fmr-card{min-width:0;border:1px solid #d4e2f2;border-radius:13px;background:#fff;padding:14px 15px;box-shadow:0 2px 8px rgba(19,55,95,.035);gap:11px}
.fmr .fmr-card:nth-child(1),.fmr .fmr-card:nth-child(3){grid-column:1;}
.fmr .fmr-card:nth-child(2),.fmr .fmr-card:nth-child(4){grid-column:2;}
.fmr .fmr-card:nth-child(5),.fmr .fmr-total{grid-column:1/-1!important;}
.fmr .fmr-card header{gap:10px;align-items:center;padding-bottom:2px}
.fmr .fmr-card h5{font-size:14px;font-weight:800;line-height:1.25;color:#12315e;letter-spacing:-.01em}
.fmr .fmr-card header small{font-size:11.5px;line-height:1.4;color:#6b7f99;margin-top:2px}
.fmr .fmr-ico{width:34px;height:34px;border-radius:10px;font-size:16px}
.fmr .fmr-kpis{gap:8px}
.fmr .fmr-kpis>div{background:#f4f8fd;border:1px solid #edf3fa;border-radius:10px;padding:10px 11px;min-width:0}
.fmr .fmr-kpis label{font-size:10.5px;line-height:1.35;color:#526b89}
.fmr .fmr-kpis strong{font-size:25px;letter-spacing:-.025em;color:#132f59}
.fmr .fmr-kpis small{font-size:10.5px;line-height:1.35;overflow-wrap:anywhere}
.fmr .fmr-linha{grid-template-columns:minmax(105px,1.1fr) minmax(40px,1fr) 22px 34px;gap:8px}
.fmr .fmr-rot b{font-size:12px;color:#17365f}
.fmr .fmr-rot small{font-size:10px}
.fmr .fmr-barra{height:8px;background:#eaf0f7}
.fmr .fmr-top{grid-template-columns:28px minmax(0,1fr) auto minmax(78px,105px);gap:9px;padding:10px 0;border-color:#e7eef7}
.fmr .fmr-top b{font-size:12.5px;line-height:1.35;color:#15345d}
.fmr .fmr-top small{font-size:10.5px;line-height:1.4;overflow-wrap:anywhere}
.fmr .fmr-pos{width:26px;height:26px;background:#17365f}
.fmr .fmr-npr{font-size:12px;padding:5px 9px;border:1px solid rgba(180,35,24,.08)}
.fmr .fmr-acoes{gap:7px}
.fmr .fmr-acoes>div{background:#f4f8fd;border:1px solid #edf3fa;border-radius:10px;padding:9px 5px;min-width:0}
.fmr .fmr-acoes strong{font-size:21px;line-height:1.2}
.fmr .fmr-acoes span{font-size:10px;line-height:1.3;overflow-wrap:anywhere}
.fmr .fmr-total .fmr-acoes{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.fmr .fmr-total .fmr-acoes>div{padding:10px 8px}
.fmr .fmr-total .fmr-acoes strong{font-size:23px;color:#15345d}
.fmr .fmr-nota{font-size:11px;line-height:1.45}
@media(max-width:1100px){.fmea-card .fmea-summary.fmr{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.fmr .fmr-card:nth-child(1),.fmr .fmr-card:nth-child(3){grid-column:1}.fmr .fmr-card:nth-child(2),.fmr .fmr-card:nth-child(4){grid-column:2}.fmr .fmr-card:nth-child(5){grid-column:1/-1!important}}
@media(max-width:760px){.fmea-card .fmea-summary.fmr{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}.fmr .fmr-card:nth-child(n){grid-column:1/-1!important}.fmr .fmr-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.fmr .fmr-linha{grid-template-columns:minmax(95px,1fr) minmax(36px,1fr) 22px 30px;gap:6px}.fmr .fmr-top{grid-template-columns:26px minmax(0,1fr) auto;gap:7px}.fmr .fmr-top>small{grid-column:2/-1}.fmr .fmr-total .fmr-acoes{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* V1091 — Ajuste efetivo do dashboard Resumo do FMEA: leitura ampliada e melhor aproveitamento do espaço. */
.fmea-card .fmea-summary.fmr{
  width:100%!important; max-width:none!important; gap:14px!important;
  margin-top:16px!important; align-items:stretch!important;
}
.fmr .fmr-card{
  padding:17px 18px!important; gap:13px!important; border-radius:14px!important;
  border-color:#d2e1f2!important; box-shadow:0 2px 7px rgba(18,49,94,.045)!important;
}
.fmr .fmr-card header{gap:12px!important}
.fmr .fmr-card h5{font-size:15.5px!important;line-height:1.3!important;font-weight:800!important}
.fmr .fmr-card header small{font-size:12px!important;line-height:1.45!important}
.fmr .fmr-ico{width:38px!important;height:38px!important;border-radius:11px!important;font-size:17px!important}
.fmr .fmr-kpis{gap:10px!important}
.fmr .fmr-kpis>div{padding:12px 13px!important;gap:4px!important;border-radius:11px!important}
.fmr .fmr-kpis label{font-size:11.5px!important;line-height:1.35!important}
.fmr .fmr-kpis strong{font-size:29px!important;line-height:1.15!important}
.fmr .fmr-kpis small{font-size:11.5px!important;line-height:1.4!important}
.fmr .fmr-barra{height:9px!important}
.fmr .fmr-barra>i{height:100%!important}
.fmr .fmr-linha{grid-template-columns:minmax(120px,1.15fr) minmax(55px,1fr) 26px 42px!important;gap:10px!important}
.fmr .fmr-rot b{font-size:13.5px!important;line-height:1.3!important}
.fmr .fmr-rot small{font-size:11px!important;line-height:1.35!important}
.fmr .fmr-linha strong{font-size:16px!important}
.fmr .fmr-pct{font-size:12px!important}
.fmr .fmr-top{grid-template-columns:30px minmax(0,1fr) auto minmax(90px,120px)!important;gap:12px!important;padding:12px 0!important}
.fmr .fmr-top b{font-size:14px!important;line-height:1.35!important}
.fmr .fmr-top small{font-size:11.5px!important;line-height:1.4!important}
.fmr .fmr-pos{width:29px!important;height:29px!important;font-size:12.5px!important}
.fmr .fmr-npr{font-size:13px!important;padding:6px 10px!important}
.fmr .fmr-acoes{gap:8px!important}
.fmr .fmr-acoes>div{padding:11px 7px!important;border-radius:11px!important}
.fmr .fmr-acoes strong{font-size:24px!important;line-height:1.2!important}
.fmr .fmr-acoes span{font-size:11px!important;line-height:1.35!important}
.fmr .fmr-total .fmr-acoes{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
.fmr .fmr-total .fmr-acoes>div{padding:12px 9px!important}
.fmr .fmr-total .fmr-acoes strong{font-size:27px!important}
.fmr .fmr-nota{font-size:12px!important;line-height:1.5!important}
@media(max-width:760px){
 .fmr .fmr-card{padding:13px!important}
 .fmr .fmr-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .fmr .fmr-kpis strong{font-size:25px!important}
 .fmr .fmr-linha{grid-template-columns:minmax(90px,1fr) minmax(35px,.8fr) 22px 30px!important;gap:6px!important}
 .fmr .fmr-top{grid-template-columns:27px minmax(0,1fr) auto!important;gap:8px!important}
 .fmr .fmr-top>small{grid-column:2/-1!important}
}


/* V1092 — Cabeçalho documental do FMEA: código, revisão, processo, status e aprovação. */
.fmea-card .fmea-card-head.fmea-doc-header{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;
  padding:16px 16px 14px!important;margin:-1px -1px 0!important;position:relative;
  background:linear-gradient(105deg,#fff 0%,#f8fbff 58%,#f2f7fd 100%)!important;
  border:0!important;border-bottom:1px solid #dce7f3!important;border-radius:13px 13px 0 0!important;
  box-shadow:none!important;
}
.fmea-card .fmea-doc-heading{min-width:0;flex:1 1 auto;}
.fmea-card .fmea-doc-titleline{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0;}
.fmea-card .fmea-doc-accent{display:block;width:3px;height:34px;flex:0 0 3px;background:#f58220;border-radius:3px;margin-right:3px;}
.fmea-card .fmea-doc-titleline .fmea-code{font-size:20px!important;line-height:1.2!important;font-weight:800!important;letter-spacing:-.35px;color:#12315e!important;}
.fmea-card .fmea-doc-titleline .fmea-code small{font-size:12px!important;font-weight:500!important;color:#647b96!important;letter-spacing:0;}
.fmea-card .fmea-doc-titleline .fmea-product{font-size:12.5px!important;line-height:1.4!important;color:#42658d!important;margin-left:0!important;overflow-wrap:anywhere;}
.fmea-card .fmea-doc-titleline .badge{display:inline-flex;align-items:center;min-height:22px;padding:3px 10px;border:1px solid #d6e1ed;border-radius:999px;font-size:10.5px;font-weight:700;}
.fmea-card .fmea-doc-meta{display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap;margin:7px 0 0 9px!important;font-size:11px!important;line-height:1.4!important;color:#667b92!important;}
.fmea-card .fmea-doc-meta span{white-space:normal;}
.fmea-card .fmea-doc-meta b{font-weight:700;color:#536b85;}
.fmea-card .fmea-doc-meta .fmea-doc-approval{color:#536b85;padding-left:10px;border-left:1px solid #d6e1ed;}
.fmea-card .fmea-doc-actions{justify-content:flex-end;align-self:flex-start;flex:0 0 auto;padding-top:2px;}
.fmea-card .fmea-doc-actions .fmea-link{font-size:11px;padding:8px 11px;border-color:#cbdced;background:#fff;color:#145da8;}
.fmea-card .fmea-doc-actions .fmea-link:hover{background:#edf5ff;border-color:#8eb6e4;}
@media(max-width:900px){.fmea-card .fmea-card-head.fmea-doc-header{align-items:flex-start!important;flex-direction:column;gap:12px!important}.fmea-card .fmea-doc-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.fmea-card .fmea-doc-titleline .fmea-code{font-size:18px!important}}
@media(max-width:560px){.fmea-card .fmea-card-head.fmea-doc-header{padding:13px 11px 12px!important}.fmea-card .fmea-doc-meta{margin-left:6px!important;gap:5px 9px}.fmea-card .fmea-doc-meta .fmea-doc-approval{padding-left:0;border-left:0}.fmea-card .fmea-doc-titleline{gap:7px}.fmea-card .fmea-doc-accent{height:30px}}


/* V1093 — Corrige o subtítulo do Resumo do FMEA: revisão e processo sem sobreposição ou corte. */
.fmr .fmr-card header.fmr-summary-head{display:flex!important;align-items:flex-start!important;gap:12px!important;min-width:0!important;width:100%!important;}
.fmr .fmr-summary-head .fmr-summary-heading{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-width:0!important;width:0!important;gap:3px!important;}
.fmr .fmr-summary-head h5{display:block!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important;}
.fmr .fmr-summary-head .fmr-summary-subtitle{display:flex!important;align-items:baseline!important;justify-content:flex-start!important;gap:5px!important;flex-wrap:wrap!important;min-width:0!important;width:100%!important;max-width:100%!important;white-space:normal!important;overflow:visible!important;line-height:1.45!important;overflow-wrap:anywhere!important;}
.fmr .fmr-summary-head .fmr-summary-process{min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;}
.fmr .fmr-summary-head .fmr-summary-separator{flex:0 0 auto!important;color:#8ba0b8!important;}
@media(max-width:760px){.fmr .fmr-summary-head .fmr-summary-subtitle{gap:4px!important}.fmr .fmr-summary-head .fmr-summary-process{flex-basis:100%!important;}}

/* V1094 — Aplica a hierarquia do cabeçalho documental também ao cabeçalho do cartão Resumo do FMEA. */
.fmea-card .fmea-summary.fmr .fmr-card:first-child > header.fmr-summary-head{
  position:relative!important;display:flex!important;align-items:center!important;gap:13px!important;
  min-height:58px!important;width:100%!important;box-sizing:border-box!important;
  padding:9px 12px 12px 15px!important;margin:0 0 2px!important;
  border-bottom:1px solid #dce7f3!important;border-radius:8px 8px 0 0!important;
  background:linear-gradient(100deg,#fff8f0 0%,#f7faff 28%,#fff 100%)!important;
}
.fmea-card .fmea-summary.fmr .fmr-card:first-child > header.fmr-summary-head::before{
  content:""!important;position:absolute!important;left:0!important;top:8px!important;bottom:12px!important;
  width:4px!important;border-radius:4px!important;background:#f58220!important;
}
.fmea-card .fmea-summary.fmr .fmr-summary-head .fmr-ico{
  flex:0 0 40px!important;width:40px!important;height:40px!important;border-radius:10px!important;
  background:#fff0e2!important;color:#f58220!important;font-size:18px!important;
}
.fmea-card .fmea-summary.fmr .fmr-summary-heading{gap:4px!important;min-width:0!important;}
.fmea-card .fmea-summary.fmr .fmr-summary-head h5{
  font-size:19px!important;line-height:1.25!important;font-weight:800!important;letter-spacing:-.25px!important;
  color:#12315e!important;margin:0!important;
}
.fmea-card .fmea-summary.fmr .fmr-summary-head .fmr-summary-subtitle{
  display:flex!important;align-items:baseline!important;gap:6px!important;flex-wrap:wrap!important;
  color:#617b99!important;font-size:13px!important;line-height:1.45!important;margin:0!important;
}
.fmea-card .fmea-summary.fmr .fmr-summary-head .fmr-summary-process{color:#315b8a!important;}
@media(max-width:760px){
 .fmea-card .fmea-summary.fmr .fmr-card:first-child > header.fmr-summary-head{padding:8px 8px 10px 12px!important;gap:9px!important;}
 .fmea-card .fmea-summary.fmr .fmr-summary-head .fmr-ico{flex-basis:34px!important;width:34px!important;height:34px!important;}
 .fmea-card .fmea-summary.fmr .fmr-summary-head h5{font-size:17px!important;}
 .fmea-card .fmea-summary.fmr .fmr-summary-head .fmr-summary-subtitle{font-size:12px!important;}
}


/* V1100 — Restaura estilos removidos da tela Problemas potenciais e do formulário. */
/* V1100 — Problemas potenciais restaurados: hierarquia visual no padrão MasterPlating
   Azul institucional, laranja de destaque e superfícies azul-acinzentadas claras. */
.fp-problems-header{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:2px 0 14px;padding:4px 0 14px;border-bottom:1px solid var(--border,#d8e3ef)}
.fp-problems-heading{display:flex;align-items:center;gap:13px;min-width:240px;flex:1}
.fp-problems-mark{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:10px;background:#fff0e2;border:1px solid #ffd3ad;color:#f58220;font-size:27px;font-weight:800}
.fp-problems-heading h4{margin:0;color:#12315e;font-size:21px;line-height:1.25;font-weight:750;letter-spacing:-.35px}
.fp-problems-heading p{margin:5px 0 0;max-width:900px;color:var(--text-muted,#71839a);font-size:13px;line-height:1.55}
.fp-add-problem{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 14px;border:1px solid #f58220;border-radius:8px;background:#f58220;color:#fff;font-size:12.5px;font-weight:700;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s}
.fp-add-problem:hover{background:#e96e0a;border-color:#e96e0a}
.fp-add-problem:disabled{opacity:.5;cursor:not-allowed}
.fp-potential-card{margin:12px 0 0!important;padding:0!important;overflow:hidden;border:1px solid #d5e2f0!important;border-radius:12px!important;background:#fff!important;box-shadow:0 2px 7px rgba(18,49,94,.045)}
.fp-potential-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 14px;padding:14px 15px 12px;border-left:4px solid #f58220;background:#f5f8fc;border-bottom:1px solid #e1eaf4}
.fp-potential-title{display:flex;align-items:center;gap:9px;min-width:0;flex-wrap:wrap}
.fp-potential-title>b{color:#12315e;font-size:16px;line-height:1.35;font-weight:750;overflow-wrap:anywhere}
.fp-severity{display:inline-flex;align-items:center;justify-content:center;min-width:34px;padding:4px 8px;border-radius:6px;background:#e1ebf7;color:#174f83;font-size:12px;font-weight:800}
.fp-potential-actions{display:flex;align-items:center;gap:7px;grid-column:2;grid-row:1}
.fp-potential-actions .fmea-link{min-height:32px;padding:6px 11px;border:1px solid #c7d9ed;border-radius:7px;background:#fff;color:#1761a0;font-weight:600}
.fp-potential-actions .fp-remove-link{color:#b42318;border-color:#edc9c6}
.fp-potential-actions .fmea-link:hover{background:#edf5fc}
.fp-potential-meta{display:flex;align-items:center;gap:7px 16px;flex-wrap:wrap;grid-column:1/-1;color:#5b718b;font-size:12px}
.fp-potential-meta span+span{position:relative}
.fp-potential-meta span+span:before{content:"•";color:#f58220;margin-right:10px}
.fp-potential-conditions{margin:0;padding:12px 15px 13px}
.fp-potential-conditions h5{margin:0 0 8px;color:#174f83;font-size:13px;font-weight:750}
.fp-potential-conditions h5:before{content:"";display:inline-block;width:4px;height:14px;margin:0 8px -2px 0;border-radius:3px;background:#f58220}
.fp-potential-conditions ul{margin:0;padding:10px 12px 10px 29px;border:1px solid #dce7f3;border-radius:8px;background:#fbfcfe;color:#243f62;font-size:12.5px;line-height:1.7}
.fp-potential-conditions li{padding-left:2px;overflow-wrap:anywhere}
.fp-potential-conditions li::marker{color:#f58220}
.fp-potential-conditions li span{color:#71839a}
.fp-potential-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 15px 12px}
.fp-detail-box{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:8px;min-width:0}
.fp-detail-box b{font-size:12px;color:#174f83}
.fp-detail-box span{font-size:12.5px;line-height:1.5;color:#314c6e;overflow-wrap:anywhere}
.fp-effect-box{background:#edf4fc;border:1px solid #e0ebf8}
.fp-action-box{background:#fff5e9;border:1px solid #ffe2c3}
.fp-action-box b{color:#a9510a}
.fp-potential-evidence{display:flex;flex-direction:column;gap:5px;margin:0 15px 14px;padding:10px 12px;border:1px solid #e1eaf4;border-radius:8px;background:#f8fafc;font-size:12px}
.fp-potential-evidence>b{color:#12315e;font-size:12px}
.fp-potential-evidence>div{line-height:1.6;overflow-wrap:anywhere}
.fp-no-link{color:#9a4d0a}
@media(max-width:700px){.fp-problems-header{align-items:stretch}.fp-problems-heading h4{font-size:18px}.fp-add-problem{width:100%}.fp-potential-top{grid-template-columns:minmax(0,1fr);gap:8px}.fp-potential-actions{grid-column:1;grid-row:auto}.fp-potential-details{grid-template-columns:minmax(0,1fr)}}

/* V1100 — Formulário Cadastrar Problema Potencial restaurado: aplicação visual completa
   Mantém a identidade MasterPlating: azul institucional, laranja, branco e cinza-azulado. */
.fp-modern-form{margin:10px 0 16px!important;padding:0!important;overflow:hidden;border:1px solid #d4e2f2!important;border-radius:12px!important;background:#fff!important;box-shadow:0 3px 12px rgba(18,49,94,.055)}
.fp-modern-form .fp-form-title{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid #dce7f4;background:linear-gradient(105deg,#f1f6fc 0%,#fff 78%)}
.fp-modern-form .fp-title-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:10px;border:1px solid #ffd5b2;background:#fff0e2;color:#f58220;font-size:27px;font-weight:800}
.fp-modern-form .fp-form-title h3{margin:0;color:#12315e;font-size:22px;line-height:1.25;font-weight:800;letter-spacing:-.35px}
.fp-modern-form .fp-form-title p{margin:5px 0 0;color:#6d819b;font-size:13px;line-height:1.5}
.fp-modern-form .fp-help{grid-column:1/-1;display:flex;align-items:flex-start;gap:9px;margin-top:3px;padding:10px 12px;border:1px solid #d5e5f7;border-left:3px solid #2f80d1;border-radius:7px;background:#f2f7fd;color:#526e8e;font-size:12px;line-height:1.5}
.fp-modern-form .fp-help b{flex:0 0 auto;color:#174f83;font-size:12px}
.fp-modern-form .fp-section{min-width:0;margin:14px 16px;padding:14px;border:1px solid #dce7f4;border-radius:10px;background:#fff}
.fp-modern-form .fp-section-head{display:flex;align-items:flex-start;gap:11px;margin:0 0 14px}
.fp-modern-form .fp-section-head>span{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#f58220;color:#fff;font-size:15px;font-weight:800;box-shadow:0 2px 4px rgba(245,130,32,.18)}
.fp-modern-form .fp-section-head>div{min-width:0;padding-top:1px}
.fp-modern-form .fp-section-head b{display:block;color:#12315e;font-size:15px;line-height:1.35;font-weight:750}
.fp-modern-form .fp-section-head small{display:block;margin-top:3px;color:#71839a;font-size:12px;line-height:1.5}
.fp-modern-form .fp-form-grid{display:grid;gap:14px 16px;min-width:0}
.fp-modern-form .fp-form-grid.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.fp-modern-form .fp-form-grid.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.fp-modern-form .field{display:flex;flex-direction:column;gap:6px;min-width:0}
.fp-modern-form .field label{color:#29496f;font-size:12px;font-weight:700;line-height:1.4}
.fp-modern-form .field input:not([type=checkbox]),.fp-modern-form .field select,.fp-modern-form .field textarea{box-sizing:border-box;width:100%;max-width:100%;min-width:0;border:1px solid #cbd9eb;border-radius:7px;background:#fff;color:#18375e;font:inherit;font-size:13px;line-height:1.45;box-shadow:inset 0 1px 2px rgba(18,49,94,.025);transition:border-color .15s,box-shadow .15s}
.fp-modern-form .field input:not([type=checkbox]),.fp-modern-form .field select{height:39px;padding:0 11px}
.fp-modern-form .field textarea{min-height:86px;padding:9px 11px;resize:vertical}
.fp-modern-form .field input:focus,.fp-modern-form .field select:focus,.fp-modern-form .field textarea:focus,.fp-modern-form .fp-search input:focus{outline:0;border-color:#438bd3;box-shadow:0 0 0 3px rgba(47,128,209,.12)}
.fp-modern-form .field input:disabled{background:#f0f3f7;color:#8a98aa;cursor:not-allowed}
.fp-modern-form .fp-condition-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(230px,.85fr);gap:13px;align-items:start;min-width:0}
.fp-modern-form .fp-condition-list{min-width:0}
.fp-modern-form .fp-search{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:7px;margin-bottom:9px;padding:0 10px;border:1px solid #cbd9eb;border-radius:8px;background:#fff;color:#71839a}
.fp-modern-form .fp-search>span{font-size:19px;color:#477eb5;text-align:center}
.fp-modern-form .fp-search input{width:100%;min-width:0;height:38px;border:0;background:transparent;color:#18375e;font-size:12.5px;outline:0}
.fp-modern-form .fp-search em{grid-column:1/-1;padding:0 0 8px;color:#6f8198;font-size:11px;font-style:normal}
.fp-modern-form .fp-cond-table-wrap{width:100%;max-width:100%;overflow:auto;border:1px solid #d7e4f2;border-radius:8px}
.fp-modern-form .fp-cond-table{width:100%;min-width:560px;border-collapse:separate;border-spacing:0;font-size:12px}
.fp-modern-form .fp-cond-table th{padding:10px 9px;background:#eaf1f9;border-bottom:1px solid #d2dfef;color:#174f83;text-align:left;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.2px;white-space:nowrap}
.fp-modern-form .fp-cond-table td{padding:10px 9px;border-bottom:1px solid #e7edf5;color:#304c6d;line-height:1.45;vertical-align:middle}
.fp-modern-form .fp-cond-table tbody tr:nth-child(even){background:#f8fafd}
.fp-modern-form .fp-cond-table tbody tr:hover{background:#eef5fd}
.fp-modern-form .fp-cond-table tbody tr:last-child td{border-bottom:0}
.fp-modern-form .fp-cond-table th.check,.fp-modern-form .fp-cond-table td.check{width:35px;text-align:center}
.fp-modern-form .fp-cond-table input[type=checkbox],.fp-modern-form .fp-motivos input[type=checkbox]{width:15px;height:15px;accent-color:#2378cf;vertical-align:middle;cursor:pointer}
.fp-modern-form .fp-cond-table td b{color:#18375e;font-weight:700}
.fp-modern-form .fp-param-icon{display:inline-flex;width:22px;justify-content:center;margin-right:5px;color:#f58220;font-size:15px}
.fp-modern-form .fp-trigger{display:inline-flex;padding:3px 7px;border-radius:5px;background:#edf4fc;color:#174f83;font-weight:700;white-space:nowrap}
.fp-modern-form .fp-selected-panel{min-width:0;border:1px solid #d7e4f2;border-radius:9px;background:#f8fafd;overflow:hidden}
.fp-modern-form .fp-selected-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;background:#eaf1f9;border-bottom:1px solid #d7e4f2}
.fp-modern-form .fp-selected-head>div{display:flex;align-items:center;gap:7px;min-width:0}
.fp-modern-form .fp-selected-head>div>span{color:#f58220;font-size:17px}
.fp-modern-form .fp-selected-head b{color:#174f83;font-size:12px}
.fp-modern-form .fp-selected-head button{flex:0 0 auto;font-size:11px}
.fp-modern-form .fp-selected-list{display:flex;flex-direction:column;gap:7px;padding:10px;max-height:290px;overflow:auto}
.fp-modern-form .fp-selected-chip{display:flex;align-items:flex-start;justify-content:space-between;gap:7px;padding:8px 9px;border:1px solid #d8e5f4;border-radius:7px;background:#fff;color:#304c6d;font-size:11.5px;line-height:1.45}
.fp-modern-form .fp-selected-chip span{min-width:0;overflow-wrap:anywhere}
.fp-modern-form .fp-selected-chip button{flex:0 0 22px;width:22px;height:22px;border:1px solid #f1d0c9;border-radius:5px;background:#fff7f5;color:#b42318;font-size:16px;line-height:1;cursor:pointer}
.fp-modern-form .fp-selected-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:20px 10px;text-align:center;color:#7b8da3}
.fp-modern-form .fp-selected-empty>div{color:#f58220;font-size:24px}
.fp-modern-form .fp-selected-empty b{color:#29496f;font-size:12px}
.fp-modern-form .fp-selected-empty span{font-size:11px;line-height:1.5}
.fp-modern-form .fp-logic-note{display:flex;gap:9px;margin-top:12px;padding:10px 12px;border:1px solid #d7e5f5;border-radius:7px;background:#f2f7fd;color:#597391}
.fp-modern-form .fp-logic-note>span{color:#2f80d1;font-size:16px}
.fp-modern-form .fp-logic-note b{display:block;color:#174f83;font-size:12px}
.fp-modern-form .fp-logic-note small{display:block;margin-top:3px;font-size:11.5px;line-height:1.5}
.fp-modern-form .fp-lower-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;min-width:0}
.fp-modern-form .fp-section-compact{min-width:0}
.fp-modern-form .fp-motivos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fp-modern-form .fp-motivos label{display:flex;align-items:flex-start;gap:7px;min-width:0;padding:8px;border:1px solid #e0e8f2;border-radius:6px;background:#f9fbfd;color:#304c6d;font-size:12px;line-height:1.4}
.fp-modern-form .fp-motivos label span{overflow-wrap:anywhere}
.fp-modern-form .fp-ajuda{display:block;margin-top:8px;color:#71839a;font-size:11px;line-height:1.5}
.fp-modern-form .fp-form-actions{display:flex;align-items:center;gap:9px;padding:13px 17px;border-top:1px solid #dce7f4;background:#f7f9fc}
.fp-modern-form .fp-form-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:37px;padding:8px 14px;border:1px solid #c7d7e9;border-radius:7px;background:#fff;color:#365779;font-size:12px;font-weight:700;cursor:pointer}
.fp-modern-form .fp-form-actions button:hover{background:#edf4fc}
.fp-modern-form .fp-form-actions button.primary{border-color:#f58220;background:#f58220;color:#fff}
.fp-modern-form .fp-form-actions button.primary:hover{border-color:#e96e0a;background:#e96e0a}
@media(max-width:980px){.fp-modern-form .fp-form-grid.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.fp-modern-form .fp-condition-layout{grid-template-columns:minmax(0,1fr)}.fp-modern-form .fp-selected-list{max-height:190px}.fp-modern-form .fp-lower-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.fp-modern-form .fp-form-title{grid-template-columns:38px minmax(0,1fr);padding:14px;gap:9px}.fp-modern-form .fp-title-icon{width:38px;height:38px;font-size:22px}.fp-modern-form .fp-form-title h3{font-size:18px}.fp-modern-form .fp-form-title p{font-size:12px}.fp-modern-form .fp-help{flex-direction:column;gap:3px}.fp-modern-form .fp-section{margin:10px 9px;padding:11px}.fp-modern-form .fp-section-head b{font-size:13px}.fp-modern-form .fp-form-grid.grid-2,.fp-modern-form .fp-form-grid.grid-4{grid-template-columns:minmax(0,1fr)}.fp-modern-form .fp-motivos{grid-template-columns:minmax(0,1fr)}.fp-modern-form .fp-form-actions{flex-wrap:wrap;padding:11px}.fp-modern-form .fp-form-actions button{flex:1 1 auto}}


/* V1102 — Faz a visibilidade das abas do FMEA prevalecer sobre o display:grid!important do resumo. */
.fmea-card .fmea-summary.fmr.fmea-oculto { display: none !important; }


/* V1201 — padrão visual MasterPlating aplicado à Lista de Peças */
.peca-hero-panel,.peca-kpi-grid{margin-bottom:14px}
.peca-list-card{background:#fff!important;border:1px solid #d5dfeb!important;border-radius:12px!important;overflow:hidden!important;box-shadow:0 2px 8px rgba(17,43,75,.04)!important}
.peca-list-head{border:0!important;border-bottom:1px solid #d5dfeb!important;border-radius:0!important;padding:16px 18px!important;gap:14px;flex-wrap:wrap}
.peca-list-actions{gap:8px!important;align-items:center!important}
.peca-list-actions button,.peca-row-actions button,.peca-list-footer button{min-height:36px;border-radius:7px!important;font-weight:600;transition:background .15s,border-color .15s,color .15s}
.peca-list-actions .peca-secondary{height:38px!important;background:#fff!important;border:1px solid #f97316!important;color:#ea580c!important;padding:0 14px!important}
.peca-list-actions .peca-secondary:hover{background:#fff7ed!important;border-color:#ea580c!important}
.peca-list-actions .view-toggle{width:38px!important;height:38px!important;background:#fff!important;color:#17385f!important;border:1px solid #cbd5e1!important}
.peca-list-actions .view-toggle.active{background:#17385f!important;border-color:#17385f!important;color:#fff!important}
.peca-new-btn,.peca-toolbar-card .primary{background:#f97316!important;border-color:#f97316!important;color:#fff!important;border-radius:7px!important;font-weight:700!important}
.peca-new-btn:hover,.peca-toolbar-card .primary:hover{background:#ea580c!important;border-color:#ea580c!important}
.peca-status-chip.active,.peca-list-footer .page-active{background:#f97316!important;border-color:#f97316!important;color:#fff!important}
.peca-table th{background:#f1f5f9!important;color:#17385f!important;border-bottom:1px solid #d5dfeb!important}
.peca-table td{border-bottom:1px solid #e5ebf2!important;padding-top:10px!important;padding-bottom:10px!important}
.peca-table tbody tr:hover{background:#fff7ed!important}
.peca-row-actions{gap:7px!important;white-space:nowrap}
.peca-row-actions button{width:36px!important;height:36px!important;background:#fff!important;border:1px solid #cbd5e1!important;color:#17385f!important}
.peca-row-actions button:hover{background:#eff6ff!important;border-color:#2563eb!important;color:#1d4ed8!important}
.peca-row-actions [data-action="excluir-peca"],.peca-more-menu button.danger{color:#dc2626!important}
.peca-row-actions [data-action="excluir-peca"]:hover{background:#fef2f2!important;border-color:#fca5a5!important}
.peca-list-footer{border:0!important;border-top:1px solid #e5ebf2!important;border-radius:0!important;margin:0!important;flex-wrap:wrap;gap:12px}
.peca-list-footer button.page-active{background:#f97316!important;border-color:#f97316!important}
.peca-filter-panel{border-color:#d5dfeb!important;border-radius:10px!important}
.peca-select-grid select,.peca-search{border-color:#cbd5e1!important;border-radius:7px!important}
.peca-select-grid select:focus,.peca-search:focus-within{outline:2px solid #fed7aa!important;border-color:#f97316!important}
@media(max-width:900px){.peca-list-head{align-items:flex-start!important}.peca-list-actions{flex-wrap:wrap!important}.peca-table{min-width:1000px}}


/* V1214 — telas de Produção na mesma linha, sem a aba de agrupamento Planejamento. */
#top-tabs .producao-top-all {
  display: flex; align-items: stretch; flex-wrap: nowrap; gap: 2px; min-width: 0;
  overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: none;
}
#top-tabs .producao-top-all::-webkit-scrollbar { display: none; }
#top-tabs .producao-top-all .producao-top-tab {
  min-height: 42px; flex: 0 0 auto; padding: 10px 13px; font-size: 13px;
}
#top-tabs .producao-top-all .producao-top-tab.active { color: #fff; border-bottom-color: var(--accent); }
@media (max-width: 760px) {
  #top-tabs { padding-left: 8px; padding-right: 8px; }
  #top-tabs .producao-top-all .producao-top-tab { padding-left: 10px; padding-right: 10px; }
}
