/*
 * INCIDENCIAS-UX-C1
 * Código de incidencia oculto por defecto.
 */

.inc-code-disclosure {
  display: inline-block;

  width: auto;
  max-width: 100%;

  margin: 8px 0 6px;

  color: #174a7c;

  font-size: 0.82rem;
}


.inc-code-disclosure summary {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  min-height: 32px;

  padding: 6px 10px;

  color: #0751a6;
  background: #f3f8fe;

  border: 1px solid #d6e5f5;
  border-radius: 9px;

  font-weight: 650;

  cursor: pointer;

  user-select: none;

  list-style: none;

  transition:
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease;
}


.inc-code-disclosure summary::-webkit-details-marker {
  display: none;
}


.inc-code-disclosure summary:hover {
  background: #eaf4ff;
  border-color: #b8d4ef;
}


.inc-code-disclosure summary:focus-visible {
  outline: 3px solid rgba(7, 81, 166, .16);
  outline-offset: 2px;
}


.inc-code-disclosure summary::before {
  content: "";

  width: 15px;
  height: 15px;

  flex: 0 0 15px;

  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;

  /*
   * Tabler icon: hash.
   * SVG embebido para no agregar dependencias.
   */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230751a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l14 0'/%3E%3Cpath d='M5 15l14 0'/%3E%3Cpath d='M11 4l-2 16'/%3E%3Cpath d='M17 4l-2 16'/%3E%3C/svg%3E");
}


.inc-code-disclosure summary::after {
  content: "";

  width: 7px;
  height: 7px;

  margin-left: 2px;

  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;

  transform:
    rotate(45deg)
    translateY(-2px);

  transition:
    transform .16s ease;
}


.inc-code-disclosure[open] summary::after {
  transform:
    rotate(225deg)
    translate(-1px, -1px);
}


.inc-code-value {
  margin-top: 7px;

  padding: 7px 10px;

  overflow-wrap: anywhere;

  color: #173b64;
  background: #fbfdff;

  border-left: 3px solid #76a9dc;
  border-radius: 4px;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 0.80rem;
  font-weight: 650;

  line-height: 1.4;
}


/*
 * En móvil ocupa solo el espacio necesario,
 * pero nunca desborda la tarjeta.
 */

@media (max-width: 767.98px) {

  .inc-code-disclosure {
    max-width: 100%;
  }

  .inc-code-disclosure summary {
    font-size: 0.78rem;
  }

  .inc-code-value {
    font-size: 0.75rem;
  }

}
