/* Concepto A fase 3: Inicio y flujo de Reporte del líder. Solo visual. */
#p3-home{max-width:100%;overflow-x:clip}
#p3-home .p3-head h1{font-size:clamp(26px,5vw,32px);letter-spacing:-.03em}
#p3-home .p3-avatar{border-radius:8px}

/* Tarjeta de la semana: lienzo claro, chip de estado, botón turquesa 48 px. */
#p3-home .p3-hero{
  color:var(--navy);
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);
  padding:20px 20px 18px;
}
#p3-home .p3-hero.is-pending{background:var(--status-pending-bg);border-color:#f1d29b}
#p3-home .p3-hero .week{
  background:var(--soft);
  color:var(--teal-d);
  font-weight:700;
}
#p3-home .p3-hero.is-pending .week{background:#fff}
#p3-home .p3-hero .fg-status-chip{display:flex;width:fit-content;margin:12px 0 0}
#p3-home .p3-hero .big{
  margin:10px 0 8px;font-size:clamp(22px,4.4vw,28px);font-weight:800;
  letter-spacing:-.03em;line-height:1.2;color:var(--navy);overflow-wrap:anywhere;
}
#p3-home .p3-hero p{color:var(--muted);font-size:14.5px;margin:0;overflow-wrap:anywhere}
#p3-home .p3-btn-onhero,
#p3-home .p3-btn{
  min-height:48px;margin-top:18px;background:var(--teal-d);color:#fff;
  border:0;box-shadow:none;width:100%;
}
#p3-home .p3-btn-onhero:hover,
#p3-home .p3-btn-onhero:focus-visible,
#p3-home .p3-btn:hover,
#p3-home .p3-btn:focus-visible{background:#006770;color:#fff}
#p3-home .p3-btn-onhero .i{stroke:currentColor;fill:none;stroke-width:2}

#p3-home .p3-metric{box-shadow:var(--shadow-sm);min-height:100px}
#p3-home .p3-metric .v{font-size:clamp(32px,6vw,40px)}
#p3-home .p3-row{max-width:100%;overflow-x:clip}
#p3-home .p3-row .ava{border-radius:8px;width:40px;height:40px;font-weight:800;font-size:13px}
#p3-home .p3-row .tx strong,#p3-home .p3-row .tx span{overflow-wrap:anywhere;white-space:normal}
#p3-home .p3-row .end{flex-direction:column;align-items:flex-end;gap:4px}
#p3-home .fg-empty{margin:0}

/* Asistencia: fichas táctiles de 48 px. */
body[data-p3-role=leader] #report .p3-chip{min-height:48px}

/* Pasos del reporte: 48 px, acento turquesa, revisión clara. */
body[data-p3-role=leader] .fg2-actions #next,
body[data-p3-role=leader] .fg2-actions #send{
  min-height:48px;background:var(--teal-d);box-shadow:none;
}
body[data-p3-role=leader] .fg2-actions #next:hover,
body[data-p3-role=leader] .fg2-actions #send:hover,
body[data-p3-role=leader] .fg2-actions #next:focus-visible,
body[data-p3-role=leader] .fg2-actions #send:focus-visible{background:#006770;color:#fff}
body[data-p3-role=leader] .fg2-actions #back{flex-basis:48px;width:48px;min-height:48px}
body[data-p3-role=leader] #report .fg2-section input:not([type=checkbox]),
body[data-p3-role=leader] #report .fg2-section select,
body[data-p3-role=leader] #report .fg2-section textarea{min-height:48px}
.p3-progress i::after{background:var(--teal-d)}
.p3-rev-hero,
#review>.p3-rev-hero{
  color:var(--navy);
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);
}
.p3-rev-hero .k,#review>.p3-rev-hero .k{color:var(--teal-d)}
.p3-rev-hero b{color:var(--navy)}
.p3-rev-hero p,#review>.p3-rev-hero p,#review .p3-rev-hero p{color:var(--muted);font-weight:500}
.p3-rev-edit,body[data-p3-role] #review .p3-rev-edit{min-height:48px;padding:0 8px}

/* Éxito al enviar. */
#report-confirmation.p3-success{padding:32px 16px 24px;max-width:520px;margin:0 auto}
#report-confirmation.p3-success .fg-status-chip{display:inline-flex;margin:0 0 12px}
#report-confirmation.p3-success::before{
  width:72px;height:72px;margin:0 auto 16px;
  background-color:var(--status-sent-bg);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2313653F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#report-confirmation.p3-success #confirmation-title{color:var(--navy);overflow-wrap:anywhere}
#report-confirmation.p3-success .p3-success-home,
#report-confirmation.p3-success>#view-saved-report,
#report-confirmation.p3-success>#new-report{min-height:48px}

@media (max-width:399px){
  #p3-home .p3-hero{padding:16px}
  #p3-home .p3-metrics{gap:10px}
}
@media (min-width:1024px){
  #p3-home{max-width:720px}
  #p3-home .p3-btn-onhero{width:auto;min-width:220px}
}

@media (min-width:1024px){
  body[data-p3-role=leader] .p3-review,
  body[data-p3-role=leader] #review{padding-bottom:88px}
}
