.table-cont {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background-color: #202124;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

.table-cont:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}


table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th {
  background: #323639;
  text-align: left;
  padding: 6px 8px;
  color: #9aa0a6;
  font-weight: 500;
  border-bottom: 1px solid #5f6368;
  cursor: pointer;
}

td {
  padding: 6px 8px;
  border-bottom: 1px solid #3c4043;
  color: #e8eaed;
}




tr:hover td {
  background-color: rgba(255, 255, 255, 0.04);
}

.selected-row td {
  background: rgba(138, 180, 248, 0.15) !important;
  color: #8ab4f8 !important;
  font-weight: 500;
}

.best-match td {
  background: rgba(129, 201, 149, 0.12) !important;
  color: #81c995 !important;
}


th:hover {
  background: #3c4043;
}

tr:last-child td {
  border-bottom: none;
}

.col-right {
  text-align: right;
}

.col-del {
  width: 30px;
  text-align: center;
}

.btn-del {
  background: transparent;
  color: #f28b82;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn-del:hover {
  color: #ffb4ab;
}

.status-msg {
  font-size: 12px;
  color: #9aa0a6;
  margin-top: 8px;
}

.status-msg.error {
  color: #f28b82;
}

/* Inspection panel */
.ins-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #3c4043;
  padding: 4px 0;
  font-size: 12px;
}

.ins-lbl {
  color: #9aa0a6;
}

.ins-val {
  color: #e8eaed;
  font-family: monospace;
}

.match-box {
  margin-top: 10px;
  padding: 8px;
  background: rgba(129, 201, 149, 0.1);
  border: 1px solid rgba(129, 201, 149, 0.4);
  border-radius: 4px;
}

.match-item {
  color: #81c995;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px dashed rgba(129, 201, 149, 0.3);
  padding: 4px 0;
  display: flex;
  justify-content: space-between;
}

.match-px {
  font-size: 11px;
  opacity: 0.8;
}

.no-match {
  color: #9aa0a6;
  font-size: 12px;
  font-style: italic;
}

/* Redaction Labels & Overlays */



/* High Confidence Match Glow */
.redaction-overlay.has-match::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 2px;
  border: 1px solid #81c995;
  box-shadow: 0 0 10px rgba(129, 201, 149, 0.3);
  pointer-events: none;
  opacity: 0.6;
}

.redaction-overlay.selected {
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(138, 180, 248, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(138, 180, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(138, 180, 248, 0); }
}

.redaction-label {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 100%;
  height: 100%;
  width: max-content;
  background-color: transparent;
  color: #81c995;
  font-weight: 600;
  padding: 0;
  border: none;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: auto;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  z-index: 10;
  user-select: none; /* prevent text selection during drag */
  cursor: move;
}




.redaction-label:focus {
  background-color: rgba(255, 255, 255, 0.9);
  cursor: text;
  overflow: visible;
  z-index: 100;
  border: 1px dashed #8ab4f8;
}

/* When label also carries .etv-span, override position/cursor/select conflicts.
   Two-class specificity (0,2,0) beats either single-class rule regardless of load order. */
.etv-span.redaction-label {
  left: 0;
  top: 0;
  height: 100%;
  cursor: move;
  user-select: none;
  /* Neutralise etv-span's position custom-property cascade */
  --etv-x: 0;
  --etv-y: 0;
}

.etv-span.redaction-label:focus {
  cursor: text;
}
