/* Fase 2: vista semanal del administrador (resumen, estados, filtros plegables y exportar). */
@media screen {
  body.fg2-admin .fg2-history-head{align-items:flex-start}
  #reload{flex:none;min-height:48px;margin:0;padding:0 18px;border:1px solid #c9d5dc;border-radius:var(--r-pill);background:#fff;color:var(--navy);font-weight:700}
  #reload:hover{background:var(--soft);border-color:var(--teal-100);color:var(--navy)}
  #reload .i{width:18px;height:18px}
  body.fg2-leader #report-history{position:relative}
  body.fg2-leader .fg2-history-head{position:absolute;top:0;right:0;margin:0}
  body.fg2-leader .fg2-history-head .grow{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  body.fg2-leader #history-status{display:flex;align-items:center;min-height:48px;margin:0 0 10px}
  #campus-scope{display:flex;flex-wrap:wrap;gap:8px 12px;margin:0 0 12px;padding:0;background:none;border:0}
  #campus-scope label{flex:1 1 200px;margin:0;font-size:13px;font-weight:600}
  #campus-scope select{min-height:48px;margin-top:4px;border:1px solid #c9d5dc;border-radius:var(--r-md);background:#fff;color:var(--navy)}
  #campus-scope-status:empty{display:none}
  #campus-scope-status{flex-basis:100%;margin:0}
  #campus-scope-status:not(:empty){display:inline-flex;flex:0 0 auto;align-self:flex-start;padding:6px 12px;border-radius:var(--r-pill);background:var(--teal-50);color:var(--teal-d);font-size:13px;font-weight:700}
  #weekly-status{margin:0 0 12px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-sm)}
  .fg2-sum h3{margin:0;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--teal-d)}
  #weekly-period{margin:2px 0 0;font-size:12.5px;color:var(--muted)}
  .fg2-sum-big{margin:10px 0 10px;font-size:24px;font-weight:800;letter-spacing:-.02em;color:var(--navy)}
  .fg2-bar{height:8px;overflow:hidden;background:var(--soft);border-radius:var(--r-pill)}
  .fg2-bar span{display:block;width:0;height:100%;background:var(--teal-d);border-radius:var(--r-pill)}
  #weekly-status details{margin:12px 0 0;border-top:1px solid var(--line)}
  #weekly-status summary{display:flex;align-items:center;gap:8px;min-height:48px;list-style:none;cursor:pointer;font-weight:700}
  #weekly-status summary::-webkit-details-marker{display:none}
  #weekly-status summary::after{content:"";width:7px;height:7px;margin:0 6px 0 auto;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg)}
  #weekly-status details[open] > summary::after{transform:rotate(-135deg)}
  #weekly-pending-count::before,#weekly-reported-count::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--warn)}
  #weekly-reported-count::before{background:var(--ok)}
  #weekly-status ul{list-style:none;margin:0;padding:0}
  #weekly-status li{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;border-top:1px solid var(--line);font-size:14.5px;font-weight:600}
  #weekly-status li::after{content:attr(data-chip);flex:none;padding:3px 10px;border-radius:var(--r-pill);font-size:12px;font-weight:700}
  #weekly-pending li::after{background:var(--warn-bg);color:var(--warn)}
  #weekly-reported li::after{background:var(--ok-bg);color:var(--ok)}
}
@media screen and (max-width:599px){
  #reload{width:48px;padding:0}
  #reload > span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
}
@media screen and (min-width:1024px){
  body.fg2-admin #workspace{max-width:1040px}
  #weekly-status{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:0 28px;align-items:start;padding:20px 22px}
  #weekly-status .fg2-sum{grid-row:1/span 4}
  #weekly-status details{grid-column:2;margin:0}
  #weekly-status details:first-of-type{border-top:0}
  #campus-scope label{flex:0 1 360px}
}
