.mapa-lotes-area-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(135px, 1fr));
  gap: 1px;
  padding: 1px;
  border: 1px solid #cbd5e1;
  border-top: 0;
  background: #cbd5e1;
  margin-bottom: 6px;
  border-radius: 6px;
  overflow: hidden;
}

.mapa-lotes-area-summary > div {
  min-width: 0;
  padding: 7px 10px;
  background: #fff;
  cursor: help;
}

.mapa-lotes-area-summary span {
  display: block;
  color: #64748b;
  font-size: .68rem;
  line-height: 1.2;
}

.mapa-lotes-area-summary b {
  display: block;
  margin-top: 2px;
  color: #0f172a;
  font-size: .84rem;
  line-height: 1.2;
}

.mapa-lotes-area-summary.is-incomplete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: #fff7ed;
  border-color: #fed7aa;
}

.mapa-lotes-area-summary.is-incomplete > div {
  padding: 0;
  background: transparent;
}

.mapa-lotes-area-summary.is-incomplete span {
  margin-top: 2px;
  color: #9a3412;
}

.mapa-lotes-area-summary.is-incomplete button {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #fb923c;
  border-radius: 5px;
  background: #fff;
  color: #9a3412;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}

.mapa-lotes-dim-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
  gap: 12px;
}

.mapa-lotes-dim-section {
  min-width: 0;
  border: 1px solid var(--border);
}

.mapa-lotes-dim-section h4 {
  margin: 0;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  color: #334155;
  font-size: .8rem;
}

.mapa-lotes-dim-scroll {
  max-height: 48vh;
  overflow: auto;
}

.mapa-lotes-dim-section table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.mapa-lotes-dim-section th,
.mapa-lotes-dim-section td {
  padding: 7px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: .74rem;
  text-align: left;
  vertical-align: middle;
}

.mapa-lotes-dim-section th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #e2e8f0;
  font-size: .68rem;
  text-transform: uppercase;
}

.mapa-lotes-dim-section td small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: .64rem;
  line-height: 1.25;
}

.mapa-lotes-dim-section input,
.mapa-lotes-dim-section select {
  width: 100%;
  height: 31px;
  padding: 5px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #0f172a;
  font-size: .75rem;
}

.mapa-lotes-dim-section input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
}

.mapa-lotes-dim-section small.is-ok {
  color: #047857;
}

.mapa-lotes-dim-section small.is-warn {
  color: #b45309;
}

#mapaLotes-lista tr.mapa-lotes-config-invalid td {
  background: #fff7ed;
  box-shadow: inset 0 1px 0 #fb923c, inset 0 -1px 0 #fb923c;
}

#mapaLotes-lista tr.mapa-lotes-config-invalid td:first-child {
  box-shadow: inset 3px 0 0 #dc2626, inset 0 1px 0 #fb923c, inset 0 -1px 0 #fb923c;
}

.mapa-lotes-update-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(105px, 1fr));
  gap: 8px;
}

.mapa-lotes-update-grid > div {
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #64748b;
  background: #f8fafc;
  cursor: help;
}

.mapa-lotes-update-grid span,
.mapa-lotes-update-grid b {
  display: block;
}

.mapa-lotes-update-grid span {
  color: #64748b;
  font-size: .67rem;
}

.mapa-lotes-update-grid b {
  margin-top: 3px;
  color: #0f172a;
  font-size: .92rem;
}

.mapa-lotes-update-grid .is-ok {
  border-left-color: #10b981;
}

.mapa-lotes-update-grid .is-warn {
  border-left-color: #f59e0b;
}

.mapa-lotes-update-list,
.mapa-lotes-update-ok,
.mapa-lotes-update-dims {
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #7c2d12;
  font-size: .75rem;
}

.mapa-lotes-update-list > b,
.mapa-lotes-update-dims > b,
.mapa-lotes-update-dims > span {
  display: block;
}

.mapa-lotes-update-list > div {
  display: grid;
  grid-template-columns: minmax(130px, .7fr) minmax(220px, 1.3fr);
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid #fed7aa;
}

.mapa-lotes-update-list > div:first-of-type {
  margin-top: 6px;
}

.mapa-lotes-update-list span,
.mapa-lotes-update-dims span {
  color: #9a3412;
}

.mapa-lotes-update-ok {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

@media (max-width: 900px) {
  .mapa-lotes-dim-grid {
    grid-template-columns: 1fr;
  }

  .mapa-lotes-area-summary {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .mapa-lotes-update-grid {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }
}
