/* HControl Center R8.2 · SOLO cobros de facturas, KPI Vista 360 y botón Eliminar artículo. */
/* Las clases aplican sobre el HTML generado por el runtime real de clientes. */
body [data-client-360-panel] .crm-stat-grid.compact > .crm-stat > strong.hcc-r82-360-value {
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
  text-align: left !important;
  font-variant-numeric: tabular-nums !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}
/* Eliminar artículo: recuperar contraste SOLO en la ficha, sin cambiar el botón ni su lógica. */
#admin-article-editor #admin-article-delete:not(.hidden) {
  color: #a92525 !important;
  background: #fff6f5 !important;
  border: 1px solid #f0b7b4 !important;
  -webkit-text-fill-color: #a92525 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  opacity: 1 !important;
  min-width: 100px;
}
#admin-article-editor #admin-article-delete:not(.hidden):hover {
  color: #8c1b1b !important;
  -webkit-text-fill-color: #8c1b1b !important;
  border-color: #db8888 !important;
  background: #ffe9e6 !important;
}
#admin-article-editor #admin-article-delete.hidden {display:none !important;}
#admin-article-editor #admin-article-delete:focus-visible {outline: 2px solid #b91c1c;outline-offset:2px;}
/* Modal del cobro con la tipografía y controles de HControl Center. */
.hcc-r82-overlay{position:fixed;inset:0;z-index:110000;background:rgba(7,24,42,.60);display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto;}
.hcc-r82-payment-dialog{background:#fff;color:#16304a;width:min(620px,100%);max-height:min(92vh,900px);overflow:auto;border-radius:15px;padding:22px;box-shadow:0 22px 70px rgba(10,24,48,.25);font-size:13px;}
.hcc-r82-payment-dialog header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;border-bottom:1px solid #e1e7ef;padding-bottom:14px;margin-bottom:16px;}
.hcc-r82-payment-dialog header h2{font-size:21px;line-height:1.25;margin:4px 0;}
.hcc-r82-payment-dialog header p{color:#64748b;margin:0;}
.hcc-r82-payment-dialog h3{font-size:14px;margin:16px 0 8px;}
.hcc-r82-money-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}
.hcc-r82-money-summary>div{border:1px solid #d7e0eb;border-radius:10px;padding:10px;min-width:0;display:grid;gap:6px;}
.hcc-r82-money-summary span{font-size:11px;color:#64748b;}
.hcc-r82-money-summary strong{font-size:17px;overflow-wrap:anywhere;}
.hcc-r82-history{list-style:none;margin:0;padding:0;max-height:130px;overflow:auto;border:1px solid #e1e7ef;border-radius:9px;}
.hcc-r82-history li{padding:9px 12px;display:flex;gap:10px;justify-content:space-between;align-items:center;border-bottom:1px solid #edf1f6;}
.hcc-r82-history li:last-child{border-bottom:0;}
.hcc-r82-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.hcc-r82-form-grid label{display:grid;gap:5px;font-size:12px;font-weight:650;min-width:0;}
.hcc-r82-form-grid input,.hcc-r82-form-grid select{width:100%;min-width:0;box-sizing:border-box;border:1px solid #cbd7e5;border-radius:9px;min-height:39px;padding:8px 10px;background:white;color:#16304a;font:inherit;}
.hcc-r82-payment-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:16px;}
.hcc-r82-note{color:#64748b;font-size:12px;line-height:1.5;}
.hcc-r82-error{border:1px solid #ecb0ab;border-radius:8px;color:#99201b;background:#fff5f5;padding:10px;margin-top:10px;}
.hcc-r82-pay-action{white-space:nowrap;margin-left:5px;}
@media(max-width:600px){.hcc-r82-payment-dialog{padding:16px;max-height:95vh;}.hcc-r82-form-grid{grid-template-columns:1fr}.hcc-r82-money-summary{grid-template-columns:1fr}.hcc-r82-payment-dialog footer{flex-wrap:wrap}.hcc-r82-payment-dialog footer button{flex:1;}}
@media(prefers-reduced-motion:reduce){.hcc-r82-payment-dialog *{scroll-behavior:auto!important;}}
