/*
 CARGODEC LEGACY STYLE
 ORDEN=67
 ID=chatgpt_metricas_mas_chicas_v2015
 EXTRAIDO_DE=index.html
*/

/* Dashboard operación: GUÍAS / VALOR / PESO más compactos, centrados y sin corte */
body #dash .vehicle-grid .vcard .lote .pedMetricsLine,
body .vehicle-grid .vcard .lote .pedMetricsLine{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  padding:10px!important;
  margin-top:8px!important;
  background:#f8fafc!important;
  border-radius:16px!important;
}
body #dash .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric,
body .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric{
  min-height:82px!important;
  height:82px!important;
  padding:8px 6px!important;
  border:1px solid #dbe4f0!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 4px 10px rgba(15,23,42,.035)!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  gap:4px!important;
  overflow:visible!important;
}
body #dash .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric i,
body .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric i{
  display:block!important;
  font-size:15px!important;
  line-height:1!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  flex:0 0 auto!important;
  text-align:center!important;
}
body #dash .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric div,
body .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric div{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  gap:3px!important;
  text-align:center!important;
}
body #dash .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric span,
body .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric span{
  display:block!important;
  width:100%!important;
  padding:0!important;
  margin:0!important;
  color:#64748b!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:.35px!important;
  text-align:center!important;
  white-space:nowrap!important;
}
body #dash .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric strong,
body .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric strong{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  padding:0!important;
  margin:0!important;
  color:#001b44!important;
  font-size:18px!important;
  line-height:1.05!important;
  font-weight:900!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  transform:none!important;
}
body #dash .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric:nth-child(2) strong,
body .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric:nth-child(2) strong{
  font-size:16px!important;
  letter-spacing:-.2px!important;
}
@media(max-width:520px){
  body #dash .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric,
  body .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric{height:76px!important;min-height:76px!important}
  body #dash .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric strong,
  body .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric strong{font-size:16px!important}
  body #dash .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric:nth-child(2) strong,
  body .vehicle-grid .vcard .lote .pedMetricsLine .pedMetric:nth-child(2) strong{font-size:14px!important}
}

.historicFileCards{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:12px;margin-top:12px}
.histFileCard{border:1px solid #dbeafe;background:#fff;border-radius:16px;padding:14px;box-shadow:0 8px 22px rgba(15,23,42,.06)}
.histFileCard h3{margin:4px 0 6px;font-size:14px;color:#0f172a}
.histFileCard p{margin:0 0 10px;color:#64748b;font-size:12px;line-height:1.35}
.histFileCard input[type=file]{width:100%;height:auto;padding:10px;border:1px dashed #94a3b8;border-radius:12px;background:#f8fafc;font-size:12px}
.histFileIcon{width:34px;height:34px;border-radius:12px;background:#eff6ff;display:flex;align-items:center;justify-content:center;font-size:18px}
@media(max-width:1100px){.historicFileCards{grid-template-columns:1fr}}

/* v77: listado limpio de analisis/carga historica */
.histDirStatus{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.histDirStatus .box{border:1px solid #dbeafe;background:#f8fbff;border-radius:10px;padding:9px 11px;color:#001b44;font-size:12px;font-weight:900}
.histDirStatus .box span{display:block;color:#64748b;font-size:10px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.histResultsWrap{margin-top:10px;border:1px solid #dbeafe;border-radius:12px;overflow:auto;background:#fff;max-height:360px}
.histResultsTable{width:100%;border-collapse:collapse;font-size:11px;color:#001b44}
.histResultsTable th{position:sticky;top:0;background:#f1f5f9;color:#001b44;text-align:left;font-size:10px;text-transform:uppercase;padding:8px 9px;border-bottom:1px solid #e2e8f0;z-index:1}
.histResultsTable td{padding:7px 9px;border-bottom:1px solid #edf2f7;vertical-align:middle;white-space:nowrap}
.histResultsTable td:nth-child(2){font-weight:800}.histResultsTable td:nth-child(7),.histResultsTable td:nth-child(8){text-align:right}
.histBadge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:2px 7px;font-size:9px;font-weight:900;min-width:24px}
.histBadge.ok{background:#dcfce7;color:#087a39}.histBadge.err{background:#fee2e2;color:#b91c1c}.histBadge.warn{background:#fef3c7;color:#92400e}
.histEmpty{padding:14px;color:#64748b;font-size:12px;font-weight:800;background:#f8fafc;border-radius:10px;border:1px dashed #cbd5e1;margin-top:10px}
@media(max-width:1000px){.histDirStatus{grid-template-columns:1fr}.histResultsTable{font-size:10px}.histResultsTable th,.histResultsTable td{padding:6px}}
