/* Modul Pelucuthakan Emolumen (emolumen) - semua gaya di bawah .elh-page */
.elh-page {
    /* Palet korporat UPM */
    --elh-accent: #a6192e;
    --elh-accent-dark: #7f1425;
    --elh-accent-soft: #f8eef0;
    --elh-accent-past: #e2b6be;
    --elh-ink: #252a2e;
    --elh-muted: #6c737a;
    --elh-line: #dfe3e7;
    --elh-surface: #ffffff;
    --elh-head-bg: #f8f9fc;
    --elh-hover: #f3f4f6;
    --elh-warn: #b54708;
    --elh-warn-soft: #fef0e1;
    --elh-danger: #b42318;
    --elh-danger-soft: #fdecea;
    --elh-ok: #067647;
    --elh-ok-soft: #e7f6ee;
    clear: both;
    padding: 0 5px 24px;
    color: var(--elh-ink);
    font-size: 13px;
}
.elh-page *, .elh-page *::before, .elh-page *::after { box-sizing: border-box; }

/* ---------- Panel tajuk (seragam dengan .ldp-heading Lapor Diri) ---------- */
.elh-heading {
    margin: 4px 0 12px;
    padding: 7px 12px 6px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border: 1px solid var(--elh-line);
    border-left: 5px solid var(--elh-accent);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(37, 42, 46, .06);
    font-family: Arial, "Helvetica Neue", sans-serif;
}
.elh-heading__content { min-width: 0; }
.elh-heading__label {
    display: block;
    margin-bottom: 2px;
    color: var(--elh-accent);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.05px;
    text-transform: uppercase;
}
.elh-heading__title {
    margin: 0;
    padding: 0;
    color: var(--elh-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.2px;
}
.elh-heading__subtitle { margin: 2px 0 0; color: var(--elh-muted); font-size: 11.5px; font-weight: 500; line-height: 1.3; }
.elh-heading__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.elh-heading__btn {
    min-height: 32px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    border: 1px solid #d9aab4;
    border-radius: 7px;
    background: #fff;
    color: var(--elh-accent) !important;
    box-shadow: 0 1px 3px rgba(37, 42, 46, .06);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none !important;
}
.elh-heading__btn:hover { border-color: var(--elh-accent); background: var(--elh-accent); color: #fff !important; }

.elh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .15s, border-color .15s, color .15s;
}
.elh-btn--primary { background: var(--elh-accent); color: #fff !important; }
.elh-btn--primary:hover { background: var(--elh-accent-dark); }
.elh-btn--line { background: #fff; border-color: var(--elh-line); color: var(--elh-ink) !important; }
.elh-btn--line:hover { border-color: var(--elh-accent); color: var(--elh-accent) !important; }
.elh-btn--success { background: #1e8e4e; color: #fff !important; }
.elh-btn--success:hover { background: #157040; }
.elh-btn--excel { background: #fff; border-color: #b7e0c7; color: var(--elh-ok) !important; }
.elh-btn--excel:hover { background: var(--elh-ok-soft); }
.elh-btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- KPI ---------- */
.elh-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.elh-kpis.elh-kpis--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.elh-kpis.elh-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Setiap kad ada warna sendiri: --kpi-c (utama) & --kpi-soft (latar) */
.elh-kpi {
    --kpi-c: var(--elh-accent);
    --kpi-soft: var(--elh-accent-soft);
    position: relative;
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--elh-line);
    border-top: 4px solid var(--kpi-c);
    border-radius: 12px;
    background: linear-gradient(160deg, var(--kpi-soft) 0%, #fff 75%);
    color: var(--elh-ink) !important;
    text-decoration: none !important;
}
.elh-kpi--ok     { --kpi-c: #067647; --kpi-soft: #e3f4ea; }
.elh-kpi--danger { --kpi-c: #b42318; --kpi-soft: #fde8e6; }
.elh-kpi--warn   { --kpi-c: #c4590a; --kpi-soft: #fdeedd; }
.elh-kpi--slate  { --kpi-c: #475467; --kpi-soft: #eaeef3; }
a.elh-kpi { cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.elh-kpi:hover { transform: translateY(-2px); border-color: var(--kpi-c); box-shadow: 0 8px 18px rgba(37, 42, 46, .10); }
.elh-kpi.is-active { border-color: var(--kpi-c); box-shadow: 0 0 0 2px var(--kpi-c); }
.elh-kpi__label {
    display: block;
    padding-right: 44px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--elh-muted);
}
.elh-kpi__value {
    display: block;
    margin-top: 8px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.elh-kpi__note { display: block; margin-top: 8px; font-size: 12px; color: var(--elh-muted); }
.elh-kpi__value { color: var(--kpi-c); }
.elh-kpi__link { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--kpi-c); }
.elh-kpi__icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--kpi-c);
    color: #fff;
    font-size: 17px;
    line-height: 38px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(37, 42, 46, .15);
}

/* ---------- Panel pemantauan PTJ ---------- */
.elh-alert {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
    padding: 14px 18px;
    border: 1px solid #f3c7c2;
    border-left: 5px solid var(--elh-danger);
    border-radius: 12px;
    background: #fff7f6;
}
.elh-alert--ok { border-color: #bfe3cd; border-left-color: var(--elh-ok); background: #f4fbf7; }
.elh-alert__icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--elh-danger);
    color: #fff;
    font-size: 17px;
    line-height: 40px;
    text-align: center;
}
.elh-alert--ok .elh-alert__icon { background: var(--elh-ok); }
.elh-alert__text { flex: 1 1 320px; min-width: 0; font-size: 13px; }
.elh-alert__text strong { display: block; margin-bottom: 2px; font-size: 13.5px; }
.elh-alert__text span { display: block; }
.elh-alert__text b { color: var(--elh-danger); font-size: 15px; }
.elh-alert__sub { margin-top: 2px; font-size: 12px; color: var(--elh-muted); }
.elh-alert__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.elh-btn--danger { background: var(--elh-danger); color: #fff !important; }
.elh-btn--danger:hover { background: #8f1c13; }
.elh-btn.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor; }
.elh-btn--danger.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--elh-danger); }

/* ---------- Grid & kad ---------- */
.elh-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}
.elh-grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.elh-card {
    border: 1px solid var(--elh-line);
    border-radius: 12px;
    background: var(--elh-surface);
    margin-bottom: 14px;
}
.elh-grid > .elh-card { margin-bottom: 0; }
.elh-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--elh-line);
}
.elh-card__title { margin: 0; font-size: 14px; font-weight: 600; color: var(--elh-ink); }
.elh-card__sub { margin: 2px 0 0; font-size: 12px; color: var(--elh-muted); }
.elh-card__tools { display: flex; align-items: center; gap: 8px; }
.elh-card__body { padding: 16px 18px; }

/* ---------- Carta lajur (bulan) ---------- */
.elh-cols {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 190px;
    padding-top: 26px;
    border-bottom: 1px solid #d0d5dd;
}
.elh-col {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}
.elh-col__bar {
    position: relative;
    width: 100%;
    max-width: 34px;
    border-radius: 4px 4px 0 0;
    background: var(--elh-accent);
}
.elh-col--past .elh-col__bar { background: var(--elh-accent-past); }
.elh-col__val {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--elh-ink);
    white-space: nowrap;
    opacity: 0;
    transition: opacity .12s;
}
.elh-col:hover .elh-col__val, .elh-col--now .elh-col__val, .elh-col--max .elh-col__val { opacity: 1; }
.elh-col:hover .elh-col__bar { filter: brightness(.9); }
.elh-col.is-klik { cursor: pointer; }
.elh-col.is-klik:hover .elh-col__bar { filter: brightness(.85); }
.elh-cols.has-pilih .elh-col:not(.is-pilih) .elh-col__bar { opacity: .35; }
.elh-col.is-pilih .elh-col__bar { background: var(--elh-accent-dark); }
.elh-col.is-pilih .elh-col__val { opacity: 1; }
.elh-cols__labels { display: flex; gap: 8px; margin-top: 6px; }
.elh-cols__labels span { flex: 1 1 0; text-align: center; font-size: 11px; color: var(--elh-muted); }
.elh-cols__labels span.is-now { color: var(--elh-accent); font-weight: 700; }
.elh-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 11.5px; color: var(--elh-muted); }
.elh-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 2px; vertical-align: -1px; }

/* ---------- Bar mendatar ---------- */
.elh-hbar { margin: 0; padding: 0; list-style: none; }
.elh-hbar li + li { margin-top: 12px; }
.elh-hbar__top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: 12.5px; }
.elh-hbar__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elh-hbar__val { font-weight: 600; font-variant-numeric: tabular-nums; }
.elh-hbar__track { height: 8px; border-radius: 4px; background: #f2f4f7; }
.elh-hbar__fill { height: 100%; border-radius: 4px; background: var(--elh-accent); min-width: 4px; }
.elh-hbar--klik li { margin-left: -8px; margin-right: -8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.elh-hbar--klik li + li { margin-top: 4px; }
.elh-hbar--klik li:hover { background: var(--elh-hover); }
.elh-hbar--klik li.is-pilih { background: var(--elh-accent-soft); font-weight: 600; }
.elh-hbar.has-pilih li:not(.is-pilih) .elh-hbar__fill { opacity: .35; }

/* ---------- Carta donut ---------- */
.elh-pie { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; padding: 6px 0; }
.elh-pie__chart { position: relative; flex: none; width: 190px; height: 190px; }
.elh-pie__chart svg { display: block; width: 100%; height: 100%; }
.elh-pie__seg { cursor: pointer; transition: stroke-width .12s, opacity .12s; }
.elh-pie__seg:hover, .elh-pie__seg.is-pilih { stroke-width: 7.5; }
.elh-pie.has-pilih .elh-pie__seg:not(.is-pilih) { opacity: .35; }
.elh-pie__center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.elh-pie__center strong { font-size: 26px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.elh-pie__center span { margin-top: 4px; font-size: 11px; color: var(--elh-muted); text-transform: uppercase; letter-spacing: .05em; }
.elh-pie__legend { flex: 1 1 200px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.elh-pie__legend li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid var(--elh-line);
    font-size: 12.5px;
}
.elh-pie__legend li:first-child { border-top: 0; }
.elh-pie__legend li { cursor: pointer; padding-left: 8px; padding-right: 8px; border-radius: 6px; }
.elh-pie__legend li:hover { background: var(--elh-hover); }
.elh-pie__legend li.is-pilih { background: var(--elh-accent-soft); font-weight: 600; }
.elh-hint { margin: 12px 0 0; font-size: 11.5px; color: var(--elh-muted); }
.elh-pie__legend i { flex: none; width: 12px; height: 12px; border-radius: 3px; }
.elh-pie__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elh-pie__val { font-weight: 700; font-variant-numeric: tabular-nums; }
.elh-pie__pct { width: 48px; text-align: right; color: var(--elh-muted); font-variant-numeric: tabular-nums; }

/* ---------- Senarai hampir tamat ---------- */
.elh-due { margin: 0; padding: 0; list-style: none; }
.elh-due li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--elh-line);
}
.elh-due li:first-child { border-top: 0; padding-top: 0; }
.elh-due__name { display: block; font-weight: 600; font-size: 12.5px; }
.elh-due__meta { display: block; margin-top: 2px; font-size: 11.5px; color: var(--elh-muted); }
.elh-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.elh-badge--warn { background: var(--elh-warn-soft); color: var(--elh-warn); }
.elh-badge--danger { background: var(--elh-danger-soft); color: var(--elh-danger); }
.elh-badge--ok { background: var(--elh-ok-soft); color: var(--elh-ok); }
.elh-badge--muted { background: #f2f4f7; color: var(--elh-muted); }
.elh-badge--accent { background: var(--elh-accent-soft); color: var(--elh-accent); }
.elh-empty { padding: 26px 10px; text-align: center; color: var(--elh-muted); font-size: 12.5px; }
.elh-empty i { display: block; margin-bottom: 6px; font-size: 22px; color: #c0c6d0; }

/* ---------- Jadual ---------- */
.elh-page table.elh-table { width: 100%; margin-bottom: 0; border-collapse: collapse; background: var(--elh-surface); }
.elh-page table.elh-table > thead > tr > th,
.elh-page table.elh-table > tbody > tr.elh-thead > th {
    padding: 10px 12px;
    border: 0;
    border-bottom: 2px solid var(--elh-accent-soft);
    background: var(--elh-head-bg);
    color: var(--elh-muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}
.elh-page table.elh-table > tbody > tr > td {
    padding: 10px 12px;
    border: 0;
    border-top: 1px solid var(--elh-line);
    font-size: 13px;
    vertical-align: middle;
}
.elh-page table.elh-table > tbody > tr:hover > td { background: var(--elh-hover); }
.elh-page table.elh-table > tbody > tr.elh-row-open > td { background: var(--elh-hover); font-weight: 600; }
.elh-page table.elh-table > tbody > tr.elh-row-open > td:first-child { box-shadow: inset 4px 0 0 var(--elh-accent); }
.elh-page table.elh-table > tbody > tr.elh-row-detail > td,
.elh-page table.elh-table > tbody > tr.elh-row-detail:hover > td { background: #fbfbfd; padding: 4px 12px 14px; }
.elh-page table.elh-table .elh-num { color: var(--elh-muted); width: 48px; }
.elh-page table.elh-table .elh-staf { font-weight: 600; color: var(--elh-accent-dark); font-variant-numeric: tabular-nums; }
.elh-page table.elh-table td.elh-nowrap { white-space: nowrap; }
.elh-page table.elh-table td.elh-empty-cell { padding: 30px 12px; text-align: center; color: var(--elh-muted); }
.elh-actions { display: inline-flex; align-items: center; gap: 6px; }
.elh-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--elh-line);
    border-radius: 7px;
    background: #fff;
    color: var(--elh-accent) !important;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none !important;
}
.elh-icon-btn:hover { border-color: var(--elh-accent); background: var(--elh-accent-soft); }
.elh-icon-btn--ok { color: var(--elh-ok) !important; }
.elh-icon-btn--ok:hover { border-color: var(--elh-ok); background: var(--elh-ok-soft); }
.elh-icon-btn--edit { color: #1f6fd1 !important; }
.elh-icon-btn--edit:hover { border-color: #1f6fd1; background: #e8f1fc; }
.elh-icon-btn--danger { color: var(--elh-danger) !important; }
.elh-icon-btn--danger:hover { border-color: var(--elh-danger); background: var(--elh-danger-soft); }

/* ---------- Bootstrap dalam modul ---------- */
.elh-page .panel.panel-inverse {
    border: 1px solid var(--elh-line);
    border-radius: 12px;
    box-shadow: none;
    overflow: visible; /* jangan potong menu dropdown (selectpicker) */
}
.elh-page .panel.panel-inverse > .panel-heading {
    border-radius: 12px 12px 0 0;
    padding: 13px 18px;
    border-bottom: 1px solid var(--elh-line);
    background: var(--elh-surface);
    color: var(--elh-ink);
}
.elh-page .panel.panel-inverse > .panel-heading .panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--elh-ink);
}
.elh-page .panel.panel-inverse > .panel-heading .panel-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 14px;
    margin-right: 9px;
    border-radius: 2px;
    background: var(--elh-accent);
    vertical-align: -2px;
}
.elh-page .control-label { color: var(--elh-muted); font-weight: 600; font-size: 12.5px; }
.elh-page .form-control { border-radius: 7px; }
.elh-page .form-control:focus { border-color: var(--elh-accent); box-shadow: 0 0 0 3px rgba(166,25,46,.12); }
.elh-page .btn-xs { padding: 4px 10px; border-radius: 6px; }
.elh-page .bootstrap-select .dropdown-menu { z-index: 1050; }
.elh-page .bootstrap-select .dropdown-menu > li.active > a,
.elh-page .bootstrap-select .dropdown-menu > li > a:focus { background: var(--elh-accent); color: #fff; }
.elh-page .bootstrap-select .dropdown-menu > li > a:hover { background: var(--elh-hover); color: var(--elh-ink); }

.elh-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-bottom: 14px; }
.elh-detail { margin: 6px 0; padding: 14px; border: 1px solid var(--elh-line); border-radius: 10px; background: #fff; }
.elh-search__title { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--elh-accent-dark); }
.elh-heading__btn--primary { border-color: var(--elh-accent); background: var(--elh-accent); color: #fff !important; }
.elh-heading__btn--primary:hover { border-color: var(--elh-accent-dark); background: var(--elh-accent-dark); }

@media (max-width: 1199px) {
    .elh-kpis, .elh-kpis.elh-kpis--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .elh-grid, .elh-grid--even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .elh-heading { padding: 7px 9px 6px 10px; }
    .elh-heading__title { font-size: 17px; }
    .elh-heading__actions { margin-left: 0; }
}
@media (max-width: 560px) {
    .elh-kpis, .elh-kpis.elh-kpis--2, .elh-kpis.elh-kpis--3 { grid-template-columns: minmax(0, 1fr); }
    .elh-cols,.elh-cols__labels { gap: 3px; }
    .elh-cols__labels span { font-size: 9.5px; }
}

/* ---------- Ikon dalam kotak: tengah tepat (tema portal ubah line-height ikon FA) ---------- */
.elh-kpi__icon, .elh-tile__icon, .elh-alert__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.elh-kpi__icon > i, .elh-tile__icon > i, .elh-alert__icon > i {
    display: block;
    margin: 0;
    line-height: 1;
}
/* =====================================================================
   Komponen tambahan
   ===================================================================== */

/* Pilihan tahun dalam panel tajuk */
.elh-year {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 4px 0 10px;
    border: 1px solid var(--elh-line);
    border-radius: 7px;
    background: #fff;
    color: var(--elh-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.elh-year select {
    height: 28px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: var(--elh-accent);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
}

/* Jubin kitaran (tidak digunakan buat masa ini) */
.elh-cycle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}
.elh-cycle__item {
    --cy-c: var(--elh-accent);
    --cy-soft: var(--elh-accent-soft);
    position: relative;
    display: block;
    padding: 14px 14px 12px;
    border: 1px solid var(--elh-line);
    border-radius: 12px;
    background: linear-gradient(165deg, var(--cy-soft) 0%, #fff 70%);
    color: var(--elh-ink) !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.elh-cycle__item:hover { transform: translateY(-2px); border-color: var(--cy-c); box-shadow: 0 8px 18px rgba(37, 42, 46, .10); }
.elh-cycle__item.is-pilih { border-color: var(--cy-c); box-shadow: 0 0 0 2px var(--cy-c); }
.elh-cycle__item.is-akan { opacity: .7; }
.elh-cycle__item--c0 { --cy-c: #a6192e; --cy-soft: #f8eef0; }
.elh-cycle__item--c1 { --cy-c: #2f6690; --cy-soft: #e9f1f8; }
.elh-cycle__item--c2 { --cy-c: #2f7d5b; --cy-soft: #e8f4ee; }
.elh-cycle__item--c3 { --cy-c: #a5781f; --cy-soft: #f8f1e3; }
.elh-cycle__item--c4 { --cy-c: #475467; --cy-soft: #eef1f5; }
.elh-cycle__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.elh-cycle__bln { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cy-c); }
.elh-cycle__state { font-size: 10.5px; font-weight: 600; color: var(--elh-muted); }
.elh-cycle__val { display: block; margin-top: 8px; font-size: 26px; font-weight: 700; line-height: 1; color: var(--elh-ink); font-variant-numeric: tabular-nums; }
.elh-cycle__unit { display: block; margin-top: 3px; font-size: 11px; color: var(--elh-muted); }
.elh-cycle__track { height: 7px; margin-top: 10px; border-radius: 4px; background: #eceff2; overflow: hidden; }
.elh-cycle__fill { height: 100%; border-radius: 4px; background: var(--cy-c); min-width: 3px; }
.elh-cycle__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--elh-muted); }
.elh-cycle__belum {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--elh-warn-soft);
    color: var(--elh-warn) !important;
    font-weight: 700;
    text-decoration: none !important;
}
.elh-cycle__belum:hover { background: #fbdcbc; }
.elh-cycle__belum.is-ok { background: var(--elh-ok-soft); color: var(--elh-ok) !important; }

/* Ringkasan kenaikan gaji */
.elh-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 14px;
    border: 1px solid var(--elh-line);
    border-radius: 10px;
    background: #fbfbfc;
}
.elh-strip > div { padding: 10px 14px; }
.elh-strip > div + div { border-left: 1px solid var(--elh-line); }
.elh-strip span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--elh-muted); }
.elh-strip strong { display: block; margin-top: 3px; font-size: 17px; font-weight: 700; color: var(--elh-ink); font-variant-numeric: tabular-nums; }

/* Trend tahunan: guna .elh-cols + label amaran merah */
.elh-cols--trend { height: 170px; gap: 18px; }
.elh-cols--trend .elh-col__bar { max-width: 54px; }
.elh-cols--trend .elh-col__val { opacity: 1; }
.elh-cols__labels--trend { gap: 18px; }
.elh-cols__labels--trend span { line-height: 1.35; }
.elh-cols__labels--trend em {
    display: inline-block;
    margin-top: 3px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--elh-danger-soft);
    color: var(--elh-danger);
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

/* Wang dalam jadual */
.elh-page table.elh-table td.elh-rm { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.elh-page table.elh-table th.elh-rm { text-align: right; }
.elh-naik { color: var(--elh-ok); font-weight: 700; }
.elh-butiran { font-size: 12px; line-height: 1.6; }
.elh-butiran span { display: inline-block; margin: 0 6px 3px 0; padding: 1px 8px; border-radius: 6px; background: var(--elh-danger-soft); color: var(--elh-danger); font-weight: 600; white-space: nowrap; }

/* Borang carian & radio */
.elh-page .radio-inline, .elh-page .checkbox-inline { font-size: 12.5px; }
.elh-page input[type=radio], .elh-page input[type=checkbox] { accent-color: var(--elh-accent); }

@media (max-width: 767px) {
    .elh-strip { grid-template-columns: minmax(0, 1fr); }
    .elh-strip > div + div { border-left: 0; border-top: 1px solid var(--elh-line); }
}
/* Halaman lama dibalut .col-md-12: kekalkan jarak tepi 5px seperti modul lain */
.elh-page > .col-md-12 { padding-left: 0; padding-right: 0; }
.elh-page > .col-md-12 + .col-md-12 { margin-top: 0; }
.elh-page table.elh-table th .elh-btn { text-transform: none; letter-spacing: 0; font-size: 12px; padding: 5px 10px; }
/* Item jalur yang boleh diklik */
.elh-strip > a.elh-strip__klik { display: block; padding: 10px 14px; border-left: 1px solid var(--elh-line); border-radius: 0 10px 10px 0; color: var(--elh-ink) !important; text-decoration: none !important; cursor: pointer; }
.elh-strip > a.elh-strip__klik:hover { background: var(--elh-hover); }
.elh-strip > a.elh-strip__klik.is-pilih { background: var(--elh-accent-soft); }
.elh-strip > a.elh-strip__klik span { color: var(--elh-accent); }
@media (max-width: 767px) {
    .elh-strip > a.elh-strip__klik { border-left: 0; border-top: 1px solid var(--elh-line); border-radius: 0 0 10px 10px; }
}
/* Senarai lencana dalam sel */
.elh-sebab { display: flex; flex-wrap: wrap; gap: 4px; max-width: 340px; }
.elh-sebab .elh-badge { white-space: normal; line-height: 1.35; border-radius: 8px; text-align: left; }
/* Butang ikon sahaja dalam panel tajuk (muat semula) */
.elh-heading__btn--icon { width: 32px; padding: 0; justify-content: center; font-size: 13px; }
/* =====================================================================
   Khusus Pelucuthakan Emolumen
   ===================================================================== */

/* Aliran kerja: PTJ -> Urusetia -> Ketua Seksyen -> Ketua Bahagian -> Selesai */
.elh-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.elh-step {
    --st-c: #475467;
    --st-soft: #eef1f5;
    position: relative;
    display: block;
    padding: 12px 12px 11px;
    border: 1px solid var(--elh-line);
    border-radius: 12px;
    background: #fff;
    color: var(--elh-ink) !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.elh-step:hover { transform: translateY(-2px); border-color: var(--st-c); box-shadow: 0 8px 18px rgba(37, 42, 46, .10); }
.elh-step.is-active { border-color: var(--st-c); box-shadow: 0 0 0 2px var(--st-c); }
.elh-step--ptj      { --st-c: #475467; --st-soft: #eef1f5; }
.elh-step--urusetia { --st-c: #2f6690; --st-soft: #e9f1f8; }
.elh-step--ks       { --st-c: #a5781f; --st-soft: #f8f1e3; }
.elh-step--kb       { --st-c: #a6192e; --st-soft: #f8eef0; }
.elh-step--selesai  { --st-c: #067647; --st-soft: #e3f4ea; }
/* Anak panah antara langkah */
.elh-step + .elh-step::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -9px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #c3c9cf;
    border-right: 2px solid #c3c9cf;
    transform: translate(-1px, -50%) rotate(45deg);
}
.elh-step__top { display: flex; align-items: center; gap: 8px; }
.elh-step__no {
    flex: none;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--st-soft);
    color: var(--st-c);
    font-size: 12px;
    font-weight: 700;
}
.elh-step__no > i { display: block; line-height: 1; }
.elh-step__label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--elh-muted); line-height: 1.25; }
.elh-step__val { display: block; margin-top: 8px; font-size: 26px; font-weight: 700; line-height: 1; color: var(--st-c); font-variant-numeric: tabular-nums; }
.elh-step__note { display: block; margin-top: 4px; font-size: 11.5px; color: var(--elh-muted); }
.elh-step__foot { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; min-height: 20px; }
.elh-step__tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
}
.elh-step__tag--lewat { background: var(--elh-danger-soft); color: var(--elh-danger); }
.elh-step__tag--anda { background: var(--st-c); color: #fff; }

/* Panduan pengguna (dropdown dalam panel tajuk) */
.elh-page .elh-panduan { position: relative; }
.elh-page .elh-panduan .dropdown-menu { right: 0; left: auto; min-width: 280px; padding: 6px; border-radius: 10px; border: 1px solid var(--elh-line); box-shadow: 0 10px 24px rgba(37, 42, 46, .14); z-index: 1060; }
.elh-page .elh-panduan .dropdown-menu > li > a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; color: var(--elh-ink); font-size: 12px; white-space: normal; }
.elh-page .elh-panduan .dropdown-menu > li > a:hover { background: var(--elh-hover); color: var(--elh-accent); }
.elh-page .elh-panduan .dropdown-menu > li > a i { color: var(--elh-danger); }

/* Ikon dalam jadual senarai kes */
.elh-page table.elh-table td.elh-aksi { width: 44px; text-align: center; }

@media (max-width: 1199px) {
    .elh-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .elh-step:nth-child(4)::before { display: none; }
}
@media (max-width: 767px) {
    .elh-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .elh-step::before { display: none; }
}
/* ---------- Laporan interaktif ---------- */
.elh-lap-filter { margin-bottom: 14px; }
.elh-lap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px 12px;
    align-items: end;
}
.elh-lap-f { display: flex; flex-direction: column; gap: 4px; margin: 0; min-width: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--elh-muted); }
.elh-lap-f select, .elh-lap-f input {
    width: 100%;
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--elh-line);
    border-radius: 7px;
    background: #fff;
    color: var(--elh-ink);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    outline: none;
}
.elh-lap-f select:focus, .elh-lap-f input:focus { border-color: var(--elh-accent); box-shadow: 0 0 0 3px rgba(166, 25, 46, .12); }
.elh-lap-f--thn select { color: var(--elh-accent); font-weight: 700; }
.elh-lap-f--cari { grid-column: span 2; }
.elh-lap-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.elh-lap-chips:empty { display: none; }
.elh-lap-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--elh-accent-soft); color: var(--elh-accent-dark); font-size: 12px; }
.elh-lap-chip a { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; color: var(--elh-accent) !important; font-size: 14px; line-height: 1; text-decoration: none !important; }
.elh-lap-chip a:hover { background: var(--elh-accent); color: #fff !important; }
.elh-lap-reset { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--elh-muted) !important; }
.elh-lap-reset:hover { color: var(--elh-accent) !important; }
.elh-page table.elh-table > thead > tr > th.elh-lap-sort { cursor: pointer; user-select: none; }
.elh-page table.elh-table > thead > tr > th.elh-lap-sort:hover, .elh-page table.elh-table > thead > tr > th.elh-lap-sort.is-on { color: var(--elh-accent); }
.elh-page table.elh-table > thead > tr > th.elh-lap-sort i { margin-left: 3px; opacity: .55; }
.elh-page table.elh-table > thead > tr > th.elh-lap-sort.is-on i { opacity: 1; }
.elh-lap-page { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; margin-top: 12px; font-size: 12px; color: var(--elh-muted); }
.elh-lap-page button { min-width: 30px; height: 30px; border: 1px solid var(--elh-line); border-radius: 7px; background: #fff; color: var(--elh-ink); font-size: 12px; cursor: pointer; }
.elh-lap-page button:hover:not(:disabled), .elh-lap-page button.is-on { border-color: var(--elh-accent); background: var(--elh-accent); color: #fff; }
.elh-lap-page button:disabled { opacity: .45; cursor: not-allowed; }
.elh-lap-page span { margin-left: 8px; }
.elh-kpis > div.elh-kpi { cursor: default; }


@media (max-width: 767px) {
    .elh-lap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .elh-lap-f--cari { grid-column: 1 / -1; }
}
/* Laporan: trend bulanan */
.elh-lap-bulan__bars { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 22px; border-bottom: 1px solid #d0d5dd; }
.elh-lap-bulan__col { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; min-width: 0; }
.elh-lap-bulan__col.is-klik { cursor: pointer; }
.elh-lap-bulan__bar { position: relative; width: 100%; max-width: 38px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--elh-accent); transition: filter .12s, opacity .12s; }
.elh-lap-bulan__col.is-klik:hover .elh-lap-bulan__bar { filter: brightness(.85); }
.elh-lap-bulan.has-pilih .elh-lap-bulan__col:not(.is-pilih) .elh-lap-bulan__bar { opacity: .3; }
.elh-lap-bulan__col.is-pilih .elh-lap-bulan__bar { background: var(--elh-accent-dark); }
.elh-lap-bulan__bar span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; font-size: 10.5px; font-weight: 700; color: var(--elh-ink); white-space: nowrap; }
.elh-lap-bulan__x { display: flex; gap: 4px; margin-top: 6px; }
.elh-lap-bulan__x span { flex: 1 1 0; min-width: 0; overflow: visible; white-space: nowrap; text-align: center; font-size: 10.5px; color: var(--elh-muted); }

/* Laporan: donut sebab */
.elh-lap-donut { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.elh-lap-donut__chart { position: relative; flex: none; width: 210px; height: 210px; }
.elh-lap-donut__chart svg { display: block; width: 100%; height: 100%; }
.elh-lap-seg { cursor: pointer; transition: stroke-width .12s, opacity .12s; }
.elh-lap-seg.is-hover, .elh-lap-seg.is-pilih { stroke-width: 7.8; }
.elh-lap-donut.has-pilih .elh-lap-seg:not(.is-pilih), .elh-lap-donut.has-hover .elh-lap-seg:not(.is-hover) { opacity: .3; }
.elh-lap-donut__pusat { position: absolute; inset: 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.elh-lap-donut__pusat strong { font-size: 26px; font-weight: 700; line-height: 1; color: var(--elh-ink); font-variant-numeric: tabular-nums; }
.elh-lap-donut__pusat span { margin-top: 4px; font-size: 10.5px; line-height: 1.25; color: var(--elh-muted); text-transform: uppercase; letter-spacing: .03em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.elh-lap-donut__pusat .elh-lap-donut__n { margin-top: 3px; color: var(--elh-accent); font-weight: 700; text-transform: none; }
.elh-lap-donut__legend { flex: 1 1 260px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.elh-lap-donut__legend li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; font-size: 12px; cursor: pointer; }
.elh-lap-donut__legend li:hover, .elh-lap-donut__legend li.is-hover { background: var(--elh-hover); }
.elh-lap-donut__legend li.is-pilih { background: var(--elh-accent-soft); font-weight: 600; }
.elh-lap-donut__legend i { flex: none; width: 11px; height: 11px; border-radius: 3px; }
.elh-lap-donut__lbl { flex: 1; min-width: 0; line-height: 1.3; }
.elh-lap-donut__legend b { font-variant-numeric: tabular-nums; }
.elh-lap-donut__legend em { width: 46px; text-align: right; font-style: normal; color: var(--elh-muted); font-variant-numeric: tabular-nums; }

/* Laporan: kedudukan PTJ + suis ukuran */
.elh-lap-suis { display: inline-flex; padding: 3px; border: 1px solid var(--elh-line); border-radius: 8px; background: #f6f7f9; }
.elh-lap-suis button { padding: 4px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--elh-muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.elh-lap-suis button.is-on { background: var(--elh-accent); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.elh-lap-rank { margin: 0; padding: 0; list-style: none; }
.elh-lap-rank li { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; }
.elh-lap-rank li + li { margin-top: 2px; }
.elh-lap-rank li:hover { background: var(--elh-hover); }
.elh-lap-rank li.is-pilih { background: var(--elh-accent-soft); }
.elh-lap-rank.has-pilih li:not(.is-pilih) { opacity: .5; }
.elh-lap-rank__no { flex: none; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #eef1f5; color: var(--elh-muted); font-size: 11px; font-weight: 700; }
.elh-lap-rank__no.is-top { background: var(--elh-accent); color: #fff; }
.elh-lap-rank__main { flex: 1; min-width: 0; }
.elh-lap-rank__top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.elh-lap-rank__top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elh-lap-rank__top b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.elh-lap-rank__top small { font-weight: 500; color: var(--elh-muted); }
.elh-lap-rank__track { height: 7px; margin-top: 5px; border-radius: 4px; background: #f2f4f7; }
.elh-lap-rank__track div { height: 100%; min-width: 3px; border-radius: 4px; background: var(--elh-accent); }
.elh-lap-rank__pct { display: block; margin-top: 3px; font-size: 10.5px; color: var(--elh-muted); }
.elh-lap-lagi { margin-top: 8px; text-align: center; font-size: 12px; font-weight: 600; }
.elh-lap-lagi a { color: var(--elh-accent) !important; }

/* Tooltip laporan */
.elh-lap-tip { position: fixed; z-index: 2000; left: 0; top: 0; max-width: 280px; padding: 7px 10px; border-radius: 7px; background: #252a2e; color: #fff; font-size: 12px; line-height: 1.4; pointer-events: none; opacity: 0; transition: opacity .1s; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.elh-lap-tip.is-on { opacity: 1; }
.elh-lap-tip small { color: #c9ced3; }