:root {
  --bg: #f4f1ea; --panel: #ffffff; --ink: #1d2a28; --muted: #5d6b68; --line: #e3ded3;
  --brand: #0f5e52; --brand-dark: #0b3d36; --brand-soft: #d8ebe6; --accent: #f2b84b;
  --good: #1f7a4d; --good-soft: #def2e6; --bad: #b3261e; --bad-soft: #fbe3e0; --warn: #a15c00; --warn-soft: #fdf0d8;
  --info-soft: #e3edf9; --info: #1d4f91;
  --radius: 10px; --shadow: 0 1px 2px rgba(0,0,0,.06);
  /* Satu tema terang saja (keputusan pemilik 1 Nov 2026): tampilan sama di semua perangkat. */
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h2 { font-size: 1.35rem; }
h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .6rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; }

/* Shell */
.shell { display: grid; grid-template-columns: 220px 1fr; grid-template-rows: auto 1fr auto; min-height: 100vh; }
.top { grid-column: 1 / -1; position: sticky; top: 0; z-index: 30; background: var(--brand); color: #fff; display: flex; align-items: center; gap: 12px; padding: 10px 16px; flex-wrap: wrap; }
.logo { flex: none; width: 38px; height: 38px; border-radius: 8px; background: #fff; color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.co b { display: block; font-size: 1.05rem; letter-spacing: .02em; }
.co span { font-size: .75rem; opacity: .75; }
.when { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 6px 12px; font-size: .9rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: rgba(0,0,0,.18); border-radius: 8px; padding: 4px 10px; min-width: 96px; }
.chip small { display: block; font-size: .7rem; opacity: .75; }
.chip b { font-size: 1rem; }
.chip.neg b { color: #ffb4ab; }
.chip em { font-style: normal; font-size: .85rem; margin-left: 2px; }
.chip em.upc { color: #8be0b4; } .chip em.dn { color: #ffb4ab; } .chip em.hlt { color: var(--accent); }
.chip em.hl { background: var(--accent); color: #2b1d00; border-radius: 4px; padding: 0 5px; font-size: .75rem; }
.ctl { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.btn-next { background: var(--accent); color: #2b1d00; border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 700; }
.btn-save { background: #fff; color: var(--brand-dark); border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 700; }
.ctl .btn-save, .ctl .btn-lang, .ctl .bell { padding: 4px 7px; font-size: .78rem; border-radius: 6px; }
.btn-lang { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; padding: 10px 10px; font-weight: 700; font-size: .8rem; letter-spacing: .04em; }
.modal .btn-lang { color: var(--brand-dark, #0F5E52); border-color: currentColor; }
.btn-next:disabled { opacity: .5; cursor: not-allowed; }
.clock { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border-radius: 6px; padding: 3px 5px; }
.clk-day { color: #fff; font-weight: 700; font-size: .78rem; min-width: 48px; font-variant-numeric: tabular-nums; }
.clk-bar { width: 44px; height: 6px; background: rgba(255,255,255,.25); border-radius: 3px; overflow: hidden; }
.clk-bar i { display: block; height: 100%; background: var(--accent); transition: width .1s linear; }
.speed { display: flex; gap: 2px; }
.speed button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; padding: 2px 6px; font-weight: 700; font-size: .72rem; cursor: pointer; white-space: nowrap; }
.speed button.on { background: var(--accent); color: #2b1d00; border-color: var(--accent); }
.speed button:disabled { opacity: .4; cursor: not-allowed; }
.side { background: var(--brand-dark); color: #dfeeea; padding: 12px 10px; }
.side .sec { font-size: .7rem; letter-spacing: .1em; opacity: .6; margin: 14px 8px 6px; }
.nav { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; color: inherit; padding: 9px 10px; border-radius: 8px; }
.nav:hover { background: rgba(255,255,255,.06); }
.nav.on { background: var(--brand); color: #fff; font-weight: 600; }
.nav .badge { margin-left: auto; background: var(--accent); color: #2b1d00; border-radius: 99px; font-size: .7rem; padding: 0 7px; font-weight: 700; }
.nav .ico { width: 22px; text-align: center; flex: none; }
.nav .cnt { margin-left: auto; font-size: .75rem; opacity: .7; }
main { padding: 20px 24px 40px; min-width: 0; }
.side .foot { margin: 22px 8px 0; font-size: .75rem; opacity: .7; line-height: 1.6; }
.ticker .hint { margin-left: auto; opacity: .7; }
.ticker { grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 30; background: var(--brand-dark); color: #dfeeea; padding: 8px 16px; font-size: .85rem; display: flex; gap: 18px; overflow-x: auto; white-space: nowrap; }
.ticker b { color: var(--accent); }

/* Content */
.head { margin-bottom: 14px; }
.head p { margin: 4px 0 0; color: var(--muted); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.card { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.kpi small { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; font-size: 1.5rem; margin: 2px 0; }
.kpi .d { font-size: .8rem; }
.up { color: var(--good); } .down { color: var(--bad); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
td.r, th.r { text-align: right; }
.tag { display: inline-block; border-radius: 99px; padding: 1px 9px; font-size: .72rem; font-weight: 700; }
.tag.good { background: var(--good-soft); color: var(--good); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.info { background: var(--info-soft); color: var(--info); }
.tag.event { background: var(--warn-soft); color: var(--warn); }
.btn { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 8px; padding: 7px 12px; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--panel); color: var(--ink); padding: 6px 12px; }
.seg button.on { background: var(--brand); color: #fff; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.stepper b { min-width: 30px; text-align: center; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp { flex: 1; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.list li:last-child { border: 0; }
.note { background: var(--info-soft); color: var(--info); border-radius: 8px; padding: 10px 12px; font-size: .88rem; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.steps span { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); font-size: .8rem; }
.steps span.done { background: var(--good-soft); color: var(--good); border-color: transparent; }
.steps span.now { background: var(--brand); color: #fff; border-color: transparent; }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 6px; }
.chart .c { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.chart .c i { width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }
.chart .c i.neg { background: var(--bad); }
.chart .c span { font-size: .65rem; color: var(--muted); margin-top: 3px; }
.pcard h4 { margin: 0 0 2px; font-size: 1rem; }
.lot { font-size: .8rem; }

/* Beranda & layar mockup */
.g3b { grid-template-columns: 1.3fr 1fr 1fr; }
.g2w { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.chart2 { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.chart2 .c { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.chart2 .pair { flex: 1; width: 100%; display: flex; align-items: flex-end; gap: 3px; }
.chart2 .pair i { flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; }
.chart2 .c span { font-size: .7rem; color: var(--muted); margin-top: 3px; }
i.sale { background: #7fc3b2; } i.cash { background: var(--brand); } i.cash.neg { background: var(--bad); }
.legend { display: flex; gap: 14px; font-size: .75rem; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.rapor td:first-child { color: var(--ink); }
.big-b { font-weight: 800; padding: 12px 20px; letter-spacing: .02em; color: #fff; border: 0; }
.warn-b { background: #e8a10c; } .bad-b { background: #d32f2f; }
.quote { font-size: .92rem; margin: 0 0 6px; }
.floor { display: grid; grid-template-columns: 1fr 2.2fr 1.1fr; gap: 10px; border: 3px solid var(--brand); border-radius: 10px; padding: 10px; background: var(--brand-soft); }
.room { border: 2px solid var(--brand); border-radius: 8px; padding: 8px; background: var(--panel); }
.room h5 { margin: 0 0 6px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.room.wh, .room.fg { background: #fdf6e6; border-color: #e9d6a9; }
.floor .col { display: grid; gap: 10px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.arrow { color: var(--muted); }
.mblock { display: flex; flex-direction: column; text-align: left; gap: 1px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; background: var(--panel); color: var(--ink); font-size: .78rem; min-width: 120px; flex: 1; }
.mblock b { font-size: .82rem; }
button.mblock:hover { border-color: var(--brand); }
.mblock.on { border: 2px solid var(--brand); background: var(--brand-soft); }
.mblock.static { cursor: default; }
.pic-mb { display: block; width: 100%; height: 64px; object-fit: contain; margin-bottom: 4px; }
.room.qc .mblock, .room.ut .mblock { min-width: 0; }
.hero { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.hero > div { min-width: 0; }
.hero small { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hero h3 { margin: 2px 0 4px; }
.hero p { margin: 4px 0; }
.pic-hero { width: 300px; max-width: 45%; aspect-ratio: 8 / 5; object-fit: contain; flex: none; }
@media (max-width: 600px) { .hero { flex-direction: column; align-items: stretch; } .pic-hero { width: 100%; max-width: none; } }
.pic-detail { display: block; width: 140px; height: 140px; object-fit: contain; margin: 0 auto 8px; }
.impact { border-color: var(--brand); }

/* Gambar aset */
.pic-line { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: contain; margin-bottom: 8px; }
.pic-prod { float: right; width: 84px; height: 84px; object-fit: contain; margin: -4px -4px 4px 8px; }
.mrow { display: flex; align-items: center; gap: 8px; }
.pic-m { width: 44px; height: 44px; object-fit: contain; flex: none; }

/* Overlay */
.overlay { position: fixed; inset: 0; background: rgba(10,20,18,.6); display: grid; place-items: center; padding: 16px; z-index: 10; overflow-y: auto; }
.modal { background: var(--panel); color: var(--ink); border-radius: 14px; max-width: 980px; width: 100%; padding: 22px; max-height: calc(100vh - 32px); overflow-y: auto; }
.choice { display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; border: 2px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; background: var(--panel); color: var(--ink); text-align: left; width: 100%; }
.choice.on { border-color: var(--brand); background: var(--brand-soft); }
.choice:disabled { opacity: .5; cursor: not-allowed; }
.big { font-size: 2.2rem; font-weight: 800; }
input[type=text], input[type=number] { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); }
input[type=range] { width: 220px; }

@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g3, .g3b { grid-template-columns: 1fr 1fr; } .g2w { grid-template-columns: 1fr; } .floor { grid-template-columns: 1fr 1fr; } .floor .prod { grid-column: 1 / -1; order: -1; } }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .side .sec, .side .foot { display: none; }
  .nav { white-space: nowrap; width: auto; }
  main { padding: 16px; }
  .kpis, .g2, .g3, .g3b { grid-template-columns: 1fr 1fr; }
  .floor { grid-template-columns: 1fr; }
  .ctl { flex-wrap: wrap; }
  .ticker .hint { display: none; }
  .chips { margin-left: 0; width: 100%; }
  .chip { flex: 1; min-width: 0; }
  table { font-size: .82rem; }
  .hide-m { display: none; }
}
@media (max-width: 480px) { .kpis, .g2, .g3, .g3b { grid-template-columns: 1fr; } }

/* Pilihan mesin & OEE */
.seg.tiers button { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.seg.tiers button small { font-weight: 400; font-size: .72rem; opacity: .8; }
.kv { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.mtable td { vertical-align: middle; }

/* Grafik Beranda */
.dashhead { margin: 16px 0 10px; }
.seg.filt button { padding: 6px 12px; font-size: .8rem; }
.chartbox { position: relative; }
.lc { width: 100%; height: auto; display: block; overflow: visible; }
.lc .gl { stroke: #E6E2D8; stroke-width: 1; }
.lc .zl { stroke: #9AA5A2; stroke-width: 1; }
.lc .yl { font-size: 10px; fill: var(--muted); text-anchor: end; }
.lc .xl { font-size: 10px; fill: var(--muted); text-anchor: middle; }
.lc .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lc .ln.dash { stroke-dasharray: 5 4; }
.lc .hit { fill: transparent; }
.lc .xh { stroke: #1D2A28; stroke-width: 1; stroke-dasharray: 2 2; pointer-events: none; }
.lc .bh:hover rect:not(.hit) { opacity: .8; }
.legend i.lk { height: 3px; width: 14px; border-radius: 2px; vertical-align: 3px; }
.charttip { position: fixed; display: none; z-index: 50; pointer-events: none; background: #fff; color: #1D2A28; border: 1px solid #DDD8CC; border-radius: 8px; padding: 8px 10px; font-size: .78rem; box-shadow: 0 6px 18px rgba(0,0,0,.12); min-width: 150px; }
.charttip div { margin-top: 3px; }
.charttip i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: 3px; margin-right: 6px; }
.hero-num { display: flex; align-items: baseline; gap: 8px; }
.hero-num b { font-size: 2.2rem; color: var(--brand-dark); }

/* Lonceng notifikasi, toast, tombol lompat bulan */
.btn-skip { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 8px 10px; font-weight: 700; font-size: .8rem; white-space: nowrap; cursor: pointer; }
.btn-skip:disabled { opacity: .4; cursor: not-allowed; }
.bellwrap { position: relative; }
.bell { position: relative; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: 8px 10px; font-size: 1rem; cursor: pointer; }
.nbadge { position: absolute; top: -6px; right: -6px; background: #B3261E; color: #fff; border-radius: 999px; font-size: .65rem; font-weight: 700; padding: 1px 5px; }
.npanel { position: absolute; right: 0; top: calc(100% + 8px); width: min(420px, calc(100vw - 32px)); background: var(--panel); color: var(--ink); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.25); z-index: 40; }
.nhead { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.nlist { max-height: 60vh; overflow-y: auto; }
.nitem, .toast { display: flex; gap: 8px; align-items: flex-start; width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; font: inherit; font-size: .82rem; color: inherit; cursor: pointer; }
.nitem:hover { background: var(--brand-soft); }
.nitem.new { background: #FFF7E3; }
.toasts { position: fixed; right: 16px; top: 132px; z-index: 35; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--panel); border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.toast.bad { border-left: 4px solid #B3261E; } .toast.good { border-left: 4px solid #2F9A86; } .toast.event { border-left: 4px solid #F2B84B; }
@media (max-width: 760px) { .toasts { top: auto; bottom: 56px; } }

/* Kalender program vaksin */
.tablewrap { overflow-x: auto; }
.cal th.c, .cal td.c { text-align: center; padding: 4px 2px; min-width: 44px; }
.cal .now { background: var(--brand-soft); font-weight: 700; }
.bk { display: inline-block; min-width: 16px; padding: 0 3px; margin: 1px; border-radius: 4px; font-size: .68rem; font-weight: 700; color: #fff; text-align: center; }
.bk-pemerintah { background: #0F5E52; } .bk-unicef { background: #1D4F91; } .bk-oki { background: #7A5BA8; } .bk-swasta { background: #E07A1F; } .bk-haji { background: #8A6D1F; } .bk-domestik { background: #5D6B68; }

@media (max-width: 1500px) { .co span, .when .ev { display: none; } .top { gap: 8px; } }

/* Slot fasilitas (maks. 3 per perusahaan) */
.fslots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fslot { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--panel); text-align: left; font: inherit; color: inherit; }
.fslot.sel { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.fslot.empty { border-style: dashed; background: transparent; display: grid; place-items: center; min-height: 120px; color: var(--muted); cursor: pointer; }
.fslot .pic-slot, .fslot img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; max-height: 320px; object-fit: contain; border-radius: 8px; margin-bottom: 8px; background: var(--brand-soft); }
.factabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.factabs button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.factabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 760px) { .fslots { grid-template-columns: 1fr; } }

/* Simpan ke file */
.savebox { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filebtn { position: relative; overflow: hidden; display: inline-flex; align-items: center; cursor: pointer; }

/* Daftar produk ringkas yang membesar saat diklik */
.ptable { width: 100%; }
tr.prow { cursor: pointer; }
tr.prow:hover td { background: var(--brand-soft); }
tr.prow.open td { background: var(--brand-soft); font-weight: 600; }
tr.prow .pic-row { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; display: block; }
tr.pdetail > td { border-left: 3px solid var(--brand); background: var(--panel); padding: 12px; }
.regopt { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.mblock.missing { border-color: #B3261E; background: #FDECEA; }
.mblock.opt { border-style: dashed; }
tr.sel td { background: var(--brand-soft); }

/* Gudang: batang kapasitas bertumpuk (isi + barang datang) */
.bar.stack { display: flex; }
.bar.stack i.inc { background: repeating-linear-gradient(45deg, #F2B84B, #F2B84B 4px, #f7d38f 4px, #f7d38f 8px); }

/* Pangsa pasar pesaing */
.sharebar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; background: var(--line); }
.sharebar i { display: block; height: 100%; }
details.fold { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-top: 8px; background: var(--panel); }
details.fold summary { cursor: pointer; font-weight: 600; }
details.fold[open] summary { margin-bottom: 8px; }

/* Jadwal (Gantt) internal */
.gwrap { overflow-x: auto; margin-top: 8px; }
.gantt { position: relative; font-size: .78rem; }
.gr { display: flex; align-items: center; min-height: 24px; border-bottom: 1px solid #EEEAE0; }
.gr.sub .gl { padding-left: 18px; color: var(--muted); }
.gr.gh { background: var(--brand-soft); min-height: 28px; }
.gl { width: var(--gl); flex: none; padding: 2px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: sticky; left: 0; background: inherit; background-color: var(--panel); z-index: 2; }
.gr.gh .gl { background: var(--brand-soft); }
.gt { position: relative; height: 22px; flex: none; }
.ghead .gt { display: flex; height: 34px; }
.gm { width: 26px; flex: none; text-align: center; font-size: .66rem; color: var(--muted); border-left: 1px solid #F1EEE6; position: relative; padding-top: 16px; }
.gm.ys { border-left: 2px solid #C9C3B5; }
.gm b { position: absolute; top: 0; left: 3px; color: var(--ink); white-space: nowrap; font-size: .7rem; }
.gm.now { background: #FFF1CC; color: var(--ink); font-weight: 700; }
.gb { position: absolute; top: 3px; height: 16px; border-radius: 4px; display: block; overflow: hidden; cursor: default; }
.gb span { display: block; font-style: normal; font-size: .64rem; line-height: 16px; padding: 0 4px; white-space: nowrap; color: inherit; }
.gk { position: absolute; top: 5px; width: 12px; height: 12px; transform: rotate(45deg); border-radius: 2px; display: block; }
.g-done { background: #B9CCC5; color: #20332E; }
.g-run { background: var(--brand); color: #fff; }
.g-plan { background: transparent; border: 1.5px dashed var(--brand); color: var(--brand-dark); }
.g-wait { background: repeating-linear-gradient(45deg, #F2B84B, #F2B84B 5px, #F8D592 5px, #F8D592 10px); color: #3A2A00; }
.g-block { background: repeating-linear-gradient(45deg, #C7473F, #C7473F 5px, #E08A84 5px, #E08A84 10px); color: #fff; }
.gk.g-plan { background: #fff; }
.gnow { position: absolute; top: 0; bottom: 0; width: 2px; background: #E07A1F; z-index: 1; pointer-events: none; }
.glegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; }
.glegend i.lg { position: static; display: inline-block; width: 22px; height: 12px; vertical-align: -1px; margin-right: 6px; }
.glegend i.gk.lg { width: 10px; height: 10px; }
.bns .bn { border-left: 4px solid #2F9A86; }
.bns .bn.hot { border-left-color: #C7473F; }
.bn small { display: block; color: var(--muted); }
.bn b { display: block; margin: 4px 0; }
.stars { color: #E0A21F; letter-spacing: 1px; }
.chip .stars { color: #FFD166; }
.stars.big { font-size: 1.3rem; }
.choice.locked { opacity: .55; }

/* SDM & Karyawan */
.por { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; border: 2px solid; overflow: hidden; vertical-align: middle; }
.por i { font-style: normal; font-weight: 800; font-size: .9rem; }
.por img { position: absolute; left: -25%; top: -12%; width: 150%; height: 150%; max-width: none; object-fit: cover; background: var(--panel); }  /* potret 1024: zoom ke kepala dan bahu */
.por-op { width: 48px; height: 48px; object-fit: contain; flex: none; }
.staff { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.staff:last-child { border-bottom: 0; }
.staff .who { flex: 1; min-width: 0; }
.staff.empty .who b { color: var(--muted); }
.morale { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin: 6px 0; }
.mbar { flex: 1; min-width: 80px; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.mbar i { display: block; height: 100%; }
.mbar i.good { background: var(--good); } .mbar i.warn { background: var(--accent); } .mbar i.bad { background: var(--bad); }
.stars-s { color: #c98a10; letter-spacing: 1px; white-space: nowrap; }
table.skills td { padding: 2px 6px 2px 0; border: 0; font-size: .85rem; }
.mini-team { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.overlay.pick { z-index: 40; }
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 10px; }
.cand { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; align-items: flex-start; }
.cand .who { flex: 1; min-width: 0; }
@media (max-width: 600px) { .cand { flex-direction: column; } .cands { grid-template-columns: 1fr; } }

/* Masukan pemilik 2 Nov 2026: tombol bantuan, bonus tim, tolak otomatis, grafik keuangan */
.btn-help { background: #fff; color: var(--brand-dark, #0F5E52); border: 0; border-radius: 50%; width: 26px; height: 26px; font-weight: 800; font-size: .9rem; line-height: 1; padding: 0; cursor: pointer; }
.overlay.help { z-index: 40; }
.overlay.help .modal { max-width: 980px; width: 100%; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 10px; }
.hsec { border: 1px solid var(--line, #E4E8EA); border-radius: 10px; padding: 10px 12px; }
.hsec .list li { margin: 4px 0; }
.bonus { border-top: 1px dashed var(--line, #E4E8EA); margin-top: 10px; padding-top: 10px; }
.bonus .row.wrap { flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.bonus .btn em { font-style: normal; font-weight: 700; margin-left: 4px; }
.bonus details { margin-top: 6px; }
.autorej label { gap: 8px; cursor: pointer; }
table.fin td .lk { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* Wizard fasilitas dan menu kelompok (2 Nov 2026) */
.overlay.wiz { z-index: 40; }
.overlay.wiz .modal { max-width: 860px; width: 100%; }
.wpills { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.wpill { border: 1px solid var(--line, #E4E8EA); background: #fff; border-radius: 99px; padding: 4px 10px; font-size: .8rem; cursor: pointer; }
.wpill.on { background: var(--brand-dark, #0F5E52); color: #fff; border-color: transparent; }
.wpill.ok:not(.on) { color: var(--brand, #2F9A86); font-weight: 700; }
.wbody { min-height: 160px; }
.wrow { padding: 8px 0; border-bottom: 1px solid var(--line, #E4E8EA); }
.wrow .row.wrap { flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wrow .btn .por { margin-right: 4px; }
.wfoot { margin-top: 14px; }
.nav.sub { padding: 6px 10px 6px 26px; font-size: .88rem; opacity: .9; }
.nav.grp { font-weight: 700; margin-top: 4px; }
.subs[hidden] { display: none; }
.g3 td.num { white-space: nowrap; }

/* ---------- Mode online (server MMO): layar masuk, pengumuman, akun */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.login { max-width: 440px; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; text-align: center; box-sizing: border-box; }
.login h1 { font-size: 1.4rem; margin: 0 0 8px; color: var(--brand-dark); }
.login #gbtn { display: flex; justify-content: center; margin: 18px 0; min-height: 44px; }
.login .dev { margin: 12px 0; } .login .dev input { padding: 8px; border: 1px solid var(--line); border-radius: 8px; width: 60%; }
.login .small { font-size: .8rem; } .login .lang { margin: 12px 0 0; }
#pis-online { position: fixed; left: 12px; bottom: 44px; z-index: 60; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; max-width: min(560px, calc(100vw - 24px)); }
#pis-online > * { pointer-events: auto; }
#pis-online .ann { background: var(--accent); color: #2b1d00; border-radius: 10px; padding: 8px 12px; font-weight: 600; box-shadow: 0 2px 8px #0002; }
#pis-online .ann button, #pis-online .acc button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
#pis-online .acc { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px 3px 4px; font-size: .8rem; box-shadow: 0 1px 4px #0001; }
#pis-online .acc .who { display: flex; align-items: center; gap: 6px; max-width: 90px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#pis-online .acc img { width: 22px; height: 22px; border-radius: 50%; }
#pis-online .acc a { color: var(--brand); font-weight: 600; }
#pis-online .acc button { color: var(--muted); text-decoration: underline; }
#pis-online .st { color: #a33; }
