/* Protestas Data Browser Plus v2 - minimal CSS */
.ptdbp-wrapper{border:1px solid #ddd;padding:14px;border-radius:10px}
.ptdbp-tabs{display:flex;gap:8px;margin-bottom:10px}
.ptdbp-tab{padding:8px 10px;border:1px solid #ccc;background:#f7f7f7;border-radius:8px;cursor:pointer}
.ptdbp-tab.active{background:#fff;border-color:#999;font-weight:600}
.ptdbp-grid{display:grid;gap:10px}
.ptdbp-grid-basic{grid-template-columns: 1fr 180px 180px 1fr}
.ptdbp-grid-adv{grid-template-columns: repeat(4, minmax(160px, 1fr))}
.ptdbp-field{display:flex;flex-direction:column;gap:6px}
.ptdbp-label{font-size:12px;opacity:.8}
.ptdbp-date{max-width:200px}
.ptdbp-row-actions{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.ptdbp-primary{padding:8px 12px;border-radius:10px;border:1px solid #2d6cdf;background:#2d6cdf;color:#fff;cursor:pointer}
.ptdbp-secondary{padding:8px 12px;border-radius:10px;border:1px solid #ccc;background:#fff;cursor:pointer}
.ptdbp-summary{margin-top:10px;margin-bottom:8px;display:flex;gap:10px;align-items:center}
.ptdbp-status{opacity:.8}
.ptdbp-tablewrap{overflow:auto;border:1px solid #e5e5e5;border-radius:10px}
.ptdbp-table{border-collapse:collapse;width:100%;min-width:900px}
.ptdbp-table th,.ptdbp-table td{border-bottom:1px solid #eee;padding:8px;vertical-align:top}
.ptdbp-table th{position:sticky;top:0;background:#fafafa;z-index:1}
.ptdbp-resumen{max-width:520px;white-space:normal}
.ptdbp-detail-btn{margin-top:6px;padding:6px 10px;border-radius:10px;border:1px solid #ccc;background:#fff;cursor:pointer}
.ptdbp-pager{display:flex;gap:10px;align-items:center;justify-content:center;margin-top:10px}
.ptdbp-page-btn{padding:6px 10px;border-radius:10px;border:1px solid #ccc;background:#fff;cursor:pointer}
.ptdbp-page-btn[disabled]{opacity:.5;cursor:not-allowed}
.ptdbp-tagsbox{border:1px solid #e5e5e5;border-radius:10px;padding:10px;background:#fff}
.ptdbp-tags-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.ptdbp-tags-op-wrap{font-size:12px;opacity:.85}
.ptdbp-tags-desktop{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.ptdbp-tags-display{flex:1;padding:8px;border:1px solid #ccc;border-radius:10px}
.ptdbp-tags-open{padding:8px 10px;border-radius:10px;border:1px solid #ccc;background:#fff;cursor:pointer}
.ptdbp-tags-native{width:100%}
.ptdbp-help{display:block;margin-top:6px;font-size:12px;opacity:.75}
.ptdbp-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:99999;padding:16px}
.ptdbp-modal-box{background:#fff;border-radius:14px;max-width:820px;width:100%;max-height:85vh;overflow:auto;position:relative;padding:16px}
.ptdbp-modal-close{position:absolute;top:10px;right:10px;border:0;background:transparent;font-size:24px;cursor:pointer}
.ptdbp-modal-title{font-weight:700;margin-bottom:10px}
.ptdbp-modal-content{white-space:pre-wrap}
.ptdbp-tags-modal-tabs{display:flex;gap:8px;margin:8px 0}
.ptdbp-tags-modal-tab{padding:6px 10px;border:1px solid #ccc;border-radius:10px;background:#f7f7f7;cursor:pointer}
.ptdbp-tags-modal-tab.active{background:#fff;border-color:#999;font-weight:600}
.ptdbp-tags-modal-table{width:100%;border-collapse:collapse}
.ptdbp-tags-modal-table th,.ptdbp-tags-modal-table td{border-bottom:1px solid #eee;padding:8px}
.ptdbp-tags-modal-pager{display:flex;gap:10px;align-items:center;justify-content:center;margin-top:10px}
.ptdbp-tags-modal-footer{display:flex;justify-content:flex-end;margin-top:10px}
@media (max-width: 980px){
  .ptdbp-grid-basic{grid-template-columns: 1fr}
  .ptdbp-grid-adv{grid-template-columns: 1fr}
  .ptdbp-table{min-width:760px}
}
