/* 본사 운영 전략 · 월간 운영 브리핑 — 리포트형 모달 + 인쇄 */

.hq-header .hq-monthly-briefing-open{
  display:inline-flex;align-items:center;gap:6px;margin-top:12px;
  padding:10px 15px;border:1px solid #cbded8;border-radius:9px;
  background:#fff;color:#08765a;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap;
}
.hq-header .hq-monthly-briefing-open::before{content:"▤";font-size:11px}
.hq-header .hq-monthly-briefing-open:hover{background:#edf7f4;border-color:#7ab8a7}

.hqmb-modal{position:fixed;inset:0;z-index:1200;display:flex;align-items:flex-start;justify-content:center;padding:40px 24px}
.hqmb-modal.hidden{display:none}
.hqmb-backdrop{position:absolute;inset:0;background:rgba(9,33,29,.5)}
.hqmb-sheet{
  position:relative;width:min(920px,100%);max-height:calc(100vh - 80px);
  display:flex;flex-direction:column;overflow:hidden;
  background:#fff;border-radius:14px;box-shadow:0 24px 70px rgba(8,31,27,.32)
}
.hqmb-toolbar{
  flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:12px 20px;border-bottom:1px solid #e9efed;background:#f7faf9
}
.hqmb-month{font-size:11px;font-weight:800;color:#4a615b;display:flex;align-items:center;gap:8px}
.hqmb-month select{height:32px;padding:0 10px;border:1px solid #cfded9;border-radius:7px;background:#fff;font-weight:800;color:#26433d}
.hqmb-toolbar-actions{display:flex;gap:8px}
.hqmb-toolbar button{height:32px;padding:0 14px;border-radius:7px;font-size:11px;font-weight:800;cursor:pointer;border:1px solid #cfded9;background:#fff;color:#08765a}
.hqmb-toolbar button[data-hqmb-print]{background:#0b7a5b;border-color:#0b7a5b;color:#fff}
.hqmb-toolbar button:hover{filter:brightness(.97)}

.hqmb-report{
  flex:1 1 auto;overflow:auto;padding:44px 52px 56px;
  font-family:'Noto Sans KR',system-ui,sans-serif;color:#20302c;line-height:1.6
}

/* ---- masthead ---- */
.hqmb-masthead{display:flex;justify-content:space-between;gap:36px;align-items:flex-start;padding-bottom:22px;border-bottom:2px solid #1f2f2b}
.hqmb-eyebrow{margin:0 0 6px;font-size:10px;font-weight:900;letter-spacing:.16em;color:#0a8063}
.hqmb-masthead h1{margin:0;font-size:30px;font-weight:800;letter-spacing:-.02em;color:#16241f}
.hqmb-sub{margin:10px 0 0;font-size:12.5px;color:#61756f;max-width:46ch}
.hqmb-meta{margin:0;flex:0 0 auto;display:grid;gap:6px}
.hqmb-meta div{display:grid;grid-template-columns:82px 1fr;gap:10px;font-size:11.5px}
.hqmb-meta dt{margin:0;color:#8a978f;font-weight:700}
.hqmb-meta dd{margin:0;color:#2b3d38;font-weight:700}

/* ---- section skeleton ---- */
.hqmb-section{padding:28px 0;border-bottom:1px solid #e7edea}
.hqmb-section:last-of-type{border-bottom:0}
.hqmb-section h2{margin:0 0 16px;font-size:15px;font-weight:800;color:#16241f;display:flex;align-items:baseline;gap:10px}
.hqmb-section h2 i{font-style:normal;font-size:11px;font-weight:900;color:#0a8063;letter-spacing:.08em}
.hqmb-note{margin:14px 0 0;font-size:10.5px;color:#8a978f;line-height:1.6}
.hqmb-empty{margin:0;padding:16px 18px;background:#f4f8f7;border-radius:9px;color:#6f817c;font-size:12px}
.hqmb-caveat{color:#94a09b;font-weight:500}

/* 01 status — 전사 "움직임" 우선, 합계는 맥락 */
.hqmb-status-lead{display:flex;gap:30px;align-items:flex-start;flex-wrap:wrap}
.hqmb-status-move{flex:0 0 auto}
.hqmb-status-move strong{display:block;font-size:38px;font-weight:800;line-height:1;color:#16241f;font-variant-numeric:tabular-nums}
.hqmb-status-move.up strong{color:#0b7558}
.hqmb-status-move.down strong{color:#c0492f}
.hqmb-status-move span{display:block;margin-top:7px;font-size:11px;font-weight:700;color:#7d8d88}
.hqmb-status-facts{margin:2px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:12.5px;color:#2b3d38}
.hqmb-status-facts li em{font-style:normal;color:#6f817c;font-weight:600}
.hqmb-status-facts .hqmb-status-context{font-size:11px;color:#8a978f}
.hqmb-status-facts .hqmb-status-context em{color:#a6b0ac}
.hqmb-bars{margin-top:22px;display:flex;flex-direction:column;gap:8px}
.hqmb-bar-row{display:grid;grid-template-columns:84px 1fr 100px;align-items:center;gap:12px;font-size:11.5px}
.hqmb-bar-name{display:flex;align-items:center;gap:6px;font-weight:700;color:#1a2b26;white-space:nowrap}
.hqmb-bar-name i{width:7px;height:14px;border-radius:3px;flex:0 0 auto}
.hqmb-bar-track{height:14px;background:#eef2f1;border-radius:3px;overflow:hidden}
.hqmb-bar-fill{display:block;height:100%;border-radius:3px;opacity:.85}
.hqmb-bar-val{text-align:right;font-variant-numeric:tabular-nums;color:#3f5559;font-weight:700}
.hqmb-bar-val em{font-style:normal;margin-left:6px;font-weight:600;color:#9aa7a2}
.hqmb-bar-val em.down{color:#c0492f}
.hqmb-bar-val em.up{color:#0b7558}

/* 02 changes — 공통 흐름 강조 */
.hqmb-change-list{display:flex;flex-direction:column;gap:12px}
.hqmb-change{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 14px;padding:14px 16px;border-radius:10px;border:1px solid #e2e9e6;background:#fbfdfc}
.hqmb-change.common{border-color:#bfe0d3;background:#f0f8f5;padding:18px 20px}
.hqmb-change-tag{font-size:9.5px;font-weight:900;letter-spacing:.06em;padding:3px 8px;border-radius:4px;background:#e5f3ee;color:#0b7558;text-transform:uppercase}
.hqmb-change.partial .hqmb-change-tag{background:#eef2f1;color:#6b7c78}
.hqmb-change.single .hqmb-change-tag{background:#fff;color:#7d8d88;border:1px solid #dfe8e6}
.hqmb-change b{font-size:15px;font-weight:800;color:#1a2b26}
.hqmb-change.common b{font-size:19px}
.hqmb-change-scope{font-size:11.5px;color:#6f817c;display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.hqmb-chip{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:#3f5559;font-weight:700}
.hqmb-chip::before{content:"";width:7px;height:7px;border-radius:2px;background:var(--c,#9aa9a7)}

/* 03 campus flows — 촘촘한 표 */
.hqmb-campus-table{width:100%;border-collapse:collapse;font-size:12.5px}
.hqmb-campus-table th,.hqmb-campus-table td{padding:11px 10px;border-bottom:1px solid #eef2f1;text-align:left;vertical-align:top}
.hqmb-campus-table tbody th{font-weight:800;color:#1a2b26;white-space:nowrap;width:96px}
.hqmb-campus-table tbody th i{display:inline-block;width:7px;height:16px;border-radius:3px;margin-right:8px;vertical-align:-3px}
.hqmb-flow-tag{font-weight:700;color:#2b3d38}
.hqmb-campus-table tr.down .hqmb-flow-tag{color:#b0492f}
.hqmb-campus-table tr.up .hqmb-flow-tag{color:#0b7558}
.hqmb-campus-table tr.flat .hqmb-flow-tag{color:#8a978f}
.hqmb-flow-num{font-family:'Noto Sans KR',sans-serif;font-variant-numeric:tabular-nums;color:#5a6d68;font-size:11.5px}
.hqmb-flow-num small{display:block;margin-top:3px;color:#9aa7a2;font-size:10px}

/* 04 insight */
.hqmb-insight-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:9px}
.hqmb-insight-list li{font-size:12.5px;color:#2b3d38;line-height:1.6}
.hqmb-profile-table{width:100%;border-collapse:collapse;margin-top:18px;font-size:11.5px}
.hqmb-profile-table th,.hqmb-profile-table td{padding:9px 10px;border-bottom:1px solid #eef2f1;text-align:left}
.hqmb-profile-table thead th{font-size:10px;font-weight:900;letter-spacing:.04em;color:#8a978f;text-transform:uppercase}
.hqmb-profile-table tbody th{font-weight:800;color:#1a2b26;white-space:nowrap}
.hqmb-profile-table td{color:#6f817c}
.hqmb-profile-table td.hi{color:#0b7558;font-weight:700}
.hqmb-profile-table td.lo{color:#b0492f;font-weight:700}

/* 05 watch */
.hqmb-watch ol{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:10px}
.hqmb-watch li{font-size:12.5px;color:#2b3d38;line-height:1.6}

.hqmb-disclaimer{margin:24px 0 0;padding-top:16px;border-top:1px solid #e7edea;font-size:10px;color:#94a09b;line-height:1.65}

body.hqmb-open{overflow:hidden}

@media (max-width:720px){
  .hqmb-modal{padding:16px 10px}
  .hqmb-report{padding:28px 22px 40px}
  .hqmb-masthead{flex-direction:column;gap:16px}
  .hqmb-status-lead{gap:16px}
  .hqmb-status-move strong{font-size:32px}
  .hqmb-bar-row{grid-template-columns:72px 1fr 88px;gap:8px}
}

/* ---- 인쇄 / PDF: 브리핑 본문만 ---- */
@media print{
  body{background:#fff !important}
  body > *:not(#hqMonthlyBriefing){display:none !important}
  body.hqmb-open{overflow:visible !important}
  #hqMonthlyBriefing{position:static !important;display:block !important;padding:0 !important}
  #hqMonthlyBriefing .hqmb-backdrop,
  #hqMonthlyBriefing .hqmb-toolbar{display:none !important}
  #hqMonthlyBriefing .hqmb-sheet{
    width:auto !important;max-height:none !important;box-shadow:none !important;border-radius:0 !important;overflow:visible !important
  }
  #hqMonthlyBriefing .hqmb-report{overflow:visible !important;padding:0 !important;font-size:10.5pt;color:#000}
  .hqmb-section{break-inside:avoid;border-bottom:1px solid #ccc}
  .hqmb-change.common{background:#f4f4f4 !important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .hqmb-masthead{border-bottom:2px solid #000}
}
