/* Timeline project di tab Project delivery (v3.2, Task 6 dan 7). Semua selektor mulai dari kelas ptl-: dimuat di tiap halaman
   bareng hal-*.css lain, jadi ga boleh nimpa yang bukan miliknya. Komponen app.css yang dipakai apa adanya: .panel, .ph,
   .btn, .av. Posisi bar diset JS lewat CSSOM (left, right, width dalam persen lane). Layar sempit ditandai kelas
   ptl-sempit di akar panel (lebar panel, bukan lebar layar), tampilan ptl-m-item, ptl-m-orang, ptl-m-daftar. */
.ptl-panel { position: relative; overflow: hidden; --ptl-kiri: 392px; --ptl-teks: #3B3631; --ptl-abu: #8B8178; --ptl-bata: #A3341A; }
.ptl-panel button { color: inherit; }
.ptl-panel button:focus-visible, .ptl-kan:focus-visible, .ptl-panel a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ptl-panel .av.s { width: 22px; height: 22px; font-size: 10px; border-width: 1.5px; }
.ptl-panel b { font-weight: 600; }
.ptl-m { color: var(--red); }
.ptl-redup { color: var(--faint); }
.ptl-sp { flex: 1; }
.ptl-tb { font-weight: 600; }
.ptl-panel [hidden] { display: none; }
.ptl-av-kos { background: #fff; border-style: dashed; color: var(--muted); }

/* ---------- warna langkah ---------- */
.ptl-k-naskah { --c: var(--rose); --p: #F7E6E5; }
.ptl-k-produksi { --c: var(--sky); --p: #DDEEF9; }
.ptl-k-preview { --c: #4C5AA8; --p: #DFE2F2; }
.ptl-k-revisi { --c: var(--pink); --p: #FDDDE8; }
.ptl-k-approval { --c: var(--yellow); --p: #FDEBC3; }
.ptl-k-tayang { --c: var(--green); --p: #D6F0E2; }
.ptl-k-lain { --c: #A89F95; --p: #EFEAE4; }
.ptl-kt { display: inline-block; width: 11px; height: 11px; border-radius: 3px; background: var(--c); flex: none; }

/* ---------- kepala panel ---------- */
.ptl-atas { padding: 14px 18px 10px; }
.ptl-jdl { display: flex; align-items: baseline; gap: 10px; }
.ptl-jdl h2 { font: 400 22px/1.1 var(--f-head); margin: 0; white-space: nowrap; }
.ptl-c { font: 500 13px var(--f-body); color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptl-jdl .btn { align-self: center; height: 30px; flex: none; }
.ptl-ik { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ptl-zoom, .ptl-tampil { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 7px; overflow: hidden; align-self: center; flex: none; }
.ptl-zoom-tombol, .ptl-tampil-tombol { border: 0; background: #fff; height: 30px; padding: 0 14px; font: 500 13px var(--f-body); cursor: pointer; white-space: nowrap; }
.ptl-zoom-tombol + .ptl-zoom-tombol, .ptl-tampil-tombol + .ptl-tampil-tombol { border-left: 1.5px solid var(--ink); }
.ptl-panel .ptl-zoom-tombol.ptl-on, .ptl-panel .ptl-tampil-tombol.ptl-on { background: var(--ink); color: #fff; }
.ptl-panel .ptl-zoom-tombol:focus-visible, .ptl-panel .ptl-tampil-tombol:focus-visible { outline-offset: -4px; }
.ptl-panel .ptl-on:focus-visible { outline-color: #fff; }
.ptl-jdl .ptl-tutup { width: 32px; padding: 0; justify-content: center; font-size: 18px; line-height: 1; }
.ptl-kabar { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 9px 12px; border: 1.5px dashed var(--ptl-abu); border-radius: 8px; background: #FFF9EA; font-size: 13.5px; }
.ptl-kabar .ptl-bd { background: var(--pill-grey); font-size: 9px; letter-spacing: -.03em; }
.ptl-kabar .btn { flex: none; }
.ptl-info { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.ptl-ring { display: grid; grid-template-columns: repeat(5, 1fr); margin: 12px 0 10px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ptl-ring-6 { grid-template-columns: repeat(6, 1fr); }
.ptl-ring-6 .ptl-rk { gap: 8px; padding: 8px 10px; }
.ptl-ring-6 .ptl-rk > span { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.ptl-ring-6 .ptl-rk small { font-size: 11.5px; }
.ptl-rk { font-family: inherit; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: #fff; padding: 8px 14px; cursor: pointer; min-width: 0; }
.ptl-rk + .ptl-rk { border-left: 1px solid var(--line); }
.ptl-rk:hover:not(:disabled) { background: #FCFAF7; }
.ptl-rk:disabled { cursor: default; }
.ptl-rk > b { font: 600 26px/1 var(--f-body); min-width: 18px; font-variant-numeric: proportional-nums; }
.ptl-rk > span { font-size: 13px; font-weight: 600; line-height: 1.35; min-width: 0; white-space: nowrap; }
.ptl-rk small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptl-rk i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: #A89F95; }
.ptl-rk-telat i { background: var(--red); }
.ptl-rk-telat > b { color: var(--red); }
.ptl-rk-nunggu_client i { background: var(--yellow); }
.ptl-rk-nunggu_tim i { background: var(--sky); }
.ptl-rk-nunggu_vendor i { background: var(--pink); }
.ptl-rk-tayang_minggu_ini i { background: var(--green); }
.ptl-rk-tanpa_tanggal i { background: #fff; border: 1.5px dashed var(--ptl-abu); }
.ptl-panel .ptl-nol, .ptl-nol > b, .ptl-nol > span { color: var(--faint); font-weight: 500; }
.ptl-nol i { background: #E6DED5; border: 0; }
.ptl-rk[aria-pressed="true"] { background: #FFF3D6; box-shadow: inset 0 -3px 0 var(--ink); }
.ptl-nav { display: flex; align-items: center; gap: 6px; }
.ptl-nav .btn { height: 28px; }
.ptl-nav .btn:disabled { opacity: .4; cursor: default; }
.ptl-rg { font-size: 13px; font-weight: 600; margin-left: 8px; white-space: nowrap; }
.ptl-lg { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); }
.ptl-lg > span { white-space: nowrap; }
.ptl-lg i { display: inline-block; width: 22px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.ptl-lg-padat { background: var(--sky); }
.ptl-lg-rencana { background: #DDEEF9; border: 1.25px solid var(--sky); }
.ptl-lg-perkiraan { border: 1.5px dashed var(--ptl-abu); background: #fff; }
.ptl-lg-nunggu { background: repeating-linear-gradient(135deg, var(--yellow) 0 4px, #FDE9B8 4px 8px); }
.ptl-lg-telat { background: var(--red); }
.ptl-kosong { margin: 0 18px 18px; padding: 14px 16px; border: 1.25px dashed #CFC6BC; border-radius: 8px; background: repeating-linear-gradient(135deg, #FBF8F5 0 6px, #fff 6px 12px); font-size: 13px; color: var(--muted); }
.ptl-kosong p { margin: 0; }

/* ---------- kanvas: kolom kiri dan lane ---------- */
.ptl-kan { border-top: 1px solid var(--line); }
.ptl-kep, .ptl-br, .ptl-latar { display: grid; grid-template-columns: var(--ptl-kiri) minmax(0, 1fr); }
.ptl-kiri { display: grid; grid-template-columns: minmax(0, 1fr) 60px 72px 78px 28px; align-items: center; padding-left: 18px; border-right: 1px solid var(--line); min-width: 0; }
.ptl-kiri > * { min-width: 0; }
.ptl-kep { background: var(--raised); border-bottom: 1px solid var(--line); }
.ptl-kep .ptl-kiri { align-items: end; padding-bottom: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.ptl-kep .ptl-lane { position: relative; height: 54px; }
.ptl-bln, .ptl-mg { position: absolute; left: 0; right: 0; height: 27px; }
.ptl-mg { top: 27px; }
.ptl-bln span, .ptl-mg span { position: absolute; top: 0; bottom: 0; padding: 4px 0 0 8px; border-left: 1px solid var(--line); overflow: hidden; white-space: nowrap; font-size: 12.5px; }
.ptl-bln span { font-weight: 600; border-bottom: 1px solid var(--line); }
.ptl-mg span { color: var(--ptl-teks); }
.ptl-mg .ptl-kini { background: #FFEFC7; font-weight: 600; }
.ptl-bln span:first-child, .ptl-mg span:first-child { border-left: 0; }
.ptl-hi { position: absolute; top: 5px; transform: translateX(-50%); background: var(--orange); border: 1.5px solid var(--ink); border-radius: 4px; padding: 0 6px; font: 600 11px/16px var(--f-body); white-space: nowrap; z-index: 2; }
.ptl-badan { position: relative; }
.ptl-latar { position: absolute; inset: 0; pointer-events: none; }
.ptl-latar .ptl-lane { position: relative; }
.ptl-latar i { position: absolute; top: 0; bottom: 0; }
.ptl-wk { background: #F3EEE8; }
.ptl-sn { width: 1px; background: #E4DBD1; }
.ptl-hr { background: #FFF3D6; }
.ptl-hg { width: 2px; margin-left: -1px; background: var(--orange); }
.ptl-tgl { width: 0; border-left: 2px dashed var(--red); }
.ptl-br { position: relative; border-bottom: 1px solid var(--rule); }
.ptl-br > .ptl-lane { position: relative; min-width: 0; }
.ptl-br:last-child { border-bottom: 0; }

/* ---------- kolom kiri ---------- */
.ptl-nm { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 0 4px 0 0; }
.ptl-panel button.ptl-nm { background: none; border: 0; margin: 0; text-align: left; cursor: pointer; width: 100%; font-family: inherit; }
.ptl-nt { min-width: 0; flex: 1; }
.ptl-nt b, .ptl-pro .ptl-nm b { display: block; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptl-br small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.ptl-br small.ptl-mr { color: var(--ptl-bata); font-weight: 500; }
.ptl-br small.ptl-hj { color: #1C6B43; }
.ptl-jd b.ptl-mr { color: var(--ptl-bata); }
.ptl-ln { color: var(--sky-ink); text-decoration: underline; text-underline-offset: 2px; }
.ptl-or, .ptl-rn, .ptl-jd { font-size: 12.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptl-or > span { display: block; overflow: hidden; text-overflow: ellipsis; }
.ptl-or { padding-right: 6px; }
.ptl-rn { overflow: visible; }
.ptl-kr { color: var(--muted); border-bottom: 1.25px dashed var(--ptl-abu); }
.ptl-tagk { display: inline-block; border: 1.25px dashed var(--ptl-abu); border-radius: 4px; padding: 0 6px; font-size: 11px; font-weight: 500; color: var(--muted); line-height: 18px; background: #fff; }
.ptl-pro { min-height: 78px; border-bottom: 1px solid var(--line); }
.ptl-pro2 { min-height: 96px; }
.ptl-pro .ptl-nm { flex-direction: column; align-items: flex-start; gap: 0; grid-column: 1 / -1; padding: 8px 8px 8px 0; }
.ptl-pro .ptl-nm > * { max-width: 100%; }
.ptl-itm { min-height: 62px; }
.ptl-itm .ptl-nt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow-wrap: anywhere; }
.ptl-itm .ptl-klik { cursor: pointer; }
.ptl-itm:hover > .ptl-klik { background: rgba(255, 240, 200, .25); }
.ptl-cv { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ptl-cv-kosong { visibility: hidden; }
.ptl-terbuka { background: rgba(255, 240, 200, .45); }
.ptl-terbuka .ptl-cv { transform: rotate(90deg); }
.ptl-beres .ptl-nt b { font-weight: 500; }
.ptl-lk { min-height: 46px; }
.ptl-lk .ptl-nm { padding: 4px 2px 4px 20px; }
.ptl-lk .ptl-nt b, .ptl-lk-b { font-weight: 500; }
.ptl-panel .ptl-lk-b { max-width: 100%; border: 0; background: none; padding: 0; margin: 0; font-size: 13.5px; line-height: 1.25; text-align: left; cursor: pointer; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-family: inherit; }
.ptl-lk-b:hover { text-decoration: underline; text-underline-offset: 2px; }
.ptl-pilih { background: #FFF3D6; }
.ptl-pem { display: grid; position: relative; background: var(--raised); border-bottom: 1px solid var(--rule); }
.ptl-pem span { padding: 5px 18px; font-size: 12px; color: var(--muted); font-weight: 500; }
.ptl-pem b { color: var(--ink); }

/* ---------- segmen ---------- */
.ptl-sg { position: absolute; top: 9px; height: 28px; border: 0; border-radius: 4px; padding: 0 4px; margin: 0; display: flex; align-items: center; justify-content: flex-start; gap: 1px; font: 500 11px/1 var(--f-body); white-space: nowrap; border-right: 2px solid #fff; background-clip: padding-box; overflow: hidden; }
.ptl-panel button.ptl-sg { cursor: pointer; color: var(--ink); }
.ptl-ck { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; margin-right: 2px; }
.ptl-potkiri { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ptl-potkanan { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ptl-g-padat { background-color: var(--c); }
.ptl-panel button.ptl-g-padat.ptl-k-preview { color: #fff; }
.ptl-g-rencana { background-color: var(--p); box-shadow: inset 0 0 0 1.5px var(--c); }
.ptl-g-perkiraan { background: color-mix(in srgb, var(--p) 42%, #fff); border: 1.5px dashed var(--ptl-abu); }
.ptl-g-perkiraan, .ptl-panel button.ptl-g-perkiraan { color: var(--ptl-teks); }
.ptl-g-nunggu { background-image: repeating-linear-gradient(135deg, var(--c) 0 6px, var(--p) 6px 12px); }
.ptl-g-nunggu .ptl-tx { background: #fff; border-radius: 3px; padding: 2px 4px; }
.ptl-g-telat { background-color: var(--red); font-weight: 600; justify-content: center; }
.ptl-panel button.ptl-g-telat { color: #fff; }
.ptl-g-telat.ptl-arsir { background-image: repeating-linear-gradient(135deg, var(--red) 0 6px, #8E1E29 6px 12px); }
.ptl-sisa { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ptl-rapat { padding: 0 1px; justify-content: center; letter-spacing: -.02em; }
.ptl-kecil { font-size: 10px; }
.ptl-tanpa { padding: 0; justify-content: center; }
.ptl-tanpa .ptl-ck { margin-right: 0; }
.ptl-sg.ptl-aktif { overflow: visible; }
.ptl-sg.ptl-aktif::after { content: ""; position: absolute; left: 0; right: -2px; bottom: -4px; height: 3px; background: var(--ink); }
.ptl-pic { position: absolute; top: 12px; margin-left: -25px; pointer-events: none; z-index: 2; }
.ptl-ct { position: absolute; top: 41px; font-size: 12px; line-height: 16px; white-space: nowrap; color: var(--ptl-teks); padding-left: 5px; border-left: 2px solid var(--red); background: rgba(255, 255, 255, .85); }
.ptl-ct-kuning { border-left-color: var(--yellow); }
.ptl-ct-putus { border-left: 2px dashed var(--ptl-abu); }
.ptl-ct-redup { color: var(--muted); }
.ptl-uj { position: absolute; top: 14px; font-size: 12px; line-height: 18px; padding: 0 0 0 6px; white-space: nowrap; font-weight: 500; }
.ptl-uj-bw { top: 40px; padding: 0 6px 0 0; }
.ptl-kos { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1.25px dashed #CFC6BC; border-radius: 4px; background: repeating-linear-gradient(135deg, #FBF8F5 0 6px, #fff 6px 12px); padding: 0 10px; font-size: 12px; line-height: 26px; color: var(--muted); }
.ptl-slot { position: absolute; top: 8px; height: 30px; background: #E9E1D8; border-radius: 4px; }
.ptl-lk .ptl-sg { top: 12px; height: 22px; }
.ptl-lk .ptl-pic { top: 12px; }
.ptl-lk .ptl-pic .av.s { width: 20px; height: 20px; font-size: 9px; }
.ptl-lk .ptl-tanpa .ptl-ck { display: none; }
.ptl-lk .ptl-lane.ptl-klik { cursor: pointer; }
.ptl-kn { position: absolute; top: 14px; padding: 0 8px; font-size: 12px; line-height: 18px; white-space: nowrap; color: var(--ptl-teks); }

/* ---------- Seluruh project ---------- */
.ptl-per { position: absolute; top: 10px; height: 22px; border-radius: 4px; background: var(--navy); color: #fff; font-size: 12px; line-height: 22px; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.ptl-per b { margin-right: 4px; }
.ptl-per-kos { background: repeating-linear-gradient(135deg, #FBF8F5 0 7px, #fff 7px 14px); color: var(--ptl-teks); border: 1.5px dashed var(--ptl-abu); line-height: 19px; }
.ptl-ten { position: absolute; top: 9px; background: var(--red); color: #fff; border-radius: 4px; padding: 0 8px; font-size: 12px; line-height: 24px; white-space: nowrap; }
.ptl-pn { position: absolute; top: 46px; font-size: 12px; white-space: nowrap; line-height: 16px; color: var(--ptl-teks); }
.ptl-pn.ptl-j2 { top: 68px; }
.ptl-pn i { position: absolute; left: -6px; top: 2px; width: 12px; height: 12px; transform: rotate(45deg); background: #fff; border: 2px solid var(--ink); border-radius: 2px; }
.ptl-pn b { color: var(--ink); }
.ptl-pn span { display: block; padding-left: 12px; }
.ptl-pn.ptl-balik span { position: absolute; right: 0; padding: 0 12px 0 0; }
.ptl-pn.ptl-ok i { background: var(--ink); }
.ptl-pn.ptl-kira i { border-style: dashed; }

/* ---------- panel samping langkah ---------- */
.ptl-lc { position: fixed; right: 16px; top: 16px; bottom: 44px; width: 380px; max-width: calc(100% - 32px); background: #fff; border: 2px solid var(--ink); border-radius: var(--r-panel); box-shadow: 0 10px 32px rgba(20, 20, 20, .22); z-index: 70; overscroll-behavior: contain; padding: 16px 20px; overflow: auto; display: flex; flex-direction: column; }
.ptl-lc header { display: flex; align-items: flex-start; gap: 10px; }
.ptl-lc header .ptl-kt { width: 16px; height: 16px; margin-top: 5px; }
.ptl-lc header > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ptl-lc h3 { font: 400 22px/1.1 var(--f-head); margin: 0; }
.ptl-lc small { color: var(--muted); font-size: 12px; }
.ptl-panel .ptl-lc-x { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ptl-lc-s { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.ptl-td { display: inline-block; border-radius: 4px; padding: 0 8px; font-size: 12px; line-height: 22px; font-weight: 600; white-space: nowrap; }
.ptl-td-merah { background: var(--red); color: #fff; }
.ptl-td-kuning { background: #FDE9B8; box-shadow: inset 0 0 0 1.25px var(--yellow); }
.ptl-td-hijau { background: var(--pill-green); color: #1C6B43; font-weight: 500; }
.ptl-td-bata { border: 1.25px dashed var(--ptl-bata); color: var(--ptl-bata); line-height: 20px; font-weight: 500; }
.ptl-td-putus { border: 1.25px dashed var(--ptl-abu); color: var(--muted); line-height: 20px; font-weight: 500; }
.ptl-lc-g { display: grid; grid-template-columns: 112px 1fr; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; flex: none; }
.ptl-lc-g > div { padding: 8px 12px; min-width: 0; }
.ptl-lc-g > div + div { border-left: 1px solid var(--line); }
.ptl-lc-g small { display: block; }
.ptl-lc-g b { font-size: 13px; }
.ptl-lc dl { margin: 0; }
.ptl-lc dl > div { display: grid; grid-template-columns: 112px 1fr; align-items: center; min-height: 42px; border-bottom: 1px solid var(--rule); }
.ptl-lc dt { font-size: 12.5px; color: var(--muted); }
.ptl-lc dd { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 500; line-height: 1.25; padding: 4px 0; min-width: 0; overflow-wrap: anywhere; }
.ptl-lc dd small { display: block; font-weight: 400; }
.ptl-lc h4 { font: 600 13px var(--f-body); margin: 16px 0 6px; }
.ptl-lc-r, .ptl-lc-f { list-style: none; margin: 0; padding: 0; font-size: 13px; overflow-wrap: anywhere; }
.ptl-lc-r li { display: grid; grid-template-columns: 62px 1fr; line-height: 1.35; }
.ptl-lc-r b { font-weight: 500; color: var(--muted); }
.ptl-lc-r li > span { border-left: 2px solid var(--line); padding: 0 0 10px 12px; position: relative; }
.ptl-lc-r li > span::before { content: ""; box-sizing: border-box; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; }
.ptl-lc-r .ptl-kini { font-weight: 600; }
.ptl-lc-r .ptl-kini > span::before { background: var(--yellow); box-shadow: 0 0 0 1.5px var(--ink); border: 0; }
.ptl-lc-r small, .ptl-lc-f small { display: block; font-weight: 400; }
.ptl-lc-f li { padding: 5px 0; border-bottom: 1px solid var(--rule); }
.ptl-lc-k { margin: 0; font-size: 12.5px; color: var(--muted); }
.ptl-lc footer { margin-top: 16px; }

/* ---------- Perbesar: modal penuh layar ---------- */
.ptl-kunci { overflow: hidden; }
.ptl-modal { position: fixed; inset: 0; z-index: 60; background: rgba(20, 20, 20, .5); display: flex; padding: 22px 26px; }
.ptl-modal > .ptl-panel-modal { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 2px solid var(--ink); }
.ptl-panel-modal .ptl-atas { flex: none; }
.ptl-panel-modal .ptl-kan { flex: 1; overflow: auto; min-height: 0; }
.ptl-panel-modal .ptl-kep { position: sticky; top: 0; z-index: 7; }

/* ---------- baris catatan item: approval client, revisi, vendor, post ---------- */
.ptl-inf { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; padding: 6px 18px 6px 38px; min-height: 34px; background: #FFFBF1; border-bottom: 1px solid var(--rule); font-size: 12.5px; color: var(--muted); }
.ptl-inf b { color: var(--ink); }
.ptl-inf small { font-size: 12px; white-space: normal; }
.ptl-inf .pill, .ptl-inf .tag { height: 20px; font-size: 11.5px; }

/* ---------- Per orang (diredam): tinggi bar kecil, yang beres pucat, arsir tipis, tulisan di luar abu ---------- */
.ptl-lg-l { display: none; }
.ptl-m-orang .ptl-lg { display: none; }
.ptl-m-orang .ptl-lg-l { display: inline-flex; }
.ptl-lg-l .ptl-kt { width: 11px; height: 11px; vertical-align: -1px; }
.ptl-m-orang { --ptl-kiri: 344px; }
.ptl-m-orang .ptl-kiri { grid-template-columns: minmax(0, 1fr) 68px 44px 64px; padding-right: 10px; }
.ptl-m-orang .ptl-kep .ptl-kiri > :not(:first-child) { text-align: right; white-space: nowrap; }
.ptl-org .ptl-kiri { align-items: start; padding-top: 12px; }
.ptl-org .ptl-nm { padding: 0; }
.ptl-num { text-align: right; font-size: 15px; font-weight: 600; padding-top: 3px; font-variant-numeric: tabular-nums; }
.ptl-num.ptl-redup { font-weight: 400; }
.ptl-bb { position: absolute; top: 6px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 8px; font-size: 11.5px; line-height: 18px; color: var(--muted); white-space: nowrap; overflow: hidden; z-index: 1; }
.ptl-bb.ptl-redup { color: var(--faint); }
.ptl-kr2 { display: block; font-size: 11px; font-weight: 400; line-height: 1.1; color: var(--muted); white-space: nowrap; }
.ptl-ho-n .ptl-kr2 { display: inline; font-size: inherit; }
.ptl-padat { color: var(--ptl-bata); font-weight: 600; }
.ptl-panel .ptl-lagi { margin: 0 0 0 auto; border: 0; background: none; padding: 0 2px; font: 500 11.5px/18px var(--f-body); color: var(--sky-ink); cursor: pointer; }
.ptl-panel .ptl-lagi:focus-visible { outline-offset: -2px; }
.ptl-lagi:hover, .ptl-tt:hover { text-decoration: underline; text-underline-offset: 2px; }
.ptl-org .ptl-os { height: 20px; border-radius: 3px; font-size: 11px; }
.ptl-org .ptl-g-padat { background-color: color-mix(in srgb, var(--c) 78%, #fff); }
.ptl-panel .ptl-org button.ptl-g-padat.ptl-k-preview { background-color: var(--c); }
.ptl-org .ptl-k-lain.ptl-g-padat { background-color: #DDD5CC; }
.ptl-org .ptl-g-rencana { box-shadow: none; }
.ptl-org .ptl-g-perkiraan { background: #fff; border-width: 1.25px; }
.ptl-org .ptl-g-nunggu { background-image: repeating-linear-gradient(135deg, var(--p) 0 5px, #fff 5px 10px); box-shadow: inset 0 0 0 1.25px var(--c); }
.ptl-org .ptl-g-beres { background-color: #F1ECE6; }
.ptl-panel .ptl-org .ptl-g-beres { color: var(--ptl-abu); }
.ptl-org .ptl-potkiri { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ptl-org .ptl-potkanan { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ptl-ol { position: absolute; padding: 0 6px; font-size: 11px; line-height: 20px; white-space: nowrap; color: var(--ptl-teks); pointer-events: none; }
.ptl-ol.ptl-redup { color: var(--faint); }

/* ---------- Daftar ---------- */
.ptl-df { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
.ptl-df th, .ptl-df td { padding: 0 8px; text-align: left; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptl-df th:first-child, .ptl-df td:first-child { padding-left: 18px; }
.ptl-df thead th { height: 34px; background: var(--raised); font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ptl-df td { height: 38px; border-top: 1px solid var(--rule); }
.ptl-df .ptl-tb { font-weight: 600; }
.ptl-sep th { height: 30px; background: var(--raised); border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.ptl-sep b { color: var(--muted); margin-left: 4px; }
.ptl-df .ptl-sep-m th, h4.ptl-sep-m { background: #FBEBEC; color: var(--red); }
.ptl-sep-m b { color: var(--red); }
.ptl-dl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ptl-dl > span:last-child, .ptl-dl > .ptl-lk-b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ptl-panel .ptl-df .ptl-lk-b { display: block; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; line-height: 20px; }
.ptl-df small { color: var(--muted); font-size: 12px; }
.ptl-df .ptl-hj, .ptl-hd .ptl-hj { color: #1C6B43; }
.ptl-df .ptl-brs, .ptl-df .ptl-brs .ptl-tb { color: var(--muted); font-weight: 400; }
.ptl-kaki { margin: 0; padding: 11px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.ptl-panel .ptl-tt { border: 0; background: none; padding: 0; font: 500 12.5px var(--f-body); color: var(--sky-ink); cursor: pointer; }

/* ---------- panel sempit (HP): susunan sendiri, ga ada lane ---------- */
.ptl-sempit .ptl-atas { padding: 14px 14px 10px; }
.ptl-sempit .ptl-jdl, .ptl-sempit .ptl-kabar { flex-wrap: wrap; gap: 4px 10px; }
.ptl-sempit .ptl-kabar { gap: 8px 10px; }
.ptl-sempit .ptl-kabar > span:nth-child(2) { flex: 1 1 200px; }
.ptl-sempit .ptl-c { white-space: normal; flex-basis: 100%; }
.ptl-sempit .ptl-perbesar, .ptl-sempit .ptl-jdl > .ptl-sp { display: none; }
.ptl-sempit .ptl-tampil { width: 100%; margin-top: 8px; }
.ptl-sempit .ptl-tampil-tombol { flex: 1; height: 40px; padding: 0; font-size: 13.5px; }
.ptl-sempit .ptl-ring { display: flex; overflow-x: auto; scrollbar-width: none; margin: 12px -14px 0; border-radius: 0; border-width: 1px 0; }
.ptl-sempit .ptl-rk { flex: 0 0 auto; min-height: 46px; padding: 8px 14px; gap: 10px; }
.ptl-sempit .ptl-rk > b { font-size: 20px; min-width: 0; }
.ptl-sempit .ptl-rk small, .ptl-sempit .ptl-nol { display: none; }
.ptl-sempit .ptl-ring:not(:has(.ptl-rk:not(.ptl-nol))) { display: none; }
.ptl-sempit .ptl-kan { border-top: 0; }
.ptl-hp { padding: 0 14px 14px; }
.ptl-hp h3 { font: 400 17px/1.1 var(--f-head); margin: 18px 0 8px; }
.ptl-hp h4 { font: 600 12.5px var(--f-body); margin: 12px 0 0; color: var(--muted); }
.ptl-hp-kos { margin: 0; font-size: 12.5px; color: var(--muted); }
.ptl-hp-pen { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 6px; margin: 4px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); }
.ptl-hp-pen li { position: relative; padding-left: 17px; font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.ptl-hp-pen i { position: absolute; left: 1px; top: 3px; width: 9px; height: 9px; transform: rotate(45deg); border: 1.75px solid var(--ink); background: #fff; border-radius: 1px; }
.ptl-hp-pen .ptl-ok i { background: var(--ink); }
.ptl-hp-pen .ptl-kira i { border-style: dashed; }
.ptl-hp-pen .ptl-tg2 i { background: var(--red); border-color: var(--red); }
.ptl-hp-pen .ptl-tg2 b { color: var(--red); }
.ptl-hp-pen b { display: block; }
.ptl-hp-pen small { color: var(--muted); font-size: 12px; }
.ptl-ha { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); }
.ptl-ha > b { font: 500 12px/1.2 var(--f-body); color: var(--muted); text-align: center; }
.ptl-ha > b em { display: block; font: 600 19px/1.2 var(--f-body); color: var(--ink); }
.ptl-ha > .ptl-kini em { background: var(--orange); border: 1.5px solid var(--ink); border-radius: 6px; }
.ptl-ha ul, .ptl-ho-l, .ptl-hd { list-style: none; margin: 0; padding: 0; }
.ptl-panel .ptl-hb { display: flex; align-items: flex-start; gap: 9px; width: 100%; min-height: 40px; padding: 3px 0; border: 0; background: none; text-align: left; font: 400 13.5px/1.3 var(--f-body); cursor: pointer; }
.ptl-hb .ptl-kt { margin-top: 4px; }
.ptl-hb > span { min-width: 0; overflow-wrap: anywhere; }
.ptl-hp .ptl-hb b { font-weight: 500; }
.ptl-hp small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.ptl-hp small.ptl-mr { color: var(--ptl-bata); }
.ptl-hk { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px 12px; margin-bottom: 10px; background: #fff; }
.ptl-m-orang .ptl-hk { margin-top: 10px; }
.ptl-panel .ptl-hk-a { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: none; padding: 0; margin: 0; text-align: left; font-family: inherit; font-size: 14px; }
.ptl-panel button.ptl-hk-a { cursor: pointer; }
.ptl-hk-a .ptl-nt b { font-size: 14.5px; white-space: normal; overflow-wrap: anywhere; }
.ptl-hk-a .ptl-nm { min-width: 0; }
.ptl-hk-a .av { flex: none; }
.ptl-hk-t { flex: none; text-align: right; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.ptl-hk-t b { display: block; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.ptl-hk-buka .ptl-cv { transform: rotate(90deg); }
.ptl-hk-b { display: grid; gap: 2px; margin-top: 10px; }
.ptl-hk-b i { font-style: normal; height: 26px; border-radius: 3px; display: grid; place-items: center; background: var(--p); box-shadow: inset 0 0 0 1.25px var(--c); min-width: 0; overflow: hidden; }
.ptl-hk-b u { text-decoration: none; font-size: 10px; font-weight: 500; white-space: nowrap; }
.ptl-hk-b .ptl-hk-jadi, .ptl-hk-b .ptl-hk-jalan { background: var(--c); }
.ptl-hk-b .ptl-hk-jadi.ptl-k-preview u, .ptl-hk-b .ptl-hk-jalan.ptl-k-preview u { color: #fff; }
.ptl-hk-b .ptl-hk-jalan { box-shadow: inset 0 0 0 2px var(--ink); }
.ptl-hk-b .ptl-hk-nunggu { background: repeating-linear-gradient(135deg, var(--c) 0 5px, var(--p) 5px 10px); box-shadow: inset 0 0 0 2px var(--ink); }
.ptl-hk-nunggu u { background: #fff; border-radius: 2px; line-height: 14px; }
.ptl-hk-b .ptl-hk-perkiraan { background: #fff; box-shadow: none; border: 1.25px dashed var(--ptl-abu); }
.ptl-hk-b .ptl-lt { box-shadow: inset 0 0 0 2px var(--red); }
.ptl-hk-c { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; font-size: 12.5px; }
.ptl-hk-c .ptl-td { white-space: normal; }
.ptl-nx { margin-left: auto; color: var(--ptl-teks); }
.ptl-hk .ptl-inf { margin: 10px -12px 0; padding: 6px 12px; border-top: 1px solid var(--rule); border-bottom: 0; }
.ptl-hk-l { list-style: none; margin: 10px 0 0; padding: 0; }
.ptl-hk-l li { display: grid; grid-template-columns: 11px minmax(0, 1fr) 78px 80px; gap: 9px; align-items: center; padding: 7px 0; border-top: 1px solid var(--rule); font-size: 12.5px; line-height: 1.3; }
.ptl-hk-l li > span { min-width: 0; overflow-wrap: anywhere; }
.ptl-panel .ptl-hk-l .ptl-lk-b { font-weight: 600; font-size: 13px; padding: 3px 0; }
.ptl-sempit .ptl-hk-l .ptl-jd { white-space: normal; overflow: visible; }
.ptl-hk-u { width: 100%; justify-content: center; height: 40px; margin-top: 6px; border-color: var(--ink); }
.ptl-ho-n { display: flex; gap: 18px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.ptl-ho-n b { color: var(--ink); }
.ptl-ho-n .ptl-m b { color: var(--red); }
.ptl-ho-l { margin-top: 4px; }
.ptl-hk .ptl-tt { display: block; min-height: 32px; }
.ptl-hp h4.ptl-sep { margin: 12px -14px 0; padding: 7px 14px; background: var(--raised); color: var(--ink); border-top: 1px solid var(--line); }
.ptl-hp h4.ptl-sep-m { background: #FBEBEC; color: var(--red); }
.ptl-m-daftar .ptl-hp > h4:first-child { margin-top: 0; }
.ptl-hd li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 13px; line-height: 1.35; }
.ptl-hd .ptl-tb { font-size: 12.5px; white-space: nowrap; }
.ptl-hd li:last-child { border-bottom: 0; }
.ptl-hd .ptl-hd-s { color: var(--ptl-teks); }
.ptl-hd .ptl-brs .ptl-tb { color: var(--muted); font-weight: 400; }
.ptl-hp .ptl-kaki { padding: 11px 0 0; }

/* panel langkah di HP: lembar penuh dari bawah, layar di belakangnya gelap dan ga ikut kegeser */
.ptl-sempit .ptl-lc { left: 0; right: 0; top: 28px; bottom: 0; width: auto; max-width: none; border-width: 2px 0 0; border-radius: 14px 14px 0 0; padding: 18px 16px 24px; }
.ptl-gelap { position: fixed; inset: 0; z-index: 69; background: rgba(20, 20, 20, .45); }
.ptl-sempit .ptl-lc-x { min-width: 44px; min-height: 44px; margin: -10px -10px 0 0; }
.ptl-sempit .ptl-lc footer .btn { width: 100%; justify-content: center; height: 44px; }

@media (max-width: 760px) {
  .ptl-modal { padding: 0; }
  .ptl-modal > .ptl-panel-modal { border: 0; border-radius: 0; }
}
