/* Kerlux Hub 1.1.4 — Sistema visual compartido para herramientas comerciales.
   Aislado de los módulos EKON y Gastos y del resto del tema Impreza. */
#kht-editor,
main.khc-page {
  --kh-ui-base-top: 24px;
  --kh-ui-header-offset: 0px;
  --kh-ui-ink: #1c4058;
  --kh-ui-mid: #527f99;
  --kh-ui-border: #dce6eb;
  --kh-ui-shadow: 0 6px 22px rgba(22, 52, 71, .05);
  max-width: 1480px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: calc(var(--kh-ui-base-top) + var(--kh-ui-header-offset));
  position: relative;
  box-sizing: border-box;
}
#kht-editor .kht-hero,
.khc-page .khc-hero {
  background: linear-gradient(115deg, #1d4359 0%, #2e607c 64%, #4c819f 100%);
  border-radius: 15px;
  padding: 23px 32px;
  min-height: 125px;
  margin: 0;
  color: #fff;
  box-shadow: var(--kh-ui-shadow);
}
#kht-editor .kht-eyebrow,
.khc-page .khc-kicker {
  color: #c8e0ef;
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 700;
  margin: 0 0 8px;
}
#kht-editor .kht-hero h1,
.khc-page .khc-hero h1 {
  font-size: clamp(27px, 2.5vw, 34px);
  line-height: 1.17;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}
#kht-editor .kht-hero p,
.khc-page .khc-hero p {
  color: #e8f2f7;
  font-size: 13px;
  line-height: 1.6;
  max-width: 860px;
  margin: 0;
}
#kht-editor .kht-toolnav,
.khc-page .khc-quicknav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 23px;
}
#kht-editor .kht-toolnav a,
.khc-page .khc-quicknav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #cbdce6;
  background: #eaf1f5;
  color: #234c66;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin: 0;
  transition: background-color .15s ease, border-color .15s ease;
}
#kht-editor .kht-toolnav a:hover,
.khc-page .khc-quicknav a:hover,
#kht-editor .kht-toolnav a:focus-visible,
.khc-page .khc-quicknav a:focus-visible {
  color: #173e55;
  background: #dceaf2;
  border-color: #a6c4d5;
  text-decoration: none;
}
.khc-page .khc-quicknav .khc-verifier-link { background: #fff; }
#kht-editor .kht-panel,
#kht-editor .kht-table-card,
.khc-page .khc-card { border-color: var(--kh-ui-border); border-radius: 13px; box-shadow: var(--kh-ui-shadow); }
#kht-editor .kht-settings { top: 16px; }
@media (max-width: 800px) {
  #kht-editor, main.khc-page { --kh-ui-base-top: 16px; }
  #kht-editor .kht-hero, .khc-page .khc-hero { padding: 22px 23px; min-height: 0; }
  #kht-editor .kht-hero h1, .khc-page .khc-hero h1 { font-size: 28px; }
  #kht-editor .kht-toolnav, .khc-page .khc-quicknav { margin: 14px 0 18px; }
}
@media (max-width: 480px) {
  #kht-editor .kht-hero, .khc-page .khc-hero { padding: 20px 18px; }
  #kht-editor .kht-toolnav a, .khc-page .khc-quicknav a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #kht-editor .kht-toolnav a, .khc-page .khc-quicknav a { transition: none; }
}

/* --- Kerlux Hub 1.1.4: stock comercial y gastos, sin tocar sus formularios --- */
.kh-hub-tool-shell {
  --kh-ui-base-top: 24px;
  --kh-ui-header-offset: 0px;
  --kh-ui-ink: #1c4058;
  --kh-ui-border: #dce6eb;
  --kh-ui-shadow: 0 6px 22px rgba(22, 52, 71, .05);
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding-top: calc(var(--kh-ui-base-top) + var(--kh-ui-header-offset));
  box-sizing: border-box;
  position: relative;
}
.kh-hub-tool-shell .kh-hub-hero {
  background: linear-gradient(115deg, #1d4359 0%, #2e607c 64%, #4c819f 100%);
  border-radius: 15px;
  padding: 23px 32px;
  min-height: 125px;
  box-sizing: border-box;
  box-shadow: var(--kh-ui-shadow);
  color: white;
}
.kh-hub-tool-shell .kh-hub-hero h1 {
  font-size: clamp(27px, 2.5vw, 34px);
  line-height: 1.17;
  font-weight: 700;
  color: white;
  margin: 0 0 8px;
}
.kh-hub-tool-shell .kh-hub-hero p {
  color: #e8f2f7;
  font-size: 13px;
  line-height: 1.6;
  max-width: 860px;
  margin: 0;
}
.kh-hub-tool-shell .kh-hub-toolnav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 23px;
}
.kh-hub-tool-shell .kh-hub-toolnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  box-sizing: border-box;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #cbdce6;
  background: #eaf1f5;
  color: #234c66;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  margin: 0;
}
.kh-hub-tool-shell .kh-hub-toolnav a:hover,
.kh-hub-tool-shell .kh-hub-toolnav a:focus-visible {
  color: #173e55;
  background: #dceaf2;
  border-color: #a6c4d5;
  text-decoration: none;
}
/* El label se mantiene para lectores de pantalla y para el campo de búsqueda. */
.kh-hub-stock .kerlux-stock-form > label[for="kerlux_stock_search"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.kh-hub-stock .kerlux-stock-navigation,
.kh-hub-expenses .kex-portal-back { display: none !important; }
.kh-hub-stock .kerlux-stock-wrapper {
  max-width: none;
  padding: 0;
}
.kh-hub-stock .kerlux-stock-form,
.kh-hub-stock .kerlux-stock-message,
.kh-hub-stock .kerlux-stock-table,
.kh-hub-stock .kerlux-stock-empty,
.kh-hub-stock .kerlux-stock-error {
  border-color: #dce6eb;
}
.kh-hub-stock .kerlux-stock-search-row input,
.kh-hub-stock .kerlux-stock-search-row select {
  border-color: #cbdce6 !important;
  border-radius: 8px !important;
}
.kh-hub-stock .kerlux-stock-search-row button {
  background: #1d4359;
  border-radius: 8px;
}
.kh-hub-expenses .kex-portal-shell {
  max-width: none;
  margin-top: 0;
}
@media (max-width: 800px) {
  .kh-hub-tool-shell { --kh-ui-base-top: 16px; }
  .kh-hub-tool-shell .kh-hub-hero { padding: 22px 23px; min-height: 0; }
  .kh-hub-tool-shell .kh-hub-hero h1 { font-size: 28px; }
  .kh-hub-tool-shell .kh-hub-toolnav { margin: 14px 0 18px; }
}
@media (max-width: 480px) {
  .kh-hub-tool-shell .kh-hub-hero { padding: 20px 18px; }
  .kh-hub-tool-shell .kh-hub-toolnav a { width: 100%; }
}
