/* V31.4.27 — Cost Navigation Harmonization */
.v31427-cost-nav-shell{
  width:100%;
  margin:0 0 18px;
  border:1px solid #d9e3ef;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 28px rgba(23,53,91,.075);
  overflow:hidden;
}
.v31427-domain-row{
  display:flex;
  align-items:stretch;
  gap:0;
  width:min(760px,100%);
  padding:12px 12px 0;
  background:linear-gradient(180deg,#f8fbff 0%,#f3f7fc 100%);
}
.v31427-domain-btn{
  flex:1 1 0;
  min-width:0;
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:16px 24px;
  border:1px solid #d3dfed;
  background:#fff;
  color:#153765;
  font:900 17px/1.1 inherit;
  letter-spacing:-.01em;
  cursor:pointer;
  transition:background .14s ease,color .14s ease,border-color .14s ease,box-shadow .14s ease,transform .14s ease;
}
.v31427-domain-btn:first-child{border-radius:14px 0 0 14px;}
.v31427-domain-btn:last-child{border-radius:0 14px 14px 0;border-left:0;}
.v31427-domain-btn:hover:not(.on){background:#f8fbff;color:#0f61ce;}
.v31427-domain-btn.on{
  position:relative;
  z-index:1;
  background:linear-gradient(135deg,#1972eb 0%,#0f5fda 100%);
  color:#fff;
  border-color:#1769e0;
  box-shadow:0 8px 22px rgba(23,105,224,.24);
}
.v31427-domain-btn.on + .v31427-domain-btn{border-left-color:#d3dfed;}
.v31427-domain-icon{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.v31427-domain-icon svg{
  width:27px;
  height:27px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.v31427-subnav-row{
  padding:12px 14px 13px;
  border-top:1px solid #e2e9f2;
  background:#fff;
}
.v31427-subnav-row .v280-subnav.v31427-subnav{
  width:max-content;
  max-width:100%;
  margin:0;
  padding:4px;
  gap:4px;
  border:0;
  border-radius:11px;
  background:#f4f7fa;
  box-shadow:none;
  overflow:auto;
}
.v31427-subnav-row .v280-subnav.v31427-subnav button{
  min-height:40px;
  padding:9px 16px;
  border-radius:9px;
  font-size:12px;
  font-weight:800;
  color:#50617a;
}
.v31427-subnav-row .v280-subnav.v31427-subnav button.on{
  background:#fff;
  color:#0b66d8;
  box-shadow:0 3px 9px rgba(27,66,112,.12);
}
.v31427-domain-row-standalone{border-radius:16px;background:#f5f8fc;padding:10px;width:min(760px,100%);}

/* Neutraliza o layout intermediário V31.4.26 quando o shell novo está ativo. */
.v31427-cost-nav-shell .v286-cost-domain.v31426-cost-domain{display:none!important;}

@media(max-width:900px){
  .v31427-domain-row{width:100%;}
  .v31427-domain-btn{min-height:62px;padding:14px 18px;font-size:16px;}
  .v31427-domain-icon{width:24px;height:24px;}
  .v31427-domain-icon svg{width:24px;height:24px;}
}
@media(max-width:620px){
  .v31427-cost-nav-shell{border-radius:15px;margin-bottom:14px;}
  .v31427-domain-row{padding:8px 8px 0;}
  .v31427-domain-btn{min-height:56px;gap:8px;padding:12px 10px;font-size:14px;}
  .v31427-domain-btn:first-child{border-radius:11px 0 0 11px;}
  .v31427-domain-btn:last-child{border-radius:0 11px 11px 0;}
  .v31427-domain-icon{display:none;}
  .v31427-subnav-row{padding:9px 10px 10px;}
  .v31427-subnav-row .v280-subnav.v31427-subnav button{min-height:36px;padding:8px 12px;font-size:11px;}
}
html[data-roadmap-theme="dark"] .v31427-cost-nav-shell{
  background:#172033;
  border-color:#2d3b51;
  box-shadow:0 12px 30px rgba(0,0,0,.26);
}
html[data-roadmap-theme="dark"] .v31427-domain-row{
  background:linear-gradient(180deg,#1b283b 0%,#172335 100%);
}
html[data-roadmap-theme="dark"] .v31427-domain-btn{
  background:#172033;
  color:#dbe6f5;
  border-color:#34455c;
}
html[data-roadmap-theme="dark"] .v31427-domain-btn:hover:not(.on){background:#1d2a3e;color:#8fc0ff;}
html[data-roadmap-theme="dark"] .v31427-domain-btn.on{
  background:linear-gradient(135deg,#1972eb 0%,#0c57c9 100%);
  color:#fff;
  border-color:#1972eb;
}
html[data-roadmap-theme="dark"] .v31427-subnav-row{
  background:#172033;
  border-top-color:#2d3b51;
}
html[data-roadmap-theme="dark"] .v31427-subnav-row .v280-subnav.v31427-subnav{
  background:#1c293b;
}
html[data-roadmap-theme="dark"] .v31427-subnav-row .v280-subnav.v31427-subnav button{color:#b9c7da;}
html[data-roadmap-theme="dark"] .v31427-subnav-row .v280-subnav.v31427-subnav button.on{
  background:#243249;
  color:#8fc0ff;
}
