/* MaterialesRD 0.11.46 — densidad móvil transversal, exclusivamente dentro de MaterialesRD.
 * El motor de paneles y formularios compartidos sigue siendo responsabilidad de HR.
 * Media queries deliberadamente acotadas: preservar escritorio e impresión. */
@media screen and (max-width:767px){
  body.materialesrd-page .mrd-shell{padding:20px 12px 38px}
  body.materialesrd-page .mrd-section{padding:32px 12px!important}
  body.materialesrd-page .mrd-section-head{margin-bottom:15px!important}
  body.materialesrd-page .mrd-section-head h2{font-size:clamp(21px,5.8vw,27px)!important;line-height:1.2}
  body.materialesrd-page .mrd-title{margin-bottom:16px}
  body.materialesrd-page .mrd-title h1{font-size:clamp(23px,6.5vw,30px)}
  body.materialesrd-page .mrd-hero{min-height:0;padding:28px 12px;gap:16px}
  body.materialesrd-page .mrd-hero h1{font-size:clamp(30px,8vw,43px)}
  body.materialesrd-page .mrd-hero p{font-size:15px;line-height:1.45}
  body.materialesrd-page .mrd-home-hero-inner{min-height:0;padding:32px 12px 42px}
  body.materialesrd-page .mrd-home-copy h1{font-size:clamp(30px,8.4vw,43px)!important;line-height:1.08}
  body.materialesrd-page .mrd-home-lead{font-size:14px;line-height:1.5}
  body.materialesrd-page .mrd-role-grid,
  body.materialesrd-page .mrd-timeline,
  body.materialesrd-page .mrd-timeline.vertical,
  body.materialesrd-page .mrd-option-grid,
  body.materialesrd-page .mrd-option-grid.categories,
  body.materialesrd-page .mrd-related-options,
  body.materialesrd-page .mrd-request-intro-points,
  body.materialesrd-page .mrd-supplier-compact-selectors,
  body.materialesrd-page .mrd-logistics-facts,
  body.materialesrd-page .mrd-grid-3,
  body.materialesrd-page .mrd-grid-4{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  body.materialesrd-page .mrd-request-intro-points{min-width:0;margin-top:10px}
  body.materialesrd-page .mrd-request-intro-points b{font-size:11px;padding:8px}
  body.materialesrd-page .mrd-request-main{gap:11px}
  body.materialesrd-page .mrd-request-block{padding:13px;border-radius:13px}
  body.materialesrd-page .mrd-request-intro{padding:14px}
  body.materialesrd-page .mrd-request-intro h2{font-size:clamp(21px,5.8vw,27px)}
  body.materialesrd-page .mrd-request-block-head{gap:8px;margin-bottom:11px}
  body.materialesrd-page .mrd-request-block-head h3{font-size:17px}
  body.materialesrd-page .mrd-request-form .mrd-form-grid.two,
  body.materialesrd-page .mrd-request-form .mrd-form-grid.three,
  body.materialesrd-page .mrd-request-form .mrd-form-grid.four,
  body.materialesrd-page .mrd-project-form .mrd-form-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px}
  body.materialesrd-page .mrd-request-form .mrd-form-grid>label,
  body.materialesrd-page .mrd-project-form .mrd-form-grid>label{min-width:0;margin-bottom:0;overflow-wrap:anywhere}
  body.materialesrd-page .mrd-request-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body.materialesrd-page .mrd-request-form select,
  body.materialesrd-page .mrd-request-form textarea{width:100%;max-width:100%;box-sizing:border-box;font-size:16px!important;min-height:42px}
  body.materialesrd-page .mrd-request-form .mrd-form-grid:has(input[type="file"])>label:has(input[type="file"]),
  body.materialesrd-page .mrd-request-form .mrd-form-grid>label:has(textarea){grid-column:1/-1}
  body.materialesrd-page .mrd-form-grid>label:has(input[type="file"]) input[type="file"]{width:100%;max-width:100%}
  body.materialesrd-page .mrd-request-form :is(input[type="checkbox"],input[type="radio"]){width:auto;min-height:0;height:auto;flex-shrink:0}
  body.materialesrd-page .mrd-request-summary{position:static;padding:12px;gap:5px;grid-template-columns:repeat(2,minmax(0,1fr));border-radius:12px}
  body.materialesrd-page .mrd-request-summary>div{min-width:0;padding:8px 4px}
  body.materialesrd-page .mrd-request-summary>span,
  body.materialesrd-page .mrd-request-summary>h3,
  body.materialesrd-page .mrd-request-summary>p{grid-column:1/-1}
  body.materialesrd-page .mrd-material-item{padding:11px}
  body.materialesrd-page .mrd-material-items{gap:9px}
  body.materialesrd-page .mrd-upload-box{padding:11px}
  body.materialesrd-page .mrd-submit-panel{padding:13px}
  body.materialesrd-page .mrd-submit-panel .mrd-btn{min-height:44px}
  body.materialesrd-page .mrd-request-detail,
  body.materialesrd-page .mrd-request-detail.mrd-request-detail-rich{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.materialesrd-page .mrd-request-detail>div{padding:9px;min-width:0;overflow-wrap:anywhere}
  body.materialesrd-page .mrd-order-flow ol{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  body.materialesrd-page .mrd-order-flow li{padding:11px}
  body.materialesrd-page .mrd-quote-line-grid.mrd-form-grid.three,
  body.materialesrd-page .mrd-quote-commercial .mrd-form-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.materialesrd-page .mrd-quote-line-grid.mrd-form-grid.three>label:first-child,
  body.materialesrd-page .mrd-quote-commercial .mrd-form-grid.three>label:first-child{grid-column:1/-1}
  body.materialesrd-page .mrd-exp-timeline{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.materialesrd-page .mrd-exp-hero{padding:14px;gap:10px}
  body.materialesrd-page .mrd-exp-panel{padding:12px}
  body.materialesrd-page .mrd-exp-docs>div{min-width:0;overflow-wrap:anywhere}
  body.materialesrd-page .mrd-coverage-grid{max-height:210px}
  body.materialesrd-page .mrd-flex-inline{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.materialesrd-page .mrd-multi-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.materialesrd-page .mrd-toolbar{display:grid;gap:8px}
  body.materialesrd-page .mrd-toolbar input{max-width:none}
  body.materialesrd-page .mrd-modal-card{padding:13px}
  body.materialesrd-page .mrd-form label{margin-bottom:10px}
  body.materialesrd-page .mrd-form input,
  body.materialesrd-page .mrd-form select,
  body.materialesrd-page .mrd-form textarea{min-width:0;max-width:100%;font-size:16px}
  body.materialesrd-page .mrd-table-wrap,
  body.mrd-public-portal .mrd-portal-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;scrollbar-width:thin}
  body.materialesrd-page .mrd-table-wrap:focus-visible,
  body.mrd-public-portal .mrd-portal-table-wrap:focus-visible{outline:3px solid #f36c21;outline-offset:2px}
  body.materialesrd-page .mrd-table th,body.materialesrd-page .mrd-table td{padding:9px 10px}
  body.materialesrd-page .mrd-btn,body.mrd-public-portal .mrd-portal-btn{min-height:40px}
  body.materialesrd-page input[type="checkbox"],body.mrd-public-portal input[type="checkbox"]{accent-color:#176b52}
  body.materialesrd-page .mrd-home .mrd-actions{gap:8px}
  body.materialesrd-page .mrd-footer-main{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;padding:22px 14px!important}
  body.materialesrd-page .mrd-footer-brand{grid-column:1/-1}
  body.materialesrd-page .mrd-footer-col{min-width:0;overflow-wrap:anywhere}
  body.materialesrd-page .mrd-footer-bottom{padding:12px 14px}
  body.materialesrd-page .mrd-shell *,body.mrd-public-portal .mrd-portal-content *{box-sizing:border-box}
  body.materialesrd-page .mrd-request-block *,body.mrd-public-portal .mrd-portal-block *{min-width:0}
  body.materialesrd-page .mrd-shell a,body.mrd-public-portal .mrd-portal-content a{overflow-wrap:anywhere}
  body.materialesrd-page .mrd-shell :is(a,button,input,select,textarea):focus-visible,
  body.mrd-public-portal .mrd-portal-content :is(a,button,input,select,textarea):focus-visible{outline:3px solid #f36c21;outline-offset:2px}

  /* Paneles de comprador, suplidor y transportista: mismos patrones, sin tocar componentes HR. */
  body.mrd-public-portal .mrd-portal-toolbar{margin:9px auto;padding:0 11px;gap:8px;flex-wrap:wrap}
  body.mrd-public-portal .mrd-portal-back,body.mrd-public-portal .mrd-portal-panels-link{min-height:40px;flex:1 1 auto;justify-content:center;text-align:center}
  body.mrd-public-portal .mrd-portal-metrics,
  body.mrd-public-portal .mrd-portal-actions,
  body.mrd-public-portal .mrd-portal-cards,
  body.mrd-public-portal .mrd-portal-profile,
  body.mrd-public-portal .mrd-portal-stage-grid,
  body.mrd-public-portal .mrd-role-guide,
  body.mrd-public-portal .mrd-quote-group-summary,
  body.mrd-public-portal .mrd-fallback-panel nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  body.mrd-public-portal .mrd-portal-block{padding:12px;margin-bottom:11px;border-radius:13px}
  body.mrd-public-portal .mrd-portal-metrics{margin-bottom:11px}
  body.mrd-public-portal .mrd-portal-metrics article{padding:11px;border-radius:12px}
  body.mrd-public-portal .mrd-portal-metrics strong{font-size:clamp(18px,5.4vw,23px)}
  body.mrd-public-portal .mrd-portal-block-head{display:flex;flex-wrap:wrap;gap:5px 12px;margin-bottom:10px}
  body.mrd-public-portal .mrd-portal-block-head h2{font-size:17px}
  body.mrd-public-portal .mrd-portal-block-head>small{margin:0;font-size:11px}
  body.mrd-public-portal .mrd-portal-actions>a,
  body.mrd-public-portal .mrd-portal-actions>div{padding:11px;min-width:0;border-radius:12px}
  body.mrd-public-portal .mrd-portal-actions i{width:29px;height:29px;margin-bottom:6px}
  body.mrd-public-portal .mrd-portal-actions strong{font-size:12px;line-height:1.28}
  body.mrd-public-portal .mrd-portal-actions span{font-size:10px;line-height:1.36}
  body.mrd-public-portal .mrd-portal-profile>div,
  body.mrd-public-portal .mrd-portal-cards article{padding:11px}
  body.mrd-public-portal .mrd-portal-stage,
  body.mrd-public-portal .mrd-portal-future{padding:15px;margin-bottom:11px}
  body.mrd-public-portal .mrd-portal-stage-grid article{padding:10px}
  body.mrd-public-portal .mrd-role-guide article{padding:10px}
  body.mrd-public-portal .mrd-role-guide span{font-size:11px;line-height:1.35}
  body.mrd-public-portal .mrd-fallback-panel{padding:0 10px;margin-bottom:22px}
  body.mrd-public-portal .mrd-fallback-panel>aside,
  body.mrd-public-portal .mrd-fallback-panel>main{padding:11px}
  body.mrd-public-portal .mrd-fallback-panel nav a{padding:9px;font-size:11px}
  body.mrd-public-portal .mrd-portal-edit-form{gap:10px}
  body.mrd-public-portal .mrd-portal-edit-form section{padding:12px;border-radius:12px}
  body.mrd-public-portal .mrd-portal-edit-form .mrd-form-grid.two,
  body.mrd-public-portal .mrd-portal-edit-form .mrd-form-grid.three,
  body.mrd-public-portal .mrd-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px}
  body.mrd-public-portal .mrd-portal-edit-form .mrd-form-grid.three>label:last-child:nth-child(odd),
  body.mrd-public-portal .mrd-review-grid>label:last-child:nth-child(odd){grid-column:1/-1}
  body.mrd-public-portal .mrd-portal-edit-form label:has(input[type="file"]),
  body.mrd-public-portal .mrd-portal-edit-form label:has(textarea){grid-column:1/-1}
  body.mrd-public-portal .mrd-portal-edit-form :is(input,select,textarea),
  body.mrd-public-portal .mrd-review-grid :is(input,select,textarea){font-size:16px;max-width:100%;min-width:0}
  body.mrd-public-portal .mrd-quote-group-summary>div{padding:9px}
  body.mrd-public-portal .mrd-quote-group-summary>div:last-child:nth-child(odd){grid-column:1/-1}
  body.mrd-public-portal .mrd-project-hub{gap:10px;padding:11px}
  body.mrd-public-portal .mrd-project-hub-actions{gap:7px}
  body.mrd-public-portal .mrd-project-hub-actions>a{min-width:0;white-space:normal}
  body.mrd-public-portal .mrd-project-mini-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.mrd-public-portal .mrd-inline-editor[open]{min-width:0;max-width:100%}
  body.mrd-public-portal .mrd-portal-table-wrap{border-radius:10px}
  body.mrd-public-portal .mrd-portal-table th,
  body.mrd-public-portal .mrd-portal-table td{padding:9px}
  body.mrd-public-portal .mrd-portal-table{width:max-content;min-width:100%}
  body.mrd-public-portal .mrd-buyer-flow{margin-bottom:11px;padding:9px}

  /* Administración MaterialesRD: tarjetas y opciones en filas compactas. */
  body.mrd-admin-portal .mrd-admin-portal-toolbar{gap:8px;margin-bottom:9px}
  body.mrd-admin-portal .mrd-admin-command{padding:13px;gap:12px;border-radius:13px}
  body.mrd-admin-portal .mrd-admin-command h2{font-size:21px}
  body.mrd-admin-portal .mrd-admin-command-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.mrd-admin-portal .mrd-admin-command-grid article{padding:10px!important}
  body.mrd-admin-portal .mrd-admin-command-grid strong{font-size:20px}
  body.mrd-admin-portal .mrd-opportunity-setting-grid,
  body.mrd-admin-portal .mrd-opportunity-checks{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  body.mrd-admin-portal .mrd-opportunity-setting-grid label{min-width:0;overflow-wrap:anywhere}
  body.mrd-admin-portal .mrd-opportunity-setting-grid :is(input,select){max-width:100%;font-size:16px}
  body.mrd-admin-portal .mrd-settings-tabs{gap:6px}
  body.mrd-admin-portal .mrd-settings-tabs a{padding:9px}
}
@media screen and (min-width:430px) and (max-width:767px){
  body.mrd-public-portal .mrd-quote-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
}
@media screen and (max-width:359px){
  /* El teclado no debe recortar correo, dirección, archivos ni botones largos. */
  body.materialesrd-page .mrd-request-form .mrd-form-grid.two,
  body.materialesrd-page .mrd-request-form .mrd-form-grid.three,
  body.materialesrd-page .mrd-request-form .mrd-form-grid.four,
  body.materialesrd-page .mrd-project-form .mrd-form-grid.three,
  body.mrd-public-portal .mrd-portal-edit-form .mrd-form-grid.two,
  body.mrd-public-portal .mrd-portal-edit-form .mrd-form-grid.three,
  body.mrd-public-portal .mrd-review-grid{grid-template-columns:minmax(0,1fr)!important}
  body.materialesrd-page .mrd-role-grid,
  body.materialesrd-page .mrd-grid-3,
  body.materialesrd-page .mrd-grid-4,
  body.materialesrd-page .mrd-request-intro-points,
  body.materialesrd-page .mrd-option-grid.categories{grid-template-columns:1fr}
  body.mrd-public-portal .mrd-portal-actions,
  body.mrd-public-portal .mrd-portal-cards,
  body.mrd-public-portal .mrd-portal-stage-grid,
  body.mrd-public-portal .mrd-role-guide{grid-template-columns:1fr}
  body.mrd-admin-portal .mrd-opportunity-setting-grid{grid-template-columns:1fr}
}
/* Indicación de desplazamiento solo cuando JS detecta desbordamiento real. */
.mrd-mobile-table-hint{display:none}
@media screen and (max-width:767px){
  .mrd-mobile-table-hint:not([hidden]){display:flex;align-items:center;gap:5px;margin:3px 0 5px;color:#455e6e;font-size:11px;font-weight:700;line-height:1.3}
}
@media (prefers-reduced-motion:reduce){body.materialesrd-page .mrd-btn{transition:none!important}}


/* 0.11.58 — cabecera compacta para GeneratePress, sin duplicar el menú WP.
 * Solo actúa al reubicar la navegación primaria existente dentro del encabezado. */
@media screen and (max-width:767px) {
  body.materialesrd-page.mrd-nav-integrated .site-header {position:relative;z-index:90;background:#fff!important}
  body.materialesrd-page.mrd-nav-integrated .site-header .inside-header {
    display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
    justify-content:space-between!important;gap:12px!important;
    padding:10px 14px!important;min-height:68px;max-width:100%!important;
  }
  body.materialesrd-page.mrd-nav-integrated .site-header .site-logo,
  body.materialesrd-page.mrd-nav-integrated .site-header .site-logo a {
    display:block!important;min-width:0!important;flex:0 1 auto!important;margin:0!important;
  }
  body.materialesrd-page.mrd-nav-integrated .site-header .site-logo img,
  body.materialesrd-page.mrd-nav-integrated .site-header .custom-logo {
    display:block!important;width:auto!important;max-width:min(190px,51vw)!important;
    height:auto!important;max-height:49px!important;object-fit:contain!important;
  }
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation {
    display:block!important;position:static!important;flex:0 0 auto!important;
    width:auto!important;min-width:0!important;margin:0 0 0 auto!important;
    padding:0!important;background:transparent!important;box-shadow:none!important;
  }
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation .inside-navigation {
    display:block!important;position:static!important;width:auto!important;
    padding:0!important;margin:0!important;background:transparent!important;
  }
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation button.menu-toggle {
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    gap:8px!important;width:auto!important;min-width:85px!important;
    min-height:43px!important;height:auto!important;line-height:1.2!important;
    padding:10px 12px!important;border:1px solid #cdded4!important;border-radius:10px!important;
    color:#103f35!important;background:#edf6f1!important;font-size:13px!important;
    font-weight:800!important;white-space:nowrap!important;box-shadow:none!important;
  }
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation button.menu-toggle .gp-icon,
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation button.menu-toggle svg {
    width:18px!important;height:18px!important;color:#103f35!important;
  }
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation .mobile-menu,
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation .mrd-mobile-menu-word {
    display:inline!important;font-size:13px!important;font-weight:800!important;color:#103f35!important;
  }
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation .main-nav {
    position:absolute!important;top:calc(100% - 1px)!important;left:0!important;right:0!important;
    width:100%!important;max-height:calc(100dvh - 105px)!important;overflow-y:auto!important;
    overscroll-behavior:contain;background:#fff!important;border-top:1px solid #dde9e2!important;
    border-bottom:1px solid #cdded4!important;box-shadow:0 14px 26px rgba(16,63,53,.14)!important;
    padding:8px 12px 12px!important;z-index:1000!important;
  }
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation:not(.toggled) .main-nav {display:none!important}
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation.toggled .main-nav {display:block!important}
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation .main-nav>ul {
    display:block!important;margin:0!important;padding:0!important;
  }
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation .main-nav>ul>li>a {
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    min-height:43px!important;padding:10px 12px!important;margin:0!important;
    border-radius:8px!important;font-size:13px!important;line-height:1.4!important;
    text-decoration:none!important;white-space:normal!important;
  }
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation .main-nav>ul>li.mrd-nav-button>a {
    justify-content:center!important;min-height:44px!important;
    margin:7px 0!important;padding:10px 12px!important;border-radius:9px!important;
    color:#fff!important;
  }
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation .main-nav ul ul {
    position:static!important;width:100%!important;box-shadow:none!important;border:0!important;
    border-radius:8px!important;overflow:visible!important;
  }
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation button.menu-toggle:focus-visible,
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation a:focus-visible {
    outline:3px solid #f36c21!important;outline-offset:2px!important;
  }
}
@media screen and (max-width:350px){
 body.materialesrd-page.mrd-nav-integrated .site-header .inside-header{padding:8px 10px!important;gap:6px!important}
 body.materialesrd-page.mrd-nav-integrated .site-header .site-logo img,
 body.materialesrd-page.mrd-nav-integrated .site-header .custom-logo{max-width:48vw!important}
}

/* 0.11.59 — responsive transversal basado en capturas reales 375/425px.
 * Los paneles y formularios de HR mantienen su autoridad; solo se ajusta
 * presentación de las páginas de MaterialesRD, nunca componentes globales. */
@media screen and (max-width:767px){
  /* GeneratePress: un solo botón que abre el menú primario. */
  body.materialesrd-page.mrd-nav-integrated .site-header [data-mrd-redundant-toggle="1"]{display:none!important}
  /* Recuperado de 0.11.135: suprimir caja vacía del toggle redundante, solo cuando integrado. */
  body.materialesrd-page.mrd-nav-integrated .site-header #mobile-menu-control-wrapper:has(button[data-mrd-redundant-toggle="1"]){display:none!important}
  body.materialesrd-page.mrd-nav-integrated .site-header .inside-header{align-items:center!important}

  /* Ejemplo realista de comparación: cada oferta ocupa exactamente una fila. */
  body.materialesrd-page .mrd-request-compare-preview .mrd-preview-offers{gap:5px!important;margin-top:10px!important}
  body.materialesrd-page .mrd-request-compare-preview .mrd-preview-offer{
    display:flex!important;flex-direction:row!important;align-items:center!important;
    justify-content:space-between!important;gap:7px!important;padding:9px 10px!important;
    min-height:39px!important;border-radius:9px!important;
  }
  body.materialesrd-page .mrd-request-compare-preview .mrd-preview-offer>span{flex:1 1 auto;min-width:0}
  body.materialesrd-page .mrd-request-compare-preview .mrd-preview-offer strong{
    display:block!important;font-size:12px!important;white-space:nowrap!important;
  }
  body.materialesrd-page .mrd-request-compare-preview .mrd-preview-offer small{
    position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;
    clip:rect(0,0,0,0)!important;white-space:nowrap!important;
  }
  body.materialesrd-page .mrd-request-compare-preview .mrd-preview-offer>b{
    flex:0 0 auto;white-space:nowrap!important;font-size:13px!important;margin:0!important;
  }
  body.materialesrd-page .mrd-request-compare-preview{padding:13px!important}
  body.materialesrd-page .mrd-preview-project{padding:9px 0!important}
  body.materialesrd-page .mrd-preview-footer{padding-top:10px!important}

  /* El control Mostrar todas cambia el carrusel por una cuadrícula REAL. */
  body.materialesrd-page .mrd-category-grid.mrd-categories-expanded{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:none!important;grid-auto-flow:row!important;
    grid-auto-columns:auto!important;overflow-x:visible!important;
    scroll-snap-type:none!important;max-height:none!important;
  }
  body.materialesrd-page .mrd-categories-section:has(.mrd-categories-expanded) .mrd-mobile-slider-nav{display:none!important}
  body.materialesrd-page .mrd-category-toggle-wrap{margin-top:12px!important}

  /* Centro de paneles: no más tarjetas estrechas y con títulos enormes. */
  body.materialesrd-page .mrd-panel-hub-intro{padding:11px 12px!important;margin:0 0 12px!important}
  body.materialesrd-page .mrd-panel-hub-intro strong{font-size:14px!important}
  body.materialesrd-page .mrd-panel-hub-intro p{font-size:11px!important;line-height:1.4!important}
  body.materialesrd-page .mrd-panel-hub{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;align-items:stretch!important;
  }
  body.materialesrd-page .mrd-panel-hub>a.mrd-card{
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;
    gap:5px!important;min-width:0!important;min-height:0!important;
    padding:12px 10px!important;border-radius:13px!important;
    overflow-wrap:break-word!important;
  }
  body.materialesrd-page .mrd-panel-hub .mrd-card i{width:30px!important;height:30px!important;font-size:13px!important}
  body.materialesrd-page .mrd-panel-hub .mrd-card h3{
    font-size:clamp(13px,3.5vw,15px)!important;line-height:1.24!important;
    overflow-wrap:break-word!important;margin:2px 0!important;
  }
  body.materialesrd-page .mrd-panel-hub .mrd-card p{
    font-size:10.5px!important;line-height:1.32!important;margin:0!important;
  }
  body.materialesrd-page .mrd-panel-hub .mrd-chip{font-size:9px!important;padding:3px 7px!important}
  body.materialesrd-page .mrd-panel-hub .mrd-panel-open{font-size:11px!important;padding-top:5px!important}

  /* Shell HR: no reservar alto de escritorio en la barra lateral móvil. */
  body.mrd-public-portal .hrpf-shell.mrd-public-panel-shell:has(.hrpf-sidenav:where(.mrd-hybrid-ready)),
  body.mrd-admin-portal .hrpf-shell:has(.hrpf-sidenav:where(.mrd-hybrid-ready)){min-height:0!important;height:auto!important;max-width:100%!important}
  body.mrd-public-portal .hrpf-shell .hrpf-sidebar:has(.hrpf-sidenav:where(.mrd-hybrid-ready)),
  body.mrd-admin-portal .hrpf-shell .hrpf-sidebar:has(.hrpf-sidenav:where(.mrd-hybrid-ready)){
    min-height:0!important;height:auto!important;max-height:none!important;
    flex:0 0 auto!important;align-self:auto!important;
  }
  body.mrd-public-portal .hrpf-shell .hrpf-brand,
  body.mrd-admin-portal .hrpf-shell .hrpf-brand{padding:9px 12px!important;margin:0!important}
  body.mrd-public-portal .hrpf-shell .hrpf-brand img,
  body.mrd-admin-portal .hrpf-shell .hrpf-brand img{width:38px!important;height:38px!important}
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready),
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready){
    display:flex!important;flex-flow:row nowrap!important;gap:5px!important;
    overflow-x:auto!important;overflow-y:hidden!important;min-height:0!important;
    max-height:70px!important;padding:6px!important;scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready) a,
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready) a{
    display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;
    gap:5px!important;min-height:38px!important;width:auto!important;
    padding:7px 9px!important;white-space:nowrap!important;font-size:11px!important;
  }
  body.mrd-public-portal .hrpf-shell:has(.hrpf-sidenav:where(.mrd-hybrid-ready)) .hrpf-nav-group-title,
  body.mrd-admin-portal .hrpf-shell:has(.hrpf-sidenav:where(.mrd-hybrid-ready)) .hrpf-nav-group-title{display:none!important}
  body.mrd-public-portal .hrpf-shell .hrpf-main,
  body.mrd-admin-portal .hrpf-shell .hrpf-main{min-width:0!important;padding:10px!important}
  body.mrd-public-portal .mrd-portal-toolbar{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
  body.mrd-public-portal .mrd-portal-toolbar>a{min-width:0!important;width:100%!important;font-size:11px!important;padding:7px!important}

  /* Indicadores y acciones: vista densa, no tarjetas de altura completa. */
  body.mrd-public-portal .mrd-portal-metrics,
  body.mrd-admin-portal .mrd-admin-command-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body.mrd-public-portal .mrd-portal-metrics>article{
    min-height:0!important;padding:9px!important;border-radius:11px!important;
  }
  body.mrd-public-portal .mrd-portal-metrics strong{font-size:21px!important;margin:3px 0!important}
  body.mrd-public-portal .mrd-portal-metrics :is(span,small){font-size:10px!important}
  body.mrd-public-portal .mrd-portal-actions{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
  }
  body.mrd-public-portal .mrd-portal-actions>a,
  body.mrd-public-portal .mrd-portal-actions>div{
    display:flex!important;flex-direction:column!important;gap:4px!important;
    padding:9px!important;min-width:0!important;min-height:0!important;
  }
  body.mrd-public-portal .mrd-portal-actions span{font-size:10px!important;line-height:1.3!important}
  body.mrd-public-portal .mrd-portal-block{padding:10px!important}
  body.mrd-public-portal .mrd-portal-block-head h2{font-size:16px!important}
  body.mrd-admin-portal .mrd-admin-command-grid article{min-height:0!important;padding:9px!important}
  body.mrd-admin-portal .mrd-admin-command-grid strong{font-size:19px!important}
  body.mrd-admin-portal .mrd-admin-command{padding:11px!important;gap:9px!important}
  body.mrd-admin-portal .mrd-admin-command h2{font-size:19px!important}
  body.mrd-admin-portal .mrd-admin-portal-toolbar{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
  body.mrd-admin-portal .mrd-admin-portal-toolbar a{font-size:11px!important;padding:8px!important}
}
@media screen and (min-width:390px) and (max-width:767px){
  body.mrd-admin-portal .mrd-admin-command-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media screen and (max-width:359px){
  body.materialesrd-page .mrd-panel-hub{gap:6px!important}
  body.materialesrd-page .mrd-panel-hub>a.mrd-card{padding:9px 7px!important}
  body.materialesrd-page .mrd-panel-hub .mrd-card h3{font-size:12px!important}
}
/* 0.11.59 — las cuadrículas HR se estilizan SOLO dentro de módulos de administración
   propios de MaterialesRD (sin aplicar reglas a paneles de otras apps). */
@media screen and (max-width:767px){
  body.mrd-public-portal .hrpf-shell .hrpf-sidebar:has(.hrpf-sidenav:where(.mrd-hybrid-ready)),
  body.mrd-admin-portal .hrpf-shell .hrpf-sidebar:has(.hrpf-sidenav:where(.mrd-hybrid-ready)){display:block!important;align-content:start!important;padding-bottom:6px!important}
  body.mrd-admin-portal .mrd-admin-dashboard-kpis :is(
    .hrpf-kpis,.hrpf-kpi-grid,.hrpf-kpi-cards,.hrpf-stats-grid,
    .hrpf-stat-grid,.hrpf-metrics,.hrpf-dashboard-grid,
    [class*="kpi-grid"],[class*="stats-grid"]
  ){
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;align-items:stretch!important;
  }
  body.mrd-admin-portal .mrd-admin-dashboard-actions :is(
    .hrpf-card-grid,.hrpf-cards-grid,.hrpf-grid-cards,
    [class*="card-grid"]
  ){
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;align-items:stretch!important;
  }
  body.mrd-admin-portal .mrd-admin-dashboard-kpis :is(article,a),
  body.mrd-admin-portal .mrd-admin-dashboard-actions :is(article,a){
    min-width:0!important;min-height:0!important;overflow-wrap:break-word!important;
  }
  body.mrd-admin-portal .mrd-admin-dashboard-actions :is(h3,h4){
    font-size:clamp(12px,3.4vw,15px)!important;line-height:1.25!important;
  }
  body.mrd-admin-portal .mrd-admin-dashboard-actions :is(p,small){font-size:10px!important;line-height:1.35!important}
}
@media screen and (min-width:390px) and (max-width:767px){
  body.mrd-admin-portal .mrd-admin-dashboard-kpis :is(
    .hrpf-kpis,.hrpf-kpi-grid,.hrpf-kpi-cards,.hrpf-stats-grid,
    .hrpf-stat-grid,.hrpf-metrics,.hrpf-dashboard-grid,
    [class*="kpi-grid"],[class*="stats-grid"]
  ){grid-template-columns:repeat(3,minmax(0,1fr))!important}
}


/* 0.11.60 — experiencia de captura compacta, no altera contratos del formulario HR. */
@media screen and (max-width:767px){
  body.materialesrd-page .mrd-request-intro{padding:10px 11px!important;margin-bottom:9px!important;gap:6px!important;border-radius:12px!important}
  body.materialesrd-page .mrd-request-intro>div:first-child>span{font-size:9px!important;margin-bottom:3px!important}
  body.materialesrd-page .mrd-request-intro h2{font-size:17px!important;line-height:1.22!important}
  body.materialesrd-page .mrd-request-intro p{font-size:11px!important;line-height:1.35!important;margin:5px 0 0!important}
  body.materialesrd-page .mrd-request-intro-points{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;margin-top:7px!important}
  body.materialesrd-page .mrd-request-intro-points b{display:flex!important;flex-direction:row!important;justify-content:center!important;gap:3px!important;font-size:9px!important;line-height:1.1!important;padding:5px 2px!important;white-space:nowrap!important;border-radius:7px!important}
  body.materialesrd-page .mrd-request-intro-points i{width:17px!important;height:17px!important;flex:0 0 17px!important;font-size:9px!important}
  body.materialesrd-page .mrd-account-defaults{position:relative!important;padding:8px 10px!important;margin:0 0 9px!important;gap:4px 8px!important;border-radius:11px!important}
  body.materialesrd-page .mrd-account-defaults span{font-size:9px!important}
  body.materialesrd-page .mrd-account-defaults strong{font-size:11px!important}
  body.materialesrd-page .mrd-account-defaults small{font-size:9px!important}
  body.materialesrd-page .mrd-account-defaults>a{grid-column:1/-1!important;line-height:1.1!important;font-size:10px!important}
  body.materialesrd-page .mrd-request-main{gap:7px!important}
  body.materialesrd-page .mrd-request-block{padding:10px!important;border-radius:11px!important}
  body.materialesrd-page .mrd-request-block-head{margin:0 0 8px!important;gap:7px!important}
  body.materialesrd-page .mrd-request-block-head>b,
  body.materialesrd-page .mrd-request-block-title>b{width:25px!important;height:25px!important;flex-basis:25px!important;font-size:11px!important}
  body.materialesrd-page .mrd-request-block-head h3,
  body.materialesrd-page .mrd-request-block-title h3{font-size:14px!important;line-height:1.25!important}
  body.materialesrd-page .mrd-request-block-head span,
  body.materialesrd-page .mrd-request-block-title span{font-size:9px!important;margin-bottom:2px!important}
  body.materialesrd-page .mrd-request-form .mrd-form-grid.two,
  body.materialesrd-page .mrd-request-form .mrd-form-grid.three,
  body.materialesrd-page .mrd-request-form .mrd-form-grid.four,
  body.materialesrd-page .mrd-request-form .mrd-project-extra-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px 7px!important;margin-bottom:7px!important}
  body.materialesrd-page .mrd-request-form .mrd-form-grid>label,
  body.materialesrd-page .mrd-request-form .mrd-project-extra-row>label{font-size:10px!important;line-height:1.2!important;margin:0!important;min-width:0!important;overflow-wrap:normal!important;word-break:normal!important}
  body.materialesrd-page .mrd-request-form .mrd-form-grid input:not([type=checkbox]):not([type=radio]),
  body.materialesrd-page .mrd-request-form .mrd-form-grid select,
  body.materialesrd-page .mrd-request-form .mrd-project-extra-row select,
  body.materialesrd-page .mrd-operational-fields :is(input,select){min-width:0!important;width:100%!important;min-height:39px!important;padding:8px 7px!important;margin-top:4px!important;font-size:16px!important}
  body.materialesrd-page .mrd-project-extra-row .mrd-check-line{display:flex!important;align-items:center!important;gap:6px!important;padding:8px 0!important;font-size:10px!important}
  body.materialesrd-page .mrd-request-form .mrd-check-line input[type=checkbox]{min-height:0!important;height:auto!important;flex-shrink:0!important;margin:0!important}
  body.materialesrd-page .mrd-operational-fields,
  body.materialesrd-page .mrd-operational-fields .hr-form__fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px 8px!important;margin-bottom:7px!important}
  body.materialesrd-page .mrd-operational-fields .hr-form__row--full{grid-column:auto!important}
  body.materialesrd-page .mrd-operational-fields label{margin:0!important;font-size:10px!important;line-height:1.25!important}
  body.materialesrd-page .mrd-material-item{padding:8px!important;border-radius:10px!important}
  body.materialesrd-page .mrd-material-item-head{margin:0 0 6px!important}
  body.materialesrd-page .mrd-material-item .mrd-form-grid{margin-bottom:7px!important}
  body.materialesrd-page .mrd-request-form label>input:not([type=checkbox]),
  body.materialesrd-page .mrd-request-form label>select{margin-top:4px!important}
  body.materialesrd-page .mrd-request-form label>textarea{min-height:58px!important;font-size:16px!important;padding:8px 9px!important}
  body.materialesrd-page .mrd-request-form .mrd-block-help{font-size:10px!important;line-height:1.3!important;margin:0 0 7px!important}
  body.materialesrd-page .mrd-request-form .mrd-notice.compact{padding:7px 9px!important;margin-bottom:7px!important;font-size:11px!important}
  body.materialesrd-page .mrd-request-form .mrd-missing-account-field p{margin:0!important;font-size:10px!important;line-height:1.4!important;align-self:center!important}
  body.materialesrd-page .mrd-submit-panel{padding:10px!important;border-radius:11px!important}
  body.materialesrd-page .mrd-submit-panel .mrd-btn{margin-top:7px!important;min-height:42px!important}
  body.materialesrd-page .mrd-request-summary{margin-top:8px!important}
  /* Las opciones de navegación se mantienen táctiles; se reduce el texto, no la superficie. */
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready) a{font-size:10px!important;min-height:38px!important;padding:7px 8px!important}
  body.mrd-public-portal .mrd-buyer-flow{padding:7px!important;margin-bottom:8px!important}
  body.mrd-public-portal .mrd-buyer-flow-head{margin-bottom:5px!important}
  body.mrd-public-portal .mrd-buyer-flow-head>strong{font-size:10px!important}
  body.mrd-public-portal .mrd-buyer-flow-scroll a{font-size:10px!important;min-height:34px!important;padding:0 9px!important}
  body.materialesrd-page.mrd-nav-integrated .site-header .inside-header{min-height:58px!important;padding:7px 11px!important}
  body.materialesrd-page.mrd-nav-integrated .site-header .site-logo img{max-height:40px!important;max-width:min(173px,49vw)!important}
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation button.menu-toggle{min-width:75px!important;min-height:39px!important;font-size:11px!important;gap:6px!important;padding:7px 9px!important}
  body.materialesrd-page.mrd-nav-integrated .site-header #site-navigation .main-nav>ul>li>a{font-size:12px!important;min-height:40px!important;padding:8px 10px!important}
}
@media screen and (max-width:359px){
  body.materialesrd-page .mrd-request-intro-points b{font-size:8px!important}
  body.materialesrd-page .mrd-request-intro-points i{display:none!important}
  body.materialesrd-page .mrd-project-extra-row{grid-template-columns:1fr!important}
}

/* 0.11.61 — Un paso visible por vez SOLO en comprador autenticado móvil.
   Sin JS no se activa: el formulario anterior permanece completo. */
@media (max-width:767px) {
  body.materialesrd-page .mrd-intro-wizard .mrd-request-intro-points{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important}
  body.materialesrd-page .mrd-wizard-tab{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:38px;padding:4px 3px;border:1px solid #c9dbd2;background:#f8faf8;border-radius:8px;color:#205341;font-size:10px;font-weight:750;line-height:1.1;cursor:pointer}
  body.materialesrd-page .mrd-wizard-tab i{display:inline-flex;justify-content:center;align-items:center;width:17px;height:17px;flex:0 0 17px;border-radius:50%;background:#e2eee8;font-style:normal;font-size:9px}
  body.materialesrd-page .mrd-wizard-tab.is-active{border-color:#176b52;background:#176b52;color:#fff}
  body.materialesrd-page .mrd-wizard-tab.is-active i{background:#fff;color:#176b52}
  body.materialesrd-page .mrd-wizard-tab:focus-visible,body.materialesrd-page .mrd-wizard-actions button:focus-visible{outline:3px solid #ed681f;outline-offset:2px}
  /* 0.11.130: solo se ocultan clases propias; no forzar display en pasos
     activos, submit ni resumen revocados por HR. Sin JS el formulario
     conserva todas las secciones originales. */
  body.materialesrd-page .mrd-request-form.mrd-wizard-active .mrd-wizard-step-hidden,
  body.mrd-public-portal .mrd-request-form.mrd-wizard-active .mrd-wizard-step-hidden,
  body.mrd-admin-portal .mrd-request-form.mrd-wizard-active .mrd-wizard-step-hidden{display:none!important}
  body.materialesrd-page .mrd-request-form.mrd-wizard-active .mrd-request-block[aria-hidden="true"]{display:none!important}
  body.materialesrd-page .mrd-wizard-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:5px 1px 2px}
  body.materialesrd-page .mrd-wizard-actions[hidden],body.materialesrd-page .mrd-wizard-actions button[hidden]{display:none!important}
  body.materialesrd-page .mrd-wizard-actions button{min-height:42px;padding:7px 14px;border:1px solid #176b52;border-radius:9px;font-size:12px;font-weight:800;cursor:pointer}
  body.materialesrd-page .mrd-wizard-back{background:#fff;color:#176b52}
  body.materialesrd-page .mrd-wizard-next{background:#176b52;color:#fff;margin-left:auto}
  body.materialesrd-page .mrd-wizard-status{font-size:11px;font-weight:750;color:#506d61}
}
@media (min-width:768px){.mrd-wizard-actions{display:none!important}}


/* 0.11.62 — paneles como cuadrícula de accesos visibles, no carrusel lateral.
   Solo las superficies MaterialesRD: HR conserva contenido, permisos y URLs. */
@media screen and (max-width:767px){
  body.mrd-public-portal .hrpf-shell .hrpf-sidebar:has(.hrpf-sidenav:where(.mrd-hybrid-ready)),
  body.mrd-admin-portal .hrpf-shell .hrpf-sidebar:has(.hrpf-sidenav:where(.mrd-hybrid-ready)){
    box-sizing:border-box!important;width:100%!important;max-width:100%!important;
    min-width:0!important;max-height:none!important;height:auto!important;
    overflow:visible!important;position:static!important;flex:0 0 auto!important;
    padding-bottom:8px!important;
  }
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready),
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready){
    box-sizing:border-box!important;width:100%!important;max-width:100%!important;
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;align-items:stretch!important;align-content:start!important;
    gap:6px!important;overflow:visible!important;overflow-x:visible!important;
    overflow-y:visible!important;max-height:none!important;height:auto!important;
    padding:7px!important;scroll-snap-type:none!important;
  }
  /* Compatibilidad con contenedores de grupos provistos por HR: los enlaces
     siguen en el DOM original, solo se eliminan cajas de layout innecesarias. */
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready) :is(.hrpf-nav-group,.hrpf-nav-section,.hrpf-nav-items),
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready) :is(.hrpf-nav-group,.hrpf-nav-section,.hrpf-nav-items){display:contents!important}
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready) a,
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready) a{
    box-sizing:border-box!important;display:flex!important;flex:initial!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
    text-align:center!important;justify-content:center!important;align-items:center!important;
    flex-direction:column!important;gap:4px!important;margin:0!important;
    padding:7px 5px!important;min-height:51px!important;max-height:none!important;
    border:1px solid rgba(255,255,255,.17)!important;border-radius:10px!important;
    font-size:10px!important;line-height:1.2!important;text-decoration:none!important;
  }
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready) a :is(svg,i,img),
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready) a :is(svg,i,img){
    flex:0 0 auto!important;max-width:20px!important;max-height:20px!important;margin:0!important;
  }
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready) a :is(span,small),
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready) a :is(span,small){
    max-width:100%!important;min-width:0!important;white-space:normal!important;
    overflow-wrap:anywhere!important;text-align:center!important;font-size:inherit!important;
    line-height:1.2!important;
  }
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready) a[aria-current="page"],
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready) a[aria-current="page"],
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready) a.active,
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready) a.active{
    border-color:#f36c21!important;outline-offset:1px!important;
  }
  /* La ruta comercial es una cuadrícula de accesos, sin scroll horizontal. */
  body.mrd-public-portal .mrd-buyer-flow-scroll{
    box-sizing:border-box!important;display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row!important;
    gap:5px!important;overflow:visible!important;overflow-x:visible!important;
    width:100%!important;max-height:none!important;scroll-snap-type:none!important;
    padding:0!important;
  }
  body.mrd-public-portal .mrd-buyer-flow-scroll a{
    display:flex!important;box-sizing:border-box!important;min-width:0!important;
    width:100%!important;flex:initial!important;text-align:center!important;
    justify-content:center!important;white-space:normal!important;overflow-wrap:anywhere!important;
    min-height:36px!important;padding:6px 4px!important;border-radius:9px!important;
    font-size:10px!important;line-height:1.16!important;
  }
  body.mrd-public-portal .mrd-fallback-panel nav{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;
  }
  body.mrd-public-portal .mrd-fallback-panel nav a{
    min-width:0!important;text-align:center!important;white-space:normal!important;
    overflow-wrap:anywhere!important;padding:9px 5px!important;font-size:10px!important;
  }
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready) a:focus-visible,
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready) a:focus-visible,
  body.mrd-public-portal .mrd-buyer-flow-scroll a:focus-visible{
    outline:3px solid #f36c21!important;outline-offset:2px!important;
  }
}
@media screen and (min-width:390px) and (max-width:767px){
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready),
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav:where(.mrd-hybrid-ready){
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media screen and (max-width:339px){
  body.mrd-public-portal .mrd-buyer-flow-scroll{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* 0.11.63 — seis accesos compactos + grupos plegables en paneles HR.
   Sin JS se conserva íntegra la cuadrícula previa de la versión 0.11.62. */
@media screen and (max-width:767px){
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav.mrd-hybrid-ready,
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav.mrd-hybrid-ready{
    display:block!important;overflow:visible!important;max-height:none!important;
    padding:6px!important;min-height:0!important;
  }
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav.mrd-hybrid-ready>:not(.mrd-hybrid-nav),
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav.mrd-hybrid-ready>:not(.mrd-hybrid-nav){
    display:none!important;
  }
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-nav,
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-nav{display:block!important;width:100%!important;min-width:0!important;color:#fff}
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-caption,
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-caption{
    margin:0 0 6px!important;font-size:10px!important;font-weight:750!important;
    color:#CBE2D7!important;line-height:1.3!important;
  }
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-quick,
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-quick,
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-group-grid,
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-group-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;gap:5px!important;width:100%!important;min-width:0!important;
  }
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-nav a,
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-nav a{
    box-sizing:border-box!important;display:flex!important;flex-direction:row!important;
    justify-content:center!important;align-items:center!important;gap:5px!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    min-height:40px!important;padding:6px 5px!important;margin:0!important;
    text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important;
    font-size:10px!important;line-height:1.2!important;border-radius:7px!important;
  }
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-nav a :is(span,small),
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-nav a :is(span,small){
    font-size:10px!important;line-height:1.2!important;min-width:0!important;
  }
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-nav a :is(svg,i,img),
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-nav a :is(svg,i,img){
    max-height:15px!important;max-width:15px!important;flex:0 0 15px!important;margin:0!important;
  }
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-group,
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-group{
    display:block!important;margin-top:5px!important;padding:0!important;
    border:1px solid rgba(255,255,255,.20)!important;border-radius:8px!important;
  }
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-group>summary,
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-group>summary{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    min-height:35px!important;gap:8px!important;padding:8px 10px!important;cursor:pointer;
    font-size:11px!important;line-height:1.2!important;font-weight:750!important;color:#F4FAF7!important;
  }
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-count,
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-count{
    color:#CFDFD7!important;font-size:10px!important;font-weight:600!important;
  }
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-group-grid,
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-group-grid{padding:5px!important}
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-group:not([open])>.mrd-hybrid-group-grid,
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-group:not([open])>.mrd-hybrid-group-grid{display:none!important}
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-group>summary:focus-visible,
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-group>summary:focus-visible{
    outline:3px solid #F36C21!important;outline-offset:2px!important;
  }
}
/* 0.11.74: los seis accesos híbridos ocupan dos filas desde 360px;
   antes 360–389px heredaban dos columnas aunque el fallback ya tenía tres. */
@media screen and (min-width:360px) and (max-width:767px){
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-quick,
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-quick,
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-group-grid,
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-group-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

/* 0.11.64 — una restricción dinámica de HR prevalece sobre la cuadrícula móvil.
   Abarca enlaces originales, nodos trasladados y fallback sin JavaScript. */
@media screen and (max-width:767px){
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav :is([hidden],[aria-hidden="true"],[aria-disabled="true"],[disabled]),
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav :is([hidden],[aria-hidden="true"],[aria-disabled="true"],[disabled]){
    display:none!important;
  }
}

/* 0.11.71 — navegación de respaldo realmente densa incluso si el navegador
   todavía no ha ejecutado el adaptador HR. No ocultar enlaces por defecto. */
@media screen and (max-width:767px){
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready),
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready){
    gap:3px!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  :where(body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready) a){
    border-radius:6px;font-size:9px;line-height:1.1;
  }
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready) a :is(svg,i,img),
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready) a :is(svg,i,img){
    max-width:13px!important;max-height:13px!important;
  }
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav.mrd-hybrid-ready,
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav.mrd-hybrid-ready{padding:5px!important}
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-quick,
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-quick{gap:3px!important}
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-nav a,
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-nav a{
    min-height:35px!important;padding:5px 4px!important;gap:3px!important;
    font-size:9.5px!important;line-height:1.13!important;
  }
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-nav a :is(span,small),
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-nav a :is(span,small){font-size:9.5px!important}
  body.mrd-public-portal .hrpf-shell .mrd-hybrid-group>summary,
  body.mrd-admin-portal .hrpf-shell .mrd-hybrid-group>summary{min-height:31px!important;padding:6px 8px!important}

  /* Footer: 4 grupos nativos, plegables incluso sin JavaScript; cada grupo
     mantiene todos los enlaces administrables del menú de WordPress. */
  body.materialesrd-page .mrd-footer-main{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;padding:15px 12px 11px!important;
  }
  body.materialesrd-page .mrd-footer-brand{
    grid-column:1/-1!important;margin:0 0 4px!important;
  }
  body.materialesrd-page .mrd-footer-logo img{max-height:42px!important;width:auto!important;max-width:205px!important}
  body.materialesrd-page .mrd-footer-brand p,
  body.materialesrd-page .mrd-footer-badge{display:none!important}
  body.materialesrd-page .mrd-footer-col{
    display:block!important;min-width:0!important;align-self:start!important;gap:0!important;
  }
  body.materialesrd-page .mrd-footer-col>strong{display:none!important}
  body.materialesrd-page .mrd-footer-col .mrd-footer-mobile-toggle{
    display:flex!important;align-items:center;justify-content:space-between;
    gap:6px;min-height:37px;padding:9px 10px;cursor:pointer;
    border:1px solid rgba(255,255,255,.22);border-radius:8px;
    color:#fff!important;font-size:11px!important;line-height:1.2!important;
    font-weight:750!important;
  }
  body.materialesrd-page .mrd-footer-col .mrd-footer-mobile-toggle span{font-size:16px;line-height:1}
  body.materialesrd-page .mrd-footer-col .mrd-footer-mobile-check{
    position:absolute!important;width:1px!important;height:1px!important;
    padding:0!important;margin:-1px!important;opacity:0!important;
    overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;
  }
  body.materialesrd-page .mrd-footer-mobile-check:focus-visible + .mrd-footer-mobile-toggle{
    outline:3px solid #ff8b45!important;outline-offset:2px!important;
  }
  body.materialesrd-page .mrd-footer-mobile-check:checked + .mrd-footer-mobile-toggle{
    background:#176b52!important;border-color:#f36c21!important;
  }
  body.materialesrd-page .mrd-footer-mobile-check:checked + .mrd-footer-mobile-toggle span{transform:rotate(180deg)}
  body.materialesrd-page .mrd-footer-col .mrd-footer-links{
    margin:0!important;padding:7px 5px 5px!important;gap:6px!important;
  }
  body.materialesrd-page .mrd-footer-col .mrd-footer-links a{
    font-size:10px!important;line-height:1.3!important;
  }
  body.materialesrd-page .mrd-footer-col .mrd-footer-mobile-check:not(:checked)~.mrd-footer-links{display:none!important}
  body.materialesrd-page .mrd-footer-bottom{padding:9px 12px 11px!important}
  body.materialesrd-page .mrd-footer-bottom span:last-child{display:none!important}
}
@media screen and (min-width:360px) and (max-width:767px){
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready),
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready){
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media screen and (min-width:768px){
  body.materialesrd-page .mrd-footer-mobile-check,
  body.materialesrd-page .mrd-footer-mobile-toggle{display:none!important}
}

/* 0.11.77 — solo cuando HR entrega su barra fuera de .hrpf-shell.
   Mantiene intactas las reglas originales y no altera los menús de escritorio. */
@media screen and (max-width:767px){
  body.mrd-public-portal .hrpf-sidenav.mrd-hr-detached.mrd-hybrid-ready,
  body.mrd-admin-portal .hrpf-sidenav.mrd-hr-detached.mrd-hybrid-ready{
    min-width:0!important;width:100%!important;
    max-width:100%!important;max-height:none!important;overflow:visible!important;
    box-sizing:border-box!important;padding:5px!important;
  }
  body.mrd-public-portal .hrpf-sidenav.mrd-hr-detached.mrd-hybrid-ready>:not(.mrd-hybrid-nav),
  body.mrd-admin-portal .hrpf-sidenav.mrd-hr-detached.mrd-hybrid-ready>:not(.mrd-hybrid-nav){display:none!important}
  body.mrd-public-portal .mrd-hr-detached .mrd-hybrid-nav,
  body.mrd-admin-portal .mrd-hr-detached .mrd-hybrid-nav{
    display:block!important;width:100%!important;min-width:0!important;
    grid-column:1/-1!important;flex:1 1 100%!important;
  }
  body.mrd-public-portal .mrd-hr-detached .mrd-hybrid-caption,
  body.mrd-admin-portal .mrd-hr-detached .mrd-hybrid-caption{margin:0 0 6px!important;font-size:10px!important;font-weight:750!important;color:#cbe2d7!important}
  body.mrd-public-portal .mrd-hr-detached :is(.mrd-hybrid-quick,.mrd-hybrid-group-grid),
  body.mrd-admin-portal .mrd-hr-detached :is(.mrd-hybrid-quick,.mrd-hybrid-group-grid){
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:3px!important;width:100%!important;min-width:0!important;
  }
  body.mrd-public-portal .mrd-hr-detached .mrd-hybrid-nav a,
  body.mrd-admin-portal .mrd-hr-detached .mrd-hybrid-nav a{
    box-sizing:border-box!important;display:flex!important;align-items:center!important;
    justify-content:center!important;gap:3px!important;min-width:0!important;max-width:100%!important;
    width:100%!important;min-height:35px!important;margin:0!important;padding:5px 4px!important;
    text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important;
    font-size:9.5px!important;line-height:1.13!important;border-radius:7px!important;
  }
  body.mrd-public-portal .mrd-hr-detached .mrd-hybrid-nav a :is(span,small),
  body.mrd-admin-portal .mrd-hr-detached .mrd-hybrid-nav a :is(span,small){font-size:9.5px!important;min-width:0!important}
  body.mrd-public-portal .mrd-hr-detached .mrd-hybrid-nav a :is(svg,i,img),
  body.mrd-admin-portal .mrd-hr-detached .mrd-hybrid-nav a :is(svg,i,img){max-height:15px!important;max-width:15px!important;flex:0 0 15px!important}
  body.mrd-public-portal .mrd-hr-detached .mrd-hybrid-group,
  body.mrd-admin-portal .mrd-hr-detached .mrd-hybrid-group{display:block!important;margin-top:5px!important;border:1px solid rgba(255,255,255,.2)!important;border-radius:8px!important}
  body.mrd-public-portal .mrd-hr-detached .mrd-hybrid-group>summary,
  body.mrd-admin-portal .mrd-hr-detached .mrd-hybrid-group>summary{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    min-height:31px!important;padding:6px 8px!important;cursor:pointer;
    font-size:11px!important;font-weight:750!important;color:#f4faf7!important;
  }
  body.mrd-public-portal .mrd-hr-detached .mrd-hybrid-count,
  body.mrd-admin-portal .mrd-hr-detached .mrd-hybrid-count{font-size:10px!important;color:#cfdfd7!important}
  body.mrd-public-portal .mrd-hr-detached .mrd-hybrid-group-grid,
  body.mrd-admin-portal .mrd-hr-detached .mrd-hybrid-group-grid{padding:5px!important}
  body.mrd-public-portal .mrd-hr-detached .mrd-hybrid-group:not([open])>.mrd-hybrid-group-grid,
  body.mrd-admin-portal .mrd-hr-detached .mrd-hybrid-group:not([open])>.mrd-hybrid-group-grid{display:none!important}
  body.mrd-public-portal .mrd-hr-detached :is(a,summary):focus-visible,
  body.mrd-admin-portal .mrd-hr-detached :is(a,summary):focus-visible{outline:3px solid #f36c21!important;outline-offset:2px!important}
  body.mrd-public-portal .mrd-hr-detached :is([hidden],[aria-hidden="true"],[aria-disabled="true"],[disabled]),
  body.mrd-admin-portal .mrd-hr-detached :is([hidden],[aria-hidden="true"],[aria-disabled="true"],[disabled]){display:none!important}
}
@media screen and (min-width:360px) and (max-width:767px){
  body.mrd-public-portal .mrd-hr-detached :is(.mrd-hybrid-quick,.mrd-hybrid-group-grid),
  body.mrd-admin-portal .mrd-hr-detached :is(.mrd-hybrid-quick,.mrd-hybrid-group-grid){grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* 0.11.81 — cuando JavaScript no ejecuta, inert sigue siendo una revocación
   visual en móvil. Respetar también barras HR fuera del shell; no tocar desktop. */
@media screen and (max-width:767px){
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav :is([inert]),
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav :is([inert]),
  body.mrd-public-portal .hrpf-sidenav :is(a[inert],[inert]),
  body.mrd-admin-portal .hrpf-sidenav :is(a[inert],[inert]),
  body.mrd-public-portal .hrpf-sidenav.mrd-hr-detached :is([inert]),
  body.mrd-admin-portal .hrpf-sidenav.mrd-hr-detached :is([inert]){
    display:none!important;
  }
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav[inert],
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav[inert],
  body.mrd-public-portal .hrpf-sidenav.mrd-hr-detached[inert],
  body.mrd-admin-portal .hrpf-sidenav.mrd-hr-detached[inert]{
    display:none!important;
  }
}


/* 0.11.82 — HR puede revocar la barra COMPLETA (o su sidebar), no solo
   enlaces internos. Las reglas de cuadrícula móvil usan display:...!important:
   sin esta prioridad reexponen nav[hidden]/nav[aria-hidden] y sidebar[hidden].
   Solo presentación móvil MaterialesRD, sin modificar nodos/permisos de HR. */
@media screen and (max-width:767px){
  body.mrd-public-portal .hrpf-sidebar:is([hidden],[inert],[aria-hidden="true"],[aria-disabled="true"],[disabled]),
  body.mrd-admin-portal .hrpf-sidebar:is([hidden],[inert],[aria-hidden="true"],[aria-disabled="true"],[disabled]),
  body.mrd-public-portal .hrpf-sidenav:is([hidden],[inert],[aria-hidden="true"],[aria-disabled="true"],[disabled]),
  body.mrd-admin-portal .hrpf-sidenav:is([hidden],[inert],[aria-hidden="true"],[aria-disabled="true"],[disabled]){
    display:none!important;
  }
}


/* 0.11.86 — Formato móvil HR «Footer compacto en paneles»: en páginas de panel el pie queda en
   una sola fila de 4 grupos (sin logo); el grupo abierto ocupa la fila completa debajo. */
@media screen and (max-width:767px){
  .hr-mobile-has-panel body.materialesrd-page .hr-mobile-footer.mrd-site-footer .mrd-footer-main{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;padding:8px 8px 6px!important;
  }
  .hr-mobile-has-panel body.materialesrd-page .hr-mobile-footer.mrd-site-footer .mrd-footer-brand{display:none!important}
  .hr-mobile-has-panel body.materialesrd-page .hr-mobile-footer.mrd-site-footer .mrd-footer-col .mrd-footer-mobile-toggle{
    min-height:34px;padding:6px 7px;font-size:10.5px!important;
  }
  .hr-mobile-has-panel body.materialesrd-page .hr-mobile-footer.mrd-site-footer .mrd-footer-col:has(.mrd-footer-mobile-check:checked){grid-column:1/-1!important}
  .hr-mobile-has-panel body.materialesrd-page .hr-mobile-footer.mrd-site-footer .mrd-footer-bottom{padding:5px 10px 7px!important;font-size:10px!important}
}


/* 0.11.122 — GP móvil sin reubicar enlaces cuyo origen está gobernado por HR.
 * El menú permanece en su DOM original, conservando reglas CSS de revocación.
 * No usar display:block!important en el nav ni en sus enlaces: HR puede ocultarlos. */
@media screen and (max-width:767px){
 body.materialesrd-page.mrd-nav-overlay .site-header{position:relative;z-index:90;background:#fff!important}
 body.materialesrd-page.mrd-nav-overlay .site-header .inside-header{
   display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
   min-height:58px!important;padding:7px 105px 7px 11px!important;
 }
 body.materialesrd-page.mrd-nav-overlay .site-header .site-logo img,
 body.materialesrd-page.mrd-nav-overlay .site-header .custom-logo{
   width:auto!important;max-width:min(173px,48vw)!important;
   height:auto!important;max-height:40px!important;object-fit:contain!important;
 }
 body.materialesrd-page.mrd-nav-overlay #site-navigation{
   position:absolute!important;top:var(--mrd-overlay-top)!important;
   right:var(--mrd-overlay-right)!important;left:auto!important;
   width:auto!important;min-width:0!important;margin:0!important;
   padding:0!important;background:transparent!important;box-shadow:none!important;z-index:91!important;
 }
 body.materialesrd-page.mrd-nav-overlay #site-navigation .inside-navigation{
   width:auto!important;min-width:0!important;padding:0!important;margin:0!important;
   background:transparent!important;
 }
 body.materialesrd-page.mrd-nav-overlay #site-navigation button.menu-toggle{
   align-items:center!important;justify-content:center!important;gap:6px!important;
   width:auto!important;min-width:75px!important;min-height:39px!important;
   padding:7px 9px!important;border:1px solid #cdded4!important;
   border-radius:10px!important;background:#edf6f1!important;
   color:#103f35!important;font-size:11px!important;font-weight:800!important;
   white-space:nowrap!important;box-shadow:none!important;
 }
 body.materialesrd-page.mrd-nav-overlay #site-navigation .mobile-menu,
 body.materialesrd-page.mrd-nav-overlay #site-navigation .mrd-mobile-menu-word{
   font-size:12px!important;font-weight:800!important;color:#103f35!important;
 }
 body.materialesrd-page.mrd-nav-overlay #site-navigation .main-nav{
   position:absolute!important;top:calc(100% - 1px)!important;
   right:0!important;left:auto!important;width:min(100vw,390px)!important;
   max-height:calc(100dvh - 105px)!important;overflow-y:auto!important;
   background:#fff!important;border:1px solid #dde9e2!important;
   box-shadow:0 14px 26px rgba(16,63,53,.14)!important;
   padding:8px 12px 12px!important;z-index:1000!important;
 }
 body.materialesrd-page.mrd-nav-overlay #site-navigation:not(.toggled) .main-nav{display:none!important}
 body.materialesrd-page.mrd-nav-overlay #site-navigation .main-nav>ul>li>a{
   min-height:40px!important;padding:8px 10px!important;
   font-size:12px!important;line-height:1.4!important;
   text-decoration:none!important;white-space:normal!important;
 }
 body.materialesrd-page.mrd-nav-overlay #site-navigation button.menu-toggle:focus-visible,
 body.materialesrd-page.mrd-nav-overlay #site-navigation a:focus-visible{
   outline:3px solid #f36c21!important;outline-offset:2px!important;
 }
}


/* 0.11.126 — respaldo SIN JS para GeneratePress con nav inmediatamente
 * después del header. Evita el menú apilado mientras el adaptador tarda/no
 * se ejecuta. NO cambia el DOM, display/visibility ni el estado de enlaces.
 * Reglas dimensionales SIN !important en el nav/toggle: una revocación HR
 * por width/max-width/height o CSS !important conserva prioridad. */
@media screen and (max-width:767px){
  body.materialesrd-page:not(.mrd-nav-integrated):not(.mrd-nav-overlay) .site-header:has(+ #site-navigation){
    position:relative;z-index:90;background:#fff;
  }
  body.materialesrd-page:not(.mrd-nav-integrated):not(.mrd-nav-overlay) .site-header:has(+ #site-navigation) .inside-header{
    display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
    min-height:62px!important;padding:8px 110px 8px 11px!important;
  }
  body.materialesrd-page:not(.mrd-nav-integrated):not(.mrd-nav-overlay) .site-header:has(+ #site-navigation) .site-logo img,
  body.materialesrd-page:not(.mrd-nav-integrated):not(.mrd-nav-overlay) .site-header:has(+ #site-navigation) .custom-logo{
    max-width:min(173px,48vw);max-height:40px;width:auto;height:auto;object-fit:contain;
  }
  body.materialesrd-page:not(.mrd-nav-integrated):not(.mrd-nav-overlay) .site-header + #site-navigation{
    position:relative;z-index:91;max-width:94px;
    margin:-54px 11px 7px auto;background:transparent;
  }
  body.materialesrd-page:not(.mrd-nav-integrated):not(.mrd-nav-overlay) .site-header + #site-navigation .inside-navigation{
    width:auto;min-width:0;padding:0;margin:0;background:transparent;
  }
  body.materialesrd-page:not(.mrd-nav-integrated):not(.mrd-nav-overlay) .site-header + #site-navigation button.menu-toggle{
    width:100%;max-width:94px;min-height:39px;padding:7px 8px;
    border:1px solid #cdded4;border-radius:10px;background:#edf6f1;
    color:#103f35;font-size:12px;font-weight:800;line-height:1.2;
  }
  body.materialesrd-page:not(.mrd-nav-integrated):not(.mrd-nav-overlay) .site-header + #site-navigation .main-nav{
    position:absolute;top:100%;right:0;width:min(320px,calc(100vw - 22px));
    background:#fff;box-shadow:0 12px 24px rgba(16,63,53,.14);z-index:1000;
  }
}


/* 0.11.88 — HR puede montar su nav fuera de .hrpf-shell.
   0.11.89 — Fallback móvil seguro para HR externo sin JavaScript.
   No forzar height/max-height/width/overflow/padding/min-height ni display:
   HR puede revocar una barra o enlace por colapso CSS (no solo display:none).
   Solo reorganizar la navegación permitida; las dimensiones/visibilidad HR
   tienen prioridad. Los enlaces reciben flex-basis de baja especificidad,
   sin !important: cualquier clase HR puede anularla para revocar un enlace. */
@media screen and (max-width:767px){
  body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-sidenav:not(.hrpf-shell .hrpf-sidenav):not(.mrd-hybrid-ready){
    box-sizing:border-box!important;min-width:0!important;
    flex-flow:row wrap!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:4px!important;align-content:start!important;align-items:stretch!important;
  }
  :where(body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-sidenav:not(.hrpf-shell .hrpf-sidenav):not(.mrd-hybrid-ready) a){
    box-sizing:border-box;min-width:0;
    flex-basis:calc((100% - 4px)/2);
    font-size:9px;line-height:1.12;
    white-space:normal;overflow-wrap:anywhere;
    text-align:center;
  }
}
@media screen and (min-width:360px) and (max-width:767px){
  body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-sidenav:not(.hrpf-shell .hrpf-sidenav):not(.mrd-hybrid-ready){
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  :where(body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-sidenav:not(.hrpf-shell .hrpf-sidenav):not(.mrd-hybrid-ready) a){
    flex-basis:calc((100% - 8px)/3);
  }
}

/* 0.11.90 — HR dentro de .hrpf-shell: respaldo compacto SIN JS y sin
   reabrir nodos que HR haya colapsado con CSS. No forzar display, width,
   height, min-height, max-height, overflow ni padding sobre la barra,
   el sidebar, sus grupos o enlaces originales. El adaptador listo mantiene
   su diseño híbrido anterior; este respaldo solo se aplica sin .mrd-hybrid-ready. */
@media screen and (max-width:767px){
  /* Solo un display por defecto de especificidad CERO. Cualquier selector HR
     (incluso display:none sin !important) prevalece; no revive permisos. */
  :where(body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready)){display:grid}
  body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready){
    box-sizing:border-box!important;min-width:0!important;
    flex-flow:row wrap!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:4px!important;align-content:start!important;align-items:stretch!important;
  }
  :where(body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready) a){
    box-sizing:border-box;min-width:0;flex-basis:calc((100% - 4px)/2);
    font-size:9px;line-height:1.12;white-space:normal;overflow-wrap:anywhere;text-align:center;
  }
}
@media screen and (min-width:360px) and (max-width:767px){
  body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready){
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  :where(body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready) a){
    flex-basis:calc((100% - 8px)/3);
  }
}



/* 0.11.146 — Fallback HR cuando los enlaces vienen dentro de grupos flex.
   El fallback anterior compactaba enlaces directos, pero dejaba los grupos
   flex-direction:column y por tanto el menú seguía ocupando muchas filas.
   NO alterar display de nav, grupo ni enlace: un display:none de HR prevalece.
   No se mueven enlaces, no se inventan rutas ni se modifican permisos. */
@media screen and (max-width:767px){
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready):has(> :is(.hrpf-nav-group,.hrpf-nav-section,.hrpf-nav-items)),
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready):has(> :is(.hrpf-nav-group,.hrpf-nav-section,.hrpf-nav-items)){
    flex-direction:column!important;align-items:stretch!important;
  }
  body.mrd-public-portal .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready) :is(.hrpf-nav-group,.hrpf-nav-section,.hrpf-nav-items),
  body.mrd-admin-portal .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready) :is(.hrpf-nav-group,.hrpf-nav-section,.hrpf-nav-items){
    flex-direction:row!important;flex-wrap:wrap!important;align-content:flex-start!important;
    gap:3px!important;min-width:0!important;
  }
}

/* 0.11.152 — respaldo de grupos HR display:block con enlaces directos.
 * column-count compacta el bloque SIN forzar display, visibilidad, tamaño,
 * overflow ni posición de enlaces: display:none/hidden/inert de HR prevalecen.
 * En grupos flex/grid las columnas CSS no reorganizan el contenedor.
 * grid-column solo permite ocupar la anchura de la cuadrícula fallback.
 * Aplicar exclusivamente a paneles de MaterialesRD sin adaptador híbrido. */
@media screen and (max-width:767px){
  :where(body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready) :is(.hrpf-nav-items,.hrpf-nav-group,.hrpf-nav-section):has(> a:nth-of-type(3)):not(:has(> :not(a)))){
    grid-column:1/-1;
    column-count:2;
    column-fill:balance;
  }
  :where(body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready) :is(.hrpf-nav-items,.hrpf-nav-group,.hrpf-nav-section):has(> a:nth-of-type(3)):not(:has(> :not(a))) > a){
    break-inside:avoid;
  }
}
@media screen and (min-width:360px) and (max-width:767px){
  :where(body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready) :is(.hrpf-nav-items,.hrpf-nav-group,.hrpf-nav-section):has(> a:nth-of-type(3)):not(:has(> :not(a)))){
    column-count:3;
  }
}

/* 0.11.153 — listas HTML de navegación HR en fallback móvil sin JS.
 * HR puede entregar los accesos dentro de UL > LI > A (no como A directos).
 * Compactar únicamente listas puras de enlaces de wrappers HR conocidos.
 * No forzar display, altura, opacidad, visibilidad, overflow, pointer-events,
 * atributos ni enlaces: las revocaciones de HR prevalecen. Listas con
 * encabezados, submenús u otros nodos quedan intactas. */
@media screen and (max-width:767px){
  :where(body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready) :is(.hrpf-nav-items,.hrpf-nav-group,.hrpf-nav-section) > ul:has(> li:nth-child(3)):not(:has(> :not(li))):not(:has(> li > :not(a)))){
    grid-column:1/-1;
    column-count:2;
    column-fill:balance;
  }
  :where(body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready) :is(.hrpf-nav-items,.hrpf-nav-group,.hrpf-nav-section) > ul:has(> li:nth-child(3)):not(:has(> :not(li))):not(:has(> li > :not(a)))) > li{
    break-inside:avoid;
  }
}
@media screen and (min-width:360px) and (max-width:767px){
  :where(body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready) :is(.hrpf-nav-items,.hrpf-nav-group,.hrpf-nav-section) > ul:has(> li:nth-child(3)):not(:has(> :not(li))):not(:has(> li > :not(a)))){
    column-count:3;
  }
}

/* 0.11.158 — prioridad de columnas en fallback HR SIN JavaScript.
 * Algunas hojas HR se inyectan después de MaterialesRD y declaran
 * column-count:1!important. El respaldo 0.11.152/153 usaba :where()
 * (especificidad cero) y podía volver a una lista vertical. Solo corregir
 * column-count en listas puras autorizadas, nunca display/visibility/opacity,
 * overflow, tamaños, permisos, enlaces o contenedores del híbrido.
 * Las reglas inline !important de HR conservan precedencia. */
@media screen and (max-width:767px){
  body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready)
  :is(.hrpf-nav-items,.hrpf-nav-group,.hrpf-nav-section):has(> a:nth-of-type(3)):not(:has(> :not(a))){
    column-count:2!important;
  }
  body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready)
  :is(.hrpf-nav-items,.hrpf-nav-group,.hrpf-nav-section) > ul:has(> li:nth-child(3)):not(:has(> :not(li))):not(:has(> li > :not(a))){
    column-count:2!important;
  }
}
@media screen and (min-width:360px) and (max-width:767px){
  body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready)
  :is(.hrpf-nav-items,.hrpf-nav-group,.hrpf-nav-section):has(> a:nth-of-type(3)):not(:has(> :not(a))){
    column-count:3!important;
  }
  body:is(.mrd-public-portal,.mrd-admin-portal) .hrpf-shell .hrpf-sidenav:not(.mrd-hybrid-ready)
  :is(.hrpf-nav-items,.hrpf-nav-group,.hrpf-nav-section) > ul:has(> li:nth-child(3)):not(:has(> :not(li))):not(:has(> li > :not(a))){
    column-count:3!important;
  }
}

/* 0.11.181 — Corrección de cascada real para teléfonos estrechos (<=359px).
 * La densidad 0.11.60 (max-width:767px), definida DESPUÉS de la regla
 * de una columna de 0.11.46, volvía a imponer dos columnas !important
 * sobre solicitud, obra y campos operativos. Esto deja inputs de 70px.
 * Reponer una columna SOLO en formularios MaterialesRD a <=359px;
 * no tocar navegación HR (2 columnas <360 / 3 desde 360), permisos,
 * nodos ni hojas compartidas. Sin cambios en escritorio o >=360px. */
@media screen and (max-width:359px){
  body.materialesrd-page .mrd-request-form .mrd-form-grid.two,
  body.materialesrd-page .mrd-request-form .mrd-form-grid.three,
  body.materialesrd-page .mrd-request-form .mrd-form-grid.four,
  body.materialesrd-page .mrd-request-form .mrd-project-extra-row,
  body.materialesrd-page .mrd-project-form .mrd-form-grid.three,
  body.materialesrd-page .mrd-quote-line-grid.mrd-form-grid.three,
  body.materialesrd-page .mrd-quote-commercial .mrd-form-grid.three,
  body.materialesrd-page .mrd-operational-fields,
  body.materialesrd-page .mrd-operational-fields .hr-form__fields{
    grid-template-columns:minmax(0,1fr)!important;
  }
}

/* 0.11.182 — Captura de material legible en móviles de 360 a 430 px.
 * En 0.11.181, el campo «Material o producto» se reducía a 136.5 px a
 * 360 px, dificultando revisar el producto antes de publicar la solicitud.
 * Solo la fila Categoría + Material pasa a una columna en ese rango.
 * Cantidad, unidad, marca, sustitución y los demás formularios mantienen
 * su densidad; no se modifica el DOM, permisos, menús ni archivos HR. */
@media screen and (min-width:360px) and (max-width:430px){
  body.materialesrd-page .mrd-request-form .mrd-material-item
  .mrd-form-grid.two:has(>label>input[name="material_name[]"]){
    grid-template-columns:minmax(0,1fr)!important;
  }
}


/* 0.11.183 — Cotizaciones legibles en teléfonos 360–430px.
 * En el formulario real del suplidor, Especificación, Sustitución y Nota
 * quedaban a 120–155px: se recortaban nombres, condiciones y opciones.
 * Solo los dos grupos con texto/selecciones largos pasan a una columna.
 * Cantidad/precio/impuesto y condiciones comerciales mantienen 2 columnas.
 * No afecta DOM, valores, ownership, navegación HR ni otras apps. */
@media screen and (min-width:360px) and (max-width:430px){
  body.materialesrd-page .mrd-smart-quote .mrd-quote-line-grid.mrd-form-grid.three:has(>label>input[name$="[offered_specification]"]),
  body.materialesrd-page .mrd-smart-quote .mrd-quote-line-grid.mrd-form-grid.three:has(>label>select[name$="[substitution_type]"]){
    grid-template-columns:minmax(0,1fr)!important;
  }
}

/* 0.11.184 — Decisiones comerciales parciales legibles en 360–430px.
 * Las opciones de cotización/entrega parcial tienen textos largos; a 360px
 * el select quedaba a ~146px y ocultaba condiciones esenciales de la elección.
 * Solo esta pareja de selectores de la solicitud pasa a una columna.
 * No afecta pagos, importes, documentos, HR, navegación ni otras apps. */
@media screen and (min-width:360px) and (max-width:430px){
  body.materialesrd-page .mrd-request-form .mrd-form-grid.two:has(>label>select[name="allow_partial_quotes"]):has(>label>select[name="allow_partial_delivery"]){
    grid-template-columns:minmax(0,1fr)!important;
  }
}


/* 0.11.185 — Registro de obra: nombre y ubicación legibles a 360–430px.
 * En 0.11.184, Nombre de obra, Tipo, Provincia y Municipio quedaban a
 * ~119px en un teléfono de 360px; el usuario no podía revisar el texto.
 * Solo los dos grupos reales de la ficha de obra pasan a una columna.
 * En <=359px ya existe una columna; en >=431px se conserva la densidad.
 * No tocar HR, permisos, nav, pagos, documentos ni otras aplicaciones. */
@media screen and (min-width:360px) and (max-width:430px){
  body.materialesrd-page .mrd-project-form .mrd-form-grid.three:has(>label>input[name="project_name"]),
  body.materialesrd-page .mrd-project-form .mrd-form-grid.three:has(>label>input[name="municipality"]){
    grid-template-columns:minmax(0,1fr)!important;
  }
}


/* 0.11.186 — Dirección de entrega legible en solicitudes móviles.
 * La cuadrícula real de provincia/municipio/sector/acceso quedaba a ~146px
 * por campo en teléfonos de 360px, ocultando nombres de zonas y opciones
 * de acceso para camiones. Solo ese grupo pasa a una columna a 360–430px.
 * No se toca la ficha de obras, los importes, HR, permisos o el escritorio. */
@media screen and (min-width:360px) and (max-width:430px){
  body.materialesrd-page .mrd-request-form .mrd-form-grid.two[data-mrd-address-fields]:has(>label>input[name="municipality"]):has(>label>select[name="project_access"]){
    grid-template-columns:minmax(0,1fr)!important;
  }
}

/* 0.11.187 — Recepción parcial legible en móviles estrechos.
 * La fila original reservaba 90px al número incluso a 320px: el nombre del
 * material quedaba en ~106px. En <=390px mostrar nombre/cantidad recibida
 * apilados, conservando los mismos controles y límites del servidor.
 * No cambiar la lógica de recepción, adjuntos, permisos, HR ni escritorio. */
@media screen and (max-width:390px){
  body.materialesrd-page .mrd-receipt-card .mrd-receipt-form .mrd-receipt-items > label{
    grid-template-columns:minmax(0,1fr)!important;
    gap:6px!important;
  }
  body.materialesrd-page .mrd-receipt-card .mrd-receipt-items-head{
    flex-direction:column;align-items:flex-start;gap:4px;
  }
}

/* 0.11.188 — Formularios operativos del transportista legibles a 360–430px.
 * En documentos, vehículos y choferes, las dos columnas móviles reducían
 * póliza, licencia y capacidad a ~144px a 360px. Solo formularios locales
 * identificados por transport_operation; no intervenir formularios HR,
 * permisos, enlaces, documentos originales, valores ni escritorio. */
@media screen and (min-width:360px) and (max-width:430px){
  body.mrd-public-portal .mrd-portal-edit-form:has(> input[name="transport_operation"][value="save_documents"]) .mrd-form-grid.two,
  body.mrd-public-portal .mrd-portal-edit-form:has(> input[name="transport_operation"][value="add_vehicle"]) .mrd-form-grid.two,
  body.mrd-public-portal .mrd-portal-edit-form:has(> input[name="transport_operation"][value="add_driver"]) .mrd-form-grid.two{
    grid-template-columns:minmax(0,1fr)!important;
  }
}


@media (max-width:767px){
  .mrd-request-progress.mrd-intro-wizard .mrd-request-intro-points{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px}
  .mrd-request-form[data-mrd-mobile-steps="three"].mrd-wizard-active .mrd-wizard-actions{position:sticky;bottom:calc(76px + env(safe-area-inset-bottom));z-index:2;background:#fff;padding:8px}
}
.mrd-request-progress[hidden],[data-mrd-request-summary][hidden]{display:none!important}

/* 0.11.417: GPS sin alterar la barra inferior HR */
