/* Concepto A fase 2: Reportes (lista, filtros, detalle) y Árbol de la iglesia. Solo visual. */
body[data-p3-role=admin] #weekly-status{order:6;margin:0 0 16px;padding:18px 20px;border-radius:var(--r-lg);box-shadow:var(--shadow-sm);max-width:100%;overflow-x:clip}
#p3-count{order:7}
#desktop-report-table{order:8}
#results,#results-pager{order:9}
#group-summary{order:10}
#p3-form-link{order:11}

/* Entrega de la semana: «X de Y» como en Resumen. */
body[data-p3-role=admin] .fg2-sum-big{
  margin:8px 0 12px;font-size:clamp(26px,4vw,34px);font-weight:800;letter-spacing:-.03em;
  color:var(--navy);font-variant-numeric:tabular-nums;line-height:1.15;
}
body[data-p3-role=admin] .fg2-bar{height:10px;background:var(--soft)}
body[data-p3-role=admin] .fg2-bar span{background:var(--teal-d)}
body[data-p3-role=admin] #weekly-status li{min-height:48px;color:var(--navy)}
body[data-p3-role=admin] #weekly-status li::after{font-size:12px}

/* Filtros e impresión: 48 px, acento turquesa en la acción principal. */
body[data-p3-role=admin] #print-results:not([hidden]){
  background:var(--teal-d);color:#fff;border-color:var(--teal-d);
}
body[data-p3-role=admin] #print-results:not([hidden]):hover,
body[data-p3-role=admin] #print-results:not([hidden]):focus-visible{
  background:#006770;color:#fff;border-color:#006770;
}
body[data-p3-role=admin] .fg2-toolbar #fg2-filters>summary,
body[data-p3-role=admin] #print-actions button,
body[data-p3-role=admin] #p3-print-more>summary{
  min-height:48px;
}
.p3-chip{min-height:48px}
body[data-p3-role=admin] #fg2-filters .fg2-filter-actions button{min-height:48px;border-radius:var(--r-pill)}

/* Lista de reportes: tarjetas y tabla. */
body[data-p3-role] .fg2-report-card{
  padding:16px 18px;border-radius:var(--r-lg);box-shadow:var(--shadow-sm);max-width:100%;overflow-x:clip;
}
.p3-rc-row .ava{
  flex:none;width:40px;height:40px;border-radius:8px;display:grid;place-items:center;
  background:var(--teal-50);color:var(--teal-d);font-size:13px;font-weight:800;
}
.p3-rc-row .end{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:0}
.p3-rc-row .end b{font-size:22px;font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--navy)}
.p3-rc-row h3,.p3-rc-row .fg2-card-meta{overflow-wrap:anywhere}
body[data-p3-role=admin] .fg2-report-card .fg2-sent-at,
body[data-p3-role=admin] .fg2-report-card:not(:has(.fg2-detail[open])) .fg2-sent-at{display:block;margin:6px 0 0;font-size:12.5px;color:var(--muted);overflow-wrap:anywhere}
body[data-p3-role=admin] .fg2-report-card:not(:has(.fg2-detail[open])) .fg2-card-top{display:none}
body[data-p3-role=admin] .fg2-detail>summary{
  display:flex;align-items:center;min-height:48px;padding:0 4px;font-weight:700;color:var(--teal-d);cursor:pointer;
}
body[data-p3-role=admin] .fg2-detail .fg2-outline,
body[data-p3-role=admin] .fg2-report-card .fg2-outline{
  min-height:48px;border-radius:var(--r-pill);padding:0 18px;
}
body[data-p3-role=admin] #results .fg-empty{margin:0}

.fg-reports-table-wrap,.fg-reports-table{width:100%;max-width:100%}
.fg-reports-table-wrap{overflow-x:clip}
.fg-reports-table{border-collapse:collapse;font:inherit}
.fg-reports-table th{
  padding:10px 12px;text-align:left;font-size:11px;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;color:var(--muted);background:var(--soft);border:0;
}
.fg-reports-table th.n,.fg-reports-table td.n{text-align:right;font-variant-numeric:tabular-nums}
.fg-reports-table td{
  padding:12px;border-top:1px solid var(--line);color:var(--navy);font-size:14.5px;vertical-align:middle;overflow-wrap:anywhere;
}

@media (min-width:1024px){
  body[data-p3-role=admin] #results{grid-template-columns:1fr}
}

/* Árbol de la iglesia */
#p3-map{overflow-x:clip;max-width:100%}
#p3-map .p3map-add{background:var(--teal-d)}
#p3-map .p3map-add:hover,#p3-map .p3map-add:focus-visible{background:#006770}
#p3-map .p3map-av{
  width:40px;height:40px;border-radius:8px;font-weight:800;
}
#p3-map .p3map-av.church{background:var(--navy);color:#fff}
#p3-map .p3map-av.campus{background:var(--teal-d);color:#fff}
#p3-map .p3map-xy{
  display:flex;align-items:baseline;gap:6px;color:var(--navy);
  font-variant-numeric:tabular-nums;line-height:1;
}
#p3-map .p3map-xy b{font-size:26px;font-weight:800;letter-spacing:-.03em}
#p3-map .p3map-xy small{font-size:13px;font-weight:650;color:var(--muted)}
#p3-map .p3map-line .fg-status-chip{margin-left:auto}
#p3-map .p3map-card.p3map-church{
  display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:8px 12px;align-items:center;
}
#p3-map .p3map-card.p3map-campus{
  display:grid;grid-template-columns:40px minmax(0,1fr) auto 32px;gap:8px 12px;align-items:center;
}
#p3-map .p3map-card.p3map-church .p3map-av,
#p3-map .p3map-card.p3map-campus .p3map-av{grid-column:1;grid-row:1 / span 2}
#p3-map .p3map-card.p3map-church .grow,
#p3-map .p3map-card.p3map-campus .grow{grid-column:2;min-width:0}
#p3-map .p3map-card.p3map-church .p3map-xy{grid-column:3;grid-row:1 / span 2}
#p3-map .p3map-card.p3map-campus .p3map-xy{grid-column:3;grid-row:1 / span 2}
#p3-map .p3map-card.p3map-campus .p3map-chev{grid-column:4;grid-row:1 / span 2;align-self:center}
#p3-map .p3map-card.p3map-church .p3map-line b,
#p3-map .p3map-card.p3map-campus .p3map-line b{overflow-wrap:break-word}
#p3-map .p3map-meta{color:var(--muted)}
#p3-map .p3map-chip.teal{color:var(--teal-d);background:var(--teal-50)}
#p3-map .fg-loading,#p3-map .fg-error,#p3-map .fg-empty{margin:8px 0 16px}

@media (max-width:399px){
  #p3-map .p3map-card.p3map-church{grid-template-columns:40px minmax(0,1fr);align-items:start}
  #p3-map .p3map-card.p3map-campus{grid-template-columns:40px minmax(0,1fr) 32px;align-items:start}
  #p3-map .p3map-card.p3map-church .p3map-av,
  #p3-map .p3map-card.p3map-campus .p3map-av{grid-row:1}
  #p3-map .p3map-card.p3map-church .p3map-xy,
  #p3-map .p3map-card.p3map-campus .p3map-xy{grid-column:2;grid-row:2;margin:0;justify-content:flex-start}
  #p3-map .p3map-card.p3map-campus .p3map-chev{grid-column:3;grid-row:1 / span 2}
  .p3-rc-row{gap:10px}
  .p3-rc-row .end b{font-size:20px}
}
@media (max-width:359px){
  #p3-map .p3map-add span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  #p3-map .p3map-add{width:48px;min-width:48px;padding:0}
  #p3-map .p3map-week{min-width:0}
  #p3-map .p3map-week .lbl strong{font-size:13px}
}
