/* Correção final — Jurídico no mesmo acabamento do painel de Locações */
html:not(.dark) #sidebar[data-system="juris"]{
  --jur-gold:#ddb06a;--jur-gold-hi:#f1d29c;
  isolation:isolate;overflow:hidden!important;
  background:
    radial-gradient(105% 56% at 4% 0%,rgba(58,122,159,.22),transparent 62%),
    radial-gradient(90% 46% at 112% 56%,rgba(13,79,118,.16),transparent 68%),
    linear-gradient(180deg,rgba(3,38,61,.96) 0%,rgba(3,31,51,.965) 39%,rgba(2,25,42,.93) 67%,rgba(1,18,31,.88) 100%),
    var(--cena-bridge) center bottom/auto 42% no-repeat!important;
  border-right:1px solid rgba(221,177,106,.48)!important;
  box-shadow:18px 0 42px -34px rgba(0,12,22,.92),inset -1px 0 rgba(255,255,255,.045)!important;
}
html:not(.dark) #sidebar[data-system="juris"]::before{
  content:""!important;display:block!important;position:absolute!important;inset:0!important;pointer-events:none!important;z-index:0!important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.025),transparent 24%,rgba(1,16,27,.18) 64%,rgba(0,10,18,.58)),
    radial-gradient(125% 60% at -28% 70%,transparent 0 68.5%,rgba(226,182,108,.26) 68.9%,rgba(226,182,108,.07) 69.3%,transparent 69.8%);
}
html:not(.dark) #sidebar[data-system="juris"] :is(.brand,.navwrap,.navfoot){position:relative!important;z-index:3!important}
html:not(.dark) #sidebar[data-system="juris"] .brand{
  min-height:110px!important;padding:18px 18px 14px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.002))!important;
  border-bottom:1px solid rgba(224,183,113,.16)!important;
  box-shadow:inset 0 -24px 34px -40px rgba(0,0,0,.96)!important;
}
html:not(.dark) #sidebar[data-system="juris"] .cena-system-brand img{width:min(184px,92%)!important;filter:brightness(0) invert(1) drop-shadow(0 5px 16px rgba(0,0,0,.22))!important}
html:not(.dark) #sidebar[data-system="juris"] .cena-system-brand small{color:var(--jur-gold)!important;font-size:8.5px!important;letter-spacing:.25em!important;font-weight:700!important}
html:not(.dark) #sidebar[data-system="juris"] .navwrap{padding:18px 13px 10px!important}
html:not(.dark) #sidebar[data-system="juris"] .navlabel{margin:0 9px 11px!important;color:var(--jur-gold)!important;opacity:.94!important;font-size:8px!important;letter-spacing:.23em!important;font-weight:700!important}
html:not(.dark) #sidebar[data-system="juris"] .navitem{
  position:relative!important;min-height:49px!important;margin:0 0 6px!important;padding:0 13px!important;gap:12px!important;
  border-radius:16px!important;border:1px solid rgba(171,205,222,.09)!important;color:rgba(244,248,250,.84)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.030),rgba(255,255,255,.006))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.026),0 8px 20px -23px rgba(0,0,0,.9)!important;
  transform:none!important;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease,color .2s ease!important;
}
html:not(.dark) #sidebar[data-system="juris"] .navitem:hover{color:#fff!important;border-color:rgba(224,181,110,.25)!important;background:linear-gradient(145deg,rgba(17,72,105,.66),rgba(4,34,55,.52))!important}
html:not(.dark) #sidebar[data-system="juris"] .navitem>span:last-child{font-size:13px!important;font-weight:600!important;letter-spacing:-.015em!important}
html:not(.dark) #sidebar[data-system="juris"] .nav-glyph{
  width:28px!important;height:28px!important;min-width:28px!important;display:grid!important;place-items:center!important;padding:0!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:var(--jur-gold)!important;
  filter:drop-shadow(0 4px 7px rgba(0,0,0,.18))!important;
}
html:not(.dark) #sidebar[data-system="juris"] .nav-glyph::before{color:var(--jur-gold)!important;font-size:20px!important}
html:not(.dark) #sidebar[data-system="juris"] .navitem.active{
  color:#fff!important;border-color:rgba(234,197,135,.80)!important;
  background:radial-gradient(86% 175% at 100% 50%,rgba(54,144,213,.34),transparent 56%),linear-gradient(105deg,rgba(13,72,108,.99),rgba(5,44,70,.995) 70%,rgba(3,31,50,.995))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.11),inset 0 -18px 28px -27px rgba(0,0,0,.86),0 14px 30px -22px rgba(28,108,171,.92),0 0 18px -10px rgba(229,181,99,.78)!important;
}
html:not(.dark) #sidebar[data-system="juris"] .navitem.active::before{content:""!important;display:block!important;position:absolute!important;left:-1px!important;top:9px!important;bottom:9px!important;width:4px!important;border-radius:0 5px 5px 0!important;background:linear-gradient(180deg,var(--jur-gold-hi),#b8792d)!important;box-shadow:0 0 13px rgba(232,185,108,.54)!important}
html:not(.dark) #sidebar[data-system="juris"] .navitem.active .nav-glyph::before{color:var(--jur-gold-hi)!important}
html:not(.dark) #sidebar[data-system="juris"] .navfoot{padding:10px 13px 14px!important;border-top:1px solid rgba(218,177,107,.14)!important;background:linear-gradient(180deg,rgba(2,20,34,.20),rgba(2,16,28,.78))!important;backdrop-filter:blur(5px)!important}
html:not(.dark) #sidebar[data-system="juris"] .navfoot .navitem{min-height:44px!important;margin-bottom:4px!important;border-radius:14px!important;background:rgba(2,22,37,.34)!important;border-color:rgba(211,173,107,.07)!important}

/* Área segura do hero: nada fica sob a barra superior */
html:not(.dark) #content.cena-route-page > .cena-juris-hero{
  height:260px!important;min-height:260px!important;margin:0 -18px 18px!important;
  background:
    linear-gradient(90deg,rgba(248,243,234,.99) 0 34%,rgba(248,243,234,.91) 45%,rgba(4,30,48,.05) 70%,rgba(2,21,35,.16)),
    var(--cena-bridge) center top/100% auto no-repeat!important;
}
html:not(.dark) #content.cena-route-page > .cena-juris-hero:before{top:-28%!important;height:145%!important;width:55%!important}
html:not(.dark) #content.cena-route-page > .cena-juris-hero .cena-juris-hero-copy{left:30px!important;top:88px!important;max-width:660px!important}
html:not(.dark) #content.cena-route-page > .cena-juris-hero .cena-juris-hero-copy h1{margin:8px 0 6px!important;font-size:clamp(34px,3vw,46px)!important;line-height:1.04!important;white-space:normal!important}
html:not(.dark) #content.cena-route-page > .cena-juris-hero .cena-juris-hero-copy p{font-size:12px!important}
html:not(.dark) #content.cena-route-page > .cena-juris-hero .cena-juris-hero-note{right:28px!important;bottom:22px!important}

/* Comunicação: fundo claro contínuo e seção formalizada com hierarquia real */
html:not(.dark) #content.cena-route-page:has(#cp-calendar){background:linear-gradient(145deg,#f6f0e7 0%,#eadfce 56%,#f8f4ed 100%)!important}
html:not(.dark) #content.cena-route-page:has(#cp-calendar) #cp-calendar{padding:0 0 28px!important;color:#0b2b45!important}
html:not(.dark) #content.cena-route-page:has(#cp-calendar) .cp-category{
  position:relative!important;margin:24px 0 0!important;padding:22px!important;border-radius:22px!important;
  background:linear-gradient(145deg,rgba(255,253,248,.94),rgba(237,227,212,.90))!important;
  border:1px solid rgba(45,71,88,.10)!important;box-shadow:0 24px 56px -42px rgba(0,28,46,.60),inset 0 1px #fff!important;
}
html:not(.dark) #content.cena-route-page:has(#cp-calendar) .cp-category-head{margin:0 0 17px!important;padding:0 0 15px 4px!important;border-bottom:1px solid rgba(35,72,95,.10)!important}
html:not(.dark) #content.cena-route-page:has(#cp-calendar) .cp-category-head small{color:#a76b28!important;font-size:9px!important;letter-spacing:.17em!important}
html:not(.dark) #content.cena-route-page:has(#cp-calendar) .cp-category-head h2{margin:6px 0 3px!important;color:#0b2b45!important;font-size:28px!important;line-height:1.1!important}
html:not(.dark) #content.cena-route-page:has(#cp-calendar) .cp-category-head p{color:#627786!important;font-size:10px!important}
html:not(.dark) #content.cena-route-page:has(#cp-calendar) .cp-category-negotiation{border-top:1px solid rgba(45,71,88,.10)!important}
html:not(.dark) #content.cena-route-page:has(#cp-calendar) .cp-terrain{background:linear-gradient(145deg,#fffdf8,#f0e6d8)!important;border-color:rgba(45,71,88,.11)!important}
html:not(.dark) #content.cena-route-page:has(#cp-calendar) .cp-toolbar{background:rgba(255,253,249,.90)!important}
@media(max-height:780px){html:not(.dark) #sidebar[data-system="juris"] .navitem{min-height:44px!important;margin-bottom:4px!important}html:not(.dark) #sidebar[data-system="juris"] .brand{min-height:96px!important;padding-top:13px!important}}
@media(max-width:760px){html:not(.dark) #content.cena-route-page > .cena-juris-hero{height:230px!important;min-height:230px!important}html:not(.dark) #content.cena-route-page > .cena-juris-hero .cena-juris-hero-copy{left:20px!important;top:78px!important;max-width:calc(100% - 40px)!important}}


/* Paridade exata com o hero aprovado de Locações */
html:not(.dark) #content.cena-route-page > .cena-juris-hero{
  height:272px!important;min-height:272px!important;border-radius:0 0 30px 30px!important;
  background:
    linear-gradient(90deg,rgba(249,245,238,.96) 0%,rgba(249,245,238,.88) 24%,rgba(246,240,230,.54) 36%,rgba(242,234,220,.16) 47%,rgba(6,40,61,.03) 63%,rgba(2,25,40,.13) 100%),
    linear-gradient(180deg,rgba(255,255,255,.10),rgba(2,25,40,.10)),
    var(--cena-bridge) center 49%/cover no-repeat!important;
  box-shadow:0 34px 76px -48px rgba(0,28,46,.58),inset 0 -1px rgba(255,255,255,.52)!important;
}
html:not(.dark) #content.cena-route-page > .cena-juris-hero:before{
  left:-11%!important;top:-185px!important;width:70%!important;height:366px!important;
  transform:rotate(-4.1deg)!important;border-radius:0 0 78% 13% / 0 0 72% 16%!important;
  background:radial-gradient(ellipse at 79% 96%,rgba(255,255,255,.72),transparent 43%),radial-gradient(ellipse at 16% 14%,rgba(255,255,255,.88),transparent 52%),linear-gradient(138deg,#faf7f1 0%,#f0e7dc 62%,#e5d6c4 100%)!important;
  box-shadow:28px 25px 68px -55px rgba(2,37,59,.62),inset -1px -1px rgba(190,151,96,.12)!important;opacity:.97!important;
}
html:not(.dark) #content.cena-route-page > .cena-juris-hero:after{
  background:radial-gradient(113% 92% at 8% -44%,transparent 0 55.3%,rgba(198,153,87,.24) 55.65%,transparent 56.1%),radial-gradient(103% 80% at 17% -33%,transparent 0 60.4%,rgba(255,255,255,.62) 60.8%,transparent 61.4%),radial-gradient(93% 69% at 28% -29%,transparent 0 63.5%,rgba(84,145,175,.13) 63.9%,transparent 64.3%),linear-gradient(100deg,transparent 0 42%,rgba(255,255,255,.04) 54%,rgba(5,39,60,.04) 72%,rgba(1,18,30,.16) 100%)!important;
}
html:not(.dark) #content.cena-route-page > .cena-juris-hero .cena-juris-hero-copy{left:42px!important;top:91px!important;z-index:6!important;max-width:620px!important}
html:not(.dark) #content.cena-route-page > .cena-juris-hero .cena-juris-hero-copy:before{
  content:"";position:absolute;z-index:-1;left:-78px;top:-52px;width:660px;height:205px;border-radius:0 0 72% 13% / 0 0 76% 18%;transform:rotate(1.2deg);
  background:linear-gradient(123deg,rgba(251,248,242,.72) 0%,rgba(248,244,236,.42) 66%,rgba(248,244,236,0) 100%);box-shadow:inset 0 -1px rgba(190,145,79,.09);
}
html:not(.dark) #content.cena-route-page > .cena-juris-hero .cena-juris-hero-copy:after{
  content:"";position:absolute;left:-92px;top:137px;width:700px;height:1px;transform:rotate(-6.4deg);transform-origin:left center;background:linear-gradient(90deg,transparent 0%,rgba(193,146,79,.35) 28%,rgba(80,143,173,.16) 73%,transparent 100%);
}
html:not(.dark) #content.cena-route-page > .cena-juris-hero .cena-juris-hero-note{z-index:6!important;right:34px!important;top:119px!important;bottom:auto!important;width:190px!important}
html:not(.dark) #content.cena-route-page > .cena-juris-hero + :is(.kpis,.cp-kpis){position:relative!important;z-index:9!important;margin-top:-43px!important;padding:0 28px!important}
@media(max-width:900px){
 html:not(.dark) #content.cena-route-page > .cena-juris-hero{height:225px!important;min-height:225px!important;border-radius:24px!important}
 html:not(.dark) #content.cena-route-page > .cena-juris-hero .cena-juris-hero-copy{top:78px!important;left:20px!important;max-width:calc(100% - 40px)!important}
 html:not(.dark) #content.cena-route-page > .cena-juris-hero:before{width:108%!important;left:-42%!important}
}
