/* HCC WEB R4.3.3 RC4 — CSS de distribución, sin reglas para reemplazar símbolos o etiquetas. */
/* R2 heredó 3 filas forzadas en Mi pedido. Restaurar [-][cantidad][+]. */
html body #cart-overlay #cart-items .ci-bottom > .stepper{
  display:grid!important;
  grid-template-columns:40px 50px 40px!important;
  grid-template-rows:38px!important;
  align-items:stretch!important;
  width:130px!important;min-width:130px!important;max-width:130px!important;
  height:38px!important;min-height:38px!important;
  flex:0 0 130px!important;
  margin:0!important;gap:0!important;
  overflow:hidden!important;border-radius:9px!important;
}
html body #cart-overlay #cart-items .ci-bottom > .stepper > button[data-cstep="-1"]{
  grid-row:1!important;grid-column:1!important;
}
html body #cart-overlay #cart-items .ci-bottom > .stepper > input[data-ckey]{
  grid-row:1!important;grid-column:2!important;
  width:50px!important;min-width:0!important;max-width:50px!important;
  height:38px!important;min-height:38px!important;
  padding:0!important;margin:0!important;line-height:38px!important;
  font-size:14px!important;text-align:center!important;
}
html body #cart-overlay #cart-items .ci-bottom > .stepper > button[data-cstep="1"]{
  grid-row:1!important;grid-column:3!important;
}
html body #cart-overlay #cart-items .ci-bottom > .stepper > button{
  width:40px!important;min-width:40px!important;max-width:40px!important;
  height:38px!important;min-height:38px!important;
  padding:0!important;line-height:1!important;
}
html body #cart-overlay #cart-items .ci-bottom{
  gap:10px!important;align-items:center!important;
}
/* Mantenimiento: preservar componentes existentes en fila, sin convertirlos en labels. */
html body #maintenance-view .stepper > button[data-step="1"],
html body #maintenance-view .stepper > button[data-liquid-step="1"]{
  min-width:32px!important;
}
/* Seguridad operativa: dos columnas legibles, archivo en fila propia visual,
   botón de restauración separado. No cambia acciones ni validación. */
html body.authenticated #admin-settings-view #admin-backup-settings-card .backup-actions{
  display:grid!important;
  grid-template-columns:minmax(145px,.75fr) minmax(0,1.25fr)!important;
  grid-template-rows:auto auto!important;
  align-items:end!important;
  gap:10px 13px!important;
  margin:16px 0 0!important;
  padding:0 0 17px!important;
  border-bottom:1px solid #e4eaf1!important;
}
html body.authenticated #admin-settings-view #admin-backup-settings-card .backup-actions > :is(#admin-backup-download,#admin-recovery-key-export){
  grid-row:1!important;grid-column:1!important;width:100%!important;
  justify-self:stretch!important;min-height:41px!important;height:auto!important;
  white-space:normal!important;
}
html body.authenticated #admin-settings-view #admin-backup-settings-card .backup-actions > .backup-restore-file{
  grid-row:1!important;grid-column:2!important;
  width:100%!important;min-width:0!important;display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;gap:5px!important;
  align-self:end!important;
}
html body.authenticated #admin-settings-view #admin-backup-settings-card .backup-restore-file > span{
  white-space:normal!important;min-width:0!important;
}
html body.authenticated #admin-settings-view #admin-backup-settings-card .backup-restore-file input[type="file"]{
  width:100%!important;min-width:0!important;max-width:100%!important;
}
html body.authenticated #admin-settings-view #admin-backup-settings-card .backup-actions > :is(#admin-backup-restore,#admin-recovery-key-import){
  grid-row:2!important;grid-column:2!important;
  justify-self:end!important;min-height:41px!important;
  width:auto!important;max-width:100%!important;
}
@media(max-width:680px){
  html body.authenticated #admin-settings-view #admin-backup-settings-card .backup-actions{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:repeat(3,auto)!important;
  }
  html body.authenticated #admin-settings-view #admin-backup-settings-card .backup-actions > :is(#admin-backup-download,#admin-recovery-key-export){grid-row:1!important;grid-column:1!important}
  html body.authenticated #admin-settings-view #admin-backup-settings-card .backup-actions > .backup-restore-file{grid-row:2!important;grid-column:1!important}
  html body.authenticated #admin-settings-view #admin-backup-settings-card .backup-actions > :is(#admin-backup-restore,#admin-recovery-key-import){grid-row:3!important;grid-column:1!important;justify-self:stretch!important;width:100%!important}
}
