/*
 * IW-SH1 / Section Header v1
 * Cabecera de seguimiento común para las secciones del panel autenticado.
 * IW-SH2 queda reservado para perfiles y vistas de detalle.
 */
html body.iw-panel-light .iw-shell-heading-zone {
  position: relative !important;
  z-index: auto !important;
  display: block !important;
  flex: 1 1 auto !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.iw-panel-light .iw-shell-heading-zone--empty {
  display: none !important;
}

html body.iw-panel-light nav#iw-main-header.iw-header,
html body.iw-panel-light .iw-header.clientx.wgsheaderfromaddon {
  min-height: 54px !important;
  max-height: 54px !important;
}

html body.iw-panel-light nav#iw-main-header .iw-header-inner,
html body.iw-panel-light .iw-header.clientx.wgsheaderfromaddon .iw-header-inner {
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  gap: 8px !important;
}

/* El encabezado heredado no se muestra en el cuerpo antes de ser migrado. */
html body.iw-panel-light #content .iw-page-header:not(.iw-product-detail-header):not(.iw-inv-header) {
  visibility: hidden !important;
}

html body.iw-panel-light .iw-shell-heading-zone > .iw-page-header {
  visibility: visible !important;
}

html body.iw-panel-light .iw-shell-heading-zone > .iw-section-header,
html body.iw-panel-light .iw-shell-heading-zone > .iw-page-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  gap: 8px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: #0b2435 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html body.iw-panel-light .iw-section-header__icon,
html body.iw-panel-light .iw-section-header__icon i {
  color: #066c7b !important;
}

html body.iw-panel-light .iw-section-header__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  border: 1px solid #bfe8ef !important;
  border-radius: 8px !important;
  background: #eefbfa !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

/* IW-SH1 usa el espacio central de la cabecera; reemplaza la navegación duplicada del panel. */
html body.iw-panel-light nav#iw-main-header .iw-header-inner > .iw-header-nav {
  display: none !important;
}

html body.iw-panel-light .iw-shell-heading-zone > .iw-section-header::before,
html body.iw-panel-light .iw-shell-heading-zone > .iw-section-header::after,
html body.iw-panel-light .iw-shell-heading-zone > .iw-page-header::before,
html body.iw-panel-light .iw-shell-heading-zone > .iw-page-header::after {
  display: none !important;
  content: none !important;
}

html body.iw-panel-light .iw-section-header__copy,
html body.iw-panel-light .iw-shell-heading-zone > .iw-page-header > div:first-child {
  min-width: 0 !important;
  overflow: hidden !important;
}

html body.iw-panel-light .iw-section-header__eyebrow,
html body.iw-panel-light .iw-shell-heading-zone .iw-breadcrumb {
  display: block !important;
  margin: 0 0 2px !important;
  color: #078694 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  -webkit-text-fill-color: #078694 !important;
}

html body.iw-panel-light .iw-section-header__title,
html body.iw-panel-light .iw-shell-heading-zone .iw-page-title {
  margin: 0 !important;
  color: #0b2435 !important;
  -webkit-text-fill-color: #0b2435 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -.025em !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
}

html body.iw-panel-light .iw-section-header__subtitle,
html body.iw-panel-light .iw-shell-heading-zone .iw-page-subtitle {
  display: none !important;
}

html body.iw-panel-light .iw-section-header__actions,
html body.iw-panel-light .iw-shell-heading-zone .iw-page-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  margin: 0 0 0 auto !important;
  padding-left: 0 !important;
  border-left: 0 !important;
}

html body.iw-panel-light .iw-shell-heading-zone .iw-section-header__actions .btn,
html body.iw-panel-light .iw-shell-heading-zone .iw-page-actions .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 30px !important;
  max-height: 30px !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  border-radius: 7px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

/* Controles globales: misma escala compacta que las acciones de la sección. */
html body.iw-panel-light nav#iw-main-header .iw-header-actions {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-left: 2px !important;
  padding-left: 10px !important;
}

html body.iw-panel-light nav#iw-main-header .iw-header-actions::before {
  content: "" !important;
  display: block !important;
  flex: 0 0 1px !important;
  width: 1px !important;
  height: 24px !important;
  margin-right: 3px !important;
  background: #d5e4ea !important;
}

html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-btn,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-store,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-cart,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-notifications,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-user,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-account {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-account {
  margin-left: 7px !important;
}

html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-account::before {
  content: "" !important;
  position: absolute !important;
  top: 4px !important;
  left: -6px !important;
  width: 1px !important;
  height: 22px !important;
  background: #d5e4ea !important;
}

html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-btn i,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-store i,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-cart i,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-notifications i,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-user i,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-account i {
  width: 14px !important;
  height: 14px !important;
  font-size: 13px !important;
  line-height: 14px !important;
}

html body.iw-panel-light .iw-shell-heading-zone .iw-breadcrumb a,
html body.iw-panel-light .iw-shell-heading-zone .iw-breadcrumb span {
  color: inherit !important;
  font-size: inherit !important;
}

@media (max-width: 991px) {
  html body.iw-panel-light nav#iw-main-header .iw-header-inner,
  html body.iw-panel-light .iw-header.clientx.wgsheaderfromaddon .iw-header-inner {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    gap: 7px !important;
    padding: 6px 50px 6px 12px !important;
  }

  html body.iw-panel-light nav#iw-main-header .iw-header-logo,
  html body.iw-panel-light .iw-header.clientx.wgsheaderfromaddon .iw-header-logo {
    display: none !important;
  }

  html body.iw-panel-light .iw-shell-heading-zone {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.iw-panel-light .iw-shell-heading-zone > .iw-section-header,
  html body.iw-panel-light .iw-shell-heading-zone > .iw-page-header {
    min-height: 0 !important;
  }

  html body.iw-panel-light .iw-section-header__subtitle,
  html body.iw-panel-light .iw-shell-heading-zone .iw-page-subtitle {
    display: none !important;
  }

  html body.iw-panel-light .iw-section-header__actions .iw-btn-secondary,
  html body.iw-panel-light .iw-shell-heading-zone .iw-page-actions .iw-btn-secondary {
    display: none !important;
  }
}

@media (max-width: 700px) {
  html body.iw-panel-light .iw-shell-heading-zone {
    padding: 0 !important;
  }

  html body.iw-panel-light .iw-shell-heading-zone > .iw-section-header,
  html body.iw-panel-light .iw-shell-heading-zone > .iw-page-header {
    gap: 10px !important;
  }

  html body.iw-panel-light .iw-section-header__icon {
    flex-basis: 32px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }

  html body.iw-panel-light .iw-section-header__title,
  html body.iw-panel-light .iw-shell-heading-zone .iw-page-title {
    font-size: 16px !important;
  }

  html body.iw-panel-light .iw-section-header__subtitle,
  html body.iw-panel-light .iw-shell-heading-zone .iw-page-subtitle,
  html body.iw-panel-light .iw-section-header__eyebrow,
  html body.iw-panel-light .iw-shell-heading-zone .iw-breadcrumb {
    display: none !important;
  }

  html body.iw-panel-light .iw-section-header__actions,
  html body.iw-panel-light .iw-shell-heading-zone .iw-page-actions {
    display: none !important;
  }

  html body.iw-panel-light .iw-section-header__actions::-webkit-scrollbar,
  html body.iw-panel-light .iw-shell-heading-zone .iw-page-actions::-webkit-scrollbar {
    display: none !important;
  }
}

@media (max-width: 430px) {
  html body.iw-panel-light .iw-shell-heading-zone .iw-section-header__actions .btn,
  html body.iw-panel-light .iw-shell-heading-zone .iw-page-actions .btn {
    min-height: 29px !important;
    max-height: 29px !important;
    padding: 5px 8px !important;
    font-size: 10px !important;
  }

  html body.iw-panel-light .iw-section-header__actions .iw-btn-secondary:not(:first-child) {
    display: none !important;
  }
}
