.hse-w-good { --w: var(--good); --w-rgb: var(--good-rgb); --w-tx: var(--txt-good); }
.hse-w-info { --w: var(--vol); --w-rgb: var(--vol-rgb); --w-tx: var(--txt-info); }
.hse-w-accent { --w: var(--accent); --w-rgb: var(--accent-rgb); --w-tx: var(--accent); }
.hse-w-violet { --w: var(--violet); --w-rgb: var(--violet-rgb); --w-tx: var(--txt-violet); }
.hse-w-warn { --w: var(--warn); --w-rgb: var(--warn-rgb); --w-tx: var(--txt-warn); }
.hse-w-crit { --w: var(--crit); --w-rgb: var(--crit-rgb); --w-tx: var(--txt-bad); }
.hse-w-none { --w: var(--tx3); --w-rgb: 111,127,150; --w-tx: var(--tx2); }

.hse-grade { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 700; font-size: .8rem; color: var(--w-tx); background: rgba(var(--w-rgb), .14); border: 1px solid rgba(var(--w-rgb), .5); font-variant-numeric: tabular-nums; }
.hse-grade.is-lg { width: 54px; height: 54px; border-radius: 14px; font-size: 1.6rem; }
.hse-judge, .hse-st { display: inline-flex; align-items: center; gap: .35rem; height: 24px; padding: 0 .6rem; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap; color: var(--w-tx); background: rgba(var(--w-rgb), .12); border: 1px solid rgba(var(--w-rgb), .45); }
.hse-st .bi { font-size: .8rem; }
.hse-due { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hse-due.is-late { color: var(--txt-bad); font-weight: 600; }
.hse-due.is-near { color: var(--txt-warn); font-weight: 600; }
.hse-muted { color: var(--tx3); }
.hse-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hse-td-kosong { text-align: center; color: var(--tx3); padding: 1.4rem .5rem !important; }
.hse-chip { display: inline-flex; align-items: center; gap: .3rem; height: 22px; padding: 0 .5rem; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--tx2); font-size: .7rem; font-weight: 600; white-space: nowrap; }
.hse-chip .bi { color: var(--accent); }

.hse-bar { position: relative; height: 8px; border-radius: 99px; background: rgba(var(--accent-rgb), .12); overflow: hidden; min-width: 60px; }
.hse-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--w, var(--accent)); transition: width .4s ease; }
.hse-pct { display: flex; align-items: center; gap: .55rem; min-width: 130px; }
.hse-pct .hse-bar { flex: 1; }
.hse-pct b { min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.hse-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem .8rem; margin-bottom: 1rem; padding: .75rem .9rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--filter-bg); }
.hse-filter .app-field { min-width: 140px; }
.hse-filter .app-field > label { margin-bottom: .25rem; }
.hse-filter .form-control { height: 34px; }
.hse-filter .hse-filter-akhir { margin-left: auto; display: flex; gap: .4rem; flex-wrap: wrap; }

.hse-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.hse-grid > .box { margin-bottom: 0; min-width: 0; }
.hse-s3 { grid-column: span 3; } .hse-s4 { grid-column: span 4; } .hse-s5 { grid-column: span 5; } .hse-s6 { grid-column: span 6; }
.hse-s7 { grid-column: span 7; } .hse-s8 { grid-column: span 8; } .hse-s12 { grid-column: span 12; }
.hse-chart { position: relative; height: 290px; }
.hse-chart.is-sm { height: 230px; }
.hse-chart.is-lg { height: 340px; }
.kpi-grid.hse-kpi-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi-grid.hse-kpi-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi .kpi-n small { font-size: .9rem; color: var(--tx3); font-weight: 500; }
.kpi-trend { display: inline-flex; align-items: center; gap: .2rem; font-weight: 600; }
.kpi-trend.up { color: var(--txt-good); } .kpi-trend.down { color: var(--txt-bad); }

.hse-tbl { width: 100%; }
.hse-tbl td, .hse-tbl th { vertical-align: middle !important; }
.hse-tbl .hse-sp { font-weight: 600; color: var(--tx1); }
.hse-tbl .hse-sp small { display: block; color: var(--tx3); font-weight: 400; font-size: .72rem; }
.hse-rank { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: .7rem; font-weight: 700; color: var(--tx2); }
.hse-list { list-style: none; margin: 0; padding: 0; }
.hse-list li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.hse-list li:last-child { border-bottom: 0; }
.hse-list .hse-list-isi { flex: 1; min-width: 0; }
.hse-list .hse-list-isi b { display: block; color: var(--tx1); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hse-list .hse-list-isi small { color: var(--tx3); }
.hse-list a { color: inherit; }
.hse-list a:hover { text-decoration: none; }
.hse-list a:hover b { color: var(--accent); }

.hse-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; }
.hse-ring { position: relative; width: 120px; height: 120px; }
.hse-ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.hse-ring circle { fill: none; stroke-width: 10; }
.hse-ring .bg { stroke: rgba(var(--accent-rgb), .12); }
.hse-ring .fg { stroke: var(--w, var(--accent)); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.hse-ring span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 1.35rem; font-weight: 700; color: var(--tx1); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hse-ring span small { display: block; font-size: .62rem; font-weight: 600; color: var(--tx3); letter-spacing: .1em; text-transform: uppercase; }
.hse-hero h2 { margin: 0 0 .2rem; font-size: 1.25rem; font-weight: 700; }
.hse-hero .hse-hero-sub { color: var(--tx2); font-size: .82rem; display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.hse-hero .hse-hero-sub span { display: inline-flex; align-items: center; gap: .3rem; }
.hse-hero .hse-hero-sub .bi { color: var(--accent); }
.hse-hero-grade { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.hse-keputusan { margin-top: .6rem; padding: .55rem .75rem; border-radius: 9px; border: 1px solid rgba(var(--w-rgb), .45); border-left: 3px solid var(--w); background: rgba(var(--w-rgb), .08); color: var(--tx1); font-size: .8rem; }

.hse-flow { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.hse-flow li { flex: 1 1 150px; position: relative; padding: .6rem .75rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); min-width: 0; }
.hse-flow li.on { border-color: rgba(var(--good-rgb), .5); background: rgba(var(--good-rgb), .08); }
.hse-flow li.now { border-color: rgba(var(--warn-rgb), .6); background: rgba(var(--warn-rgb), .08); }
.hse-flow li b { display: flex; align-items: center; gap: .35rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tx3); }
.hse-flow li.on b { color: var(--txt-good); }
.hse-flow li.now b { color: var(--txt-warn); }
.hse-flow li span { display: block; margin-top: .2rem; color: var(--tx1); font-weight: 600; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hse-flow li small { color: var(--tx3); font-size: .72rem; }

.hse-isi { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1rem; align-items: start; }
.hse-isi-nav { position: sticky; top: calc(var(--topbar-h) + 12px); max-height: calc(100vh - var(--topbar-h) - 24px); overflow: auto; }
.hse-isi-nav .box-body { padding: .5rem; }
.hse-knav { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hse-knav a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .45rem .55rem; border-radius: 9px; color: var(--tx2); font-size: .78rem; }
.hse-knav a:hover { background: var(--accent-dim); color: var(--tx1); text-decoration: none; }
.hse-knav a.on { background: rgba(var(--accent-rgb), .14); color: var(--tx1); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .25); }
.hse-knav .no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: .66rem; font-weight: 700; }
.hse-knav a.done .no { background: var(--good); border-color: var(--good); color: #fff; }
.hse-knav .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.hse-knav .ct { font-size: .66rem; color: var(--tx3); font-variant-numeric: tabular-nums; }
.hse-knav .hse-bar { grid-column: 2 / 4; height: 4px; }
.hse-isi-bar { position: sticky; top: var(--topbar-h); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: -.25rem 0 1rem; padding: .6rem .9rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--sh-top); backdrop-filter: blur(8px); box-shadow: var(--card-shadow); }
.hse-isi-bar .hse-isi-prog { flex: 1 1 220px; display: flex; align-items: center; gap: .6rem; min-width: 0; }
.hse-isi-bar .hse-isi-prog .hse-bar { flex: 1; }
.hse-isi-bar .hse-isi-stat { display: flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--tx2); white-space: nowrap; }
.hse-isi-bar .hse-isi-stat b { color: var(--tx1); font-size: .95rem; font-variant-numeric: tabular-nums; }
.hse-simpan-st { font-size: .72rem; color: var(--tx3); display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.hse-simpan-st.is-busy { color: var(--txt-warn); }
.hse-simpan-st.is-ok { color: var(--txt-good); }
.hse-simpan-st.is-err { color: var(--txt-bad); }
.hse-kat { scroll-margin-top: calc(var(--topbar-h) + 80px); }
.hse-kat .box-header { gap: .4rem .8rem; }
.hse-kat-ttl { display: flex; align-items: center; gap: .6rem; min-width: 0; flex: 1; }
.hse-kat-ttl .no { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #fff; font-weight: 700; font-size: .8rem; }
.hse-kat-ttl h3 { margin: 0; font-size: .95rem; font-weight: 700; color: var(--tx1); }
.hse-kat-ttl small { display: block; color: var(--tx3); font-size: .72rem; }
.hse-kat-skor { display: flex; align-items: center; gap: .55rem; margin-left: auto; font-size: .78rem; color: var(--tx2); }
.hse-kat-skor b { font-variant-numeric: tabular-nums; color: var(--tx1); }
.hse-q { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: .35rem .8rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.hse-q:last-of-type { border-bottom: 0; }
.hse-q .q-no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--tx2); font-size: .74rem; font-weight: 700; }
.hse-q.is-done .q-no { border-color: var(--good); background: rgba(var(--good-rgb), .14); color: var(--txt-good); }
.hse-q.is-low .q-no { border-color: var(--crit); background: rgba(var(--crit-rgb), .12); color: var(--txt-bad); }
.hse-q .q-teks { min-width: 0; }
.hse-q .q-en { color: var(--tx1); font-weight: 600; font-size: .86rem; line-height: 1.45; }
.hse-q .q-id { color: var(--tx2); font-size: .8rem; line-height: 1.45; margin-top: .15rem; font-style: italic; }
.hse-q .q-cat { grid-column: 2 / 4; }
.hse-q .q-cat textarea { min-height: 38px; font-size: .8rem; resize: vertical; }
.hse-q .q-cat-tgl { display: inline-flex; align-items: center; gap: .3rem; margin-top: .25rem; font-size: .72rem; color: var(--tx3); background: none; border: 0; padding: 0; }
.hse-q .q-cat-tgl:hover { color: var(--accent); }
.hse-skor { display: inline-flex; gap: 4px; flex-wrap: nowrap; align-self: start; }
.hse-skor button { position: relative; min-width: 36px; height: 36px; padding: 0 .4rem; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); color: var(--tx2); font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; transition: background .12s, color .12s, border-color .12s, transform .12s; }
.hse-skor button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.hse-skor button.on { color: #fff; border-color: transparent; background: var(--w, var(--accent)); box-shadow: 0 4px 12px rgba(var(--w-rgb, var(--accent-rgb)), .35); }
.hse-skor button.na { font-size: .66rem; letter-spacing: .04em; }
.hse-skor button:disabled { cursor: not-allowed; opacity: .7; }
.hse-skor button:disabled.on { opacity: 1; }
.hse-kat-ev { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: .6rem; padding-top: .85rem; margin-top: .4rem; border-top: 1px dashed var(--line-2); }
.hse-kat-ev label { display: block; margin-bottom: .25rem; color: var(--tx3); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hse-legend-skala { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .45rem; margin: 0; padding: 0; list-style: none; }
.hse-legend-skala li { display: flex; gap: .5rem; align-items: flex-start; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); font-size: .74rem; color: var(--tx2); line-height: 1.35; }
.hse-legend-skala li b { flex: 0 0 auto; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; background: var(--w, var(--accent)); font-size: .72rem; }

.hse-jadwal-wrap { overflow: auto; max-height: calc(100vh - 260px); border: 1px solid var(--line-2); border-radius: 10px; }
.hse-jadwal { border-collapse: separate; border-spacing: 0; font-size: .74rem; min-width: 100%; }
.hse-jadwal th, .hse-jadwal td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .3rem .4rem; white-space: nowrap; background: var(--panel); }
.hse-jadwal thead th { position: sticky; top: 0; z-index: 3; background: var(--th-bg); color: var(--tx2); font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-align: center; }
.hse-jadwal thead tr:nth-child(2) th { top: 27px; }
.hse-jadwal .fx { position: sticky; z-index: 2; }
.hse-jadwal thead .fx { z-index: 4; }
.hse-jadwal .fx1 { left: 0; min-width: 36px; text-align: center; }
.hse-jadwal .fx2 { left: 36px; min-width: 220px; max-width: 260px; white-space: normal; }
.hse-jadwal .fx3 { left: 256px; min-width: 62px; text-align: center; border-right: 2px solid var(--line-2); }
.hse-jadwal td.w { min-width: 28px; width: 28px; text-align: center; padding: .25rem .1rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.hse-jadwal th.m-awal, .hse-jadwal td.m-awal { border-left: 2px solid var(--line-2); }
.hse-jadwal td.w.is-plan { background: rgba(var(--vol-rgb), .18); color: var(--txt-info); }
.hse-jadwal td.w.is-act { background: rgba(var(--good-rgb), .22); color: var(--txt-good); }
.hse-jadwal td.w.is-late { background: rgba(var(--crit-rgb), .18); color: var(--txt-bad); }
.hse-jadwal td.w.is-now { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45); }
.hse-jadwal th.is-now { background: rgba(var(--accent-rgb), .22); color: var(--tx1); }
.hse-jadwal tr.r-plan td { border-bottom-style: dashed; }
.hse-jadwal tr.r-act td.fx2, .hse-jadwal tr.r-act td.fx1 { border-top: 0; }
.hse-jadwal tbody tr:hover td { background-color: var(--row-hover); }
.hse-jadwal .sp a { font-weight: 600; color: var(--tx1); }
.hse-jadwal .sp small { display: block; color: var(--tx3); font-size: .68rem; }
.hse-jadwal .pa { font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tx3); }
.hse-jadwal-leg { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .75rem; font-size: .74rem; color: var(--tx2); }
.hse-jadwal-leg span { display: inline-flex; align-items: center; gap: .35rem; }
.hse-jadwal-leg i { width: 16px; height: 12px; border-radius: 3px; display: inline-block; }

.hse-tim-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 150px 36px; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.hse-sec-ttl { display: flex; align-items: center; gap: .45rem; margin: 0 0 .8rem; color: var(--tx1); font-size: .85rem; font-weight: 700; }
.hse-sec-ttl .bi { color: var(--accent); }

.hse-set-grade td, .hse-set-grade th { vertical-align: middle !important; }
.hse-set-grade .form-control { height: 32px; font-size: .8rem; }
.hse-set-grade textarea.form-control { height: auto; min-height: 54px; }
.hse-kat-set { border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: .75rem; background: var(--panel); overflow: hidden; }
.hse-kat-set > summary { display: flex; align-items: center; gap: .6rem; padding: .65rem .85rem; cursor: pointer; list-style: none; }
.hse-kat-set > summary::-webkit-details-marker { display: none; }
.hse-kat-set > summary .bi-chevron-right { transition: transform .15s; color: var(--tx3); }
.hse-kat-set[open] > summary .bi-chevron-right { transform: rotate(90deg); }
.hse-kat-set > summary .nm { flex: 1; min-width: 0; font-weight: 700; color: var(--tx1); }
.hse-kat-set > summary .nm small { display: block; font-weight: 400; color: var(--tx3); font-size: .72rem; }
.hse-kat-set.is-off > summary .nm { opacity: .55; text-decoration: line-through; }
.hse-kat-set .hse-kat-body { padding: 0 .85rem .75rem; border-top: 1px solid var(--line); }
.hse-pq { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: .6rem; align-items: start; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.hse-pq:last-child { border-bottom: 0; }
.hse-pq .no { color: var(--tx3); font-weight: 700; font-size: .75rem; padding-top: .1rem; }
.hse-pq .en { color: var(--tx1); font-size: .82rem; font-weight: 600; }
.hse-pq .id { color: var(--tx2); font-size: .78rem; font-style: italic; }
.hse-pq.is-off .en, .hse-pq.is-off .id { opacity: .5; text-decoration: line-through; }
.hse-tab-body { padding: 1.1rem; }
.hse-help { color: var(--tx3); font-size: .74rem; margin: .3rem 0 0; }
.hse-preview { padding: .7rem .85rem; border-radius: 10px; border: 1px dashed var(--line-2); background: var(--panel-2); font-size: .8rem; color: var(--tx2); }
.hse-preview b { color: var(--tx1); }

.hse-info-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem .9rem; margin: 0; font-size: .82rem; }
.hse-info-dl dt { color: var(--tx3); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding-top: .12rem; }
.hse-info-dl dd { margin: 0; color: var(--tx1); overflow-wrap: anywhere; }
.hse-log { list-style: none; margin: 0; padding: 0; }
.hse-log li { position: relative; padding: 0 0 .8rem 1.3rem; font-size: .78rem; color: var(--tx2); }
.hse-log li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hse-log li::after { content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.hse-log li:last-child::after { display: none; }
.hse-log li b { color: var(--tx1); }
.hse-log li small { display: block; color: var(--tx3); }
.hse-log li em { display: block; margin-top: .15rem; color: var(--tx2); }

@media (max-width: 1399.98px) { .kpi-grid.hse-kpi-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1199.98px) {
  .hse-s3, .hse-s4 { grid-column: span 6; }
  .hse-s5, .hse-s6, .hse-s7, .hse-s8 { grid-column: span 12; }
  .kpi-grid.hse-kpi-5, .kpi-grid.hse-kpi-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hse-isi { grid-template-columns: minmax(0, 1fr); }
  .hse-isi-nav { position: static; max-height: none; }
  .hse-knav { flex-direction: row; overflow-x: auto; padding-bottom: .25rem; }
  .hse-knav a { grid-template-columns: 22px auto; min-width: 150px; }
  .hse-knav .ct, .hse-knav .hse-bar { display: none; }
}
@media (max-width: 767.98px) {
  .hse-s3, .hse-s4 { grid-column: span 12; }
  .hse-hero { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .hse-q { grid-template-columns: 30px minmax(0, 1fr); }
  .hse-q .hse-skor { grid-column: 1 / 3; flex-wrap: wrap; }
  .hse-q .q-cat { grid-column: 1 / 3; }
  .hse-kat-ev { grid-template-columns: minmax(0, 1fr); }
  .hse-tim-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hse-tim-row .hse-tim-nama { grid-column: 1 / 3; grid-row: 1; }
  .hse-filter .app-field { flex: 1 1 140px; }
  .hse-filter .hse-filter-akhir { margin-left: 0; width: 100%; }
  .hse-jadwal .fx2 { min-width: 150px; }
  .hse-jadwal .fx3 { left: 186px; }
}
@media (max-width: 575.98px) { .kpi-grid.hse-kpi-5, .kpi-grid.hse-kpi-3 { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .hse-isi-bar, .hse-isi-nav, .hse-filter, .hse-skor button:not(.on) { display: none !important; }
  .hse-isi { grid-template-columns: minmax(0, 1fr); }
}
.app-sidebar .brand-copy b { overflow: hidden; text-overflow: ellipsis; }
.app-sidebar .brand { flex: 1 1 auto; min-width: 0; }

.hse-sev { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; color: var(--w-tx); white-space: nowrap; }
.hse-sev > i { width: 9px; height: 9px; border-radius: 50%; background: var(--w); box-shadow: 0 0 0 3px rgba(var(--w-rgb), .18); }
.hse-tag { display: inline-flex; align-items: center; max-width: 100%; height: 22px; padding: 0 .5rem; border-radius: 6px; font-size: .7rem; font-weight: 600; color: var(--w-tx); background: rgba(var(--w-rgb), .1); border: 1px solid rgba(var(--w-rgb), .35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hse-risk { display: inline-flex; align-items: center; gap: .4rem; height: 24px; padding: 0 .55rem 0 .2rem; border-radius: 7px; font-size: .7rem; font-weight: 700; color: var(--w-tx); background: rgba(var(--w-rgb), .12); border: 1px solid rgba(var(--w-rgb), .45); white-space: nowrap; }
.hse-risk b { display: inline-grid; place-items: center; min-width: 20px; height: 18px; border-radius: 5px; background: var(--w); color: #fff; font-size: .7rem; font-variant-numeric: tabular-nums; }
.hse-ghs-list { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.hse-ghs { display: inline-grid; place-items: center; width: 24px; height: 24px; transform: rotate(45deg); border: 2px solid var(--crit); border-radius: 3px; background: var(--panel); color: var(--tx1); margin: 3px; }
.hse-ghs .bi { transform: rotate(-45deg); font-size: .72rem; }
.hse-due.is-ok { color: var(--txt-good); }
.hse-kosong { padding: 2rem 1rem; text-align: center; color: var(--tx3); }
.hse-kosong .bi { display: block; font-size: 2rem; margin-bottom: .4rem; color: var(--line-2); }

.hse-quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.hse-quick a { position: relative; display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 54px; padding: .6rem .8rem; border-radius: 12px; color: #fff; font-weight: 700; font-size: .84rem; text-decoration: none; background: var(--qa); box-shadow: 0 4px 12px rgba(var(--qr), .22); transition: transform .15s, box-shadow .15s, background-color .15s; overflow: hidden; }
.hse-quick a:hover, .hse-quick a:focus-visible { transform: translateY(-2px); background: var(--qb); box-shadow: 0 8px 18px rgba(var(--qr), .32); color: #fff; text-decoration: none; }
.hse-quick a .bi { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.22); font-size: 1rem; }
.hse-qa-red { --qa: #dc3d43; --qb: #c4343a; --qr: 220,61,67; }
.hse-qa-orange { --qa: #e8710f; --qb: #cf640c; --qr: 232,113,15; }
.hse-qa-teal { --qa: #0e9384; --qb: #0b7f72; --qr: 14,147,132; }
.hse-qa-green { --qa: #1d9a52; --qb: #188546; --qr: 29,154,82; }
.hse-qa-violet { --qa: #6a5acd; --qb: #5b4cbd; --qr: 106,90,205; }
.hse-qa-blue { --qa: #2470d4; --qb: #1e61b9; --qr: 36,112,212; }

.hse-mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.hse-mcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .8rem; align-items: center; padding: 1rem 1.1rem; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--line); box-shadow: var(--card-shadow); color: inherit; text-decoration: none; min-width: 0; }
a.hse-mcard:hover, a.hse-mcard:focus-visible { border-color: rgba(var(--accent-rgb), .45); text-decoration: none; color: inherit; }
.hse-mcard .t { display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; color: var(--tx1); }
.hse-mcard .t .bi { color: var(--w, var(--accent)); }
.hse-mcard .n { font-size: 1.45rem; font-weight: 700; color: var(--tx1); font-variant-numeric: tabular-nums; }
.hse-mcard .s { font-size: .72rem; color: var(--tx3); }
.hse-mcard .s b { color: var(--tx2); font-weight: 600; }
.hse-mcard .hse-mring { grid-row: 1 / 4; grid-column: 2; }
.hse-mring { position: relative; width: 62px; height: 62px; }
.hse-mring svg { width: 62px; height: 62px; transform: rotate(-90deg); }
.hse-mring circle { fill: none; stroke-width: 6; }
.hse-mring .bg { stroke: rgba(var(--w-rgb, var(--accent-rgb)), .14); }
.hse-mring .fg { stroke: var(--w, var(--accent)); stroke-linecap: round; }
.hse-mring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--tx1); font-variant-numeric: tabular-nums; }

.hse-score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: center; }
.hse-score .hse-ring { width: 150px; height: 150px; }
.hse-score .hse-ring svg { width: 150px; height: 150px; }
.hse-score .hse-ring span { font-size: 1.7rem; }
.hse-score h2 { margin: 0 0 .25rem; font-size: 1.15rem; font-weight: 700; }
.hse-score p { margin: 0 0 .5rem; color: var(--tx2); font-size: .82rem; }
.hse-score-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; }
.hse-score-meta div { padding: .5rem .65rem; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.hse-score-meta small { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); }
.hse-score-meta b { font-size: 1.05rem; color: var(--tx1); font-variant-numeric: tabular-nums; }

.hse-heat-wrap { overflow-x: auto; padding-bottom: .25rem; }
.hse-heat-m { display: grid; grid-auto-flow: column; grid-auto-columns: 13px; gap: 3px; width: max-content; font-size: .62rem; color: var(--tx3); margin-bottom: 3px; height: 14px; }
.hse-heat-m span { white-space: nowrap; overflow: visible; }
.hse-heat { display: grid; grid-template-rows: repeat(7, 13px); grid-auto-flow: column; grid-auto-columns: 13px; gap: 3px; width: max-content; }
.hse-heat i { display: block; width: 13px; height: 13px; border-radius: 3px; background: rgba(var(--good-rgb), .55); }
.hse-heat i.is-off { background: transparent; }
.hse-heat i.is-future { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.hse-heat i.is-ins { background: var(--w); cursor: pointer; }
.hse-heat i.is-today { outline: 2px solid var(--accent); outline-offset: 1px; }
.hse-heat-leg { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .6rem; font-size: .72rem; color: var(--tx2); }
.hse-heat-leg span { display: inline-flex; align-items: center; gap: .35rem; }
.hse-heat-leg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; background: var(--w); }
.hse-heat-leg i.is-aman { background: rgba(var(--good-rgb), .55); }
.hse-heat-leg i.is-future { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }

.hse-matrix { border-collapse: separate; border-spacing: 3px; font-size: .72rem; }
.hse-matrix th { color: var(--tx3); font-weight: 600; text-align: center; padding: .2rem .35rem; font-size: .66rem; }
.hse-matrix td { min-width: 54px; height: 40px; text-align: center; border-radius: 7px; font-weight: 700; color: var(--w-tx); background: rgba(var(--w-rgb), .16); border: 1px solid rgba(var(--w-rgb), .4); font-variant-numeric: tabular-nums; }
.hse-matrix td small { display: block; font-size: .6rem; font-weight: 600; opacity: .85; }
.hse-matrix td.has { background: var(--w); color: #fff; }

.hse-lamp { display: flex; flex-wrap: wrap; gap: .55rem; }
.hse-lamp-it { position: relative; width: 104px; height: 104px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); overflow: hidden; }
.hse-lamp-img, .hse-lamp-img img { display: block; width: 100%; height: 100%; }
.hse-lamp-img img { object-fit: cover; }
.hse-lamp-pdf { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; height: 100%; padding: .4rem; text-align: center; color: var(--tx2); font-size: .66rem; line-height: 1.2; word-break: break-word; }
.hse-lamp-pdf .bi { font-size: 1.8rem; color: var(--crit); }
.hse-lamp-pdf:hover { text-decoration: none; color: var(--accent); }
.hse-lamp-del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.hse-lamp-del:hover, .hse-lamp-del:focus-visible { background: var(--crit); }
.hse-lamp-kosong { margin: 0; font-size: .8rem; }
.hse-upload { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .7rem; }
.hse-upload input[type=file] { max-width: 100%; font-size: .78rem; }

.hse-korban-row { display: grid; grid-template-columns: minmax(0, 2fr) 120px minmax(0, 1.3fr) minmax(0, 1.3fr) 80px 36px; gap: .45rem; align-items: start; margin-bottom: .5rem; }
.hse-item-row { border: 1px solid var(--line-2); border-radius: 12px; padding: 1rem .8rem .8rem; margin: .9rem 0 .7rem; background: var(--panel-2); position: relative; }
.hse-item-row .hse-item-no { position: absolute; top: -10px; left: 12px; padding: 0 .45rem; border-radius: 6px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; line-height: 20px; }
.hse-item-row .hse-item-del { position: absolute; top: .45rem; right: .45rem; }
.hse-item-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem .7rem; }
.hse-item-grid .c2 { grid-column: span 2; } .hse-item-grid .c3 { grid-column: span 3; } .hse-item-grid .c6 { grid-column: span 6; }
.hse-item-grid label { display: block; margin-bottom: .2rem; font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tx3); }
.hse-item-grid textarea { min-height: 54px; resize: vertical; font-size: .8rem; }
.hse-ls { display: flex; gap: .35rem; align-items: center; }
.hse-ls select { width: auto; flex: 1; min-width: 0; }

.hse-yn { display: inline-flex; gap: 3px; }
.hse-yn label { position: relative; margin: 0; }
.hse-yn input { position: absolute; opacity: 0; pointer-events: none; }
.hse-yn span { display: inline-grid; place-items: center; min-width: 46px; height: 30px; padding: 0 .45rem; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--tx2); font-size: .72rem; font-weight: 700; cursor: pointer; }
.hse-yn input:checked + span.y { background: var(--good); border-color: var(--good); color: #fff; }
.hse-yn input:checked + span.n { background: var(--crit); border-color: var(--crit); color: #fff; }
.hse-yn input:checked + span.x { background: var(--tx3); border-color: var(--tx3); color: #fff; }
.hse-yn input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.hse-yn input:disabled + span { cursor: default; opacity: .8; }

.hse-dl2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1.4rem; }
.hse-text { white-space: pre-line; overflow-wrap: anywhere; color: var(--tx1); font-size: .84rem; }
.hse-blok { margin-bottom: .9rem; }
.hse-blok > label { display: block; margin-bottom: .2rem; color: var(--tx3); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hse-aksi-bar { display: flex; flex-wrap: wrap; gap: .45rem; }
.hse-progress { display: flex; align-items: center; gap: .5rem; min-width: 110px; }
.hse-progress .hse-bar { flex: 1; }
.hse-progress b { font-size: .74rem; min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.hse-orang { display: flex; flex-direction: column; line-height: 1.25; }
.hse-orang small { color: var(--tx3); font-size: .7rem; }
.hse-stok-low { color: var(--txt-bad); font-weight: 700; }
.hse-sync { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .75rem .9rem; border: 1px dashed rgba(var(--accent-rgb), .45); border-radius: 12px; background: rgba(var(--accent-rgb), .05); margin-bottom: 1rem; font-size: .8rem; color: var(--tx2); }
.hse-sync b { color: var(--tx1); }
.hse-sync .hse-sync-akhir { margin-left: auto; display: flex; gap: .4rem; flex-wrap: wrap; }
.hse-waktu { display: flex; flex-direction: column; font-size: .76rem; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hse-waktu small { color: var(--tx3); }
.hse-hint { font-size: .74rem; color: var(--tx3); }
.hse-cb-list { display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.hse-cb-list label { display: inline-flex; align-items: center; gap: .35rem; margin: 0; font-weight: 500; font-size: .8rem; color: var(--tx2); }

@media (max-width: 1399.98px) { .hse-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1199.98px) {
  .hse-mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hse-item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hse-item-grid .c2, .hse-item-grid .c3, .hse-item-grid .c6 { grid-column: span 2; }
}
@media (max-width: 767.98px) {
  .hse-mgrid, .hse-dl2 { grid-template-columns: minmax(0, 1fr); }
  .hse-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hse-score { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .hse-korban-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hse-korban-row > :first-child { grid-column: 1 / 3; }
  .hse-item-grid { grid-template-columns: minmax(0, 1fr); }
  .hse-item-grid .c2, .hse-item-grid .c3, .hse-item-grid .c6 { grid-column: span 1; }
  .hse-sync .hse-sync-akhir { margin-left: 0; }
}
@media print {
  .hse-quick, .hse-filter, .hse-aksi-bar, .hse-upload, .hse-lamp-del, .app-tools { display: none !important; }
}
.hse-spin { display: inline-block; animation: hse-putar 1s linear infinite; }
@keyframes hse-putar { to { transform: rotate(360deg); } }
.hse-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.hse-hero-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; font-size: 1.6rem; color: var(--w-tx); background: rgba(var(--w-rgb), .14); border: 1px solid rgba(var(--w-rgb), .4); }
.hse-hero-no { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--tx3); }
.hse-hero h2 { margin: .25rem 0 .3rem; font-size: 1.2rem; font-weight: 700; color: var(--tx1); overflow-wrap: anywhere; }
.hse-hero-sub { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem; color: var(--tx2); }
.hse-hero-sub span { display: inline-flex; align-items: center; gap: .35rem; }
.hse-hero-sub .bi { color: var(--accent); }
.hse-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
@media (max-width: 767.98px) { .hse-hero { grid-template-columns: auto minmax(0, 1fr); } .hse-hero-side { grid-column: 1 / 3; flex-direction: row; align-items: center; } }
.hse-thumb { display: block; width: 52px; height: 52px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel-2); }
.hse-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hse-thumb.is-kosong { display: grid; place-items: center; color: var(--tx3); font-size: 1.1rem; }
.hse-num-big { font-size: 1.6rem; font-weight: 700; color: var(--tx1); font-variant-numeric: tabular-nums; line-height: 1.1; }
#appMain > .nav-tabs-custom { margin-bottom: 1.1rem; padding: .9rem 1.1rem 0; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card-bg); box-shadow: var(--card-shadow); }
#appMain > .nav-tabs-custom > .tab-content.hse-tab-body { padding: 1rem 0 1.1rem; }
@media (max-width: 767.98px) { #appMain > .nav-tabs-custom { padding: .75rem .85rem 0; border-radius: 12px; } }
.hse-auth-features { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 600px; }
.hse-auth-features li { flex-direction: row; align-items: flex-start; gap: .75rem; padding: .9rem; }
.hse-auth-features li i { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(var(--w-rgb), .12); color: var(--w-tx); font-size: 1rem; }
.hse-auth-features li b { display: block; margin-bottom: .15rem; color: var(--tx1); font-size: .82rem; font-weight: 600; }
.auth-error.hse-auth-info { border-color: rgba(var(--vol-rgb), .45); background: rgba(var(--vol-rgb), .1); color: var(--txt-info); }
@media (max-width: 1100px) { .hse-auth-features { grid-template-columns: 1fr; max-width: 420px; } }
