/* DC CONTROL 10.4.81r23 — Normalización visual global.
   Una sola capa final para tarjetas/tablas responsive. No modifica lógica ni datos. */
:root{
  --dc23-blue:#167eea; --dc23-pink:#e92d5b; --dc23-green:#0aae69;
  --dc23-orange:#f47b16; --dc23-purple:#7b45df; --dc23-cyan:#079eac;
  --dc23-navy:#173f59; --dc23-line:rgba(255,255,255,.20);
}
/* Tarjetas principales: mismo lenguaje visual (radio, borde, sombra y recorte). */
.exec-card,.metric,.enterprise-action,.movement-row,.report-card,.w3-kpis>div,
.route-point-card1046,.dc-routine-card,.purchase-card,.supplier-card{
  border-radius:18px!important;
  overflow:hidden!important;
  box-shadow:0 8px 20px rgba(5,20,36,.16)!important;
}

/* Tablas convertidas a tarjetas en móvil: esquema sólido uniforme en TODOS los módulos. */
@media(max-width:700px){
  .enterprise-table-wrap{background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
  .enterprise-table,.enterprise-table tbody{background:transparent!important}
  .enterprise-table tbody tr{
    position:relative!important;
    background:linear-gradient(135deg,#1c4a66,#15384f)!important;
    color:#fff!important;
    border:1px solid rgba(255,255,255,.16)!important;
    border-radius:18px!important;
    box-shadow:0 8px 20px rgba(4,18,32,.18)!important;
    overflow:hidden!important;
    padding:13px 14px!important;
    margin:0 0 10px!important;
  }
  .enterprise-table tbody tr:nth-child(6n+2){background:linear-gradient(135deg,#176fd1,#1255a4)!important}
  .enterprise-table tbody tr:nth-child(6n+3){background:linear-gradient(135deg,#0b9e63,#08794c)!important}
  .enterprise-table tbody tr:nth-child(6n+4){background:linear-gradient(135deg,#d63861,#ad234b)!important}
  .enterprise-table tbody tr:nth-child(6n+5){background:linear-gradient(135deg,#e57a18,#b95a0d)!important}
  .enterprise-table tbody tr:nth-child(6n){background:linear-gradient(135deg,#7446d3,#5630a8)!important}
  .enterprise-table tbody tr::after{
    content:"";position:absolute;right:-42px;top:-58px;width:150px;height:150px;
    border-radius:50%;background:rgba(255,255,255,.07);pointer-events:none
  }
  /* Importante para iPhone: Safari deja :hover pegado después de tocar Editar.
     Ninguna celda puede volver a blanco. */
  .enterprise-table tbody tr td,
  .enterprise-table tbody tr:hover td,
  .enterprise-table tbody tr:active td,
  .enterprise-table tbody tr:focus-within td{
    position:relative!important;z-index:1!important;
    background:transparent!important;
    color:#fff!important;
    border-color:rgba(255,255,255,.14)!important;
  }
  .enterprise-table tbody tr td::before{
    color:rgba(255,255,255,.72)!important;opacity:1!important
  }
  .enterprise-table tbody tr td.amount,
  .enterprise-table tbody tr td strong,
  .enterprise-table tbody tr td b,
  .enterprise-table tbody tr td .green,
  .enterprise-table tbody tr td .red,
  .enterprise-table tbody tr td .payment-amount{color:#fff!important}
  .enterprise-table tbody tr .mini,
  .enterprise-table tbody tr .primary,
  .enterprise-table tbody tr .secondary{
    border:1px solid rgba(255,255,255,.22)!important;
    background:rgba(20,132,238,.94)!important;
    color:#fff!important;
    box-shadow:none!important;
  }
  /* Las vistas especiales de Oráculo/Compras ya tienen paleta propia; conservarla,
     pero impedir igualmente el flash/blanco por hover. */
  .sheet.wide104 .enterprise-table tbody tr:hover td,
  .sheet.wide104 .enterprise-table tbody tr:active td,
  .sheet.wide104 .enterprise-table tbody tr:focus-within td{background:transparent!important;color:#fff!important}
}
