/* =========================================================
   Pencarian Manual Book & Panduan Operasional
   ========================================================= */

.manual-search{
  position:sticky;
  top:0;
  z-index:6;
  display:flex;
  align-items:center;
  gap:14px;
  margin:4px 0 22px;
  padding:12px 14px;
  border:1px solid #cddff0;
  border-radius:14px;
  background:#f7fbfe;
  box-shadow:0 6px 18px rgba(16,42,67,.08);
}

.manual-search-field{
  position:relative;
  display:flex;
  align-items:center;
  flex:1 1 auto;
  min-width:0;
}
.manual-search-icon{
  position:absolute;
  left:13px;
  font-size:15px;
  line-height:1;
  pointer-events:none;
  filter:grayscale(.15);
}
.manual-search-input{
  width:100%;
  height:46px;
  padding:0 42px 0 40px;
  border:1px solid #c8dced;
  border-radius:11px;
  background:#fff;
  color:#102a43;
  font:inherit;
  font-size:14.5px;
  -webkit-appearance:none;
  appearance:none;
  transition:border-color .2s,box-shadow .2s;
}
.manual-search-input::-webkit-search-cancel-button,
.manual-search-input::-webkit-search-decoration{-webkit-appearance:none;display:none}
.manual-search-input::placeholder{color:#8aa2b8}
.manual-search-input:focus{
  outline:0;
  border-color:#145da0;
  box-shadow:0 0 0 4px rgba(20,93,160,.13);
}
.manual-search-clear{
  position:absolute;
  right:8px;
  display:grid;
  place-items:center;
  width:26px;height:26px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#e6eff8;
  color:#486581;
  font-size:13px;
  line-height:1;
  cursor:pointer;
  transition:background .2s,color .2s;
}
.manual-search-clear:hover{background:#145da0;color:#fff}

.manual-search-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:3px;
  flex:0 0 auto;
}
.manual-search-result{
  color:#0f4c81;
  font-size:12.5px;
  font-weight:800;
  white-space:nowrap;
}
.manual-search-hint{
  color:#829ab1;
  font-size:11px;
  white-space:nowrap;
}
.manual-search-hint kbd{
  display:inline-block;
  min-width:17px;
  padding:1px 5px;
  border:1px solid #c8dced;
  border-bottom-width:2px;
  border-radius:5px;
  background:#fff;
  color:#486581;
  font:700 10.5px/1.4 inherit;
  text-align:center;
}

/* --- keadaan kosong --- */
.manual-no-result{
  display:none;
  flex-direction:column;
  align-items:center;
  gap:12px;
  margin:6px 0 24px;
  padding:30px 20px;
  border:1px dashed #b8cce0;
  border-radius:14px;
  background:#f8fbfe;
  text-align:center;
}
.manual-no-result.is-visible{display:flex}
.manual-no-result-text{color:#486581;font-size:14px}
.manual-no-result-text b{color:#0f4c81}
.manual-no-result-btn{
  padding:10px 18px;
  border:0;
  border-radius:9px;
  background:linear-gradient(110deg,#0f4c81,#0ea5a4);
  color:#fff;
  font:800 13px inherit;
  cursor:pointer;
  transition:transform .2s,box-shadow .2s;
}
.manual-no-result-btn:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(15,76,129,.2)}

/* --- sorotan kata kunci --- */
.manual-mark{
  padding:0 2px;
  border-radius:4px;
  background:#fff0b8;
  color:#0b2c4a;
}

.manual-grid.manual-hidden{display:none}
.manual-card.manual-hidden{display:none}
.manual-category.manual-hidden{display:none}

/* rapikan jarak saat kotak "tidak ada hasil" tersembunyi */
.manual-search + .manual-no-result:not(.is-visible) + .manual-category{margin-top:4px}
.manual-no-result.is-visible + .manual-category{margin-top:6px}

.manual-footnote{
  margin:26px 0 0;
  padding-top:16px;
  border-top:1px solid #edf2f7;
  color:#829ab1;
  font-size:12.5px;
}
.manual-footnote b{color:#486581}

/* ---------------- responsive ---------------- */
@media(max-width:900px){
  .manual-search{flex-wrap:wrap;gap:10px}
  .manual-search-field{flex:1 1 100%}
  .manual-search-meta{flex-direction:row;align-items:center;justify-content:space-between;width:100%}
}
@media(max-width:700px){
  .document-page .manual-search{top:0;padding:10px 11px;margin-bottom:18px;border-radius:12px}
  .manual-search-input{height:44px;font-size:14px;padding-left:38px}
  .manual-search-hint{display:none}
  .manual-search-result{font-size:12px}
  .manual-no-result{padding:24px 14px}
  .manual-no-result-text{font-size:13px}
}

/* --- rincian kecocokan teks --- */
.manual-match{
  margin-top:8px;
  padding:5px 9px;
  border:1px solid #dbe7f2;
  border-radius:8px;
  background:#f2f7fc;
  color:#486581;
  font-size:11.5px;
  line-height:1.55;
}
.manual-match .manual-mark{font-weight:800}
