/* ladocencIA — Observaciones para boleta. */
.ob-dialogo {
  width: min(860px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  border: 0; border-radius: 18px;
  padding: 1.25rem 1.25rem 1rem;
  color: var(--ui-ink, #29263d);
  box-shadow: var(--ui-shadow, 0 20px 60px rgba(52,47,134,.12));
  overflow: auto;
}
.ob-dialogo::backdrop { background: rgba(35,30,91,.55); }
.ob-dialogo [hidden] { display: none !important; }
.ob-cabeza { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ob-cabeza h3 { margin: 0; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.35rem; }
.ob-cerrar { width: 2.25rem; height: 2.25rem; border: 0; border-radius: 10px; background: transparent; font-size: 1.4rem; color: var(--ui-muted, #68657d); cursor: pointer; }
.ob-cerrar:hover { background: #f0efff; }
.ob-intro { margin: .35rem 0 1rem; color: var(--ui-muted, #68657d); font-size: .93rem; line-height: 1.5; max-width: 66ch; }
.ob-config { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.ob-config select { width: 100%; border: 1px solid var(--ui-border, rgba(61,55,168,.13)); border-radius: 10px; padding: .65rem .7rem; background: #fff; color: inherit; font: inherit; }

.ob-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ob-fila {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  gap: .6rem;
  align-items: start;
  padding: .6rem;
  border: 1px solid var(--ui-border, rgba(61,55,168,.13));
  border-radius: 12px;
}
.ob-num {
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--ui-green-soft, #eeedff); color: var(--ui-green, #3d37a8);
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.ob-campos { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; gap: .5rem; }
.ob-campos textarea, .ob-campos input, .ob-pegar textarea, .ob-nombre { width: 100%; font: inherit; border: 1px solid var(--ui-border, rgba(61,55,168,.13)); border-radius: 10px; padding: .65rem .7rem; color: inherit; background: #fff; }
.ob-campos textarea { resize: vertical; }
.ob-res { grid-column: 1 / -1; display: grid; gap: .35rem; padding: .6rem .7rem; border-left: 4px solid #2f7d5b; border-radius: 8px; background: #f6fbf8; }
.ob-res textarea { background: transparent; border: 0; padding: 0; resize: vertical; line-height: 1.5; }
.ob-res textarea:focus { outline: none; box-shadow: none; }
.ob-aviso { margin: 0; font-size: .84rem; color: #8a5a12; }
.ob-quitar { width: 2rem; height: 2rem; border: 0; border-radius: 8px; background: transparent; color: var(--ui-muted, #68657d); font-size: 1.2rem; cursor: pointer; }
.ob-quitar:hover { background: #f4f3fb; color: var(--ui-danger, #c95d54); }

.ob-agregar { display: flex; gap: 1rem; margin: .75rem 0 0; flex-wrap: wrap; }
.ob-link { border: 0; background: none; padding: .2rem 0; font: inherit; font-weight: 600; font-size: .9rem; color: var(--ui-green-2, #5149c6); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.ob-pegar { display: grid; gap: .5rem; margin-top: .6rem; }
.ob-nota { margin: .9rem 0 0; font-size: .84rem; color: var(--ui-muted, #68657d); }
.ob-estado { margin: .5rem 0 0; min-height: 1.2em; font-size: .9rem; color: var(--ui-ink, #29263d); }
.ob-pie { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; position: sticky; bottom: -1rem; padding: .5rem 0; background: #fff; }
.ob-btn { border: 0; border-radius: 10px; padding: .65rem 1.1rem; font: inherit; font-weight: 600; font-size: .92rem; background: var(--ui-green-2, #5149c6); color: #fff; cursor: pointer; }
.ob-btn:hover:not(:disabled) { background: var(--ui-green, #3d37a8); }
.ob-btn:disabled { opacity: .45; cursor: not-allowed; }
.ob-btn--sec { background: transparent; color: var(--ui-green-2, #5149c6); border: 1px solid var(--ui-border-strong, rgba(61,55,168,.25)); }
.ob-btn--sec:hover:not(:disabled) { background: var(--ui-green-soft, #eeedff); }
.ob-btn:focus-visible, .ob-link:focus-visible, .ob-cerrar:focus-visible, .ob-quitar:focus-visible { outline: none; box-shadow: var(--ui-focus, 0 0 0 4px rgba(81,73,198,.17)); }

@media (max-width: 680px) {
  .ob-dialogo { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); padding: 1rem .8rem .8rem; }
  .ob-config { grid-template-columns: 1fr 1fr; }
  .ob-fila { grid-template-columns: 2rem 1fr auto; padding: .5rem; }
  .ob-num { width: 2rem; height: 2rem; }
  .ob-campos { grid-template-columns: 1fr; }
  .ob-pie .ob-btn { flex: 1 1 100%; }
}
