/* CloudPelizzon CP-DOCS R17.1 | Última alteração: 2026-10-16.
 * Complemento aditivo da R17: zoom, cabeçalho, navegação e contraste.
 * Não altera conteúdo, banco de páginas ou docs.css.
 */
html[data-cpdocs-theme] body.cp16-layout .topbar {
  box-sizing:border-box !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(230px, min(39vw,650px)) auto !important;
  column-gap:clamp(12px,1.7vw,26px) !important;
  row-gap:10px !important;
  width:100%;max-width:100%;height:auto !important;min-height:84px !important;
  padding:12px clamp(14px,1.7vw,26px) !important;
  align-items:center !important;
  position:sticky !important;top:0;z-index:50;
  background:linear-gradient(105deg,#030c19 0%,#061a2c 52%,#0c3a56 100%) !important;
  border-bottom:2px solid #20b9df !important;
  box-shadow:0 9px 34px rgba(0,0,0,.42),0 1px 0 rgba(100,229,255,.16) inset !important;
  isolation:isolate;
}
html[data-cpdocs-theme] body.cp16-layout .topbar::after {
  content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;
  background:linear-gradient(90deg,transparent 0%,rgba(30,205,255,.07) 30%,#65eaff 50%,rgba(30,205,255,.07) 70%,transparent 100%);
  background-size:48% 100%;background-repeat:no-repeat;pointer-events:none;z-index:1;
}
html.cpdocs-motion-ok[data-cpdocs-theme] body.cp16-layout .topbar::after {animation:cp171-header-led 5.5s linear infinite;}
@keyframes cp171-header-led {from{background-position:-110% 0}to{background-position:220% 0}}
html[data-cpdocs-theme] body.cp16-layout .topbar > .brand {
  grid-column:1 !important;grid-row:1 !important;position:relative !important;
  display:flex !important;align-items:center !important;gap:clamp(7px,1vw,16px) !important;
  width:100% !important;max-width:100%;height:auto !important;min-width:0 !important;
  overflow:visible !important;z-index:2;
}
html[data-cpdocs-theme] body.cp16-layout .topbar .brand-logo {
  width:clamp(140px,12.5vw,186px) !important;max-width:42%;height:auto !important;flex:0 0 auto;min-width:0;
}
html[data-cpdocs-theme] body.cp16-layout .topbar .brand-portal-title {
  display:flex !important;flex-direction:column !important;min-width:0 !important;max-width:100%;width:auto !important;flex:1 1 0;
  margin-left:0 !important;padding-left:clamp(8px,1vw,16px) !important;
  overflow-wrap:anywhere;word-break:normal;line-height:1.22 !important;
}
html[data-cpdocs-theme] body.cp16-layout .topbar .brand-portal-title b {
  display:block;font-size:clamp(12px,1vw,15px) !important;line-height:1.25 !important;
  white-space:normal !important;color:#f1fbff !important;text-shadow:0 1px 8px rgba(2,188,255,.19);
}
html[data-cpdocs-theme] body.cp16-layout .topbar .brand-portal-title small {
  display:block;font-size:clamp(9px,.72vw,11px) !important;line-height:1.35 !important;
  white-space:normal !important;color:#b3dbea !important;
}
html[data-cpdocs-theme] body.cp16-layout .topbar > .search {
  grid-column:2 !important;grid-row:1 !important;position:relative !important;
  left:auto !important;right:auto !important;top:auto !important;transform:none !important;
  margin:0 !important;width:100% !important;max-width:none !important;min-width:0 !important;
  box-sizing:border-box;height:44px;z-index:2;
  border:1px solid rgba(117,216,250,.3);box-shadow:0 5px 14px rgba(0,0,0,.1);
}
html[data-cpdocs-theme] body.cp16-layout .topbar > .search input {min-width:0 !important;box-sizing:border-box;}
html[data-cpdocs-theme] body.cp16-layout .topbar > .cp16-top-actions {
  grid-column:3 !important;grid-row:1 !important;display:flex !important;
  gap:8px !important;align-items:center;justify-content:flex-end;min-width:0;max-width:100%;z-index:2;
}
html[data-cpdocs-theme] body.cp16-layout .topbar :is(.cp16-context-badge,.cp16-version) {white-space:nowrap;}
/* Place theme control inside header instead of footer; all layouts have a safe slot. */
html[data-cpdocs-theme] .cpdocs-theme-toggle {
  position:static !important;left:auto !important;right:auto !important;top:auto !important;bottom:auto !important;
  flex:0 0 auto;max-width:none !important;min-height:36px !important;
  padding:7px 11px !important;border-radius:12px !important;
  font-size:12px !important;line-height:1.2 !important;z-index:2;
  border-color:#4ecbfa !important;white-space:nowrap;
  box-shadow:0 2px 8px rgba(0,0,0,.2) !important;
}
html[data-cpdocs-theme] .cpdocs-theme-toggle:hover {transform:translateY(-1px);}
html[data-cpdocs-theme] .cpdocs-theme-toggle .cpdocs-theme-icon {font-size:14px !important;}
html[data-cpdocs-theme] .cp171-theme-slot {display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:9px 0;}
html[data-cpdocs-theme] body.login-body .cp171-theme-slot {position:absolute;top:12px;right:12px;z-index:3;}
/* At browser zoom the usable CSS viewport narrows; stack the header, never overlap. */
@media (max-width:1350px) {
 html[data-cpdocs-theme] body.cp16-layout .topbar {
   grid-template-columns:minmax(0,1fr) auto !important;
   grid-template-rows:auto auto !important;column-gap:12px !important;row-gap:9px !important;
 }
 html[data-cpdocs-theme] body.cp16-layout .topbar > .brand {grid-column:1 !important;grid-row:1 !important;max-width:100%;}
 html[data-cpdocs-theme] body.cp16-layout .topbar > .cp16-top-actions {grid-column:2 !important;grid-row:1 !important;}
 html[data-cpdocs-theme] body.cp16-layout .topbar > .search {grid-column:1/-1 !important;grid-row:2 !important;max-width:none !important;}
 html[data-cpdocs-theme] body.cp16-layout .topbar .brand-logo {width:clamp(136px,18vw,184px) !important;}
 html[data-cpdocs-theme] body.cp16-layout .topbar .brand-portal-title {max-width:380px;}
}
@media (max-width:650px) {
 html[data-cpdocs-theme] body.cp16-layout .topbar{padding:10px 12px !important;gap:7px !important;}
 html[data-cpdocs-theme] body.cp16-layout .topbar .brand-logo {width:112px !important;max-width:43%;}
 html[data-cpdocs-theme] body.cp16-layout .topbar .brand-portal-title {padding-left:7px !important;max-width:100%;}
 html[data-cpdocs-theme] body.cp16-layout .topbar .brand-portal-title b {font-size:11px !important;}
 html[data-cpdocs-theme] body.cp16-layout .topbar .brand-portal-title small {font-size:8px !important;}
 html[data-cpdocs-theme] body.cp16-layout .topbar .cp16-context-badge{display:none;}
 html[data-cpdocs-theme] body.cp16-layout .topbar .cpdocs-theme-toggle{padding:7px 9px !important;min-height:34px !important;}
 html[data-cpdocs-theme] body.cp16-layout .topbar .cpdocs-theme-text{display:none;}
}
/* High contrast nav: old docs.css has hardcoded color: #17283d in level-0 headers. */
html[data-cpdocs-theme="dark"] body.cp16-layout .sidebar :is(.nav-summary,.nav-parent-link,.nav-link,.sidebar-title),
html[data-cpdocs-theme="dark"] body.cp16-layout .sidebar .level-0 > .nav-group > .nav-summary,
html[data-cpdocs-theme="dark"] body.cp16-layout .sidebar .level-0 > .nav-group > .nav-summary .nav-parent-link,
html[data-cpdocs-theme="dark"] body.cp16-layout .sidebar .level-0 > .nav-group > .nav-summary span {
 color:#e7f6ff !important;text-shadow:none !important;
}
html[data-cpdocs-theme="dark"] body.cp16-layout .sidebar .nav-parent-link.active,
html[data-cpdocs-theme="dark"] body.cp16-layout .sidebar .nav-link.active,
html[data-cpdocs-theme="dark"] body.cp16-layout .sidebar .nav-summary.active :is(a,span) {
 color:#74e4ff !important;
}
html[data-cpdocs-theme="dark"] body.cp16-layout .sidebar .level-0 > .nav-group > .nav-summary {
 background:#102f47 !important;border:1px solid #315872 !important;
}
html[data-cpdocs-theme="dark"] body.cp16-layout .sidebar .level-0 > .nav-group > .nav-summary:hover,
html[data-cpdocs-theme="dark"] body.cp16-layout .sidebar .level-0 > .nav-group[open] > .nav-summary {
 background:#143d57 !important;border-color:#26a6d8 !important;
}
html[data-cpdocs-theme="dark"] body.cp16-layout .sidebar .nav-link:hover,
html[data-cpdocs-theme="dark"] body.cp16-layout .sidebar .nav-summary:hover {background:#16405b !important;color:#f3fbff !important;}
html[data-cpdocs-theme="light"] body.cp16-layout .sidebar .level-0 > .nav-group > .nav-summary {
 background:#e7f3fb !important;color:#17354b !important;border:1px solid #c7e0ee !important;
}
html[data-cpdocs-theme="light"] body.cp16-layout .sidebar .level-0 > .nav-group > .nav-summary a {color:#17354b !important;}
html[data-cpdocs-theme] body.cp16-layout .sidebar .nav-node.level-0 > .nav-group > .nav-summary{
 position:relative;overflow:hidden;transition:background .22s ease,border-color .22s ease,box-shadow .22s ease !important;
}
html[data-cpdocs-theme] body.cp16-layout .sidebar .nav-node.level-0 > .nav-group > .nav-summary::before{
 content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#16cfff;
 box-shadow:0 0 10px #0ac9ff;opacity:.75;
}
html.cpdocs-motion-ok[data-cpdocs-theme] body.cp16-layout .sidebar .nav-node.level-0 > .nav-group[open] > .nav-summary::before{
 animation:cp171-nav-beacon 3s ease-in-out infinite;
}
@keyframes cp171-nav-beacon{0%,100%{opacity:.35;box-shadow:0 0 4px #0ac9ff}50%{opacity:1;box-shadow:0 0 15px #0ac9ff}}
html[data-cpdocs-theme] body.cp16-layout .sidebar :is(.nav-link,.nav-parent-link){min-width:0;transition:background .2s ease,color .2s ease,transform .2s ease !important;}
html.cpdocs-motion-ok[data-cpdocs-theme] body.cp16-layout .sidebar :is(.nav-link,.nav-parent-link):hover{transform:translateX(4px);}
html.cpdocs-motion-ok[data-cpdocs-theme] body.cp16-layout .sidebar .nav-group[open] > .nav-children{animation:cp171-expand .28s ease both;}
@keyframes cp171-expand{from{opacity:.45;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
/* Prevent white striped rows with pale text in dark-mode docs tables. */
html[data-cpdocs-theme="dark"] body.cp16-layout .doc-content table {background:#10283b !important;color:#ebf6ff !important;border-color:#355e79 !important;}
html[data-cpdocs-theme="dark"] body.cp16-layout .doc-content table :is(thead,tbody,tfoot,tr,th,td){color:#ebf6ff !important;border-color:#355e79 !important;}
html[data-cpdocs-theme="dark"] body.cp16-layout .doc-content table tbody tr:nth-child(odd) > :is(th,td){background:#142e43 !important;color:#edf8ff !important;}
html[data-cpdocs-theme="dark"] body.cp16-layout .doc-content table tbody tr:nth-child(even) > :is(th,td){background:#0e2234 !important;color:#e0f1ff !important;}
html[data-cpdocs-theme="dark"] body.cp16-layout .doc-content table thead :is(th,td){background:#0b354d !important;color:#fff !important;}
html[data-cpdocs-theme="dark"] body.cp16-layout .doc-content table :is(tr,td,th) :is(span,p,b,strong,small,em){color:inherit !important;}
html[data-cpdocs-theme="dark"] body.cp16-layout .doc-content table a{color:#83e6ff !important;}
html[data-cpdocs-theme="light"] body.cp16-layout .doc-content table tbody tr:nth-child(odd) > :is(th,td){background:#f2f7fb !important;color:#15334c !important;}
html[data-cpdocs-theme="light"] body.cp16-layout .doc-content table tbody tr:nth-child(even) > :is(th,td){background:#fff !important;color:#15334c !important;}
html[data-cpdocs-theme="light"] body.cp16-layout .doc-content table thead :is(th,td){background:#e4f2fa !important;color:#13344c !important;}
html[data-cpdocs-theme="light"] body.cp16-layout .doc-content table :is(tr,td,th) :is(span,p,b,strong,small,em){color:inherit !important;}
/* Hero top appears dynamic without interfering with content. */
html[data-cpdocs-theme] body.cp16-layout .doc-content :is(.hero-doc,.portal-hero,.home-tech-hero){position:relative;isolation:isolate;overflow:hidden;}
html[data-cpdocs-theme] body.cp16-layout .doc-content :is(.hero-doc,.portal-hero,.home-tech-hero)::after{
 content:"";position:absolute;inset:-30%;pointer-events:none;z-index:-1;
 background:radial-gradient(circle at 78% 30%,rgba(31,202,255,.15),transparent 32%);
 opacity:.7;
}
html.cpdocs-motion-ok[data-cpdocs-theme] body.cp16-layout .doc-content :is(.hero-doc,.portal-hero,.home-tech-hero)::after{
 animation:cp171-hero-breathe 8s ease-in-out infinite alternate;
}
@keyframes cp171-hero-breathe{from{opacity:.4;transform:scale(1)}to{opacity:1;transform:scale(1.035)}}
@media(prefers-reduced-motion:reduce){
 html[data-cpdocs-theme] body.cp16-layout .topbar::after{animation:none !important;}
 html[data-cpdocs-theme] body.cp16-layout .sidebar .nav-node.level-0 > .nav-group > .nav-summary::before{animation:none !important;}
 html[data-cpdocs-theme] body.cp16-layout .doc-content :is(.hero-doc,.portal-hero,.home-tech-hero)::after{animation:none !important;}
}
/* Optional motion switch: the browser's reduced-motion preference is respected
 * by default, but an explicit user click can enable selected ambient effects. */
html[data-cpdocs-theme] .cp171-effects-toggle {
  position:static;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  white-space:nowrap;min-height:36px;flex:0 0 auto;padding:7px 10px;
  background:#0a273b;color:#d9f5ff;border:1px solid #407995;
  border-radius:12px;font:700 12px/1.2 Inter,Segoe UI,Arial,sans-serif;cursor:pointer;
}
html[data-cpdocs-theme] .cp171-effects-toggle[aria-pressed="true"] {background:#104760;border-color:#39bddd;color:#efffff;}
html[data-cpdocs-theme] .cp171-effects-toggle:focus-visible {outline:3px solid #42d6ff;outline-offset:3px;}
@media(max-width:650px){html[data-cpdocs-theme] .cp171-effects-text{display:none;}html[data-cpdocs-theme] .cp171-effects-toggle{min-height:34px;padding:7px 9px;}}
html.cp171-motion-disabled .cpdocs-reveal,html.cp171-motion-disabled .nav-group[open] > .nav-children,
html.cp171-motion-disabled .cp093-hero::after {animation:none !important;}
html.cp171-motion-disabled[data-cpdocs-theme] body.cp16-layout .topbar::after,
html.cp171-motion-disabled[data-cpdocs-theme] body.cp16-layout .sidebar .nav-node.level-0 > .nav-group > .nav-summary::before,
html.cp171-motion-disabled[data-cpdocs-theme] body.cp16-layout .doc-content :is(.hero-doc,.portal-hero,.home-tech-hero)::after {animation:none !important;}
/* Explicit opt-in overrides only the three ambient animations even when OS has reduce. */
html.cp171-motion-forced[data-cpdocs-theme] body.cp16-layout .topbar::after {
 animation:cp171-header-led 5.5s linear infinite !important;animation-duration:5.5s !important;animation-iteration-count:infinite !important;
}
html.cp171-motion-forced[data-cpdocs-theme] body.cp16-layout .sidebar .nav-node.level-0 > .nav-group[open] > .nav-summary::before {
 animation:cp171-nav-beacon 3s ease-in-out infinite !important;animation-duration:3s !important;animation-iteration-count:infinite !important;
}
html.cp171-motion-forced[data-cpdocs-theme] body.cp16-layout .doc-content :is(.hero-doc,.portal-hero,.home-tech-hero)::after {
 animation:cp171-hero-breathe 8s ease-in-out infinite alternate !important;animation-duration:8s !important;animation-iteration-count:infinite !important;
}
