/* SmartMon Web V3.24.6 - cabeceras interiores compactas: acciones arriba, nunca debajo del texto. */
body.sx-theme:not(.sm-home) main > .hero-small > .container:has(> :is(a.btn,.sm3237-actions)){
 display:grid;grid-template-columns:minmax(0,1fr) auto;
 align-items:start;align-content:start;column-gap:clamp(12px,2vw,28px);row-gap:0;
}
body.sx-theme:not(.sm-home) main > .hero-small > .container:has(> :is(a.btn,.sm3237-actions)) > :not(a.btn,.sm3237-actions){
 grid-column:1;min-width:0;
}
body.sx-theme:not(.sm-home) main > .hero-small > .container > :is(a.btn,.sm3237-actions){
 grid-column:2;grid-row:1 / span 4;align-self:start;justify-self:end;margin:0;
}
body.sx-theme:not(.sm-home) main > .hero-small > .container > .sm3237-actions{
 display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:7px 12px;
 max-width:100%;padding:0;
}
body.sx-theme:not(.sm-home) main > .hero-small > .container > a.btn,
body.sx-theme:not(.sm-home) main > .hero-small > .container > .sm3237-actions > .btn{
 min-height:36px;padding:9px 14px;margin:0!important;gap:6px;
 font-size:12px;line-height:1.3;white-space:nowrap;
}
body.sx-theme:not(.sm-home) main > .hero-small > .container > .sm3237-actions > .sm3237-hero-link{
 margin:0;font-size:12px;line-height:1.4;color:#fff;text-underline-offset:2px;
}
body.sx-theme:not(.sm-home) main > .hero-small > .container:has(> :is(a.btn,.sm3237-actions)) > h1{
 margin:5px 0 6px;overflow-wrap:anywhere;
}
body.sx-theme:not(.sm-home) main > .hero-small > .container:has(> :is(a.btn,.sm3237-actions)) > p{
 margin:0;line-height:1.45;
}
@media(min-width:621px) and (max-width:900px){
 body.sx-theme:not(.sm-home) main > .hero-small > .container > .sm3237-actions{
  flex-direction:column;align-items:flex-end;gap:5px;
 }
}
@media(max-width:620px){
  body.sx-theme:not(.sm-home) main > .hero-small > .container:has(> :is(a.btn,.sm3237-actions)){
  display:flex;flex-direction:column;align-items:flex-start;gap:0;
 }
 body.sx-theme:not(.sm-home) main > .hero-small > .container:has(> :is(a.btn,.sm3237-actions)) > .breadcrumbs{
  order:-2;margin-bottom:4px;
 }
 body.sx-theme:not(.sm-home) main > .hero-small > .container > :is(a.btn,.sm3237-actions){
  order:-1;align-self:flex-end;margin:0 0 6px;
 }
 body.sx-theme:not(.sm-home) main > .hero-small > .container > .sm3237-actions{
  flex-direction:row;justify-content:flex-end;align-items:center;gap:5px 10px;
 }
 body.sx-theme:not(.sm-home) main > .hero-small > .container > a.btn,
 body.sx-theme:not(.sm-home) main > .hero-small > .container > .sm3237-actions > .btn{
  min-height:32px;padding:7px 11px;font-size:11px;white-space:normal;text-align:center;
 }
 body.sx-theme:not(.sm-home) main > .hero-small > .container > .sm3237-actions > .sm3237-hero-link{font-size:11px}
 body.sx-theme:not(.sm-home) main > .hero-small > .container:has(> :is(a.btn,.sm3237-actions)) > h1{
  margin:4px 0 6px;
 }
}

/* V3.24.46: una sola escala de padding exterior para todos los heroes interiores. */
body.sx-theme:not(.sm-home) main .hero-small{
 --sm-interior-hero-padding:48px;
 padding-block:var(--sm-interior-hero-padding)!important;
 min-height:0;
}
body.sx-theme:not(.sm-home) main .hero-small>.container{
 padding-block:0;
}
body.sx-theme:not(.sm-home) main .hero-small>.container>:first-child{margin-block-start:0}
body.sx-theme:not(.sm-home) main .hero-small>.container>:last-child{margin-block-end:0}
@media(max-width:1023px){
 body.sx-theme:not(.sm-home) main .hero-small{--sm-interior-hero-padding:32px}
}
@media(max-width:767px){
 body.sx-theme:not(.sm-home) main .hero-small{--sm-interior-hero-padding:24px}
}
@media(max-width:620px){
 /* El subtítulo OEE ya se oculta en este rango; evita su margen residual. */
 body.sx-theme:not(.sm-home) main .oee-hero>.container>h1:has(+p:last-child){margin-bottom:0!important}
}
