:root {
  --navy: #0a2463; --navy-2: #0b3a8c; --navy-dark: #071a47;
  --gold: #c9a227; --gold-2: #e2b93b; --gold-soft: #fbf3d9;
  --blue: #2563eb; --bg: #f3f6fb; --card: #fff; --line: #e5eaf2;
  --text: #0f172a; --muted: #64748b;
  --ok: #15803d; --ok-bg: #dcfce7; --warn: #b45309; --warn-bg: #fef3c7;
  --bad: #b91c1c; --bad-bg: #fee2e2; --info: #1d4ed8; --info-bg: #dbeafe;
  --radius: 12px; --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .05);
  --side: 232px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); font-size: 14px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; }
a { color: inherit; text-decoration: none; }
i[data-lucide], svg.lucide { width: 18px; height: 18px; flex: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.r { text-align: right !important; }

/* ---- Layout ---- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--side); background: linear-gradient(180deg, #0b3a8c 0%, #0a2463 55%, #071a47 100%); color: #fff; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 40; overflow-y: auto; }
.brand { text-align: center; padding: 22px 14px 14px; }
.brand-logo { width: 54px; height: 54px; border-radius: 14px; margin: 0 auto 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--gold-2); }
.brand-logo i, .brand-logo svg { width: 30px; height: 30px; }
.brand h1 { font-size: 26px; font-weight: 800; letter-spacing: .5px; }
.brand-sub { margin: 4px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 1px; line-height: 1.4; }
.brand-tag { margin: 0; font-size: 11px; font-style: italic; opacity: .8; }
.nav { padding: 10px 10px 24px; display: flex; flex-direction: column; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; font-weight: 500; font-size: 13.5px; color: #e3ebff; transition: background .15s; }
.nav-item:hover { background: rgba(255, 255, 255, .1); }
.nav-item.active { background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }

.main { margin-left: var(--side); flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 10px 24px; }
.topbar-title { font-weight: 700; font-size: 15px; color: var(--navy); flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.role-box { display: flex; align-items: center; gap: 8px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.role-box small { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.role-box select { border: 0; background: transparent; font: inherit; font-weight: 600; max-width: 230px; outline: none; cursor: pointer; padding: 0; color: var(--text); }
.role-box i, .role-box svg { width: 28px; height: 28px; color: var(--navy-2); }
.view { padding: 24px; flex: 1; }
.footer { display: flex; justify-content: space-between; gap: 10px; padding: 12px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; background: #fff; }
.footer em { font-style: italic; }
.only-mobile { display: none; }

/* ---- Tajuk halaman ---- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.tag-gold { font-size: 11px; font-weight: 700; background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: #fff; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .4px; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters label { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); font-weight: 600; gap: 2px; }
.filters select { font-weight: 600; }
.section-title { font-size: 18px; font-weight: 800; color: var(--navy); margin: 22px 0 12px; display: flex; align-items: center; gap: 14px; }
.section-title::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }

/* ---- Butang & input ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; transition: filter .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--navy-2); color: #fff; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.12); }
.btn-gold { background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: #fff; }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: #f1f5f9; }
.btn-danger { background: #dc2626; color: #fff; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.block { width: 100%; margin-top: 12px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; border: 0; background: transparent; cursor: pointer; color: var(--text); }
.icon-btn:hover { background: #eef2f7; }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn.sm i, .icon-btn.sm svg { width: 16px; height: 16px; }
.icon-btn.danger:hover { background: var(--bad-bg); color: var(--bad); }
.link-btn { background: none; border: 0; color: var(--navy-2); font: inherit; font-weight: 600; cursor: pointer; padding: 4px 0; }
.link-btn:disabled { color: var(--muted); cursor: default; }
input, select, textarea { font: inherit; color: inherit; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(37, 99, 235, .35); border-color: var(--blue); }
.filters select, .select-sm { width: auto; padding: 7px 10px; }

/* ---- Kad ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad, .pad { padding: 16px 18px; }
.card-title { font-size: 15px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-title i, .card-title svg { color: var(--gold); }
.grid-kpi { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.grid-kpi.small { grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: flex-start; }
.grid-kpi.small .kpi { display: block; }
.kpi-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; flex: none; }
.kpi span { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.kpi b { display: block; font-size: 24px; font-weight: 800; color: var(--navy); margin: 2px 0; letter-spacing: -.3px; }
.kpi small { font-size: 12px; color: var(--muted); }
.kpi small.up { color: var(--ok); } .kpi small.down { color: var(--bad); }
.kpi .bar { margin-top: 6px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: 1.4fr 1.1fr 1fr; gap: 16px; margin-top: 16px; }
.grid-3.two { grid-template-columns: 1.4fr 1fr; }
.grid-4 { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 16px; margin-top: 16px; align-items: stretch; }
.chart-box { position: relative; height: 260px; }
.chart-box.donut { height: 220px; flex: 1; min-width: 180px; }
.donut-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.legend { list-style: none; margin: 0; padding: 0; font-size: 12px; flex: 1; min-width: 160px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 6px; align-items: center; padding: 4px 0; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.legend small { color: var(--muted); }

/* ---- Pilar ---- */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pillar-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.pillar-head h3 { font-size: 12.5px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.pillar-head i, .pillar-head svg { color: var(--navy-2); }
.pno { background: var(--navy-2); color: #fff; font-weight: 800; border-radius: 6px; padding: 8px 9px; font-size: 13px; line-height: 1; }
.pillar.p3 .pno, .pillar.p5 .pno { background: var(--gold); }
.pillar-body { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 12px; }
.pstats { display: flex; flex-direction: column; gap: 7px; font-size: 12px; min-width: 0; }
.pstat { display: grid; grid-template-columns: 16px auto 1fr; gap: 6px; align-items: center; }
.pstat i, .pstat svg { width: 15px; height: 15px; color: var(--muted); }
.pstat b { font-size: 13px; color: var(--text); }
.pstat span { color: var(--muted); }
.ring { --c: var(--navy-2); width: 62px; height: 62px; border-radius: 50%; flex: none; background: conic-gradient(var(--c) calc(var(--p) * 1%), #e5e7eb 0); display: grid; place-items: center; position: relative; }
.ring.gold { --c: var(--gold); }
.ring::before { content: ''; position: absolute; inset: 7px; background: #fff; border-radius: 50%; }
.ring span { position: relative; font-weight: 800; font-size: 13px; text-align: center; line-height: 1; color: var(--navy); }
.ring small { display: block; font-size: 7px; font-weight: 600; color: var(--muted); margin-top: 2px; }

/* ---- Jadual ---- */
.toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar .muted { margin-left: auto; font-size: 12px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search i, .search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search input { padding-left: 32px; }
.table-wrap { overflow-x: auto; }
.table-wrap.short { max-height: 280px; overflow-y: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid #f0f3f8; vertical-align: top; }
.tbl tbody tr:hover { background: #fafcff; }
.tbl.compact th, .tbl.compact td { padding: 7px 8px; font-size: 12px; }
.tbl.plain th { display: none; }
.tbl.plain td { padding: 6px 4px; }
.tbl tr.total td { font-weight: 800; background: #f8fafc; }
.th-actions, .td-actions { text-align: right !important; white-space: nowrap; }
.td-actions { vertical-align: middle; }
.cell-main { font-weight: 600; }
.cell-sub { font-size: 12px; color: var(--muted); }
.empty-cell { text-align: center; color: var(--muted); padding: 28px !important; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px; }
.pager:empty { display: none; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.b-ok { background: var(--ok-bg); color: var(--ok); } .b-warn { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); } .b-info { background: var(--info-bg); color: var(--info); }
.b-muted { background: #e5e7eb; color: #4b5563; }

/* ---- Panel bawah ---- */
.mini-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 12px; }
.mini-kpis.card { margin-bottom: 14px; }
.mini-kpis > div { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; }
.mini-kpis b { display: block; font-size: 18px; color: var(--navy); }
.mini-kpis span { font-size: 11px; color: var(--muted); }
.fin-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.fin-top table { flex: 1; }
.fin-pct { background: var(--gold-soft); border-radius: 10px; padding: 10px 14px; text-align: center; }
.fin-pct small { display: block; font-size: 11px; color: var(--muted); }
.fin-pct b { font-size: 26px; color: var(--navy-2); }
.bar { background: #e5e7eb; border-radius: 99px; height: 8px; overflow: hidden; position: relative; }
.bar i { display: block; height: 100%; background: var(--navy-2); border-radius: 99px; }
.bar.big { height: 20px; margin: 10px 0 14px; }
.bar.big em { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; font-style: normal; }
.card h4 { font-size: 12px; margin: 10px 0 6px; color: var(--navy); }
.spend { display: grid; grid-template-columns: 120px 1fr 80px; gap: 8px; align-items: center; font-size: 12px; margin: 5px 0; }
.spend b { text-align: right; }
.value-card { background: linear-gradient(160deg, #0b3a8c, #071a47); color: #fff; padding: 18px; text-align: center; border: 2px solid var(--gold); }
.value-card h3 { color: var(--gold-2); letter-spacing: 1px; margin: 6px 0 12px; font-size: 16px; }
.medal { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: #fff; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.value-grid > div { border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px; padding: 8px; }
.value-card small { display: block; font-size: 11px; opacity: .85; }
.value-card b { font-size: 18px; }
.value-big { margin-top: 10px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 10px; padding: 10px; color: #1f2937; }
.value-big b { font-size: 28px; display: block; }
.value-big small { opacity: 1; font-weight: 600; }
.tagline { font-style: italic; font-size: 12px; margin: 12px 0 0; opacity: .9; }
.impact { list-style: none; padding: 0; margin: 0; }
.impact li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f3f8; font-size: 13px; }
.impact i, .impact svg { color: var(--gold); }
.impact b { min-width: 52px; font-size: 15px; color: var(--navy); }

/* ---- Kad program / tawaran ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.prog h3 { font-size: 16px; margin: 10px 0 2px; color: var(--navy); }
.prog-top { display: flex; justify-content: space-between; align-items: center; }
.meta { display: flex; flex-direction: column; gap: 5px; margin: 12px 0; font-size: 12.5px; color: var(--muted); }
.meta span { display: flex; align-items: center; gap: 8px; }
.meta i, .meta svg { width: 15px; height: 15px; }
.prog-act { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.chip { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.chip.blue { background: var(--info-bg); color: var(--info); } .chip.gold { background: var(--gold-soft); color: #92710a; }
.disc { background: var(--gold); color: #fff; font-weight: 800; border-radius: 8px; padding: 4px 10px; }
.tabs { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.tab { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; color: var(--muted); }
.tab.on { background: var(--navy-2); color: #fff; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f3f8; }
.list small { display: block; color: var(--muted); font-size: 12px; }
.li-right { display: flex; align-items: center; gap: 6px; }

/* ---- Borang & modal ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 12.5px; }
.fld > span { color: #334155; }
.fld.full, .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.inline-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.inline-form select { flex: 2; min-width: 180px; } .inline-form input { flex: 1; min-width: 120px; }
.modal-overlay { position: fixed; inset: 0; background: rgba(7, 26, 71, .55); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: #fff; border-radius: 14px; width: min(520px, 100%); max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal.wide { width: min(760px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; color: var(--navy); }
.modal-body { padding: 18px; overflow-y: auto; }
.confirm-text { margin: 0 0 18px; line-height: 1.5; }
.err-pre { white-space: pre-wrap; background: #fef2f2; color: #991b1b; padding: 12px; border-radius: 8px; font-size: 12px; overflow: auto; }
.empty-state { text-align: center; padding: 56px 20px; }
.empty-state i, .empty-state svg { width: 48px; height: 48px; color: var(--gold); }
.empty-state h2 { margin: 12px 0 6px; color: var(--navy); }
.empty-state p { color: var(--muted); max-width: 460px; margin: 0 auto 18px; }
@keyframes fade { from { opacity: 0; } }

/* ---- Toast ---- */
#toastRoot { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; background: #0f172a; color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); animation: slide .2s; max-width: 360px; }
.toast.t-bad { background: #b91c1c; } .toast.t-ok i, .toast.t-ok svg { color: #4ade80; }
.toast.out { opacity: 0; transition: opacity .3s; }
@keyframes slide { from { transform: translateY(10px); opacity: 0; } }

/* ---- Loceng ---- */
.bell-wrap { position: relative; }
.bell-badge { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.bell-panel { position: absolute; right: 0; top: 46px; width: 340px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(15, 23, 42, .2); overflow: hidden; z-index: 60; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bell-list { max-height: 380px; overflow-y: auto; }
.bell-item { display: flex; gap: 10px; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #f0f3f8; padding: 11px 14px; font: inherit; cursor: pointer; }
.bell-item:hover { background: #f8fafc; }
.bell-item .dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; margin-top: 6px; flex: none; }
.bell-item.unread { background: #f4f8ff; } .bell-item.unread .dot { background: var(--blue); }
.bell-item b { display: block; font-size: 13px; } .bell-item small { display: block; color: var(--muted); font-size: 12px; margin: 2px 0; }
.bell-item em { font-size: 11px; color: #94a3b8; font-style: normal; }
.bell-empty { padding: 28px; text-align: center; color: var(--muted); }

/* ---- Laporan AGM ---- */
.agm-doc { padding: 34px 40px; max-width: 900px; margin: 0 auto; }
.agm-head { display: flex; gap: 16px; align-items: center; border-bottom: 3px solid var(--gold); padding-bottom: 14px; margin-bottom: 8px; }
.agm-logo { width: 52px; height: 52px; border-radius: 12px; background: var(--navy-2); color: var(--gold-2); display: grid; place-items: center; }
.agm-head h2 { font-size: 21px; color: var(--navy); } .agm-head p { margin: 2px 0 0; color: var(--muted); }
.agm-doc h3 { margin: 22px 0 8px; color: var(--navy); font-size: 15px; border-left: 4px solid var(--gold); padding-left: 10px; }
.agm-doc .tbl.plain td:first-child { color: #334155; }
.agm-doc .tbl.plain td.r { font-weight: 700; }
.agm-foot { margin-top: 26px; font-size: 11px; color: var(--muted); text-align: center; font-style: italic; }

/* ---- Responsif ---- */
@media (max-width: 1500px) { .grid-kpi { grid-template-columns: repeat(3, 1fr); } .pillars { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1100px) { .grid-3, .grid-3.two { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; } .sidebar.open { transform: none; }
  .main { margin-left: 0; } .only-mobile { display: inline-grid; }
  .topbar { padding: 8px 12px; } .view { padding: 14px; }
  .btn-gold span { display: none; } .role-box small { display: none; } .role-box select { max-width: 150px; }
  .grid-kpi, .grid-kpi.small { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; } .footer { flex-direction: column; }
  .bell-panel { position: fixed; right: 8px; left: 8px; width: auto; }
}
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } .agm-doc { padding: 18px; } }

/* ---- Cetak ---- */
@media print {
  .sidebar, .topbar, .footer, .no-print, #toastRoot, #modalRoot { display: none !important; }
  .main { margin: 0; } .view { padding: 0; } body { background: #fff; }
  .card { box-shadow: none; border: 0; } .agm-doc { padding: 0; max-width: none; }
  .agm-doc h3 { break-after: avoid; } .tbl tr { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
