/* HControl Center WEB R4.3.3-RC5.1 — CSS visual focalizado.
   Únicamente steppers de mantenimiento/carrito y separación de respaldos SQL.
   No hay reglas globales sobre el signo +, eventos ni contenido textual. */

/* Selectores de unidades: misma geometría para − y +. */
html body #maintenance-view .li-controls .stepper,
html body #maintenance-view .lp-controls .stepper,
html body #cart-overlay #cart-items .ci-bottom > .stepper {
  display: grid !important;
  grid-template-columns: 38px minmax(0,1fr) 38px !important;
  grid-template-rows: 38px !important;
  align-items: center !important;
  gap: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  box-sizing: border-box !important;
  background: #fff !important;
  border: 1px solid #cbd6e2 !important;
  border-radius: 9px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}
/* La tarjeta de mantenimiento conserva su ancho de fila, sin alterar los CTA. */
html body #maintenance-view .li-controls .stepper,
html body #maintenance-view .lp-controls .stepper {
  grid-column: 1 / -1;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
/* El carrito conserva el control compacto al lado del precio y descuento. */
html body #cart-overlay #cart-items .ci-bottom > .stepper {
  grid-template-columns: 38px 48px 38px !important;
  width: 124px !important;
  min-width: 124px !important;
  max-width: 124px !important;
  flex: 0 0 124px !important;
  margin: 0 !important;
}
html body #maintenance-view .li-controls .stepper > button,
html body #maintenance-view .lp-controls .stepper > button,
html body #cart-overlay #cart-items .ci-bottom > .stepper > button {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: stretch !important;
  grid-row: 1 !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #23354a !important;
  -webkit-text-fill-color: #23354a !important;
  font: 600 17px/1 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif !important;
  text-align: center !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
html body #maintenance-view .li-controls .stepper > button:first-child,
html body #maintenance-view .lp-controls .stepper > button:first-child,
html body #cart-overlay #cart-items .ci-bottom > .stepper > button[data-cstep="-1"] {
  grid-column: 1 !important;
  border-right: 1px solid #e0e7ef !important;
}
html body #maintenance-view .li-controls .stepper > button:last-child,
html body #maintenance-view .lp-controls .stepper > button:last-child,
html body #cart-overlay #cart-items .ci-bottom > .stepper > button[data-cstep="1"] {
  grid-column: 3 !important;
  border-left: 1px solid #e0e7ef !important;
}
html body #maintenance-view .li-controls .stepper > button:hover:not(:disabled),
html body #maintenance-view .lp-controls .stepper > button:hover:not(:disabled),
html body #cart-overlay #cart-items .ci-bottom > .stepper > button:hover:not(:disabled) {
  background: #f3f6fa !important;
}
html body #maintenance-view .li-controls .stepper > button:disabled,
html body #maintenance-view .lp-controls .stepper > button:disabled,
html body #cart-overlay #cart-items .ci-bottom > .stepper > button:disabled {
  color: #9da8b7 !important;
  -webkit-text-fill-color: #9da8b7 !important;
  cursor: not-allowed !important;
}
html body #maintenance-view .li-controls .stepper > input,
html body #maintenance-view .lp-controls .stepper > input,
html body #cart-overlay #cart-items .ci-bottom > .stepper > input[data-ckey] {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 3px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #23354a !important;
  -webkit-text-fill-color: #23354a !important;
  font: 500 13px/38px Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif !important;
  text-align: center !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}
html body #maintenance-view .stepper > input::-webkit-inner-spin-button,
html body #maintenance-view .stepper > input::-webkit-outer-spin-button,
html body #cart-overlay #cart-items .stepper > input::-webkit-inner-spin-button,
html body #cart-overlay #cart-items .stepper > input::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Copias SQL: un solo separador con aire por ambos lados. */
html body.authenticated #admin-settings-view #admin-backup-settings-card .backup-actions {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}
html body.authenticated #admin-settings-view #admin-backup-settings-card .backup-actions + .backup-actions {
  border-top: 1px solid #dfe6ef !important;
  margin-top: 22px !important;
  padding-top: 20px !important;
}
