/* catatan.css — gaya halaman "Catatan Saya" (fitur catatan pribadi pengguna) */
.cat-ringkas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.cat-ringkas .k { background: #fff; border: 1px solid #E3EDE7; border-radius: 12px; padding: 9px 8px; text-align: center; }
.cat-ringkas .k b { display: block; font-size: 16px; color: #0E6B45; line-height: 1.25; }
.cat-ringkas .k small { font-size: 10.5px; color: #71857B; }
.cat-ringkas .k.skel b { color: #C9D8CF; }

.cat-cari { position: relative; margin-bottom: 10px; }
.cat-cari-ik { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #8FA39A; display: flex; }
.cat-cari input { width: 100%; border: 1px solid #DFE9E3; border-radius: 12px; background: #fff; padding: 11px 12px 11px 36px; font-size: 14px; color: #14231C; }
.cat-cari input:focus { outline: none; border-color: #0E6B45; box-shadow: 0 0 0 3px rgba(14, 107, 69, .09); }

.cat-chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 10px; -webkit-overflow-scrolling: touch; }
.cat-chips::-webkit-scrollbar { height: 0; }
.cat-chip { flex: 0 0 auto; border: 1px solid #DFE9E3; background: #fff; color: #4E6459; border-radius: 20px; padding: 6px 13px; font-size: 12.5px; white-space: nowrap; }
.cat-chip.on { background: #0E6B45; border-color: #0E6B45; color: #fff; font-weight: 600; }

.cat-pdf-lebar { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: -4px 0 14px; padding: 11px; border: 1px dashed #C9DCD3; border-radius: 12px; background: #F6FBF8; color: #0E6B45; font-size: 13.5px; font-weight: 600; }

.cat-daftar { display: grid; gap: 11px; }
.cat-kartu { background: #fff; border: 1px solid #E3EDE7; border-radius: 14px; padding: 12px 13px; }
.cat-kartu.pin { border-color: #CBE3D7; box-shadow: 0 2px 10px rgba(14, 107, 69, .07); }
.cat-kepala { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.cat-judul { flex: 1; min-width: 0; }
.cat-judul h4 { margin: 0 0 5px; font-size: 15px; line-height: 1.35; color: #14231C; word-break: break-word; }
.cat-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-kat { border: 1px solid var(--c, #0E6B45); color: var(--c, #0E6B45); border-radius: 20px; padding: 1px 9px; font-size: 10.5px; }
.cat-pin { color: #C8901B; display: flex; padding-top: 2px; }
.cat-cuplik { margin: 8px 0 0; font-size: 13px; color: #4A5F55; line-height: 1.55; cursor: pointer; }
.cat-thumb { display: flex; gap: 6px; margin-top: 9px; cursor: pointer; }
.cat-thumb img { width: 62px; height: 62px; object-fit: cover; border-radius: 9px; border: 1px solid #E3EDE7; }
.cat-more { width: 62px; height: 62px; border-radius: 9px; background: #F2F7F4; color: #55705F; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; }

.cat-aksi { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.cat-tombol { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #DFE9E3; background: #fff; color: #274438; border-radius: 10px; padding: 7px 11px; font-size: 12.5px; }
.cat-tombol:hover { border-color: #B9D3C6; }
.cat-tombol.bahaya { color: #A32A21; border-color: #F2D7D4; }
.cat-tombol[disabled] { opacity: .5; }

.cat-kosong { background: #fff; border: 1px dashed #D7E4DC; border-radius: 14px; padding: 26px 18px; text-align: center; }
.cat-kosong-ik { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: #F1F8F4; color: #0E6B45; display: flex; align-items: center; justify-content: center; }
.cat-kosong b { display: block; font-size: 15px; margin-bottom: 5px; }
.cat-kosong p { margin: 0 auto; max-width: 320px; }

/* ---------- form tulis / ubah ---------- */
.cat-blok { background: #fff; border: 1px solid #E3EDE7; border-radius: 14px; padding: 13px; margin-bottom: 12px; }
.cat-blok-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.cat-blok-h b { font-size: 14.5px; }
.cat-label { display: block; font-size: 12px; color: #5C7167; margin: 0 0 5px; }
.cat-label:not(:first-child) { margin-top: 12px; }
.cat-input { width: 100%; border: 1px solid #DFE9E3; border-radius: 11px; background: #fff; padding: 11px 12px; font-size: 14.5px; color: #14231C; font-family: inherit; }
.cat-input:focus { outline: none; border-color: #0E6B45; box-shadow: 0 0 0 3px rgba(14, 107, 69, .09); }
.cat-teks { resize: vertical; line-height: 1.6; min-height: 170px; }
.cat-centang { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: #274438; }
.cat-centang input { width: 17px; height: 17px; accent-color: #0E6B45; }

.cat-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cat-gb { position: relative; margin: 0; border: 1px solid #E3EDE7; border-radius: 11px; overflow: hidden; aspect-ratio: 1/1; background: #F5F9F7; }
.cat-gb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-gb.antre { border-style: dashed; border-color: #B9D3C6; }
.cat-gb-x { position: absolute; top: 4px; right: 4px; width: 23px; height: 23px; border-radius: 50%; border: 0; background: rgba(20, 35, 28, .72); color: #fff; display: flex; align-items: center; justify-content: center; }
.cat-gal-aksi { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

.cat-simpan { margin: 4px 0 18px; }
.cat-ket { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #4E6459; }

@media (max-width: 420px) {
  .cat-ringkas { grid-template-columns: repeat(2, 1fr); }
  .cat-gal { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
  .cat-ringkas { grid-template-columns: repeat(4, 1fr); }
  .cat-gal { grid-template-columns: repeat(4, 1fr); }
  .cat-daftar { grid-template-columns: repeat(2, 1fr); }
}
