body {
  margin: 0;
  background: #f2f2f2;
  font-family: Arial, sans-serif;
}

.app {
  max-width: 480px;
  margin: auto;
  background: #fff;
  padding: 20px;
}

.preview img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid #ccc;
  margin: 10px 0;
  cursor: zoom-in;
}

.field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}

label {
  grid-column: 1 / -1;
  font-size: 14px;
}

input {
  padding: 10px;
  font-size: 15px;
}

.pick-btn {
  padding: 0 14px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50%;
  background: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
}

.pick-btn:disabled {
  opacity: 0.5;
}

/* Modal tabla */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-height: 80%;
  padding: 15px;
  border-radius: 8px;
  overflow-y: auto;
}

.ocr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ocr-table th,
.ocr-table td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.ocr-table tr {
  cursor: pointer;
}

.ocr-table tr:hover {
  background: #007bff;
  color: #fff;
}

/* Modal imagen */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
}

.image-modal.show {
  display: flex;
}

.image-modal img {
  max-width: 95%;
  max-height: 95%;
}
