/* Yolka v1.25.6 - detalle de manifiesto profesional y compacto */
#detailPage .pedimento-documents-grid{
  grid-template-columns:minmax(0,1.55fr) minmax(420px,1fr)!important;
  gap:16px!important;
  align-items:stretch!important;
}
#detailPage .pedimento-panel-card{
  height:520px!important;
  min-height:520px!important;
  max-height:520px!important;
  padding:0!important;
  border:1px solid #d8e3ef!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 8px 28px rgba(22,49,91,.07)!important;
}
#detailPage .pedimento-panel-card>.card-heading{
  min-height:82px!important;
  padding:16px 18px 13px!important;
  margin:0!important;
  border-bottom:1px solid #e6edf5!important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%)!important;
}
#detailPage .pedimento-panel-card>.card-heading h3{
  margin:0!important;
  color:#082b58!important;
  font-size:16px!important;
  line-height:1.2!important;
  letter-spacing:-.01em!important;
}
#detailPage .pedimento-panel-card>.card-heading p{
  margin:5px 0 0!important;
  color:#718299!important;
  font-size:11px!important;
}
#detailPage .pedimento-panel-card>.card-heading button{
  min-height:36px!important;
  padding:7px 12px!important;
  border-radius:9px!important;
  font-size:12px!important;
  box-shadow:none!important;
}
#detailPage .paired-panel-scroll{
  padding:0 18px 14px!important;
  overflow:auto!important;
  scrollbar-width:thin;
}

/* Barra de lotes */
#detailPage .compact-lot-editor{
  padding:10px 18px 8px!important;
  border-bottom:1px solid #edf2f7!important;
  background:#fff!important;
}
#detailPage .lot-selection-toolbar{
  min-height:36px!important;
  gap:8px!important;
  padding:0!important;
  margin:0!important;
  font-size:12px!important;
}
#detailPage .lot-selection-toolbar button{
  min-height:30px!important;
  padding:5px 9px!important;
  border-radius:8px!important;
  font-size:11px!important;
}
#detailPage .lot-auto-save{
  color:#72839a!important;
  font-size:11px!important;
}

/* Tabla de lotes: sin barra horizontal y con columnas equilibradas */
#detailPage #lotsTable{
  overflow-x:hidden!important;
  overflow-y:auto!important;
  padding:0!important;
}
#detailPage #lotsTable .lots-compact{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
#detailPage #lotsTable .lots-compact th{
  padding:9px 7px!important;
  color:#61758d!important;
  background:#f7faff!important;
  border-bottom:1px solid #dce6f0!important;
  font-size:9px!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  text-align:center!important;
  vertical-align:bottom!important;
}
#detailPage #lotsTable .lots-compact td{
  padding:9px 7px!important;
  border-bottom:1px solid #edf2f7!important;
  color:#102f57!important;
  font-size:12px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#detailPage #lotsTable .lots-compact tbody tr:hover td{background:#f8fbff!important}
#detailPage #lotsTable .lots-compact th:nth-child(1),
#detailPage #lotsTable .lots-compact td:nth-child(1){width:34px!important;text-align:center!important}
#detailPage #lotsTable .lots-compact th:nth-child(2),
#detailPage #lotsTable .lots-compact td:nth-child(2){width:105px!important}
#detailPage #lotsTable .lots-compact th:nth-child(3),
#detailPage #lotsTable .lots-compact td:nth-child(3){width:98px!important}
#detailPage #lotsTable .lots-compact th:nth-child(4),
#detailPage #lotsTable .lots-compact td:nth-child(4){width:132px!important}
#detailPage #lotsTable .lots-compact th:nth-child(5),
#detailPage #lotsTable .lots-compact td:nth-child(5){width:130px!important}
#detailPage #lotsTable .lots-compact th:nth-child(6),
#detailPage #lotsTable .lots-compact td:nth-child(6){width:175px!important;text-align:right!important}
#detailPage #lotsTable .lots-compact th:nth-child(7),
#detailPage #lotsTable .lots-compact td:nth-child(7){width:175px!important;text-align:right!important}
#detailPage #lotsTable .lots-compact tfoot td{
  background:#f7faff!important;
  font-weight:800!important;
  border-top:1px solid #dce6f0!important;
  border-bottom:0!important;
}

/* Matriz de archivos M */
#detailPage .pedimento-file-matrix{
  margin-top:6px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  overflow:visible!important;
}
#detailPage .matrix-summary{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  margin:-4px 0 8px!important;
}
#detailPage .matrix-summary>div{
  min-height:50px!important;
  padding:6px 8px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  border:1px solid #dce6f0!important;
  border-radius:11px!important;
  background:#f8fbff!important;
  box-shadow:none!important;
}
#detailPage .matrix-summary small{
  display:block!important;
  color:#6e8096!important;
  font-size:9px!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  text-align:center!important;
}
#detailPage .matrix-summary strong{
  display:block!important;
  margin-top:2px!important;
  color:#082b58!important;
  font-size:17px!important;
  line-height:1!important;
}
#detailPage .matrix-summary .matrix-result{
  grid-column:1/-1!important;
  min-height:auto!important;
  padding:11px 13px!important;
  border-color:#bfe5ce!important;
  background:#f2fbf6!important;
}
#detailPage .matrix-summary .matrix-result small{display:inline!important;margin-right:8px!important}
#detailPage .matrix-summary .matrix-result b{
  display:inline!important;
  color:#087a43!important;
  font-size:12px!important;
  white-space:normal!important;
}
#detailPage .matrix-danger .matrix-summary .matrix-result{border-color:#efbcbc!important;background:#fff5f5!important}
#detailPage .matrix-danger .matrix-summary .matrix-result b{color:#b52b2b!important}
#detailPage .matrix-warning .matrix-summary .matrix-result{border-color:#efd38f!important;background:#fffaf0!important}
#detailPage .matrix-warning .matrix-summary .matrix-result b{color:#9a6400!important}
#detailPage .matrix-table-wrap{
  max-height:250px!important;
  overflow:auto!important;
  border:1px solid #dfe8f1!important;
  border-radius:11px!important;
  background:#fff!important;
}
#detailPage .pedimento-file-table{table-layout:fixed!important;width:100%!important}
#detailPage .pedimento-file-table th{
  padding:9px 10px!important;
  background:#f7faff!important;
  color:#61758d!important;
  font-size:10px!important;
}
#detailPage .pedimento-file-table td{
  padding:9px 10px!important;
  font-size:12px!important;
  border-bottom:1px solid #edf2f7!important;
}
#detailPage .pedimento-file-table th:nth-child(1),#detailPage .pedimento-file-table td:nth-child(1){width:27%!important}
#detailPage .pedimento-file-table th:nth-child(2),#detailPage .pedimento-file-table td:nth-child(2){width:53%!important}
#detailPage .pedimento-file-table th:nth-child(3),#detailPage .pedimento-file-table td:nth-child(3){width:20%!important}
#detailPage .matrix-file-name{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#detailPage .matrix-badge{padding:4px 8px!important;font-size:10px!important;border-radius:999px!important}

@media(max-width:1250px){
  #detailPage .pedimento-documents-grid{grid-template-columns:1fr!important}
  #detailPage .pedimento-panel-card{height:auto!important;min-height:440px!important;max-height:none!important}
}
@media(max-width:760px){
  #detailPage .matrix-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #detailPage #lotsTable{overflow-x:auto!important}
  #detailPage #lotsTable .lots-compact{min-width:760px!important}
}

#cancelLotEdit.hidden{display:none!important}.lot-select-row{cursor:pointer}

/* Yolka v1.26.0 - cuadro de lotes compacto para mostrar todas las columnas */
#detailPage #lotsTable{
  width:100%!important;
  max-width:100%!important;
  overflow-x:hidden!important;
}
#detailPage #lotsTable .lots-compact{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
}
#detailPage #lotsTable .lots-compact th{
  padding:6px 4px!important;
  font-size:8.5px!important;
  line-height:1.05!important;
  letter-spacing:.1px!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:center!important;
}
#detailPage #lotsTable .lots-compact td{
  padding:7px 4px!important;
  font-size:10.5px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#detailPage #lotsTable .lots-compact td b{font-size:10.5px!important}
#detailPage #lotsTable .lots-compact th:nth-child(1),
#detailPage #lotsTable .lots-compact td:nth-child(1){width:3.5%!important}
#detailPage #lotsTable .lots-compact th:nth-child(2),
#detailPage #lotsTable .lots-compact td:nth-child(2){width:11%!important}
#detailPage #lotsTable .lots-compact th:nth-child(3),
#detailPage #lotsTable .lots-compact td:nth-child(3){width:10%!important}
#detailPage #lotsTable .lots-compact th:nth-child(4),
#detailPage #lotsTable .lots-compact td:nth-child(4){width:14%!important;text-align:left!important}
#detailPage #lotsTable .lots-compact th:nth-child(5),
#detailPage #lotsTable .lots-compact td:nth-child(5){width:13%!important;text-align:left!important}
#detailPage #lotsTable .lots-compact th:nth-child(6),
#detailPage #lotsTable .lots-compact td:nth-child(6){width:16.5%!important;text-align:right!important}
#detailPage #lotsTable .lots-compact th:nth-child(7),
#detailPage #lotsTable .lots-compact td:nth-child(7){width:16.5%!important;text-align:right!important}
#detailPage #lotsTable .lots-compact th:nth-child(8),
#detailPage #lotsTable .lots-compact td:nth-child(8){width:15.5%!important;text-align:right!important}
#detailPage #lotsTable .lots-total-row td{
  font-size:10px!important;
  padding-top:7px!important;
  padding-bottom:7px!important;
}
#detailPage .pedimento-panel-card:first-child{overflow:hidden!important}
@media(max-width:1100px){
  #detailPage #lotsTable{overflow-x:auto!important}
  #detailPage #lotsTable .lots-compact{min-width:820px!important}
}
