/* Alat daftar (V54; list-tools.js): tab kategori / status dan menu ("Urutkan", di Proyek juga "Provinsi")
   dalam satu baris dengan garisnya; menunya turun di bawah tombol, rata kanan. Tombolnya tanpa kotak:
   ikon dan teks, seperti tab. Ponsel: ikon saja. Dipakai berita.html dan proyek-daftar.html. */
.nk-alat{display:flex;align-items:center;gap:8px 24px;margin:0 0 32px;border-bottom:1px solid var(--nk-line)}
.nk-alat .nk-chips--tab{flex:1 1 auto;min-width:0;margin:0;border-bottom:0}
/* the tabs' frame, with an arrow over each cut edge while there are more tabs that way (list-tools.js, 19 Nov 2026), on a
   fade in the colour behind the row (--nk-alat-latar, read by the script) */
.nk-alat__tab{position:relative;display:flex;flex:1 1 auto;min-width:0}
.nk-alat__geser{position:absolute;z-index:1;top:0;bottom:0;display:flex;align-items:center;width:40px;padding:0;border:0;color:var(--nk-ink);cursor:pointer;
  touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.nk-alat__geser[hidden]{display:none}
.nk-alat__geser[data-arah="kiri"]{left:0;justify-content:flex-start;background:linear-gradient(to right,var(--nk-alat-latar,#fff) 50%,transparent)}
.nk-alat__geser[data-arah="kanan"]{right:0;justify-content:flex-end;background:linear-gradient(to left,var(--nk-alat-latar,#fff) 50%,transparent)}
.nk-alat__geser svg{width:20px;height:20px;flex:none}
.nk-alat__geser:hover{color:var(--nk-forest)}
/* drag to scroll (list-tools.js): a grab cursor while the row overflows, grabbing and no text selection while dragging */
.nk-alat__tab.is-luap .nk-chips--tab{cursor:grab}
.nk-alat__tab.is-tarik,.nk-alat__tab.is-tarik *{cursor:grabbing;user-select:none}
.nk-menu{position:relative;flex:none}
.nk-menu__tombol{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 0;border:0;border-radius:8px;background:none;color:var(--nk-ink);
  font:600 16px/24px var(--nk-font);cursor:pointer;touch-action:manipulation}   /* --r-md */
.nk-menu__tombol svg{width:18px;height:18px;flex:none}
.nk-menu__tombol:hover,.nk-menu__tombol.is-aktif{color:var(--nk-forest)}
.nk-menu__tombol:focus-visible{outline:3px solid var(--nk-forest);outline-offset:2px}
.nk-menu__nilai{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-left:8px;border-left:1px solid var(--nk-line);font-weight:400;color:var(--nk-ink)}
.nk-menu__panel{position:absolute;top:calc(100% + 8px);right:0;z-index:30;width:300px;max-width:calc(100vw - 32px);padding:8px;border:1px solid var(--nk-line);border-radius:12px;
  background:#fff;box-shadow:var(--shadow-3)}   /* --r-lg; under the sticky header (40) */
.nk-menu__panel[hidden]{display:none}
.nk-menu--urut .nk-menu__panel{width:200px}
.nk-menu__daftar{max-height:300px;margin:0;padding:0;overflow:auto;overscroll-behavior:contain;list-style:none}
.nk-menu__panel.nk-menu__daftar{max-height:none;padding:8px}
.nk-menu__daftar li{display:flex;align-items:center;gap:12px;min-height:40px;padding:6px 10px;border-radius:8px;color:var(--nk-ink);font:400 16px/24px var(--nk-font);cursor:pointer}
.nk-menu__daftar li svg{width:18px;height:18px;flex:none;color:var(--nk-ink-soft)}
.nk-menu__daftar li:hover,.nk-menu__daftar li:focus{background:var(--leaf-wash);outline:none}
.nk-menu__daftar li:focus-visible{box-shadow:inset 0 0 0 2px var(--nk-forest)}
.nk-menu__daftar li[aria-selected="true"]{font-weight:600}
.nk-menu__daftar li[aria-selected="true"] svg:last-child{color:var(--nk-forest)}
/* a search field in a panel (the Proyek "Provinsi" menu, the search button); moved here from project-filter.css 12 Nov 2026 */
.nk-menu__cari{display:flex;align-items:center;gap:8px;margin:0 0 6px;padding:0 10px;border:1px solid var(--nk-line);border-radius:8px;background:var(--nk-paper)}
.nk-menu__cari svg{width:16px;height:16px;flex:none;color:var(--nk-ink-soft)}
.nk-menu__cari input{flex:1 1 auto;min-width:0;height:38px;padding:0;border:0;background:transparent;color:var(--nk-ink);font:400 16px/24px var(--nk-font);outline:none}   /* 16 px: no zoom on iOS; the ring is on the box */
.nk-menu__cari:focus-within{border-color:var(--nk-forest);box-shadow:0 0 0 2px rgba(51,103,46,.25)}   /* --forest */
/* an icon-only menu button: the search trigger of ui/command.js, last in the row (12 Nov 2026); the word for screen readers, a green dot when active */
.nk-menu--cari .nk-menu__tombol{position:relative;padding:6px 8px}
.nk-menu--cari .nk-menu__tombol > span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.nk-menu--cari .nk-menu__tombol.is-aktif::after{content:"";position:absolute;top:8px;right:4px;width:8px;height:8px;border-radius:50%;background:var(--nk-forest);box-shadow:0 0 0 2px #fff}
.nk-menu__nama{flex:1 1 auto;min-width:0}
.nk-menu__n{font-size:14px;color:var(--nk-ink-soft);font-variant-numeric:tabular-nums}
.nk-menu__ruang{width:18px;flex:none}
@media (pointer:coarse){ .nk-menu__tombol,.nk-menu__daftar li{min-height:44px} }
/* phones: the icon only, so the tabs keep their room; the word and the choice stay for screen readers, a green dot on the
   icon while something other than the default is chosen */
@media (max-width:760px){
  .nk-alat{gap:8px 12px}
  .nk-menu__tombol{position:relative;padding:6px 8px}
  .nk-menu__tombol > span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .nk-menu__tombol.is-aktif::after{content:"";position:absolute;top:8px;right:4px;width:8px;height:8px;border-radius:50%;background:var(--nk-forest);box-shadow:0 0 0 2px #fff}
}
