/* Widget Validar Documento */

.si2-validar-documento-widget {
  box-sizing: border-box;
  font-family: inherit;
}

.si2-vd-form{
  padding: 20px 24px;
  border-radius: 4px;
  border: 1px solid #E5E9EF;
  background-color: #FFFFFF;
}

/* Formulario */
.si2-vd-label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.95em;
  color: #444;
  line-height: 1.5;
}

.si2-vd-input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.si2-vd-input {
  flex: 1 1 260px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
  min-width: 0;
}

.si2-vd-input:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}

.si2-vd-submit,
.si2-vd-reset {
  padding: 10px 20px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.si2-vd-submit:hover,
.si2-vd-reset:hover {
  background: #005a8e;
}

.si2-vd-submit:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* Feedback (loading / error inline) */
.si2-vd-feedback {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.9em;
}

.si2-vd-feedback.si2-vd-error {
  background: #fdf0f0;
  border: 1px solid #e57373;
  color: #c0392b;
}

.si2-vd-feedback.si2-vd-success {
  background: #f0fdf4;
  border: 1px solid #81c784;
  color: #2e7d32;
}

/* Card de resultado */
.si2-vd-result {
  border: 1px solid #b3d9ee;
  background: #f0f8ff;
  border-radius: 4px;
  padding: 20px 24px;
  /*
  border: 1px solid #E5E9EF;
  background-color: #FFFFFF;
  */
}

.si2-vd-result-title {
  font-size: 1em;
  color: #1a5276;
  margin: 0 0 16px;
  line-height: 1.5;
}

/* Layout flex — filas */
.si2-vd-result-table {
  display: flex;
  flex-direction: column;
  font-size: 0.9em;
  margin-bottom: 16px;
  gap: 0;
}

.si2-vd-row {
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid #d0e8f5;
}

.si2-vd-row:last-child {
  border-bottom: none;
}

.si2-vd-th,
.si2-vd-td {
  padding: 8px 10px;
  vertical-align: top;
  line-height: 1.4;
}

.si2-vd-th {
  flex: 0 0 38%;
  font-weight: 600;
  color: #555;
}

.si2-vd-td {
  flex: 1 1 0;
  color: #222;
  word-break: break-word;
}

.si2-vd-td--mono {
  font-family: monospace;
  font-size: 0.88em;
  word-break: break-all;
}

.si2-vd-result-table a {
  color: #0073aa;
  text-decoration: underline;
}

/* Móvil: formato card por fila */
@media (max-width: 540px) {
  .si2-vd-row {
    flex-direction: column;
    padding: 10px 0;
    gap: 2px;
  }

  .si2-vd-th {
    flex: none;
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    padding-bottom: 2px;
  }

  .si2-vd-td {
    padding-top: 0;
    font-size: 0.95em;
  }
}

.si2-vd-reset {
  background: #6c757d;
  font-size: 0.88em;
  padding: 8px 16px;
}

.si2-vd-reset:hover {
  background: #545b62;
}
