:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #183440;
  background: #f1f5f3;
  --verde: #166641;
  --borde: #cbd9d2;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .5rem max(.75rem, calc((100% - 72rem) / 2));
  background: #fff;
  border-bottom: 1px solid var(--borde);
}
header img { width: clamp(5rem, 29vw, 10rem); height: auto; flex: none; }
.sesion { display: flex; align-items: center; gap: .55rem; min-width: 0; }
#usuario {
  min-width: 0; text-align: right; overflow-wrap: anywhere;
  font-size: .75rem; line-height: 1.25; font-weight: 500;
}
#salir { flex: none; white-space: nowrap; font-size: .75rem; padding: .35rem .65rem; font-weight: 600; }
main { width: min(72rem, 94%); margin: 1.75rem auto 3rem; }
h1 {
  font-size: clamp(1.2rem, 4vw, 1.65rem); line-height: 1.25;
  font-weight: 550; margin: .5rem 0 .95rem;
}
h2 { font-size: 1.18rem; margin: 0 0 .85rem; }
.acceso { min-height: 70vh; display: grid; place-items: center; }
.panel { background: #fff; border: 1px solid var(--borde); border-radius: .9rem; padding: clamp(1rem, 4vw, 1.75rem); }
.login { width: min(100%, 28rem); padding: clamp(1rem, 4vw, 1.75rem); }
.login img { display: block; margin: 0 auto 1.5rem; }
.login h1 { text-align: center; }
.login button { width: 100%; }
#abrir {
  display: flex; justify-content: space-between; align-items: center;
  gap: .65rem; width: 100%; min-height: 3rem; text-align: left;
}
form { display: grid; gap: 1.1rem; }
label, .campo { display: grid; gap: .45rem; font-weight: 600; }
input, select, button { font: inherit; min-height: 2.75rem; }
input, select { width: 100%; padding: .5rem .7rem; border: 1px solid #8ca89a; border-radius: .5rem; background: white; color: inherit; }
button { border: 1px solid transparent; border-radius: .5rem; padding: .55rem 1rem; background: var(--verde); color: white; font-weight: 650; cursor: pointer; }
button:hover { background: #105033; }
button:disabled { opacity: .55; cursor: default; }
button.simple { color: var(--verde); background: white; border-color: var(--borde); }
button.simple:hover { background: #dceee4; }
:focus-visible { outline: 3px solid #2d775a; outline-offset: 2px; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: .7rem; }
.recursos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(6rem, 1fr); gap: .65rem; }
.recursos button { grid-column: 1 / -1; }
.detalle-recursos { width: 100%; margin-top: .8rem; border-collapse: collapse; }
.detalle-recursos th, .detalle-recursos td {
  padding: .55rem .3rem;
  text-align: left;
  border-bottom: 1px solid var(--borde);
  overflow-wrap: anywhere;
}
.detalle-recursos th:last-child, .detalle-recursos td:last-child { text-align: right; }
.detalle-recursos button { padding-inline: .55rem; }
.fecha { color: #486458; }
.pendientes { margin-top: .8rem; }
.pendientes li { margin: .4rem 0; }
#estado { border-radius: .5rem; background: #dceee4; color: #143d2b; padding: .75rem 1rem; }
#estado.error { background: #fce8e3; color: #782e1d; }
#reporte { max-width: 48rem; }
#reporte button { justify-self: start; }

.confirmacion-envio { border: 1px solid #72ad8b; border-radius: .55rem; background: #dceee4; color: #143d2b; padding: .75rem 1rem; font-weight: 600; }
.mis-reportes { margin-top: 1rem; }
.mis-reportes summary { color: var(--verde); cursor: pointer; font-weight: 650; }
.mis-reportes ul { padding: 0; list-style: none; }
.mis-reportes li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem; border-top: 1px solid var(--borde); padding: .65rem 0; }
.mis-reportes li small { display: block; color: #486458; }
.editor-reporte { color: inherit; width: min(calc(100% - 1.5rem), 34rem); max-height: calc(100% - 2rem); overflow: auto; }
.editor-reporte::backdrop { background: #18344080; }
.editor-reporte p { margin: 0; }
#recursosCorreccion label { display: grid; grid-template-columns: minmax(0, 1fr) 6rem; align-items: center; gap: .55rem; margin: .35rem 0; }
.acciones-correccion { display: flex; flex-wrap: wrap; gap: .55rem; }
#recursosCorreccion label small { grid-column: 1 / -1; color: #486458; font-weight: 400; }
#listaPendientes details { margin-bottom: .45rem; }
#listaPendientes > li > button { margin: .2rem .25rem .2rem 0; }
