:root {
  --bg: #f4f6f9; --card: #fff; --text: #1f2933; --muted: #6b7785; --line: #dde2e8;
  --primary: #1f3a68; --primary-2: #2c5299; --accent: #f5b301;
  --green: #1e8e4e; --green-bg: #e3f5ea; --red: #c0392b; --red-bg: #fbe7e5;
  --amber: #a86b00; --amber-bg: #fff3d6; --gray-bg: #eceff3;
  --form-blue: #2f5597; --form-navy: #12465f; --band: #d0d0d0;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 14px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2 { font-size: 15px; margin: 0 0 12px; color: var(--primary); }
h3 { font-size: 13px; margin: 14px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.topbar { display: flex; align-items: center; gap: 24px; padding: 0 20px; height: 54px; background: #fff; border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--primary); }
.brand:hover { text-decoration: none; }
.topbar nav { display: flex; gap: 4px; flex: 1; }
.topbar nav a { padding: 6px 12px; border-radius: 6px; color: var(--text); }
.topbar nav a.active, .topbar nav a:hover { background: var(--gray-bg); text-decoration: none; }
.who { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.who small { display: block; color: var(--muted); font-size: 11px; }

/* ---- Tata letak dengan menu samping (rel ikon + panel menu), mengikuti acuan workspace ---- */
.app { display: flex; min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; width: 60px; flex: none; background: #0f2228; display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 10px 0 12px; z-index: 30; }
.rail-logo { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.rail-logo:hover { background: #1d3540; }
.rail-logo .pf-mark { width: 36px; }
.rail-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #9fb0b8; }
.rail-btn:hover { background: #1d3540; color: #fff; text-decoration: none; }
.rail-btn.active { background: #24424e; color: #fff; }
.rail-btn .ic { width: 21px; height: 21px; }
.rail-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #e5484d; color: #fff;
  font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #0f2228; }
.rail-space { flex: 1; }
.rail-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #2c5299, #f5b301); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 4px; }
.rail-avatar:hover { text-decoration: none; }

.side { position: sticky; top: 0; height: 100vh; width: 248px; flex: none; background: #1b1d22; color: #e6e8eb; display: flex; flex-direction: column;
  border-right: 1px solid #262930; z-index: 25; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 12px 18px; font-size: 16px; }
.side-tools { display: flex; gap: 4px; }
.side-tool { width: 30px; height: 30px; border: 0; background: transparent; border-radius: 8px; color: #b9c0ca; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.side-tool:hover { background: #2a2d35; color: #fff; text-decoration: none; }
.side-tool .ic { width: 18px; height: 18px; }
.side-scroll { flex: 1; overflow-y: auto; padding: 0 8px 16px; scrollbar-width: thin; scrollbar-color: #3a3e47 transparent; }
.side-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; color: #e6e8eb; font-size: 14.5px; margin-bottom: 2px; }
.side-item:hover { background: #2a2d35; text-decoration: none; }
.side-item.active { background: #06b6d4; color: #fff; }
.side-item.active .side-ic { color: #fff !important; }
.side-item.active .side-count { color: #e0f9ff; }
.side-item.small { font-size: 13.5px; padding: 7px 10px; }
.side-ic { display: flex; flex: none; }
.side-ic .ic { width: 19px; height: 19px; }
.side-item.small .side-ic .ic { width: 17px; height: 17px; }
.side-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-count { font-size: 12px; color: #8b93a1; }
.side-count.hot { background: #e5484d; color: #fff; border-radius: 10px; padding: 0 7px; font-weight: 700; }
.side-sep { height: 1px; background: #2c3038; margin: 12px 10px; }
.side-sec-head { width: 100%; display: flex; align-items: center; justify-content: space-between; border: 0; background: transparent; color: #8b93a1;
  font: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; padding: 4px 10px 8px; cursor: pointer; }
.side-sec-head span { display: flex; align-items: center; gap: 8px; }
.side-sec-head .ic { width: 15px; height: 15px; }
.side-sec-head > .ic { transition: transform .2s; }
.side-section.closed .side-sec-head > .ic { transform: rotate(-90deg); }
.side-section.closed .side-sec-body { display: none; }
.side-empty { color: #8b93a1; font-size: 12.5px; padding: 0 10px; margin: 0; }
/* Akun di browser ini (beberapa akun sekaligus, tiap akun di tab sendiri) */
.acct-av { flex: none; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #f5b301, #b7791f); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.acct-other .acct-av { background: #3b4150; }
.side-item .side-label small { display: block; color: #8b93a1; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.acct-current { cursor: default; }
.acct-current:hover { background: none; }
.acct-add { width: 100%; background: none; border: 1px dashed #3b4150; font: inherit; color: #e6e8eb; cursor: pointer; text-align: left; margin-top: 4px; }
.conflict-alert { display: flex; align-items: center; gap: 12px; justify-content: space-between; position: sticky; top: 8px; z-index: 6; }
.c-amber { color: #f5b301; } .c-green { color: #34c77b; } .c-violet { color: #a78bfa; } .c-teal { color: #2dd4bf; } .c-pink { color: #f472b6; }
.c-cyan { color: #22d3ee; } .c-sky { color: #60a5fa; } .c-red { color: #f87171; } .c-slate { color: #94a3b8; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-main > .container { width: 100%; min-width: 0; box-sizing: border-box; }
.appbar { position: sticky; top: 0; z-index: 20; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 20px; background: #fff;
  border-bottom: 3px solid var(--accent); }
.appbar-btn { display: none; width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 8px; color: var(--primary);
  align-items: center; justify-content: center; cursor: pointer; }
.appbar-btn .ic { width: 20px; height: 20px; }
.appbar-logo { height: 20px; }
.appbar-title { font-weight: 600; color: var(--primary); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-title span { font-weight: 400; color: var(--muted); }
.appbar-user { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; line-height: 1.25; }
.appbar-user small { color: var(--muted); font-size: 11px; }
.side-backdrop { display: none; }

/* menu diciutkan: tinggal rel ikon */
html.side-collapsed .side { display: none; }
html.side-collapsed .appbar-btn { display: flex; }

@media (max-width: 900px) {
  .side { position: fixed; left: 60px; top: 0; transform: translateX(-120%); transition: transform .2s; box-shadow: 8px 0 24px rgba(0,0,0,.3); }
  html.side-open .side { transform: none; display: flex; }
  html.side-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 24; }
  html.side-collapsed .side { display: flex; }
  .appbar-btn { display: flex; }
  .appbar-title span, .appbar-user small { display: none; }
}
@media (max-width: 560px) {
  .rail { width: 52px; } .rail-btn { width: 38px; height: 38px; } .side { left: 52px; }
  .appbar { padding: 0 12px; } .appbar-user { display: none; }
}
.container { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; }
.card.narrow { max-width: 420px; }

.btn { display: inline-block; padding: 8px 16px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--gray-bg); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: #17733f; }
.btn-red { background: #fff; border-color: var(--red); color: var(--red); }
.btn-red:hover { background: var(--red-bg); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-row.between { justify-content: space-between; }
.icon-btn { border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; padding: 2px 6px; }
.icon-btn:hover { color: var(--red); }

label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
label.inline { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
label.check, label.radio { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font: inherit; color: var(--text); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid #c9d7f0; border-color: var(--primary-2); }
input[type=checkbox], input[type=radio] { width: auto; display: inline; margin: 0; }
label.inline input { margin: 0; width: auto; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid2.tight { gap: 0 10px; }
.grid-note { display: grid; grid-template-columns: 1fr 200px; gap: 16px; }
.grid-side { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }

.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-ok { background: var(--green-bg); color: #145c33; }
.alert-err { background: var(--red-bg); color: #8e271c; }
.alert-warn { background: var(--amber-bg); color: var(--amber); }

.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-gray { background: var(--gray-bg); color: #4a5563; }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.mark { font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.mark-ok { background: var(--green-bg); color: var(--green); }
.mark-nok { background: var(--red-bg); color: var(--red); }
.mark.big { font-size: 22px; padding: 10px 24px; }
.pill { background: var(--primary); color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 7px; margin-left: 4px; }

.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text); border-top: 3px solid var(--line); }
.stat:hover { text-decoration: none; border-color: var(--primary-2); }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat-amber { border-top-color: var(--accent); }
.stat-green { border-top-color: var(--green); }
.stat-red { border-top-color: var(--red); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px; }
.filters input[name=s] { flex: 1; min-width: 220px; margin: 0; }
.filters select { width: auto; margin: 0; }

.table-wrap { overflow-x: auto; }
.card.table-wrap { padding: 0; }
table { border-collapse: collapse; width: 100%; }
table.list th, table.list td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { font-size: 12px; color: var(--muted); font-weight: 600; background: #fafbfc; white-space: nowrap; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr:hover td { background: #fafbfd; }
table.list tr.inactive td { color: var(--muted); }
td.actions { white-space: nowrap; text-align: right; }
td.actions a { margin-left: 10px; }
td.empty { text-align: center; color: var(--muted); padding: 30px; }

.grid-table { min-width: 720px; }
.grid-table th, .grid-table td { border: 1px solid var(--line); padding: 4px; text-align: center; }
.grid-table th { background: #eef2f8; font-size: 12px; color: var(--primary); padding: 7px 6px; }
.grid-table td input { margin: 0; border-color: transparent; background: #fbfcfe; }
.grid-table td input:hover { border-color: var(--line); }
.grid-table td input.num { text-align: center; }
.grid-table td.avg { font-weight: 700; background: #fff9e6; min-width: 90px; }
.grid-table.ro td { padding: 7px 8px; text-align: left; }
.grid-table.ro td.c, .grid-table.ro tr.c td { text-align: center; }
.w-param { width: 24%; } .w-num { width: 11%; } .w-avg { width: 11%; }
.w-cat { width: 15%; } .w-del { width: 34px; }
.grid-table select { margin: 0; padding: 6px 6px; border-color: transparent; background: #fbfcfe; }
.grid-table select:hover { border-color: var(--line); }
.check-table { min-width: 860px; }
/* Tabel bergaya formulir referensi: header biru, baris pita abu-abu per komponen */
.grid-table th { background: var(--form-blue); color: #fff; border-color: #24447c; font-size: 13px; }
.fill-table th, .ro-fill th { background: var(--form-navy); border-color: #0c3346; }
.check-table td.param { text-align: left; }
.check-table td.locked { padding: 6px 10px; white-space: nowrap; user-select: none; background: #f6f7fa; }
.check-table .lock { font-size: 11px; opacity: .45; margin-right: 6px; }
.check-table td.avg.na { color: #b3bcc8; background: #fafbfc; font-weight: 400; }
.check-table tr.add-line td { text-align: left; padding: 2px 8px 6px; background: #fff; }
.check-table input.txt { text-align: center; }
.check-table tr.band td, .grid-table.ro tr.band td { background: var(--band); font-weight: 700; text-align: left; padding: 6px 8px; }
.band-inner { display: flex; align-items: center; gap: 12px; }
.band-inner .komp-name { max-width: 280px; font-weight: 700; background: #fff; border-color: #b9b9b9; }
.check-table tbody.komp-block + tbody.komp-block tr:first-child td { border-top: 2px solid #9aa3b0; }
.fill-table tbody.conv th { font-size: 13px; }
.fill-table tbody.conv th small { font-weight: 400; opacity: .8; margin-left: 6px; }
.grid-table td.avg.big { font-size: 18px; padding: 10px; }
.w-spec { width: 16%; }
.check-table { table-layout: fixed; }
.check-table .w-param { width: 26%; } .check-table .w-spec { width: 18%; } .check-table .w-num { width: 13%; }
.check-table .w-avg { width: 13%; } .check-table .w-del { width: 4%; }
#fungTable .w-param { width: 44%; }
#dimTable .w-cat { width: 13%; } #dimTable .w-param { width: 23%; } #dimTable .w-spec { width: 13%; }
#dimTable .w-num { width: 12%; } #dimTable .w-avg { width: 11%; }
.check-table td.cat { font-weight: 600; color: var(--primary); }
/* nama kategori dimensi hanya tampil di baris pertama kelompoknya */
.check-table tr.is-multi + tr.is-multi td.cat { color: transparent; border-top-color: #f6f7fa; }
.check-table tr.is-multi + tr.is-multi td.cat .lock { visibility: hidden; }
.check-table td.locked { color: var(--primary); font-weight: 600; }
.grid-table.ro td.cat { background: #f6f7fa; color: var(--primary); font-weight: 600; vertical-align: middle; }
.link-btn { border: 0; background: none; color: var(--primary-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 0; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--red); font-weight: 500; }
.grid-table.ro td.span { text-align: center; }
.kv-plain { display: grid; grid-template-columns: 230px 1fr; gap: 6px 12px; margin: 0; }
.kv-plain dt { font-weight: 700; }
.kv-plain dd { margin: 0; white-space: pre-line; }
.kms-table td.lbl { background: var(--form-blue); color: #fff; font-weight: 700; }
.kms-table td.sub { text-align: center; }
.kms-table td.val { text-align: center; }

dl.kv { display: grid; grid-template-columns: 280px 1fr; margin: 0; }
dl.kv dt, dl.kv dd { padding: 7px 0; border-bottom: 1px solid #f0f2f5; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { font-weight: 500; }
.note-box { min-height: 80px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; white-space: normal; }
.mark-box { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; }
.mark-pick { border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; margin: 0; }
.mark-pick legend { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.mark-pick .radio { padding: 8px 10px; border-radius: 6px; margin: 4px 0; cursor: pointer; }
.mark-pick .radio.ok:has(input:checked) { background: var(--green-bg); color: var(--green); font-weight: 700; }
.mark-pick .radio.nok:has(input:checked) { background: var(--red-bg); color: var(--red); font-weight: 700; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 12px; }
.photo { margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fafbfc; }
.photo img { width: 100%; height: 170px; object-fit: contain; background: #fff; border-radius: 4px; display: block; }
.photo input { margin-top: 6px; }
.photo figcaption { font-size: 12px; margin-top: 6px; text-align: center; }
.photo .small { margin: 6px 0 0; font-weight: 400; }
.file-btn { margin-bottom: 0; color: var(--text); font-size: 14px; }
.profile { align-items: start; }
.date-dmy { display: flex; align-items: stretch; margin-top: 4px; position: relative; }
.date-dmy input { margin: 0; border-radius: 6px 0 0 6px; }
.date-dmy .date-btn { border: 1px solid var(--line); border-left: 0; background: #fff; border-radius: 0 6px 6px 0; cursor: pointer; padding: 0 10px; }
.date-dmy .date-native { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; padding: 0; border: 0; }
.dim-combo .dim-param { display: none; margin-top: 4px; }
.dim-combo.is-manual .dim-param { display: block; }
.dim-combo .dim-select { width: 100%; }
.grid-table td select.choice { margin: 0; text-align: center; border-color: transparent; background: #fbfcfe; padding: 6px 4px; }
.grid-table td select.choice:hover { border-color: var(--line); }
.check-table td.avg.concl { font-weight: 700; color: var(--green); background: #f3faf5; }
.check-table td.avg.concl.bad { color: var(--red); background: var(--red-bg); }
/* Pratinjau dokumen spesifikasi (mengikuti FR.RND.089-01) */
.spec-doc { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 28px 32px; margin-bottom: 16px; max-width: 900px; margin-left: auto; margin-right: auto; box-shadow: 0 2px 10px rgba(0,0,0,.06); font-size: 14px; }
.spec-doc table { border-collapse: collapse; width: 100%; }
.spec-doc td, .spec-doc th { border: 1px solid #222; padding: 6px 8px; vertical-align: top; }
.sd-head .sd-bar td { background: #042c62; height: 14px; padding: 0; }
.sd-head .sd-logo { width: 23%; text-align: center; vertical-align: middle; }
.sd-head .sd-logo img { max-width: 80%; }
.sd-head .sd-title { text-align: center; }
.sd-head .sd-title b { display: block; margin-bottom: 6px; }
.sd-head .sd-title strong { font-size: 15px; }
.sd-head .sd-right { width: 25%; }
.sd-head .sd-code { border-bottom: 1px solid #222; margin: -6px -8px 6px; padding: 4px 8px; }
.sd-head .c { text-align: center; }
.sd-sign td { text-align: center; height: 120px; width: 25%; }
.sd-sig { height: 60px; display: flex; align-items: center; justify-content: center; }
.sd-sig img { max-height: 56px; max-width: 100%; }
.stamp-ok { border: 2px solid var(--green); color: var(--green); font-weight: 700; padding: 3px 10px; font-size: 12px; }
.sd-date td { padding: 4px 6px; }
.sd-foto { border: 1px solid #222; margin: 24px 0 14px; min-height: 200px; padding: 8px 14px; text-align: center; }
.sd-foto span { display: block; text-align: left; }
.sd-foto img { max-height: 280px; max-width: 70%; margin: 10px auto; }
.sd-id td { text-align: center; padding: 14px 8px; width: 50%; vertical-align: middle; }
.sd-param { margin-top: 28px; }
.sd-param th, .sd-rev th { background: #042c62; color: #fff; font-weight: 500; border-color: #042c62; }
.sd-param td.c { text-align: center; vertical-align: middle; }
.sd-char { width: 66% !important; margin-top: 10px; }
.sd-char td { width: 50%; }
.sd-rev-title { margin: 20px 0 8px 8px; font-size: 15px; }
.sd-rev { width: 92% !important; margin-left: 4%; }
.sd-rev th { background: #073761; }
.sd-rev td { text-align: center; }
.sd-footer { display: block; width: 100%; margin-top: 30px; }
/* ---- Tampilan form lebih rapi ---- */
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 16px; }
.form-sections { counter-reset: sec; }
.form-sections > section.card > h2 { counter-increment: sec; display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid #edf0f4; font-size: 16px; }
.form-sections > section.card > h2::before { content: counter(sec); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.form-sections > section.card { padding: 20px 22px; }
.form-sections > section.card > p.muted.small { margin-top: -6px; margin-bottom: 12px; }
/* isian di dalam tabel tampil sebagai kotak isian yang jelas */
.check-table td input, .check-table td select, .check-table td textarea { background: #fff !important; border: 1px solid #e1e6ee !important; border-radius: 5px; }
.check-table td input:focus, .check-table td select:focus { border-color: var(--primary-2) !important; }
.check-table td { padding: 5px; }
.check-table tbody tr:hover td:not(.avg):not(.locked):not(.cat) { background: #fbfcfe; }
.check-table td.locked, .check-table td.cat { background: #f4f6fa; }
.fill-table td input { text-align: center; }
.report-no-row { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 4px 16px; align-items: end; margin-bottom: 4px; }
.report-no-row input { font-weight: 700; letter-spacing: .02em; }
.report-no-row p { margin: 0 0 14px; }
@media (max-width: 560px) { .report-no-row { grid-template-columns: 1fr; } }
.fill-table td.conv-cell input { max-width: 220px; margin: 0 auto; display: block; font-size: 18px; font-weight: 700; }
.fill-table .w-stab { min-width: 150px; }
.stab-cell .dim-select { font-size: 13px; }
.stab-cell > .num { margin-top: 4px; }
.ro-fill th small { font-weight: 400; opacity: .8; margin-left: 6px; }
.d-block { display: block; }
.th-sub { display: block; font-weight: 400; font-size: 11px; opacity: .85; margin-top: 2px; }
#fungTable .w-param { width: 38%; }
#fungTable th.w-del, #fungTable td.del { display: none; } /* kolom tombol hapus tidak dipakai di tabel fungsional */
#fungTable td.locked { padding: 10px 12px; }
#fungTable td input.single, #fungTable td select.single { text-align: left; padding: 8px 10px; }
.fung-ro .w-fp { width: 40%; }
.fung-ro td { padding: 9px 12px !important; }
.grid-table.ro td.bad { color: var(--red); background: var(--red-bg); font-weight: 600; }
.profile-side { display: flex; flex-direction: column; }
.name-preview { margin: 4px 0 14px; }
.sign.mini { max-width: 260px; margin-top: 6px; padding: 10px; gap: 2px; }
.sign.mini img { max-height: 40px; max-width: 160px; margin: 0 auto 4px; object-fit: contain; }
.login-box .remember { font-size: 13px; font-weight: 500; margin: 2px 0 14px; }
.login-note { margin: 12px 0 0; }
/* ---- Login pertama & tanda tangan ---- */
.welcome { max-width: 620px; margin: 30px auto; padding: 28px 32px; }
.welcome-head { text-align: center; margin-bottom: 18px; }
.welcome-head h1 { justify-content: center; margin: 12px 0 6px; font-size: 24px; }
.welcome-steps { list-style: none; display: flex; justify-content: center; gap: 40px; padding: 0; margin: 0 0 22px; }
.welcome-steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.welcome-steps li span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #d5dbe4; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.welcome-steps li.now { color: var(--primary); }
.welcome-steps li.now span { border-color: var(--primary); background: var(--primary); color: #fff; }
.welcome-steps li.done { color: var(--green); }
.welcome-steps li.done span { border-color: var(--green); background: var(--green); color: #fff; }
.welcome form h2 { margin-bottom: 4px; }
.sig-tabs { display: flex; gap: 6px; margin: 10px 0; }
.sig-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: 13px; }
.sig-tabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.sig-pad { width: 100%; height: auto; aspect-ratio: 600 / 220; border: 2px dashed #c9d3e3; border-radius: 10px; background: #fff; cursor: crosshair; touch-action: none; display: block; }
.sig-pad.inked { border-style: solid; border-color: var(--primary-2); }
.sig-pad-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.sig-current { display: flex; align-items: center; gap: 14px; padding: 8px 12px; background: #fafbfd; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; }
.sig-current img { max-height: 50px; max-width: 200px; }
/* Tanda tangan di kotak Mark */
.mark-sign { margin-top: 10px; text-align: center; font-size: 12px; color: var(--muted); }
.mark-sign img { display: block; max-height: 46px; max-width: 160px; margin: 4px auto 2px; }
.mark-box { flex-direction: column; padding: 10px; }
/* ---- Pop-up ucapan selamat ---- */
.celebrate { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(10, 25, 50, .55); backdrop-filter: blur(3px); animation: cel-fade .25s ease-out; }
.celebrate.closing { animation: cel-fade-out .2s ease-in forwards; }
.celebrate .confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.celebrate-card { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 20px; overflow: hidden; text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3); padding: 0 28px 24px; animation: cel-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.celebrate-top { margin: 0 -28px 18px; padding: 30px 0 22px; position: relative;
  background: linear-gradient(135deg, #1f3a68 0%, #2c5299 55%, #f5b301 140%); }
.celebrate-icon { width: 88px; height: 88px; margin: 0 auto; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 44px; box-shadow: 0 0 0 8px rgba(255, 255, 255, .25), 0 10px 25px rgba(0, 0, 0, .25); animation: cel-bounce 1.2s ease-in-out .4s 2; }
.celebrate-sparkles i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #f5b301; opacity: 0; animation: cel-spark 1.6s ease-out .3s infinite; }
.celebrate-sparkles i:nth-child(1) { left: 22%; top: 30%; }
.celebrate-sparkles i:nth-child(2) { left: 75%; top: 25%; background: #fff; animation-delay: .6s; }
.celebrate-sparkles i:nth-child(3) { left: 30%; top: 70%; background: #7fd3a0; animation-delay: .9s; }
.celebrate-sparkles i:nth-child(4) { left: 68%; top: 68%; animation-delay: 1.2s; }
.celebrate-sparkles i:nth-child(5) { left: 12%; top: 55%; background: #fff; animation-delay: .4s; }
.celebrate-sparkles i:nth-child(6) { left: 86%; top: 50%; background: #7fd3a0; animation-delay: 1s; }
.celebrate-card h2 { font-size: 22px; color: var(--primary); margin: 0 0 8px; justify-content: center; }
.celebrate-card p { color: #4a5563; margin: 0 0 18px; line-height: 1.55; }
.celebrate-steps { list-style: none; display: flex; padding: 0; margin: 0 0 22px; counter-reset: st; }
.celebrate-steps li { flex: 1; position: relative; font-size: 11.5px; color: var(--muted); padding-top: 34px; }
.celebrate-steps li span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #d5dbe4; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; z-index: 1; }
.celebrate-steps li::before { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 3px; background: #e3e8ef; }
.celebrate-steps li:first-child::before { display: none; }
.celebrate-steps li.done { color: var(--green); font-weight: 600; }
.celebrate-steps li.done span { background: var(--green); border-color: var(--green); color: #fff; animation: cel-pop .4s ease-out both; }
.celebrate-steps li.done::before { background: var(--green); }
.celebrate-steps li.next { color: var(--primary); font-weight: 600; }
.celebrate-steps li.next span { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 179, 1, .25); animation: cel-pulse 1.4s ease-in-out infinite; }
.celebrate-steps li:nth-child(2).done span { animation-delay: .25s; }
.celebrate-steps li:nth-child(3).done span { animation-delay: .5s; }
.celebrate-steps li:nth-child(4).done span { animation-delay: .75s; }
.celebrate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.celebrate-actions .btn { min-width: 140px; padding: 10px 18px; }
@keyframes cel-fade { from { opacity: 0; } }
@keyframes cel-fade-out { to { opacity: 0; } }
@keyframes cel-pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes cel-bounce { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-10px) rotate(-8deg); } 60% { transform: translateY(0) rotate(6deg); } }
@keyframes cel-spark { 0% { opacity: 0; transform: scale(.2); } 30% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(.4) translateY(-14px); } }
@keyframes cel-pulse { 50% { box-shadow: 0 0 0 8px rgba(245, 179, 1, .12); } }
@media (prefers-reduced-motion: reduce) {
  .celebrate, .celebrate-card, .celebrate-icon, .celebrate-sparkles i, .celebrate-steps li span { animation: none !important; }
}
.item-code-bar { display: flex; align-items: center; gap: 14px; padding: 10px 18px; }
.item-code-bar form input { width: 240px; margin: 0; }
/* Perbandingan hasil pemeriksaan vs spec */
.compare { border-top: 4px solid var(--primary); }
.cmp-banner { padding: 10px 14px; border-radius: 8px; margin: 4px 0 12px; }
.cmp-banner.warn { background: var(--amber-bg); color: #7a4d00; }
.cmp-banner.ok { background: var(--green-bg); color: #145c33; }
.cmp-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.chip { padding: 4px 10px; border-radius: 20px; font-size: 12.5px; background: var(--gray-bg); }
.chip b { margin-left: 4px; }
.chip.ok { background: var(--green-bg); color: var(--green); }
.chip.warn { background: var(--amber-bg); color: var(--amber); }
.chip.bad { background: var(--red-bg); color: var(--red); }
.cmp-filter { margin: 0 0 0 auto; font-size: 13px; }
.cmp-table { min-width: 900px; }
.cmp-table td { padding: 6px 8px !important; }
.cmp-table td.out { background: var(--red-bg); color: var(--red); font-weight: 700; }
.cmp-table td.avg { background: #fff9e6; }
.cmp-table td.avg.out { background: var(--red-bg); }
.cmp-table .cmp-status { white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.cmp-table tr.st-ok .cmp-status { color: var(--green); }
.cmp-table tr.st-warn .cmp-status { color: var(--amber); }
.cmp-table tr.st-bad .cmp-status { color: var(--red); }
.cmp-table tr.st-na .cmp-status, .cmp-table tr.st-nomatch .cmp-status { color: var(--muted); }
.cmp-table tr.st-warn td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.cmp-table tr.st-bad td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.compare.only-issues tr.st-ok, .compare.only-issues tr.st-na { display: none; }
.cmp-extra { display: grid; grid-template-columns: 160px 1fr 1fr; gap: 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf0f4; }
.cmp-extra h3 { margin-top: 0; }
.fung-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.fung-list li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid #f0f2f5; }
.txt-bad { color: var(--red); }
.cmp-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.cmp-photos img { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
@media (max-width: 860px) { .cmp-extra { grid-template-columns: 1fr; } }
.range-help { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: #fafbfd; }
.range-help summary { cursor: pointer; font-weight: 600; color: var(--primary); font-size: 13px; }
.range-help table { margin-top: 8px; width: auto; font-size: 13px; }
.range-help th, .range-help td { padding: 4px 14px 4px 0; text-align: left; border-bottom: 1px solid #edf0f4; }
.range-help code { background: #eef2f8; padding: 1px 5px; border-radius: 4px; }
.spec-table td input.conform, .sd-param td.conform { color: var(--green); font-weight: 600; }
.spec-doc .sd-mm { width: 11%; }
.spec-table th.w-sp { width: 34%; }
.spec-table th.w-unit { width: 10%; }
.spec-table th.w-std { width: 22%; }
.spec-table th.w-mm { width: 14%; }
.spec-table td input.sp-unit { text-align: center; }
.spec-doc .sd-unit { width: 9%; }
.spec-table td input.num { text-align: center; }
.stats.stats-4 { grid-template-columns: repeat(4, 1fr); }
.filters .date-dmy { margin: 0; width: 150px; }
.signs.signs-2 { grid-template-columns: repeat(2, minmax(0, 320px)); }
.grid-table.ro td.avg.bad { color: var(--red); background: var(--red-bg); }
.inline-mark { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.inline-mark .radio { margin: 0; }
.autosave-status { margin-right: auto; align-self: center; }
.check-table textarea.single { margin: 0; resize: vertical; border-color: transparent; background: #fbfcfe; font: inherit; }
.check-table textarea.single:hover { border-color: var(--line); }
.btn-disabled { opacity: .55; cursor: not-allowed; background: var(--gray-bg); }
.btn-disabled:hover { background: var(--gray-bg); }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.spec-ready { border-left: 4px solid var(--green); }
.spec-ready h2 { display: flex; align-items: center; gap: 6px; margin: 0; }
.ready-list { list-style: none; margin: 8px 0 0; padding: 0; }
.ready-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #f0f2f5; }
.photo-pick { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-pick .pick { width: 180px; border: 2px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: 500; color: var(--text); }
.photo-pick .pick:has(input:checked) { border-color: var(--primary-2); background: #f2f6fd; }
.photo-pick .pick img { width: 100%; height: 120px; object-fit: contain; background: #fff; }
.photo-pick .pick input[type=file] { font-size: 11px; margin-top: 6px; }
.photo-pick .nophoto { height: 120px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.spec-photo { text-align: center; }
.spec-photo img { max-width: 100%; max-height: 360px; }
.spec-table td input { text-align: left; }
.spec-table th.w-sp { width: 48%; }
.grid-table.spec-ro th { background: #042c62; }
.grid-table.spec-ro td { vertical-align: middle; }
.char-table { margin-top: 12px; max-width: 66%; min-width: 0; }
.sig-preview { height: 120px; border: 1px dashed var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; background: #fff; }
.sig-preview img { max-height: 100px; max-width: 90%; }

.form-actions { display: flex; justify-content: flex-end; gap: 8px; position: sticky; bottom: 0; background: rgba(244,246,249,.95); padding: 12px 0; border-top: 1px solid var(--line); }

.approve-box { border-left: 4px solid var(--accent); }
.signs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sign { border: 1px dashed var(--line); border-radius: 8px; padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.sign small { color: var(--muted); font-size: 12px; }
.sign .stamp { margin: 6px auto; padding: 6px 12px; border-radius: 6px; font-weight: 700; font-size: 12px; color: var(--muted); background: var(--gray-bg); }
.sign .sign-title { background: var(--form-blue); color: #fff; font-weight: 700; margin: -12px -12px 4px; padding: 6px; border-radius: 7px 7px 0 0; }
.sign-area { min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.sign-area img { max-height: 64px; max-width: 100%; object-fit: contain; }
.sign-date { color: #2232c8; font-size: 12px; }
.sign.done { border-style: solid; border-color: #b7e0c6; }
.sign.done .stamp { color: var(--green); background: var(--green-bg); border: 2px solid var(--green); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 4px 0 12px 10px; }
.timeline li::before { content: ""; position: absolute; left: -23px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.timeline .tl-setujui::before { background: var(--green); }
.timeline .tl-tolak::before { background: var(--red); }
.timeline .tl-ajukan::before { background: var(--accent); }
.tl-note { margin-top: 4px; background: var(--gray-bg); padding: 6px 10px; border-radius: 6px; font-size: 13px; }

/* Impor draft dari PDF */
.import-card { display: flex; align-items: center; gap: 14px; border: 1px dashed var(--primary-2); background: #f5f8fd; padding: 14px 18px; }
.import-icon { flex: none; width: 44px; height: 52px; border-radius: 6px; background: var(--red); color: #fff; font-weight: 700; font-size: 12px;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; box-shadow: inset 0 10px 0 rgba(255,255,255,.18); }
.import-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.import-btn { color: #fff; white-space: nowrap; }
.import-btn.is-busy { opacity: .7; pointer-events: none; }
.import-result ul { margin: 6px 0 0; padding-left: 20px; }
@media (max-width: 560px) { .import-card { flex-wrap: wrap; } .import-btn { width: 100%; text-align: center; } }

.login-box { max-width: 380px; margin: 80px auto; padding: 32px; text-align: center; }
.login-box h1 { justify-content: center; margin-top: 14px; }
.login-box form { text-align: left; margin-top: 18px; }

@media (max-width: 860px) {
  .topbar { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .grid2, .grid-note, .grid-side { grid-template-columns: 1fr; }
  .signs { grid-template-columns: 1fr 1fr; }
  dl.kv { grid-template-columns: 1fr; }
  dl.kv dt { border: 0; padding-bottom: 0; }
  .stats.stats-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .container { padding: 14px 12px 50px; }
  .page-head h1 { font-size: 18px; }
  .filters input[name=s] { min-width: 0; flex-basis: 100%; }
  .filters select, .filters label.inline { flex: 1 1 100%; }
  .filters .date-dmy { width: auto; flex: 1; }
  .tabs { overflow-x: auto; white-space: nowrap; }
}

/* ---- Lembar dokumen laporan (form isian & halaman lihat), mengikuti formulir PBK yang dicetak ---- */
.doc-sheet { background: #fff; border: 1px solid #d5dae2; box-shadow: 0 2px 12px rgba(16, 24, 40, .06); max-width: 1080px; margin: 0 auto 16px;
  padding: 26px 34px 30px; font-family: Arial, "Segoe UI", sans-serif; color: #111; }
.doc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.doc-top .doc-logo { height: 30px; }
.doc-code { text-align: right; font-size: 14px; }
.doc-code small { display: block; color: #6b7785; font-size: 12px; margin-top: 2px; }
.doc-code .doc-no { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 4px; font-size: 12px; color: #6b7785; }
.doc-code .doc-no input { width: 180px; margin: 0; padding: 4px 7px; font-weight: 700; color: #111; text-align: right; }
.doc-title { text-align: center; font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; margin: 12px 0 18px; }
.doc-ident { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 8px 10px; margin: 0 0 6px; align-items: baseline; }
.doc-ident > dt, .doc-ident > .lbl { font-weight: 700; margin: 0; }
.doc-ident > dd, .doc-ident > .val { margin: 0; display: flex; gap: 6px; align-items: baseline; min-width: 0; white-space: pre-line; }
.doc-ident > dd::before, .doc-ident > .val::before { content: ":"; flex: none; }
.doc-ident .val > * { flex: 1; min-width: 0; margin: 0; }
.doc-ident .val .date-dmy { flex: none; width: 190px; }
.doc-ident .val .muted.small { flex-basis: 100%; }
.doc-h { font-size: 14.5px; font-weight: 700; color: #111; margin: 24px 0 8px; text-transform: none; letter-spacing: 0; }
.doc-h .muted { font-weight: 400; font-size: 12px; margin-left: 6px; }
.doc-sheet .doc-help { margin: -4px 0 8px; font-size: 12px; color: var(--muted); }
.doc-sheet .grid-table th, .doc-sheet .grid-table td { border-color: #3f4652; }
.doc-sheet .grid-table th { border-color: #1d3461; }
.doc-sheet .table-wrap { margin-bottom: 4px; }
.doc-sheet .kms-table { min-width: 0; width: 100%; max-width: 900px; }
.doc-sheet .kms-table td.val { width: 52%; }
.doc-sheet .kms-table td.lbl { vertical-align: middle; }
.doc-sheet .kms-table td.val input { margin: 0; text-align: center; }
.doc-note-h { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin: 22px 0 6px; }
.doc-note-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; align-items: stretch; }
.doc-note-row textarea { margin: 0; min-height: 70px; }
.doc-sign { width: 100%; max-width: 720px; border-collapse: collapse; margin-top: 18px; table-layout: fixed; }
.doc-sign th { background: var(--form-blue); color: #fff; font-weight: 700; padding: 6px; border: 1px solid #1d3461; }
.doc-sign td { border: 1px solid #3f4652; text-align: center; padding: 4px 8px; }
.doc-sign td.sig { height: 96px; position: relative; }
.doc-sign td.sig img { max-height: 70px; max-width: 80%; object-fit: contain; }
.doc-sign td.sig .stamp { display: inline-block; padding: 6px 12px; border-radius: 6px; font-weight: 700; font-size: 12px; color: var(--muted); background: var(--gray-bg); }
.doc-sign td.sig .stamp.done { color: var(--green); background: var(--green-bg); border: 2px solid var(--green); }
.doc-sign td.sig .sign-date { position: absolute; right: 10px; bottom: 6px; }
.doc-sign td.nm { font-weight: 700; }
.doc-sheet .mark-box { border-color: #3f4652; border-radius: 0; }
/* nama parameter yang bisa diketik (dengan saran) seperti kolom "Parameter Pemeriksaan" di formulir */
#dimTable .w-param { width: 32%; }
.check-table td.param { position: relative; text-align: left; }
.check-table td.param .param-in { text-align: left; font-weight: 600; color: #111; padding-right: 34px; }
.check-table td.param .unit-tag { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted); pointer-events: none; }
.check-table tr.add-line td { text-align: left; }
.inline-del { display: inline; margin: 0; }
.inline-del .link-btn { padding: 0; font-size: inherit; }
.check-table td.avg .avg-in { text-align: center; font-weight: 700; background: #fffdf3 !important; }
.check-table td.avg .avg-in[data-manual="1"] { border-color: #f59e0b !important; }
.kms-table td input.kms-label { margin: 0; text-align: center; font-weight: 700; }
.kms-table td.lbl input.kms-label { background: rgba(255,255,255,.12) !important; color: #fff; border: 1px solid rgba(255,255,255,.35); text-align: left; }
.kms-table td.lbl input.kms-label::placeholder { color: rgba(255,255,255,.6); }
@media (max-width: 700px) {
  .doc-sheet { padding: 16px 14px 20px; }
  .doc-ident { grid-template-columns: 1fr; gap: 2px; }
  .doc-ident > dt, .doc-ident > .lbl { margin-top: 8px; }
  .doc-note-row { grid-template-columns: 1fr; }
  .doc-code .doc-no input { width: 150px; }
}

/* ---- Cek Design: perbandingan acuan vs sampel ---- */
.cat-teks { --cat: #dc2626; } .cat-penulisan { --cat: #ea580c; } .cat-angka { --cat: #9333ea; }
.cat-gambar { --cat: #2563eb; } .cat-qr { --cat: #0d9488; } .cat-dimensi { --cat: #ca8a04; }
.cat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--cat); margin-right: 6px; vertical-align: middle; }
.cat-tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; color: var(--cat);
  background: color-mix(in srgb, var(--cat) 12%, #fff); white-space: nowrap; }
td.cat-teks, td.cat-penulisan, td.cat-angka, td.cat-gambar, td.cat-qr, td.cat-dimensi { color: var(--cat); font-weight: 600; }
.dz { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 150px; padding: 18px; text-align: center;
  border: 2px dashed var(--line); border-radius: 10px; background: #fafbfd; cursor: pointer; color: var(--text); font-size: 14px; font-weight: 400; }
.dz:hover, .dz.over { border-color: var(--primary-2); background: #f1f5fc; }
.dz.has-file { border-style: solid; border-color: var(--green); background: var(--green-bg); }
.dz-ic .ic { width: 30px; height: 30px; color: var(--primary-2); }
.dz-name { font-weight: 600; color: var(--green); word-break: break-all; }
.dsg-dim { margin-top: 6px; }
.dsg-dim summary { cursor: pointer; font-weight: 600; color: var(--primary-2); }
.dsg-dim input.num { display: inline-block; width: 90px; margin: 0 4px; }
.dsg-log { max-height: 220px; overflow-y: auto; margin: 0; padding-left: 22px; font-size: 13px; color: var(--muted); }
.dsg-log li:last-child { color: var(--text); font-weight: 600; }
.dsg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.dsg-preview { max-height: 420px; overflow-y: auto; }
.dsg-sum { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.dsg-sum-table td, .dsg-sum-table th { vertical-align: middle; }
.dsg-sum-table .c, .dsg-items td.c { text-align: center; }
.dsg-files { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 4px; }
.dsg-files p { margin: 4px 0; word-break: break-word; }
.dsg-viewer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dsg-viewer-head h2 { margin: 0; }
.dsg-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dsg-tools label { margin: 0; }
.dsg-zoom { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.dsg-zoom input { width: 120px; margin: 0; padding: 0; }
.dsg-pagetabs, .dsg-catfilter { display: flex; flex-wrap: wrap; gap: 4px; }
.dsg-pagetabs button, .dsg-catfilter button { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 4px 11px; font: inherit; font-size: 12.5px; cursor: pointer; }
.dsg-pagetabs button.active, .dsg-catfilter button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
#dsgDecFilter { width: auto; margin: 0; }
.dsg-viewer { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dsg-side h3 { margin: 0 0 6px; }
.dsg-scroll { max-height: 75vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #e9ecf1; }
.dsg-canvas { position: relative; width: 100%; }
.dsg-canvas img { display: block; width: 100%; height: auto; background: #fff; }
.dsg-box { position: absolute; border: 2px solid var(--cat); background: color-mix(in srgb, var(--cat) 10%, transparent); border-radius: 2px; cursor: pointer;
  min-width: 6px; min-height: 6px; box-sizing: border-box; }
.dsg-box.approx { border-style: dashed; background: transparent; }
.dsg-box span { position: absolute; top: -9px; left: -9px; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 9px; background: var(--cat); color: #fff;
  font-size: 10.5px; line-height: 17px; text-align: center; font-weight: 700; }
.dsg-box.dec-diterima { border-color: var(--green); background: transparent; opacity: .55; }
.dsg-box.dec-diterima span { background: var(--green); }
.dsg-box.dim { opacity: .12; }
.dsg-box.sel { outline: 3px solid #facc15; outline-offset: 2px; z-index: 2; opacity: 1; animation: dsgPulse 1s ease 2; }
@keyframes dsgPulse { 50% { outline-color: transparent; } }
.dsg-hide-boxes .dsg-box { display: none; }
.dsg-bulk { margin-bottom: 8px; align-items: center; }
.dsg-items td { vertical-align: top; }
.dsg-items tr.sel td { background: #fffbe6; }
.dsg-items tbody tr[data-id] { cursor: pointer; }
.dsg-cell { min-width: 180px; max-width: 260px; }
.dsg-txt { white-space: pre-wrap; word-break: break-word; margin-bottom: 6px; font-family: Consolas, "Segoe UI", monospace; font-size: 12.5px; }
.dsg-crop { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.dsg-crop img { position: absolute; max-width: none; }
.dsg-crop i { position: absolute; border: 2px solid var(--cat); border-radius: 2px; }
.dsg-crop i.approx { border-style: dashed; }
.dsg-dec { min-width: 200px; }
.dec-btns { display: flex; gap: 4px; margin-bottom: 4px; }
.dec-btn { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 5px 6px; font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.dec-btn.ok:hover, .dec-btn.ok.active { border-color: var(--green); color: var(--green); }
.dec-btn.nok:hover, .dec-btn.nok.active { border-color: var(--red); color: var(--red); }
.dec-btn.ok.active { background: var(--green); color: #fff; }
.dec-btn.nok.active { background: var(--red); color: #fff; }
.dec-note { margin: 0; font-size: 12.5px; padding: 5px 7px; }
.dec-note.saved { border-color: var(--green); }
.dec-by { margin-top: 3px; }
@media (max-width: 900px) {
  .dsg-viewer, .dsg-sum { grid-template-columns: 1fr; }
  .dsg-scroll { max-height: 60vh; }
}

/* Cek Design: editor area crop */
.crop-pane { min-width: 0; }
.crop-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.crop-stage { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #e9ecf1; touch-action: none; cursor: crosshair; user-select: none; }
.crop-stage .crop-img { display: block; width: 100%; height: auto; }
.crop-box { position: absolute; border: 2px solid #06b6d4; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .45); cursor: move; box-sizing: border-box; }
.crop-box i { position: absolute; width: 14px; height: 14px; background: #fff; border: 2px solid #06b6d4; border-radius: 3px; }
.crop-box i::after { content: ""; position: absolute; inset: -9px; } /* area sentuh lebih luas */
.crop-box .h-nw { left: -8px; top: -8px; cursor: nwse-resize; } .crop-box .h-se { right: -8px; bottom: -8px; cursor: nwse-resize; }
.crop-box .h-ne { right: -8px; top: -8px; cursor: nesw-resize; } .crop-box .h-sw { left: -8px; bottom: -8px; cursor: nesw-resize; }
.crop-box .h-n { left: calc(50% - 7px); top: -8px; cursor: ns-resize; } .crop-box .h-s { left: calc(50% - 7px); bottom: -8px; cursor: ns-resize; }
.crop-box .h-w { top: calc(50% - 7px); left: -8px; cursor: ew-resize; } .crop-box .h-e { top: calc(50% - 7px); right: -8px; cursor: ew-resize; }
.crop-nums { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.crop-nums label { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 12px; }
.crop-nums input { width: 72px; margin: 0; padding: 4px 6px; }

/* Cek Design: ruang periksa (area berulang + alat ukur) */
.crop-scroll { overflow: auto; max-height: 72vh; border: 1px solid var(--line); border-radius: 8px; background: #e9ecf1; }
.crop-scroll .crop-stage { border: 0; border-radius: 0; min-width: 100%; }
svg.measure { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
svg.measure line { stroke-width: 2.5px; vector-effect: non-scaling-stroke; }
svg.measure circle { r: 9px; fill: #fff; stroke-width: 2px; vector-effect: non-scaling-stroke; }
svg.measure .draft line, svg.measure .draft circle { stroke: #e11d48; }
svg.measure .saved line, svg.measure .saved circle { stroke: #0891b2; }
svg.measure text { font: 600 26px "Segoe UI", sans-serif; fill: #0e7490; paint-order: stroke; stroke: #fff; stroke-width: 6px; text-anchor: middle; }
.ws-measure .crop-box { pointer-events: none; opacity: .35; }
.ws-measure .crop-stage { cursor: crosshair; }
.ws-measure .area-only { display: none !important; }
.ws-modes { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ws-modes label { display: flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; font-size: 13px; color: var(--text); cursor: pointer; }
.ws-modes label:has(input:checked) { background: var(--primary); color: #fff; }
.ws-modes input { display: none; }
.ws-steps { margin: 0 0 10px; padding-left: 20px; }
.ws-panel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ws-panel label { margin: 0; }
.ws-panel input:not([type]) , .ws-panel input[id$=Label] { width: 260px; margin: 0; }
.ws-grow { flex: 1; min-width: 160px; }
.ok-t { color: var(--green); } .bad-t { color: var(--red); }
.area-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.area-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.area-head .dsg-chips { margin: 0; }
.area-card .dsg-scroll { max-height: 50vh; }
.dsg-measure { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.dsg-measure line { stroke-width: 2.5px; }
.dsg-measure .ok line { stroke: #0891b2; } .dsg-measure .bad line { stroke: #dc2626; }
.dsg-measure text { font: 600 12px "Segoe UI", sans-serif; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.dsg-measure .ok text { fill: #0e7490; } .dsg-measure .bad text { fill: #b91c1c; }

/* Cek Design: alat ukur 1:1 (jarak, P×L, teks, gambar, warna) */
.grid-tol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 900px) { .grid-tol { grid-template-columns: 1fr 1fr; } }
.ws-tools label { padding: 5px 10px; }
.scale-in { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 13px; color: var(--text); }
.scale-in input { width: 60px; margin: 0; padding: 4px 6px; }
svg.measure rect { fill: rgba(225, 29, 72, .06); stroke-width: 2.5px; vector-effect: non-scaling-stroke; }
svg.measure .draft rect { stroke: #e11d48; }
svg.measure .saved rect { stroke: #0891b2; fill: rgba(8, 145, 178, .06); }
svg.measure .saved.bad line, svg.measure .saved.bad rect, svg.measure .saved.bad circle { stroke: #dc2626; }
svg.measure .saved.bad text { fill: #b91c1c; }
.calib-box { border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: #fafbfd; }
.calib-bar { height: 10px; background: #2563eb; margin: 8px 0; border-left: 2px solid #1e3a8a; border-right: 2px solid #1e3a8a; }
.calib-box input { width: 180px; margin: 0; }
#measReadout { font-size: 13px; line-height: 1.5; }
.dsg-measure rect { fill: none; stroke-width: 2.5px; }
.dsg-measure .ok rect, .dsg-measure .ok circle { stroke: #0891b2; } .dsg-measure .bad rect, .dsg-measure .bad circle { stroke: #dc2626; }
.dsg-measure circle { fill: none; stroke-width: 2.5px; }
.cat-ukuran_teks { --cat: #dc2626; } .cat-ukuran_gambar { --cat: #2563eb; } .cat-warna { --cat: #9333ea; }
td.cat-ukuran_teks, td.cat-ukuran_gambar, td.cat-warna { color: var(--cat); font-weight: 600; }
#measScale { width: 64px !important; }

/* Cek Design: ruang periksa gaya GV (design di kiri, panel hasil & inspeksi teks di kanan) */
.ws-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.ws-views { min-width: 0; }
.ws-toolbar { margin: 0 0 12px; padding: 0 0 12px; border-top: 0; border-bottom: 1px solid var(--line); }
.ws-readout { flex-basis: 100%; font-size: 13px; line-height: 1.5; }
.ws-side { position: sticky; top: 64px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: flex; flex-direction: column; max-height: calc(100vh - 80px); }
.ws-side-tabs { display: flex; border-bottom: 1px solid var(--line); }
.ws-side-tabs button { flex: 1; border: 0; background: #f6f7fa; padding: 9px 6px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); }
.ws-side-tabs button.active { background: #fff; color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); }
.ws-side [data-side-pane] { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ws-side [data-side-pane][hidden] { display: none; }
.ws-side-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ws-side-nav label { margin: 0 0 0 auto; font-size: 12px; }
.ws-side-info { margin: 6px 10px 0; }
.ws-side-list { overflow-y: auto; flex: 1; min-height: 120px; max-height: calc(100vh - 210px); padding: 4px 0; }
.side-group { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 4px; }
.side-item2 { display: flex; gap: 8px; align-items: flex-start; padding: 7px 10px 7px 12px; border-left: 3px solid var(--cat, #94a3b8); cursor: pointer; font-size: 12.5px; }
.side-item2 + .side-item2 { border-top: 1px solid #f0f2f5; }
.side-item2:hover { background: #f7f9fc; }
.side-item2.sel { background: #fffbe6; }
.side-item2 .num { flex: none; min-width: 20px; height: 20px; border-radius: 10px; background: var(--cat, #94a3b8); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.side-item2 .body { flex: 1; min-width: 0; }
.side-item2 .body > b { display: inline; word-break: break-word; }
.side-item2 .vals { display: flex; gap: 6px; margin-top: 2px; word-break: break-word; }
.side-item2 .vals > span { flex: none; width: 14px; color: var(--muted); font-weight: 700; }
.side-del { flex: none; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0 2px; }
.side-del:hover { color: var(--red); }
.side-empty2 { padding: 10px 12px; margin: 0; }
.trow { --cat: #94a3b8; }
.trow.is-bad { --cat: #dc2626; }
.trow .ttext { display: block; margin-bottom: 3px; }
.tprop { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tprop > span:first-child { width: 14px; color: var(--muted); font-weight: 700; }
.tprop em { font-style: normal; color: var(--muted); }
.tprop em.bad-t, .tprop b.bad-t, .tprop span.bad-t { color: var(--red); font-weight: 700; }
.swatch { display: inline-block; width: 11px; height: 11px; border-radius: 2px; border: 1px solid rgba(0,0,0,.2); vertical-align: -1px; margin-right: 3px; }
svg.measure .focus-mark { fill: none; stroke: #facc15; stroke-width: 4px; stroke-dasharray: 8 5; vector-effect: non-scaling-stroke; animation: dsgPulse 1s ease 3; }
@media (max-width: 1100px) { .ws-body { grid-template-columns: 1fr; } .ws-side { position: static; max-height: none; } .ws-side-list { max-height: 420px; } }
.dsg-stepper { display: inline-flex; align-items: center; gap: 6px; }
.dsg-current { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: #fffbe6; border: 1px solid #fde68a; font-size: 13px; }
.side-item2 .vals { flex-wrap: wrap; align-items: baseline; }
.side-item2 .vals .badge { flex: none; white-space: nowrap; font-size: 11px; padding: 1px 7px; }
.cat-konten { --cat: #9333ea; } td.cat-konten { color: var(--cat); font-weight: 600; }
/* Cek Design: keputusan staff langsung di ruang periksa */
.dec-wrap.compact { margin-top: 6px; }
.dec-wrap.compact .dec-btn { padding: 3px 6px; font-size: 11.5px; }
.dec-wrap.compact .dec-note { font-size: 12px; padding: 3px 6px; }
#areasCard .dsg-items tr[data-focus-area] { cursor: pointer; }
#areasCard .dsg-items tr[data-focus-area]:hover td { background: #f7f9fc; }
/* Formulir FR.RND.002-12 di halaman review */
.dsg-form h3 { margin-top: 16px; }
.dsg-rek { display: grid; gap: 14px; }
.dsg-rek > div { border-left: 3px solid var(--line); padding-left: 12px; }
.dsg-rek textarea, .dsg-rek input[name=item_code] { margin-top: 6px; }
.dsg-rek .btn-row { display: inline-flex; margin-left: 8px; }
.dsg-att { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.dsg-att img { max-width: 360px; max-height: 200px; border: 1px solid var(--line); border-radius: 6px; }
/* Hasil final Cek Design dalam bentuk formulir FR.RND.002-12 (seperti PDF) */
.form-doc { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 24px 28px; margin: 0 auto 16px; max-width: 860px; box-shadow: 0 2px 10px rgba(0,0,0,.06); font: 13px/1.45 Arial, Helvetica, sans-serif; color: #000; }
.form-doc table { border-collapse: collapse; width: 100%; }
.fd-head th { background: #4472c4; color: #fff; border: 1px solid #222; padding: 5px 8px; font-size: 14px; text-align: center; }
.fd-head .fd-code { width: 21%; }
.fd-box { border: 1px solid #222; border-top: 0; padding: 6px 8px; }
.fd-id { margin-bottom: 14px; padding: 0; }
.fd-id > div { padding: 4px 8px; border-bottom: 1px solid #ccc; }
.fd-id > div:last-child { border-bottom: 0; }
.fd-v { color: #2e5496; }
.fd-band { background: #4472c4; color: #fff; font-weight: 700; padding: 4px 8px; border: 1px solid #222; margin-top: 14px; letter-spacing: .02em; }
.fd-band.c { text-align: center; }
.fd-foto { text-align: center; }
.fd-foto img, .fd-dim img { max-width: 100%; max-height: 640px; width: auto; margin: 0 auto; }
.fd-table th, .fd-table td { border: 1px solid #222; padding: 4px 8px; }
.fd-table th { font-weight: 700; text-align: center; }
.fd-table .fd-no { width: 7%; } .fd-table .fd-res { width: 15%; }
.fd-table td.c { text-align: center; font-weight: 700; }
.fd-rek h4 { margin: 10px 0 2px; font: 700 15px Georgia, "Times New Roman", serif; }
.fd-rek p { margin: 0 0 6px 18px; }
.fd-rek .fd-dim { width: fit-content; max-width: 100%; margin: 6px auto; } /* selebar gambar agar garis ukur tetap pas */
.fd-att { display: block; max-width: calc(100% - 18px); max-height: 320px; margin: 4px 0 8px 18px; border: 1px solid #ddd; }
.fd-ok { color: #000; } .fd-bad { color: #c0392b; }
.fd-hasil { font: 700 16px Georgia, "Times New Roman", serif; margin: 18px 0 8px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.fd-status { margin-left: auto; font: 12px Arial, sans-serif; color: #c0392b; }
.fd-sign td { border: 1px solid #222; width: 50%; vertical-align: top; padding: 6px 8px; }
.fd-sign-top { display: flex; justify-content: space-between; gap: 8px; }
.fd-sign-title td { text-align: center; font-weight: 700; padding: 3px; }
.fd-lampiran { margin: 22px 0 10px; }
@media (max-width: 640px) { .form-doc { padding: 14px 12px; font-size: 12px; } }

/* Cek Design hanya file sampel (tanpa acuan) */
.single-only { display: none; }
.dsg-single .single-only { display: revert; }
.dsg-single .compare-only, .dsg-single [data-crop="smp"], .dsg-single [data-drop="ref"] { display: none !important; }
.dsg-single .ws-views, .dsg-single .dsg-files-in, .dsg-viewer.single { grid-template-columns: 1fr; }
.dsg-single-opt { display: block; margin-bottom: 10px; }
.dsg-foto { display: flex; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; }
.dsg-foto a { flex: 1 1 260px; display: flex; justify-content: center; }
.dsg-foto img { max-width: 100%; max-height: 460px; object-fit: contain; }

/* PPOS (Proof Print On The Spot): lembar Formulir PPOS FR.RND.056-06 */
.pp-rule { font-size: 13px; padding: 10px 14px; background: #f7f9fc; }
.pp-done h2 { margin-bottom: 4px; }
.pp-doc { font: 14px/1.45 "Times New Roman", Georgia, serif; }
.pp-kop td { border: 1px solid #222; padding: 6px 10px; vertical-align: middle; }
.pp-kop .pp-logo { width: 22%; text-align: center; }
.pp-kop .pp-logo img { max-width: 120px; width: 100%; }
.pp-kop .pp-title { text-align: center; font-size: 18px; }
.pp-kop .pp-code { width: 18%; text-align: center; font-size: 13px; }
.pp-kop .pp-prod { text-align: center; }
.pp-kop .pp-prod b { display: block; font: 400 14px Arial, Helvetica, sans-serif; }
.pp-kop .pp-prod i { display: block; }
.pp-meta { margin: 4px 0 0; font: 11px Arial, sans-serif; color: var(--muted); text-align: right; }
.pp-h { font: 700 15px "Times New Roman", Georgia, serif; margin: 18px 0 4px; color: #000; text-transform: none; letter-spacing: 0; }
.pp-box { border: 1px solid #222; padding: 6px 10px; margin-top: 8px; }
.pp-line { display: flex; gap: 6px; margin: 2px 0; align-items: baseline; flex-wrap: wrap; }
.pp-line > span:first-child { width: 120px; flex: none; }
.pp-opt { padding: 1px 4px; }
.pp-opt.on { border: 1.5px solid #1a2a6c; border-radius: 50%; padding: 1px 9px; font-weight: 700; }
.pp-opt.off { text-decoration: line-through; color: #777; }
.pp-ket { color: #1a2a6c; }
.pp-photos { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.pp-photos figure { margin: 0; flex: 0 1 260px; text-align: center; }
.pp-photos img { max-width: 100%; max-height: 260px; object-fit: contain; display: block; margin: 0 auto; border: 1px solid #ddd; }
.pp-photos figcaption { font: 12px Arial, sans-serif; margin-top: 3px; }
.pp-empty { color: var(--muted); font: italic 13px Arial, sans-serif; margin: 6px 0; }
.pp-note { min-height: 90px; }
.pp-note-txt { margin: 2px 0 8px; }
.pp-sign2 { margin-top: 14px; text-align: center; font-family: Arial, Helvetica, sans-serif; }
.pp-sign2 td { width: 50%; padding: 2px 8px; }
.pp-sign2 td.sig { height: 84px; }
.pp-sign2 td.sig img { max-height: 70px; max-width: 70%; vertical-align: middle; }
.pp-sub { margin: 14px 0 4px; font-family: Arial, Helvetica, sans-serif; }
.pp-tbl { font-family: Arial, Helvetica, sans-serif; }
.pp-tbl th, .pp-tbl td { border: 1px solid #222; padding: 4px 8px; }
.pp-tbl th { font-weight: 400; text-align: center; }
.pp-tbl .pp-no { width: 8%; text-align: center; }
.pp-tbl td.sig { height: 46px; width: 30%; text-align: center; }
.pp-tbl td.sig img { max-height: 40px; max-width: 70%; vertical-align: middle; }
.pp-doc .sign-date { font-size: 11px; margin-left: 6px; }
.pp-doc .stamp { display: inline-block; padding: 4px 10px; border-radius: 6px; font: 700 11px Arial, sans-serif; }
.pp-doc .stamp.done { color: var(--green); background: var(--green-bg); border: 2px solid var(--green); }
.pp-signers img { max-height: 40px; max-width: 140px; }
.pp-signer-form { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 4px; }
@media (max-width: 640px) {
  .pp-line > span:first-child { width: 100px; }
  .pp-photos figure { flex-basis: 100%; }
  .pp-kop td { padding: 4px 6px; }
  .pp-kop .pp-title { font-size: 15px; }
  .pp-kop .pp-code { font-size: 11px; width: 22%; }
}

/* ================= PackFlow: logo & identitas =================
   Logo = kardus isometrik berselotip + garis laju. Disorot: tutup terbuka. Diklik (halaman masuk): kardus "dikemas".
   Halaman masuk: logo merakit diri sekali, lalu miring mengikuti kursor. */
.pf-mark { --pf-l: #2c5299; --pf-r: #1f3a68; --pf-fl: #5d8de3; --pf-fr: #7aa5f0; --pf-tape: #f5b301; --pf-spark: #06b6d4;
  display: block; width: 32px; height: auto; overflow: visible; }
.pf-mark.on-dark { --pf-l: #3a6bd0; --pf-r: #24488f; --pf-fl: #6f9cf0; --pf-fr: #94b8ff; }
.pf-left { fill: var(--pf-l); }
.pf-right { fill: var(--pf-r); }
.pf-flap-l { fill: var(--pf-fl); }
.pf-flap-r { fill: var(--pf-fr); }
.pf-tape-top, .pf-tape-front { fill: none; stroke: var(--pf-tape); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pf-speed path { stroke: var(--pf-tape); stroke-width: 3.2; stroke-linecap: round; }
.pf-speed .pf-s1 { opacity: .6; }
.pf-speed .pf-s3 { opacity: .75; }
.pf-spark path { stroke: var(--pf-spark); stroke-width: 2.4; stroke-linecap: round; opacity: 0; }
.pf-flap, .pf-speed path, .pf-box, .pf-spark path { transform-box: fill-box; }
.pf-flap { transition: transform .38s cubic-bezier(.34, 1.56, .64, 1); }
.pf-flap-l { transform-origin: 0% 55%; }
.pf-flap-r { transform-origin: 100% 55%; }
.pf-tape-top { transition: opacity .2s; }
.pf-speed path { transform-origin: 100% 50%; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.pf-box { transform-origin: 50% 100%; }
.pf-spark path { transform-origin: 50% 50%; }

/* disorot: tutup kardus terbuka & garis laju memanjang */
.rail-logo:hover .pf-flap-l, .pf-brand:hover .pf-flap-l, .pf-hero:hover .pf-flap-l, .pf-welcome-mark:hover .pf-flap-l { transform: translate(-2px, -4px) rotate(-16deg); }
.rail-logo:hover .pf-flap-r, .pf-brand:hover .pf-flap-r, .pf-hero:hover .pf-flap-r, .pf-welcome-mark:hover .pf-flap-r { transform: translate(2px, -4px) rotate(16deg); }
.rail-logo:hover .pf-tape-top, .pf-brand:hover .pf-tape-top, .pf-hero:hover .pf-tape-top, .pf-welcome-mark:hover .pf-tape-top { opacity: 0; }
.rail-logo:hover .pf-s1, .pf-brand:hover .pf-s1, .pf-hero:hover .pf-s1 { transform: scaleX(1.45); }
.rail-logo:hover .pf-s2, .pf-brand:hover .pf-s2, .pf-hero:hover .pf-s2 { transform: scaleX(1.7); }
.rail-logo:hover .pf-s3, .pf-brand:hover .pf-s3, .pf-hero:hover .pf-s3 { transform: scaleX(1.3); }

/* diklik: tutup menutup, kardus memantul, percikan */
.pf-mark.pf-pack .pf-flap { transform: none !important; }
.pf-mark.pf-pack .pf-tape-top { opacity: 1 !important; }
.pf-mark.pf-pack .pf-box { animation: pf-squash .55s cubic-bezier(.3, 1.4, .5, 1); }
.pf-mark.pf-pack .pf-spark path { animation: pf-spark .6s ease-out; }
@keyframes pf-squash { 0% { transform: none; } 30% { transform: scale(1.05, .86); } 65% { transform: translateY(-2px) scale(.98, 1.05); } 100% { transform: none; } }
@keyframes pf-spark { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-2px) scale(1.4); } }

/* animasi pembuka (halaman masuk & selamat datang): sisi naik, tutup menutup, selotip ditarik, garis laju melesat */
.pf-intro .pf-left { animation: pf-rise .5s .05s both cubic-bezier(.2, .8, .2, 1); }
.pf-intro .pf-right { animation: pf-rise .5s .16s both cubic-bezier(.2, .8, .2, 1); }
.pf-intro .pf-flap-l { animation: pf-close-l .6s .4s both cubic-bezier(.34, 1.56, .64, 1); }
.pf-intro .pf-flap-r { animation: pf-close-r .6s .5s both cubic-bezier(.34, 1.56, .64, 1); }
.pf-intro .pf-tape-top { animation: pf-draw .35s 1s both ease-out; }
.pf-intro .pf-tape-front { animation: pf-draw .35s 1.2s both ease-out; }
.pf-intro .pf-speed path { animation: pf-shoot .45s 1.35s both cubic-bezier(.2, .8, .2, 1); }
.pf-intro .pf-speed .pf-s2 { animation-delay: 1.43s; }
.pf-intro .pf-speed .pf-s3 { animation-delay: 1.51s; }
@keyframes pf-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pf-close-l { from { opacity: 0; transform: translate(-3px, -8px) rotate(-38deg); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes pf-close-r { from { opacity: 0; transform: translate(3px, -8px) rotate(38deg); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes pf-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pf-shoot { from { opacity: 0; transform: translateX(-12px) scaleX(0); } to { transform: none; } }

/* nama PackFlow */
.pf-word { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; font-weight: 800; letter-spacing: -.03em; color: var(--primary);
  position: relative; display: inline-block; line-height: 1; }
.pf-word::after { content: ""; position: absolute; left: 1px; bottom: -5px; height: 3px; width: 34%; border-radius: 2px; background: var(--accent);
  transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.pf-brand:hover .pf-word::after, .pf-hero:hover + .pf-word::after { width: calc(100% - 2px); }
.pf-brand { display: flex; align-items: center; gap: 10px; color: var(--primary); flex: none; }
.pf-brand:hover { text-decoration: none; }
.pf-brand .pf-mark { width: 34px; }
.pf-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.pf-brand-text .pf-word { font-size: 19px; }
.pf-brand-text small { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 7px; }
.topbar .pf-brand .pf-mark { width: 28px; }
.topbar .pf-brand-text .pf-word { font-size: 17px; }

/* halaman masuk: latar kisi seperti alas potong (cutting mat) tim packaging */
body.page-login { background-color: #eef2f8;
  background-image: linear-gradient(rgba(31, 58, 104, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 58, 104, .08) 1px, transparent 1px),
    linear-gradient(rgba(31, 58, 104, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 58, 104, .035) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px; background-position: -1px -1px; }
body.page-login .login-box { margin: 56px auto; padding: 26px 32px 20px; box-shadow: 0 14px 44px rgba(31, 58, 104, .14); border-color: #d6dde8; }
.pf-hero { display: block; margin: 0 auto; padding: 6px 10px; border: 0; background: none; cursor: pointer; border-radius: 18px; perspective: 600px; }
.pf-hero:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.pf-hero .pf-mark { width: 116px; margin: 0 auto; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.login-box h1.pf-word-lg { display: inline-block; font-size: 40px; margin: 4px 0 0; }
.pf-tag { color: var(--muted); font-size: 14px; margin: 16px 0 4px; }
.pf-by { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12px; margin: 14px 0 0; padding-top: 12px;
  border-top: 1px solid var(--line); }
.pf-welcome-mark { display: block; }
.pf-welcome-mark .pf-mark { width: 68px; margin: 0 auto; }

@media (max-width: 560px) {
  .pf-brand-text small { display: none; }
  .pf-brand .pf-mark { width: 30px; }
  body.page-login .login-box { margin: 24px auto; padding: 20px 18px 16px; }
  .pf-hero .pf-mark { width: 96px; }
  .login-box h1.pf-word-lg { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-mark *, .pf-word::after { animation: none !important; transition: none !important; }
  .pf-hero .pf-mark { transform: none !important; }
}
/* Hapus Data (admin) */
.del-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 60px; z-index: 5; padding: 10px 14px;
  border-left: 4px solid var(--red); }
.del-bar.has-sel { background: var(--red-bg); }
.del-bar.has-sel #delInfo { color: #8e271c; font-weight: 600; }
.del-table .w-check { width: 38px; text-align: center; }
.del-table .w-check input { width: 17px; height: 17px; margin: 0; cursor: pointer; }
.del-table tr.sel td { background: #fff5f4; }
.del-warn { color: var(--red); font-size: 11.5px; margin-top: 2px; }
.btn-red:disabled { opacity: .5; cursor: not-allowed; }
/* Buat pemeriksaan baru dari template (laporan yang sudah ada) */
.tpl-card { border-color: #9cc3a9; background: #f3faf5; }
.tpl-icon { background: var(--green); padding: 0; align-items: center; }
.tpl-icon .ic { width: 24px; height: 24px; color: #fff; }
.tpl-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.tpl-row input[name=template_no] { flex: 1; min-width: 220px; margin: 0; }
.tpl-row label.check { margin: 0; font-weight: 500; font-size: 13px; }
.tpl-pop { position: relative; }
.tpl-pop > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.tpl-pop > summary::-webkit-details-marker { display: none; }
.tpl-pop > summary .ic { width: 16px; height: 16px; }
.tpl-pop[open] > summary { background: var(--gray-bg); }
.tpl-pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; width: 300px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 12px 30px rgba(16, 24, 40, .14); padding: 12px 14px; }
.tpl-pop-body p { margin: 0 0 8px; color: var(--text); }
.tpl-pop-body label.check { margin: 0 0 10px; font-size: 13px; }
@media (max-width: 560px) { .tpl-pop-body { right: auto; left: 0; width: 260px; } .tpl-card .btn { width: 100%; } }
/* Dashboard Laporan (khusus Supervisor Packdev) */
.dash-period select { width: auto; margin: 0; }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.dash-kpi { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text); }
a.dash-kpi:hover { text-decoration: none; border-color: var(--primary-2); }
.dash-kpi b { font-size: 26px; color: var(--primary); line-height: 1.1; }
.dash-kpi span { font-size: 13px; }
.dash-kpi small { color: var(--muted); font-size: 11.5px; }
.dash-kpi.is-focus { border-left: 4px solid var(--accent); background: #fffbeb; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dash-grid > .card { margin-bottom: 16px; }
.dash-table th.r, .dash-table td.r { text-align: right; white-space: nowrap; }
.dash-table tr.is-late td { background: #fff5f4; }
.dash-total { min-width: 120px; position: relative; }
.dash-mini { display: inline-block; height: 8px; border-radius: 0 4px 4px 0; background: #2c5299; margin-right: 8px; vertical-align: middle; min-width: 2px; }
.dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding: 8px 0 0; border-bottom: 1px solid var(--line); }
.dash-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; position: relative; outline: none; }
.dash-bar small { font-size: 10.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.dash-bar-track { position: relative; flex: 1; width: 100%; max-width: 38px; }
.dash-bar-track span { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 4px 4px 0 0; }
.dash-bar-all { background: #a9c1ee; }
.dash-bar-ok { background: #2c5299; box-shadow: 0 -2px 0 #fff; }
.dash-bar:hover .dash-bar-all, .dash-bar:focus .dash-bar-all { background: #8eaee8; }
.dash-bar::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: #1f2933;
  color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 3; }
.dash-bar:hover::after, .dash-bar:focus::after { opacity: 1; }
.dash-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.dash-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.lg-all { background: #a9c1ee; } .lg-ok { background: #2c5299; }
.dash-tablev { margin-top: 10px; font-size: 13px; }
.dash-tablev summary { cursor: pointer; color: var(--primary-2); }
.stats.stats-4 .stat-dash { display: flex; flex-direction: column; justify-content: center; border-top-color: #06b6d4; }
.stat-dash .ic { width: 26px; height: 26px; color: #06b6d4; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } .stats.stats-4 .stat-dash { display: none; } }
.stats.stats-sup { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .stats.stats-sup { grid-template-columns: repeat(2, 1fr); } }

.dash-grid { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.dash-bar small em { display: block; font-style: normal; font-size: 10px; text-align: center; }
.dash-bars { height: 210px; }

/* Project: kanban, kartu, tenggat */
.badge-blue { background: #e6eefb; color: #2c5299; }
.pj-viewtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-left: auto; }
.pj-viewtoggle a { padding: 6px 12px; font-size: 13px; color: var(--text); }
.pj-viewtoggle a.active { background: var(--primary); color: #fff; }
.pj-viewtoggle a:hover { text-decoration: none; }
.pj-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; scroll-snap-type: x proximity; }
.pj-col { flex: 0 0 272px; background: #eceff4; border-radius: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 230px); scroll-snap-align: start;
  border: 2px solid transparent; transition: border-color .12s, background .12s; }
.pj-col.is-done { background: #e7f4ec; }
.pj-col.drop-over { border-color: var(--primary-2); background: #e3ebf9; }
.pj-col-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; }
.pj-col-head b { flex: 1; font-size: 14px; color: var(--primary); }
.pj-count { font-size: 12px; background: #fff; border-radius: 10px; padding: 0 8px; color: var(--muted); font-weight: 600; }
.pj-add { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 18px; }
.pj-add:hover { background: #fff; color: var(--primary); text-decoration: none; }
.pj-col-body { overflow-y: auto; padding: 0 8px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.pj-empty { color: var(--muted); font-size: 12px; text-align: center; margin: 8px 4px; }
.pj-card { background: #fff; border-radius: 10px; padding: 10px 12px 8px; border: 1px solid #dde2ea; border-left: 4px solid #a0aec0; cursor: grab;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.pj-card:hover { border-color: #c3ccd9; box-shadow: 0 4px 12px rgba(16, 24, 40, .08); }
.pj-card.dragging { opacity: .45; }
.pj-card.pj-moving { animation: pjPulse .6s ease; }
@keyframes pjPulse { 50% { box-shadow: 0 0 0 4px rgba(6, 182, 212, .25); } }
.pj-card.prio-urgent { border-left-color: var(--red); }
.pj-card.prio-tinggi { border-left-color: var(--accent); }
.pj-card.prio-sedang { border-left-color: #2c5299; }
.pj-card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 4px; }
.pj-code { font-size: 11.5px; color: var(--muted); }
.pj-title { display: block; font-weight: 700; color: var(--text); line-height: 1.3; }
.pj-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pj-progress { display: block; height: 6px; border-radius: 3px; background: #e6eaf0; overflow: hidden; margin: 8px 0 6px; }
.pj-progress > span { display: block; height: 100%; background: #2c5299; border-radius: 3px; }
.pj-col.is-done .pj-progress > span { background: var(--green); }
.pj-meta { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.pj-meta b { margin-left: auto; color: var(--text); }
.due { font-weight: 600; }
.due-late { color: var(--red); } .due-soon { color: var(--amber); } .due-ok { color: var(--green); } .due-none { color: var(--muted); font-weight: 400; }
.pj-note { margin: 6px 0 0; font-size: 12px; background: #fffbea; border-radius: 6px; padding: 5px 7px; color: #5b4a10; }
.pj-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.pj-pics { display: flex; }
.pj-pics i { width: 24px; height: 24px; border-radius: 50%; background: #2c5299; color: #fff; font-size: 10px; font-style: normal; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff; margin-left: -6px; }
.pj-pics i:first-child { margin-left: 0; }
.pj-pics i:nth-child(2) { background: #0e9f6e; } .pj-pics i:nth-child(3) { background: #b7791f; } .pj-pics i:nth-child(4) { background: #7c3aed; }
.pj-moves { display: flex; gap: 2px; }
.pj-move { width: 26px; height: 24px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1; color: var(--primary); }
.pj-move:hover:not(:disabled) { background: var(--gray-bg); }
.pj-move:disabled { opacity: .3; cursor: default; }
.pj-stage-days { display: block; color: var(--muted); font-size: 10.5px; margin-top: 4px; }
.pj-table td { vertical-align: middle; }
.pj-cellprog { min-width: 110px; white-space: nowrap; }
.pj-cellprog .pj-progress { display: inline-block; width: 60px; margin: 0 6px 0 0; vertical-align: middle; }
.pj-form-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.pj-range { display: flex; align-items: center; gap: 10px; }
.pj-range input[type=range] { flex: 1; padding: 0; border: 0; }
.pj-range input.num { width: 76px; margin: 0; }
.pj-kpis .dash-kpi b.due { font-size: 18px; }
.pj-stagetimes { margin: 0; padding-left: 20px; }
.pj-stagetimes li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 6px 0; border-bottom: 1px solid #eef1f5; }
.pj-stagetimes li small { grid-column: 1 / -1; color: var(--muted); }
.pj-stagetimes li.is-now b { color: var(--primary-2); }
.pj-noteform { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin-bottom: 12px; }
.pj-noteform textarea { margin: 0; }
.pj-stage-table input { margin: 0; }
.pj-stage-table input.num { width: 70px; }
@media (max-width: 900px) { .pj-form-grid { grid-template-columns: 1fr; } .pj-col { flex-basis: 250px; } }
/* Dashboard: bagian Project */
.dash-section { margin-bottom: 8px; }
.dash-h { font-size: 17px; color: var(--primary); margin: 4px 0 10px; }
.dash-h2 { margin-top: 18px; }
.dash-empty { color: var(--muted); }
.dash-kpi.is-late { border-left: 4px solid var(--red); background: #fff5f4; }
.dash-hbars { list-style: none; margin: 0; padding: 0; }
.dash-hbars li { display: grid; grid-template-columns: minmax(110px, 40%) 1fr 32px; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
.dash-hbar { height: 10px; background: #eef1f6; border-radius: 0 5px 5px 0; overflow: hidden; }
.dash-hbar i { display: block; height: 100%; background: #2c5299; border-radius: 0 5px 5px 0; min-width: 2px; }
.dash-hbar i.is-done { background: var(--green); }
.dash-hbars b { text-align: right; }
/* Dashboard: tooltip batang di tepi tidak keluar dari kartu */
.dash-bar:first-child::after { left: 0; transform: none; }
.dash-bar:last-child::after, .dash-bar:nth-last-child(2)::after { left: auto; right: 0; transform: none; }
.dash-head2 { margin-top: 8px; align-items: center; }
/* Aktivitas di luar tahapan project */
.pj-tabs { margin-bottom: 12px; }
.at-chip { display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
  font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; background: #eef1f5; color: #475569; }
.at-c0 { background: #e6eefb; color: #2c5299; } .at-c1 { background: #dff3f0; color: #0f6b62; } .at-c2 { background: #fcefdf; color: #8f4508; }
.at-c3 { background: #eee8fc; color: #5b21b6; } .at-c4 { background: #fce7eb; color: #a3123a; } .at-c5 { background: #e3f4e8; color: #166534; }
.at-c6 { background: #eef1f5; color: #475569; } .at-c7 { background: #ddf2f7; color: #0b5f73; }
.at-when { display: block; font-size: 12px; font-weight: 600; color: var(--text); margin-top: 6px; }
.at-board .pj-meta { margin-top: 4px; }
.pj-col.at-col-menunggu { background: #fbf3e2; }
.at-more { font-size: 12px; color: var(--muted); text-align: center; margin: 4px 6px 0; }
.at-table td.nowrap { white-space: nowrap; }
.pj-stage-table .at-chip { margin-left: 8px; }
.pj-stage-table td input[name^=nama] { width: auto; max-width: 260px; display: inline-block; }
.at-help ul { margin: 6px 0 0; padding-left: 18px; }
.at-help li { margin-bottom: 8px; font-size: 13.5px; }
.at-list { list-style: none; margin: 0 0 8px; padding: 0; }
.at-list li { padding: 8px 0; border-bottom: 1px solid #eef1f5; }
.at-list li:last-child { border-bottom: 0; }
.at-list .at-line { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 3px; }
.at-list a.at-title { font-weight: 700; color: var(--text); }
.dash-table .at-chip { max-width: 140px; }.at-hours { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.at-hours .dash-hbar { flex: 1; }
.at-hours b { font-weight: 600; white-space: nowrap; min-width: 54px; text-align: right; }
.dash-table td.nowrap { white-space: nowrap; }/* Dashboard di layar sempit: kartu tidak lebih lebar dari layar, tabel bisa digeser */
.dash-grid { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.dash-grid > .card { min-width: 0; }
.dash-scroll { overflow-x: auto; }/* tooltip grafik hanya dirender saat disorot, agar tidak menambah lebar halaman di layar sempit */
.dash-bar::after { display: none; }
.dash-bar:hover::after, .dash-bar:focus::after { display: block; }
/* Project dari pengajuan sales */
.pj-req { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pj-req small { color: var(--muted); font-size: 11.5px; }
.pj-req-box { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 6px 0 12px; background: #fafbfd; }
.pj-req-box > summary { cursor: pointer; font-weight: 700; color: var(--primary); padding: 4px 0; }
.pj-req-box[open] > summary { margin-bottom: 8px; }
.pj-src { margin-top: 6px; }
.pj-src summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.pj-src pre { white-space: pre-wrap; font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; max-height: 260px; overflow: auto; }
.pj-import textarea { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.pj-days { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.pj-days input.num { width: 76px; margin: 0; }
.pj-map td:first-child { font-weight: 600; }
.pj-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
.pj-kv th { width: 42%; text-align: left; font-weight: 600; color: var(--muted); }
.pj-table .at-chip { max-width: 160px; }
/* Dashboard: ringkasan semua modul */
.sys-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 10px; margin: 0 0 18px; }
.sys-tile { display: flex; flex-direction: column; gap: 1px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid #c9d3e3; border-radius: 10px;
  padding: 10px 12px; color: var(--text); }
.sys-tile:hover { text-decoration: none; border-color: #b6c3d8; box-shadow: 0 4px 12px rgba(16, 24, 40, .07); }
.sys-tile.is-alert { border-top-color: var(--amber); }
.sys-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.sys-head .ic { width: 15px; height: 15px; }
.sys-tile b { font-size: 24px; color: var(--primary); line-height: 1.15; margin-top: 4px; }
.sys-cap { font-size: 12.5px; }
.sys-tile small { font-size: 11.5px; color: var(--muted); }
.dash-h3 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin: 14px 0 4px; }
.sys-feed .at-line { gap: 8px; }/* form project & impor di layar sempit: kolom tidak melebar mengikuti isi */
@media (max-width: 900px) { .pj-form-grid { grid-template-columns: minmax(0, 1fr); } }
.pj-form-grid > * { min-width: 0; }
.pj-days { white-space: normal; flex-wrap: wrap; }
/* Project: tandai tahap selesai */
.pj-done { height: 24px; padding: 0 8px; border: 1px solid #b7e1c7; background: var(--green-bg); color: var(--green); border-radius: 6px; cursor: pointer;
  font-size: 12px; font-weight: 700; white-space: nowrap; }
.pj-done:hover:not(:disabled) { background: #d4f0de; }
.pj-done:disabled { opacity: .5; cursor: default; }
.pj-moves { align-items: center; }
.pj-done-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-left: 4px solid var(--green); }
.pj-done-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; }
.pj-done-card input[name=note] { flex: 2 1 220px; margin: 0; }.pj-wd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 8px; }
.pj-wd label { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: 500; }
.pj-wd label input { width: auto; margin: 0; }
.pj-hol-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin-bottom: 10px; }
.pj-hol-add label { margin: 0; }
.pj-hol-add .pj-hol-ket { flex: 1 1 200px; }
.pj-hol-table tr.muted td { color: var(--muted); }
.pj-hol-table td.nowrap { white-space: nowrap; }.dash-hbars-wide li { grid-template-columns: minmax(110px, 40%) 1fr 64px; }
/* Project: hold & putaran pengujian */
.pj-top-badges { display: inline-flex; gap: 4px; align-items: center; }
.pj-card.is-hold { background: repeating-linear-gradient(135deg, #fff, #fff 10px, #fbf6ea 10px, #fbf6ea 20px); border-left-color: var(--amber); }
.pj-hold-tag { margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--amber); }
.due-hold { color: var(--amber); }
.pj-hold-card { border-left-color: var(--amber); background: #fffaf0; }
.pj-act-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 12px; margin-bottom: 4px; align-items: start; }
.pj-act { padding: 0; }
.pj-act > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--primary); }
.pj-act[open] > summary { border-bottom: 1px solid var(--line); }
.pj-act > form { padding: 12px 16px; }
.pj-round-list { list-style: none; margin: 0; padding: 0; }
.pj-round-list > li { padding: 10px 0 10px 12px; border-left: 3px solid #dbe3ef; margin-bottom: 6px; }
.pj-round-list > li.is-now { border-left-color: var(--primary-2); }
.pj-round-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pj-round-why { font-size: 13px; margin-top: 2px; }
.pj-round-edit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.pj-round-edit select, .pj-round-edit input { width: auto; flex: 1 1 140px; margin: 0; }
.pj-hold-list { list-style: none; margin: 0; padding: 0; }
.pj-hold-list li { padding: 6px 0; border-bottom: 1px solid #eef1f5; font-size: 13px; }
.pj-stagetimes li.pj-round-sep { display: block; border-bottom: 0; color: var(--primary-2); font-weight: 700; font-size: 12.5px; padding-top: 10px; }
.pj-done-card select[name=hasil] { width: auto; margin: 0; }
.pj-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 13.5px; margin: 4px 0 10px; }
.pj-check input { width: auto; margin: 3px 0 0; }
/* Dashboard: hold & tren per PIC */
.dash-kpi.is-hold { border-left: 4px solid var(--amber); background: #fffaf0; }
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 12px; margin-bottom: 12px; }
.pic-card { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pic-head { display: flex; align-items: center; gap: 8px; }
.pic-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pic-av { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #2c5299; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pic-delta { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pic-delta.up { color: var(--green); } .pic-delta.down { color: var(--red); }
.pic-sum { font-size: 12.5px; color: var(--muted); }
.pic-sum b { font-size: 18px; color: var(--primary); }
.pic-bars { display: flex; align-items: flex-end; gap: 2px; height: 64px; border-bottom: 1px solid var(--line); margin-top: 18px; }
.pic-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; outline: none; }
.pic-bar i { display: block; width: 100%; background: #2c5299; border-radius: 4px 4px 0 0; }
.pic-bar.is-now i { background: #8eaee8; }
.pic-bar:hover i, .pic-bar:focus i { background: #1f3f7a; }
.pic-bar::after { content: attr(data-tip); display: none; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 220px;
  background: #1f2933; color: #fff; font-size: 11.5px; line-height: 1.35; padding: 4px 8px; border-radius: 6px; z-index: 5; pointer-events: none; }
.pic-bar:nth-child(-n+2)::after { left: 0; transform: none; }
.pic-bar:nth-last-child(-n+2)::after { left: auto; right: 0; transform: none; }
.pic-bar:hover::after, .pic-bar:focus::after { display: block; }
.pic-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.pic-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 4px 8px; margin: 4px 0 0; }
.pic-stats div { display: flex; flex-direction: column; }
.pic-stats dt { font-size: 11px; color: var(--muted); }
.pic-stats dd { margin: 0; font-weight: 700; }
.dash-table-view > summary { cursor: pointer; font-weight: 600; color: var(--primary); }
/* Aktivitas: tampilan "Hari ini" per PIC */
.day-bar .day-nav { display: inline-flex; align-items: center; gap: 4px; }
.day-bar .day-nav .date-dmy input { width: 120px; }
.day-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 8px; }
.day-head h2 { margin: 0 0 2px; font-size: 19px; color: var(--primary); }
.day-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.day-sum b { font-size: 15px; color: var(--text); }
.day-sum .due-late b { color: var(--red); } .day-sum .due-ok b { color: var(--green); }
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; align-items: start; }
.day-card { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.day-card.is-none { border-style: dashed; }
.day-card .pic-head { margin-bottom: 4px; }
.day-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.day-h { margin: 8px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.day-h small { font-weight: 400; text-transform: none; }
.day-list { list-style: none; margin: 0; padding: 0; }
.day-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; align-items: start; padding: 6px 0; border-bottom: 1px solid #eef1f5; font-size: 13px; }
.day-item:last-child { border-bottom: 0; }
.day-item.is-done .day-main b { text-decoration: line-through; color: var(--muted); font-weight: 600; }
.day-when { font-size: 12px; font-weight: 700; color: var(--text); }
.day-main { min-width: 0; }
.day-main .at-chip { margin-left: 4px; }
.day-done { width: 28px; height: 26px; border: 1px solid #b7e1c7; background: var(--green-bg); color: var(--green); border-radius: 6px; cursor: pointer; font-weight: 700; }
.day-done:hover:not(:disabled) { background: #d4f0de; }
.day-done:disabled { opacity: .5; cursor: default; }
@media (max-width: 480px) { .day-item { grid-template-columns: 78px 1fr auto; } }
/* Ikon di tombol & teks: ukuran bawaan (aturan yang lebih spesifik di atas tetap berlaku) */
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }
.btn .ic { width: 16px; height: 16px; margin-right: 2px; vertical-align: -3px; }
.btn-sm .ic { width: 14px; height: 14px; }
.day-head .btn { flex: none; }
/* Riwayat produk */
.pg-tag { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: #5b21b6; background: #eee8fc; border-radius: 10px; padding: 1px 8px; }
.pg-tag:hover { text-decoration: none; background: #e2d8fb; }
.pg-count { font-size: 15px; }
.pg-count.is-multi { color: #5b21b6; }
.pg-big { margin: 6px 0 2px; font-size: 13px; color: var(--muted); }
.pg-big b { font-size: 22px; color: #5b21b6; }
.pj-table td.nowrap { white-space: nowrap; }
/* Project: tugas hari ini */
.pj-today-card { border-left: 4px solid var(--primary-2); }
.pj-today-stage { margin: 0 0 6px; font-size: 13.5px; }
.pj-todo-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.pj-todo-form input, .pj-todo-form select { margin: 0; width: auto; }
.pj-todo-form input[name=judul] { flex: 3 1 240px; }
.pj-todo-form input[name=pic] { flex: 1 1 120px; }
.pj-todo-form select { flex: 1 1 130px; }
.pj-today { display: block; margin-top: 6px; font-size: 11.5px; color: var(--primary); background: #eef3fc; border-radius: 6px; padding: 3px 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-today:hover { text-decoration: none; background: #e2eafa; }
.pj-today.is-late { color: var(--red); background: #fdeeee; }
.pj-today.is-clear { color: var(--green); background: var(--green-bg); }
.pj-today-acts { list-style: none; margin: 4px 0 0; padding: 0 0 0 10px; border-left: 2px solid #e3e9f3; }
.pj-today-acts li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 2px 0; }
.pj-today-acts li .day-when { min-width: 74px; font-size: 11.5px; }
.pj-today-acts li.is-done a { text-decoration: line-through; color: var(--muted); }
.pj-today-acts .day-done { width: 24px; height: 22px; margin-left: auto; }.pj-day-item { grid-template-columns: 110px 1fr; }
@media (max-width: 480px) { .pj-day-item { grid-template-columns: 1fr; gap: 2px; } }
/* Pop up semangat (Dashboard) */
dialog.semangat { border: 0; padding: 0; border-radius: 18px; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .35); background: #fff; color: var(--text); }
dialog.semangat::backdrop { background: rgba(15, 23, 42, .55); }
.smg-card { position: relative; padding: 28px 24px 22px; text-align: center; background: linear-gradient(165deg, #eaf2ff 0%, #ffffff 58%); overflow: hidden; }
.smg-emoji { font-size: 54px; line-height: 1; margin-bottom: 6px; display: inline-block; }
.smg-card h2 { margin: 4px 0 8px; font-size: 22px; color: var(--primary); }
.smg-quote { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: #334155; font-style: italic; }
.smg-focus { display: flex; flex-direction: column; gap: 2px; background: #f4f7fb; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; font-size: 13.5px; text-align: left; }
.smg-focus b { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.smg-win { background: var(--green-bg); color: #14532d; border-radius: 12px; padding: 8px 12px; font-size: 13.5px; margin-bottom: 12px; text-align: left; }
.smg-go { width: 100%; justify-content: center; font-size: 15px; padding: 10px 14px; }
.smg-burst { position: absolute; left: 50%; top: 58px; width: 0; height: 0; pointer-events: none; }
.smg-burst i { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--c); opacity: 0; transform: rotate(var(--a)) translateY(0); }
.smg-play .smg-card { animation: smgPop .38s cubic-bezier(.2, .9, .3, 1.3) both; }
.smg-play .smg-emoji { animation: smgBounce .9s ease .15s both; }
.smg-play .smg-burst i { animation: smgBurst .9s ease-out .2s both; }
@keyframes smgPop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes smgBounce { 0% { transform: scale(.3) rotate(-15deg); } 55% { transform: scale(1.2) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes smgBurst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-95px) scale(.6); } }
@media (prefers-reduced-motion: reduce) { .smg-play .smg-card, .smg-play .smg-emoji, .smg-play .smg-burst i { animation: none; } }
.smg-btn { font-size: 15px; line-height: 1; }.my-rep { grid-template-columns: 120px 1fr; }
@media (max-width: 480px) { .my-rep { grid-template-columns: 1fr; gap: 2px; } }/* animasi "pop" pada dialog itu sendiri agar kartu tidak melebihi kotak dialog (tanpa scrollbar sesaat) */
.smg-play .smg-card { animation: none; }
dialog.semangat.smg-play { animation: smgPop .38s cubic-bezier(.2, .9, .3, 1.3) both; }
@media (prefers-reduced-motion: reduce) { dialog.semangat.smg-play { animation: none; } }
/* Alur tahap per jenis kemasan */
.pj-flow-table th.c, .pj-flow-table td.c { text-align: center; }
.pj-flow-table th.c { font-size: 12px; max-width: 120px; white-space: normal; line-height: 1.25; }
.pj-flow-table td.c input { width: 18px; height: 18px; margin: 0; }
.pj-flow-table tr.is-default td:first-child b { color: var(--muted); }
.pj-flow-table td input[name$="[jenis]"] { margin: 0; min-width: 150px; }
/* stepper alur di halaman project */
.pj-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.pj-flow .st { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--line); background: #fff; color: var(--text); }
.pj-flow .st.is-past { background: var(--green-bg); border-color: #b7e1c7; color: #14532d; }
.pj-flow .st.is-now { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.pj-flow .st.is-skip { background: #f4f5f7; color: #8a94a6; text-decoration: line-through; border-style: dashed; }
.pj-flow .arr { color: #b6c0cf; font-size: 12px; }
.pj-flow-edit { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 6px 0; }
.pj-flow-edit label { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-weight: 500; font-size: 13px; }
.pj-flow-edit label input { width: auto; margin: 0; }
.pj-flow-box { flex-basis: 100%; margin-top: 2px; }

/* Dashboard Saya: ubah progres tugas */
.day-hasil { margin-top: 3px; font-size: 12px; color: #334155; background: #f6f8fb; border-radius: 6px; padding: 3px 7px; }
.day-edit { margin-top: 4px; }
.day-edit > summary { cursor: pointer; font-size: 12px; color: var(--primary-2); display: inline-block; }
.day-edit[open] > summary { margin-bottom: 6px; }
.day-edit-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px 10px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.day-edit-form label { margin: 0; font-size: 12px; }
.day-edit-form select, .day-edit-form input, .day-edit-form textarea { margin: 2px 0 0; }
.day-edit-wide, .day-edit-actions { grid-column: 1 / -1; }
.day-edit-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.day-history { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.day-history > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.day-item.is-done .day-edit, .day-item.is-done .day-hasil { text-decoration: none; }
/* Cek Design: alat ukur huruf vector */
.glyph-opt { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.glyph-opt label { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.glyph-opt select, .glyph-opt input { width: auto; margin: 0; padding: 4px 6px; }
.glyph-opt input { width: 56px; }
/* Lampiran dengan tempel screenshot (Ctrl+V) */
.paste-zone { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; padding: 12px 14px; border: 2px dashed #b9c7dd; border-radius: 10px;
  background: #f6f9fe; cursor: pointer; outline: none; caret-color: transparent; transition: border-color .12s, background .12s; }
.paste-zone:hover { border-color: var(--primary-2); }
.paste-zone:focus { border-color: var(--primary-2); background: #eaf2ff; box-shadow: 0 0 0 3px rgba(6, 182, 212, .18); }
.paste-zone:focus .pz-title::after { content: '  ← siap, tekan Ctrl+V'; color: var(--primary-2); font-weight: 600; }
.paste-zone.is-over { border-color: var(--primary-2); background: #e3ecfb; }
.paste-zone.is-busy { opacity: .6; }
.paste-zone.is-done { border-style: solid; border-color: #9fd5b4; background: var(--green-bg); }
.paste-zone.is-done .pz-title { color: #14532d; }
.paste-zone .pz-title { font-size: 13.5px; color: var(--primary); }
.paste-zone img, .paste-zone br { display: none; }
.pz-undo { margin-top: 4px; }
/* Cek Design di layar sempit: kolom grid tidak melebar mengikuti isi */
.dsg-rek { grid-template-columns: minmax(0, 1fr); }
.dsg-rek > *, .dsg-att, .paste-zone { min-width: 0; }
@media (max-width: 900px) { .dsg-viewer, .dsg-sum { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .kv-plain { grid-template-columns: minmax(90px, 40%) minmax(0, 1fr); }
  .kv-plain dd { min-width: 0; overflow-wrap: anywhere; }
}
.dsg-att img, img.fd-att { max-width: 100%; height: auto; }

/* Dashboard Saya: update progress project oleh staff */
.pj-staff-done { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.pj-staff-done input[name=note] { flex: 2 1 200px; margin: 0; }
.pj-staff-done select { width: auto; margin: 0; }
.day-edit-form .pj-range input.num { width: 70px; }
/* Spek: acuan Standar dari rata-rata hasil pemeriksaan */
.sp-ref { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.sp-ref b { color: var(--text); font-weight: 600; }
.sp-ref .link-btn { font-size: 12px; padding: 0; }
.sp-ref .sp-coa { flex-basis: 100%; }
/* Cek Design: OK dengan Catatan & Hasil Pemeriksaan Desain dipilih staff */
.fd-table .fd-res { width: 12%; }
.fd-pnote { margin-top: 4px; font-size: 0.92em; }
.dsg-form label.radio.okc:has(input:checked) { color: var(--amber); font-weight: 600; }
.dsg-form label.radio.ok:has(input:checked) { color: var(--green); font-weight: 600; }
.dsg-form label.radio.nok:has(input:checked) { color: var(--red); font-weight: 600; }
.dsg-pnote { display: block; width: 100%; margin-top: 6px; }
.dsg-pnote[hidden] { display: none; }
.dsg-hasil-pick { border-left: 3px solid var(--line); padding-left: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.dsg-hasil-pick p { flex-basis: 100%; margin: 0; }
/* PPOS: unduh Dummy + Blanko, scan hard copy bertanda tangan */
.btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: auto; }
.pp-wet { font: italic 12px Arial, sans-serif; color: #1a2a6c; }
span.pp-wet { color: var(--amber); }
.pp-scans { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 10px 0 12px; }
.pp-scan { margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--card, #fff); }
.pp-scan > a { display: flex; align-items: center; justify-content: center; height: 200px; background: #f4f6fa; border-radius: 6px; overflow: hidden; }
.pp-scan img { max-width: 100%; max-height: 200px; object-fit: contain; display: block; }
.pp-scan figcaption { font-size: 13px; margin-top: 6px; line-height: 1.35; overflow-wrap: anywhere; }
.pp-scan-pdf { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 66px; border-radius: 4px; background: #c0392b; color: #fff; font: 700 14px Arial, sans-serif; }
.pp-scan-form { border-top: 1px solid var(--line); padding-top: 10px; }
.pp-scan-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pp-scan-bar .pp-scan-cap { flex: 1 1 260px; margin: 0; }
.pp-scan-new { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.pp-scan-new:empty { display: none; }
.pp-scan-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px dashed var(--line); border-radius: 6px; font-size: 13px; }
.pp-scan-item img { width: 46px; height: 58px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
.pp-scan-item .pp-scan-pdf { width: 46px; height: 58px; font-size: 12px; }
.pp-scan-item .pp-scan-name { flex: 1; overflow-wrap: anywhere; }td.actions .inline-del { margin-left: 10px; }
