/* Hirentra Site Progress Step 13 — Weekly Report Issue & Archive */
.hsp13-register-button{white-space:nowrap}
.hsp13-modal{position:fixed;inset:0;z-index:10080;background:rgba(2,6,23,.68);display:flex;align-items:center;justify-content:center;padding:24px}
.hsp13-modal.hidden{display:none}
.hsp13-dialog{width:min(1180px,96vw);max-height:92vh;overflow:auto;background:var(--panel,#fff);color:var(--text,#0f172a);border:1px solid var(--border,#dbe2ea);border-radius:18px;box-shadow:0 28px 80px rgba(2,6,23,.34);padding:22px}
.hsp13-loading,.hsp13-empty{display:flex;flex-direction:column;gap:6px;padding:30px 18px;border:1px dashed var(--border,#cbd5e1);border-radius:12px;color:var(--muted,#64748b);margin-top:18px}
.hsp13-loading strong,.hsp13-empty strong{color:var(--text,#0f172a)}
.hsp13-loading small{font-size:12px}
.hsp13-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0 12px}
.hsp13-summary>div{padding:12px 14px;border:1px solid var(--border,#dbe2ea);border-radius:12px;background:var(--panel-soft,#f8fafc)}
.hsp13-summary span,.hsp13-report-metrics span{display:block;font-size:10px;letter-spacing:.07em;font-weight:800;color:var(--muted,#64748b)}
.hsp13-summary strong{display:block;margin-top:5px;font-size:17px;overflow-wrap:anywhere}
.hsp13-rule{display:flex;gap:14px;align-items:flex-start;border-left:4px solid #ffc107;background:rgba(255,193,7,.08);padding:11px 13px;border-radius:9px;margin:0 0 16px}
.hsp13-rule strong{white-space:nowrap}.hsp13-rule span{color:var(--muted,#64748b)}
.hsp13-report-list{display:flex;flex-direction:column;gap:10px}
.hsp13-report-card{display:flex;justify-content:space-between;gap:16px;border:1px solid var(--border,#dbe2ea);border-radius:13px;padding:14px;background:var(--panel,#fff)}
.hsp13-report-card.latest{border-left:5px solid #ffc107}.hsp13-report-card.superseded{opacity:.78}
.hsp13-report-main{min-width:0;display:grid;grid-template-columns:170px minmax(220px,1fr) minmax(310px,.9fr);gap:14px;align-items:center;flex:1}
.hsp13-report-ref span{display:inline-block;font-size:9px;font-weight:900;letter-spacing:.08em;color:#7c5a00;background:#fff4c2;border-radius:999px;padding:3px 7px}
.hsp13-report-card.superseded .hsp13-report-ref span{background:var(--panel-soft,#f1f5f9);color:var(--muted,#64748b)}
.hsp13-report-ref strong{display:block;font-size:16px;margin:7px 0 2px}.hsp13-report-ref small,.hsp13-report-title span,.hsp13-report-title small{display:block;color:var(--muted,#64748b);font-size:11px}
.hsp13-report-title{min-width:0}.hsp13-report-title strong{display:block;font-size:14px;margin-bottom:4px}.hsp13-report-title small{margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px}
.hsp13-report-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.hsp13-report-metrics>div{border:1px solid var(--border,#dbe2ea);border-radius:9px;padding:8px;background:var(--panel-soft,#f8fafc)}
.hsp13-report-metrics strong{display:block;margin-top:3px;font-size:14px}.hsp13-report-metrics .negative{color:#b91c1c}.hsp13-report-metrics .positive{color:#047857}
.hsp13-report-actions{display:flex;flex-direction:column;justify-content:center;gap:7px;min-width:118px}
@media(max-width:950px){.hsp13-report-main{grid-template-columns:1fr}.hsp13-report-metrics{max-width:520px}.hsp13-report-card{flex-direction:column}.hsp13-report-actions{flex-direction:row;justify-content:flex-start}.hsp13-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.hsp13-modal{padding:8px}.hsp13-dialog{padding:15px}.hsp13-summary{grid-template-columns:1fr 1fr}.hsp13-report-metrics{grid-template-columns:1fr 1fr}.hsp13-rule{flex-direction:column;gap:4px}}
/* STEP 13 REPAIR 2 — keep the immutable-report register readable inside its white document-control dialog, regardless of the main app theme. */
.hsp13-dialog{background:#fff!important;color:#0f172a!important;border-color:#dbe2ea!important}
.hsp13-dialog .hsp-modal-head h3{color:#0f172a!important}
.hsp13-dialog .hsp-modal-head span{color:#64748b!important}
.hsp13-dialog .hsp-close{color:#64748b!important}
.hsp13-dialog .hsp13-summary>div,.hsp13-dialog .hsp13-report-metrics>div{background:#f8fafc!important;border-color:#dbe2ea!important}
.hsp13-dialog .hsp13-summary span,.hsp13-dialog .hsp13-report-metrics span{color:#64748b!important}
.hsp13-dialog .hsp13-summary strong,.hsp13-dialog .hsp13-report-ref strong,.hsp13-dialog .hsp13-report-title strong,.hsp13-dialog .hsp13-report-metrics strong{color:#0f172a}
.hsp13-dialog .hsp13-rule strong{color:#7c5a00}
.hsp13-dialog .hsp13-rule span,.hsp13-dialog .hsp13-report-ref small,.hsp13-dialog .hsp13-report-title span,.hsp13-dialog .hsp13-report-title small,.hsp13-dialog .hsp13-empty,.hsp13-dialog .hsp13-loading{color:#64748b!important}
.hsp13-dialog .hsp13-empty strong,.hsp13-dialog .hsp13-loading strong{color:#0f172a!important}
.hsp13-dialog .hsp13-report-card{background:#fff!important;border-color:#dbe2ea!important}
.hsp13-dialog .secondary-button{background:#fff!important;color:#334155!important;border-color:#cbd5e1!important}
.hsp13-dialog .primary-button{background:#ffc107!important;color:#111827!important;border-color:#ffc107!important}

