/* Repositori Publik PN Sambas - scoped styling, v1.5.4 */
.com-pnsdocuments.repository{width:100%;max-width:1200px;margin:0 auto;padding:28px 16px 42px;color:#1e293b;box-sizing:border-box}
.com-pnsdocuments.repository *{box-sizing:border-box}
.com-pnsdocuments .pnrepo-header{margin-bottom:24px}
.com-pnsdocuments .pnrepo-header h1{font-size:clamp(1.65rem,2.4vw,2.15rem);font-weight:700;line-height:1.3;color:#172b46;margin:0 0 10px}
.com-pnsdocuments .pnrepo-header p{margin:0;color:#64748b;line-height:1.6}
.com-pnsdocuments .pnrepo-filter{display:flex;gap:14px;align-items:end;flex-wrap:wrap;padding:20px;background:#fff;border:1px solid #dbe3ee;border-radius:12px;margin:0 0 22px;box-shadow:0 3px 12px rgba(20,45,80,.06)}
.com-pnsdocuments .pnrepo-field{display:flex;flex-direction:column;gap:7px;flex:1 1 190px;margin:0;font-size:.93rem;font-weight:600;color:#233b5d}
.com-pnsdocuments .pnrepo-search{flex:2 1 250px}
.com-pnsdocuments .pnrepo-year{flex:0 1 175px}
.com-pnsdocuments .pnrepo-field input,.com-pnsdocuments .pnrepo-field select{width:100%;height:46px;min-height:46px;border:1px solid #c6d2e2;border-radius:7px;padding:9px 12px;background:#fff;color:#172b46;font-size:1rem;box-shadow:none}
.com-pnsdocuments .pnrepo-field input:focus,.com-pnsdocuments .pnrepo-field select:focus{outline:2px solid #6a8cbb;outline-offset:1px}
.com-pnsdocuments .pnrepo-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.com-pnsdocuments .pnrepo-button,.com-pnsdocuments .pnrepo-reset,.com-pnsdocuments .pnrepo-link{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 18px;border-radius:7px;text-decoration:none;font-weight:600;font-size:.95rem;line-height:1.25;cursor:pointer}
.com-pnsdocuments .pnrepo-button,.com-pnsdocuments .pnrepo-link{background:#385f90;color:#fff;border:1px solid #385f90}
.com-pnsdocuments .pnrepo-reset{background:#fff;color:#385f90;border:1px solid #b8c9df}
.com-pnsdocuments .pnrepo-button:hover,.com-pnsdocuments .pnrepo-link:hover{background:#27496f;color:#fff}
.com-pnsdocuments .pnrepo-reset:hover{background:#f1f5fa;color:#27496f}
.com-pnsdocuments .pnrepo-list{display:grid;gap:14px}
.com-pnsdocuments .pnrepo-card,.com-pnsdocuments .pnrepo-empty{background:#fff;border:1px solid #dbe3ee;border-radius:12px;padding:22px;box-shadow:0 2px 9px rgba(20,45,80,.045)}
.com-pnsdocuments .pnrepo-card{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.com-pnsdocuments .pnrepo-card h2{font-size:1.15rem;font-weight:700;line-height:1.4;margin:0 0 8px;color:#203a5b}
.com-pnsdocuments .pnrepo-meta{color:#64748b;font-size:.89rem;margin:0}
.com-pnsdocuments .pnrepo-description{margin:12px 0 0;line-height:1.65;overflow-wrap:anywhere}
.com-pnsdocuments .pnrepo-empty{text-align:center;padding:42px 20px;color:#64748b}
.com-pnsdocuments .pnrepo-empty-icon{display:block;font-size:2rem;margin-bottom:12px}
.com-pnsdocuments .pnrepo-empty h2{font-size:1.12rem;color:#243b5a;margin:0 0 8px}
.com-pnsdocuments .pnrepo-empty p{max-width:520px;margin:0 auto;line-height:1.6}
@media(max-width:680px){.com-pnsdocuments.repository{padding:18px 10px 30px}.com-pnsdocuments .pnrepo-filter{padding:15px}.com-pnsdocuments .pnrepo-field,.com-pnsdocuments .pnrepo-year{flex:1 1 100%}.com-pnsdocuments .pnrepo-actions{width:100%}.com-pnsdocuments .pnrepo-actions>*{flex:1}.com-pnsdocuments .pnrepo-card-action{width:100%}.com-pnsdocuments .pnrepo-link{width:100%}}

/* Perkuat tampilan scoped terhadap aturan global template */
.com-pnsdocuments.repository .pnrepo-filter{display:flex!important;flex-wrap:wrap!important;gap:14px!important;align-items:flex-end!important;background:#fff!important;border:1px solid #dbe3ee!important;border-radius:12px!important;padding:20px!important}
.com-pnsdocuments.repository .pnrepo-filter .pnrepo-field{display:flex!important;flex-direction:column!important;gap:7px!important;min-width:0!important}
.com-pnsdocuments.repository .pnrepo-filter .pnrepo-field input,.com-pnsdocuments.repository .pnrepo-filter .pnrepo-field select{display:block!important;width:100%!important;height:46px!important;padding:9px 12px!important;border:1px solid #c6d2e2!important;border-radius:7px!important;background:#fff!important;color:#172b46!important}
.com-pnsdocuments.repository .pnrepo-actions{display:flex!important;align-items:flex-end!important;gap:10px!important}
.com-pnsdocuments.repository .pnrepo-actions .pnrepo-button,.com-pnsdocuments.repository .pnrepo-actions .pnrepo-reset{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:46px!important;padding:10px 18px!important;border-radius:7px!important;text-decoration:none!important;font-weight:600!important}
.com-pnsdocuments.repository .pnrepo-actions .pnrepo-button{background:#385f90!important;color:#fff!important;border:1px solid #385f90!important}
.com-pnsdocuments.repository .pnrepo-actions .pnrepo-reset{background:#fff!important;color:#385f90!important;border:1px solid #b8c9df!important}
.com-pnsdocuments.repository .pnrepo-empty{display:block!important;text-align:center!important;padding:42px 20px!important;background:#fff!important;border:1px solid #dbe3ee!important;border-radius:12px!important}
@media(max-width:680px){.com-pnsdocuments.repository .pnrepo-filter .pnrepo-field{flex:1 1 100%!important}.com-pnsdocuments.repository .pnrepo-actions{width:100%!important}.com-pnsdocuments.repository .pnrepo-actions>*{flex:1!important}}

/* v1.5.6: informasi kartu publik; tidak mengubah perilaku filter atau unduhan */
.com-pnsdocuments.repository .pnrepo-card-content{flex:1 1 420px;min-width:0}
.com-pnsdocuments.repository .pnrepo-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin:0}
.com-pnsdocuments.repository .pnrepo-tag{display:inline-flex;align-items:center;padding:4px 10px;border-radius:6px;font-size:.82rem;font-weight:600;line-height:1.4}
.com-pnsdocuments.repository .pnrepo-tag-category{background:#eaf1fb;color:#244e81}
.com-pnsdocuments.repository .pnrepo-tag-year{background:#edf5ee;color:#2e6741}
.com-pnsdocuments.repository .pnrepo-code{font-size:.84rem;color:#64748b;overflow-wrap:anywhere}
.com-pnsdocuments.repository .pnrepo-published{font-size:.84rem;color:#64748b}
.com-pnsdocuments.repository .pnrepo-link{gap:9px}
.com-pnsdocuments.repository .pnrepo-download-icon{font-size:1.15em;line-height:1}
@media(max-width:680px){.com-pnsdocuments.repository .pnrepo-card-content{flex-basis:100%}.com-pnsdocuments.repository .pnrepo-meta{gap:7px}}
