/* ===== 30 · 空窗期材料：月份热力矩阵 · 天青 / 海蓝 ===== */
.gm-page {
    --cg-accent: #177f8c;
    --cg-accent-2: #0e5b66;
    --cg-accent-soft: #e1f2f4;
    --cg-accent-ink: #ffffff;
    --gm-t1: #177f8c; --gm-t2: #6a4aa6; --gm-t3: #b07b2c; --gm-t4: #16734f; --gm-t5: #6b7a86;
    background:
        radial-gradient(720px 320px at 88% -70px, rgba(23, 127, 140, .1), transparent 70%),
        var(--cg-bg);
}
:root[data-theme="dark"] .gm-page {
    --cg-accent: #6fd3e0;
    --cg-accent-2: #9ce6ee;
    --cg-accent-soft: rgba(111, 211, 224, .14);
    --cg-accent-ink: #052228;
    --gm-t1: #6fd3e0; --gm-t2: #bda2ff; --gm-t3: #e5b166; --gm-t4: #7bd0a4; --gm-t5: #9aa9b4;
    background: radial-gradient(720px 320px at 88% -70px, rgba(111, 211, 224, .08), transparent 70%), var(--cg-bg);
}

.gm-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 470px); gap: 40px; align-items: start; padding: 24px 0 26px; }
.gm-lead .cg-h1 em { background: linear-gradient(90deg, var(--cg-accent-soft), transparent); }
.gm-grid-demo { margin-top: 28px; max-width: 520px; padding: 15px 17px; border: 1px solid var(--cg-line); border-radius: 14px; background: var(--cg-surface); box-shadow: var(--cg-shadow); }
.gm-demo-h { font-size: 11px; letter-spacing: .08em; font-weight: 700; color: var(--cg-faint); text-transform: uppercase; margin-bottom: 11px; }
.gm-demo-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.gm-demo-grid i { height: 15px; border-radius: 3px; background: var(--cg-accent); opacity: .85; }
.gm-demo-grid i.is-hole { background: repeating-linear-gradient(135deg, transparent 0 4px, var(--cg-bad-soft) 4px 8px); border: 1px dashed var(--cg-bad); opacity: 1; }
.gm-demo-grid i.is-out { background: var(--cg-line-soft); opacity: 1; }
.gm-demo-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 10.5px; color: var(--cg-muted); }
.gm-demo-legend span { display: inline-flex; align-items: center; gap: 5px; }
.gm-demo-legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--cg-accent); }
.gm-demo-legend i.is-hole { background: var(--cg-bad-soft); border: 1px dashed var(--cg-bad); }
.gm-demo-legend i.is-out { background: var(--cg-line-soft); }
.gm-lead .cg-value-row { margin-top: 26px; }
.gm-console .cg-console-h { background: var(--cg-accent-2); }
.gm-gap-input { min-height: 76px; }
.gm-item-input { min-height: 118px; }
.gm-kpis .cg-kpi-value { color: var(--cg-accent); }
.gm-kpis .cg-kpi--ok .cg-kpi-value { color: var(--cg-ok); }
.gm-kpis .cg-kpi--bad .cg-kpi-value { color: var(--cg-bad); }

.gm-matrix-card { margin-top: 26px; }
.gm-legend { padding: 2px 0 14px; }
.gm-matrix { display: grid; gap: 8px; max-height: 460px; overflow: auto; }
.gm-year { border: 1px solid var(--cg-line); border-radius: 11px; overflow: hidden; }
.gm-year-h { display: flex; justify-content: space-between; padding: 7px 12px; background: var(--cg-surface-2); border-bottom: 1px solid var(--cg-line); font-family: var(--cg-num); font-size: 12.5px; font-weight: 700; color: var(--cg-ink-2); }
.gm-year-h span { font-family: var(--cg-font); font-size: 11px; font-weight: 500; color: var(--cg-faint); }
.gm-month-row { display: grid; grid-template-columns: 82px repeat(5, minmax(0, 1fr)) 78px; gap: 4px; align-items: center; padding: 3px 10px; }
.gm-month-row.is-head { padding-top: 8px; padding-bottom: 6px; position: sticky; top: 0; z-index: 2; background: var(--cg-surface); }
.gm-month-row.is-head span { font-size: 10.5px; font-weight: 700; color: var(--cg-muted); text-align: center; }
.gm-month-label { font-family: var(--cg-num); font-size: 11.5px; color: var(--cg-ink-2); }
.gm-month-label small { display: block; font-size: 10px; color: var(--cg-faint); font-family: var(--cg-font); }
.gm-cell { height: 20px; border-radius: 4px; background: var(--cg-surface-3); border: 1px solid var(--cg-line-soft); cursor: pointer; }
.gm-cell.is-hit { background: var(--gm-t1); border-color: transparent; }
.gm-cell[data-t="项目"].is-hit { background: var(--gm-t2); }
.gm-cell[data-t="照护"].is-hit { background: var(--gm-t3); }
.gm-cell[data-t="证书"].is-hit { background: var(--gm-t4); }
.gm-cell[data-t="其它"].is-hit { background: var(--gm-t5); }
.gm-cell:hover { outline: 2px solid var(--cg-accent); outline-offset: 1px; }
.gm-hole-tag { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--cg-bad); }
.gm-hole-tag.is-ok { color: var(--cg-ok); }

.gm-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 18px; align-items: start; }
.gm-holes, .gm-notes { display: grid; gap: 8px; max-height: 280px; overflow: auto; }
.gm-hole-row { border-left: 3px solid var(--cg-bad); border-radius: 8px; padding: 8px 11px; background: var(--cg-surface-2); font-size: 12.2px; line-height: 1.7; }
.gm-hole-row b { color: var(--cg-ink); }
.gm-note-row { border-left: 3px solid var(--cg-accent); border-radius: 8px; padding: 8px 11px; background: var(--cg-surface-2); font-size: 12.2px; line-height: 1.75; }
.gm-note-row b { color: var(--cg-ink); }
.gm-note-row.is-warn { border-left-color: var(--cg-warn); }
.gm-note-row .cg-src { display: block; margin-top: 3px; }
.gm-item-card { margin-top: 18px; }
.gm-table { min-width: 760px; }

@media print {
    .gm-grid-demo, .gm-console, .gm-legend { display: none !important; }
    .gm-lower { display: block; }
    .gm-lower > .cg-card + .cg-card { margin-top: 14px; }
    .gm-matrix { max-height: none; overflow: visible; }
    .gm-table { min-width: 0; }
    .gm-matrix-card::before { content: "空窗期材料月份覆盖清单（仅含已录入事实）"; display: block; padding: 12px; font-size: 14pt; font-weight: 700; }
}
@media (max-width: 1080px) { .gm-hero, .gm-lower { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
    .gm-hero { gap: 22px; padding-top: 14px; }
    .gm-grid-demo { display: none; }
    .gm-month-row { grid-template-columns: 62px repeat(5, minmax(0, 1fr)) 54px; gap: 3px; padding: 3px 6px; }
    .gm-month-label { font-size: 10px; }
}
