
/* ============================================================
   PROFINANCE HUB V54.97 — ADAPTADOR SEGURO DE CABEÇALHO
   Aplica o MESMO padrão do cabeçalho já aprovado somente às
   páginas dedicadas que ainda não carregavam o padrão global.
   ============================================================ */

.pf-dedicated-header{
  position:sticky;
  top:0;
  z-index:10000;
  width:100%;
  background:rgba(15,10,36,.92);
  border-bottom:1px solid rgba(155,123,255,.28);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.pf-dedicated-header-inner{
  width:min(1720px,100%);
  min-height:70px;
  margin:0 auto;
  padding:10px 22px;
  display:flex;
  align-items:center;
  gap:12px;
}
.pf-dedicated-brand{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  cursor:pointer;
}
.pf-dedicated-brand img{
  width:min(205px,28vw);
  height:auto;
  max-height:38px;
  object-fit:contain;
  display:block;
}
.pf-dedicated-host{
  display:flex;
  align-items:center;
  margin-left:auto;
  min-width:0;
}
.pf-dedicated-host .pf-global-tools{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-width:0;
  margin-left:auto;
}
.pf-global-identity{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:0;
  margin-right:2px;
  border:0;
  background:transparent;
  color:inherit;
  padding:2px 4px;
  border-radius:12px;
  cursor:pointer;
  text-align:left;
}
.pf-global-identity:hover,.pf-global-identity:focus-visible{
  background:rgba(155,123,255,.12);
  outline:none;
}
.pf-global-avatar{
  width:36px;
  height:36px;
  min-width:36px;
  border:2px solid #f5792a;
  border-radius:50%;
  overflow:hidden;
  background:#2b1d58;
  display:block;
}
.pf-global-avatar img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border:0!important;
  border-radius:0!important;
}
.pf-global-copy{
  display:grid;
  gap:3px;
  min-width:135px;
  max-width:260px;
  text-align:left;
}
.pf-global-copy b{
  font:800 10px/1.25 Inter,Arial,sans-serif;
  color:#fff;
}
.pf-global-copy small{
  font:750 7px/1.25 "JetBrains Mono",monospace;
  color:#ff9f60;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.pf-home-link,
.pf-tool-select,
.pf-nav-icon,
.pf-nav-monitor{
  height:38px;
  border:1px solid rgba(155,123,255,.34);
  background:#211743;
  color:#fff;
  border-radius:11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(8,8,18,.13);
  font-family:Inter,Arial,sans-serif;
}
.pf-home-link,
.pf-nav-icon{
  width:38px;
  min-width:38px;
  padding:0;
}
.pf-home-link svg,
.pf-nav-icon svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.pf-tool-select{
  max-width:230px;
  padding:0 34px 0 12px;
  font-size:11px;
  font-weight:750;
  background-color:#211743!important;
  color:#fff!important;
}
.pf-nav-monitor{
  padding:0 12px;
  border-color:rgba(245,121,42,.45);
  color:#ffe3d0;
  font:800 9px "JetBrains Mono",monospace;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.pf-home-link:hover,
.pf-nav-icon:hover,
.pf-nav-monitor:hover,
.pf-tool-select:hover{
  border-color:#f5792a;
}
.pf-nav-icon[data-theme-toggle]{
  width:40px;
  min-width:40px;
}
.pf-nav-icon[data-theme-toggle] svg{
  width:18px;
  height:18px;
}

/* V55.44 — cabeçalho dedicado permanece escuro também no tema claro. */
html[data-theme='light'] .pf-dedicated-header{
  background:linear-gradient(100deg,rgba(15,10,36,.98),rgba(30,20,66,.98) 58%,rgba(21,19,55,.98))!important;
  border-color:rgba(155,123,255,.28)!important;
  border-bottom-color:rgba(245,121,42,.34)!important;
  box-shadow:0 10px 28px rgba(12,8,31,.20)!important;
}
html[data-theme='light'] .pf-dedicated-header .pf-global-copy b{color:#fff!important}
html[data-theme='light'] .pf-dedicated-header .pf-global-copy small{color:#ffad76!important}
html[data-theme='light'] .pf-dedicated-header :is(.pf-home-link,.pf-nav-icon,.pf-tool-select,.pf-nav-monitor){
  background:#211743!important;
  border-color:rgba(155,123,255,.38)!important;
  color:#fff!important;
  box-shadow:0 8px 20px rgba(8,8,18,.16)!important;
}

/* ----------------------------
   Dashboard Comercial
   ---------------------------- */
body.pf-dedicated-dashboard{
  padding:0!important;
}
body.pf-dedicated-dashboard .shell{
  padding:22px;
}
body.pf-dedicated-dashboard .shell > .top{
  position:static!important;
  margin:0 0 18px!important;
  padding:12px 14px!important;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.025);
}
body.pf-dedicated-dashboard .shell > .top .brand img{
  display:none!important;
}
body.pf-dedicated-dashboard .shell > .top .brand{
  min-width:220px;
}
body.pf-dedicated-dashboard .shell > .top h1{
  font-size:23px!important;
}
body.pf-dedicated-dashboard .shell > .top .actions{
  margin-left:auto;
}

/* ----------------------------
   Monitor Work normal
   ---------------------------- */
body.pf-dedicated-monitor #app > .mw-top{
  position:static!important;
  top:auto!important;
  margin:0!important;
  min-height:50px!important;
  background:rgba(7,12,27,.72)!important;
  border-bottom:1px solid rgba(67,82,124,.28)!important;
}
body.pf-dedicated-monitor #app > .mw-top .mw-logo,
body.pf-dedicated-monitor #app > .mw-top .mw-sep,
body.pf-dedicated-monitor #app > .mw-top .mw-name{
  display:none!important;
}
body.pf-dedicated-monitor #app > .mw-top .mw-topin{
  min-height:50px!important;
  justify-content:flex-end!important;
}
body.pf-dedicated-monitor #app > .mw-top .mw-top-actions{
  margin-left:auto!important;
}

/* ----------------------------
   Central de E-mail
   ---------------------------- */
body.pf-dedicated-gmail > .topbar{
  position:static!important;
  top:auto!important;
  margin:0!important;
  min-height:48px!important;
  background:rgba(15,10,36,.64)!important;
  border-bottom:1px solid rgba(155,123,255,.16)!important;
}
body.pf-dedicated-gmail > .topbar .brand{
  display:none!important;
}
body.pf-dedicated-gmail > .topbar .topbar-inner{
  min-height:48px!important;
  justify-content:flex-end!important;
}
body.pf-dedicated-gmail > .topbar .actions a[href*="index.html"]{
  display:none!important;
}

/* ----------------------------
   Relatórios de Produtividade
   ---------------------------- */
body.pf-dedicated-reports > .top{
  position:static!important;
  top:auto!important;
  min-height:48px!important;
  background:rgba(7,11,24,.72)!important;
  border-bottom:1px solid rgba(36,50,88,.38)!important;
}
body.pf-dedicated-reports > .top .topin{
  height:auto!important;
  min-height:48px!important;
}
body.pf-dedicated-reports > .top img{
  display:none!important;
}
body.pf-dedicated-reports > .top .sep{
  display:none!important;
}

/* TV e fullscreen: nada do cabeçalho padrão fica visível. */
html.tv-mode .pf-dedicated-header,
html.tv-mode body.pf-dedicated-monitor #app > .mw-top,
html:fullscreen .pf-dedicated-header,
html:fullscreen body.pf-dedicated-dashboard .shell > .top,
html:fullscreen body.pf-dedicated-monitor #app > .mw-top,
html:-webkit-full-screen .pf-dedicated-header,
html:-webkit-full-screen body.pf-dedicated-dashboard .shell > .top,
html:-webkit-full-screen body.pf-dedicated-monitor #app > .mw-top{
  display:none!important;
}

/* Responsivo */
@media(max-width:1000px){
  .pf-global-copy{display:none}
  .pf-dedicated-header-inner{padding:9px 14px}
}
@media(max-width:720px){
  .pf-dedicated-header-inner{padding:8px 10px}
  .pf-dedicated-brand img{width:145px;max-width:38vw}
  .pf-global-tools{gap:5px!important}
  .pf-tool-select{max-width:135px}
  .pf-nav-monitor{display:none}
  body.pf-dedicated-dashboard .shell{padding:12px}
}
