/* PFPI Admin Dashboard CSS */
.pfpi-admin-wrap { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.pfpi-admin-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:1.5rem; flex-wrap:wrap; gap:12px; }
.pfpi-admin-header h1 { display:flex; align-items:center; gap:8px; color:#0d2f5e; }
.pfpi-stat-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:1.5rem; }
.pfpi-stat-card { background:#fff; border:1px solid #e0e8f0; border-radius:8px; padding:16px 20px; text-align:center; box-shadow:0 2px 8px rgba(0,0,0,0.05); }
.pfpi-stat-card .dashicons { font-size:28px; color:#0d2f5e; margin-bottom:8px; }
.pfpi-stat-number { font-size:32px; font-weight:700; color:#0d2f5e; display:block; }
.pfpi-stat-label { font-size:12px; color:#666; margin-top:4px; display:block; }
.pfpi-table-wrap { background:#fff; border:1px solid #e0e8f0; border-radius:8px; overflow:hidden; }
.pfpi-table-toolbar { display:flex; gap:8px; padding:14px; border-bottom:1px solid #f0f4f8; background:#f8fafd; }
.pfpi-table { width:100%; }
.pfpi-table th { background:#0d2f5e; color:#fff; }
.pfpi-table .pfpi-badge-ok { color:#1a7a4a; font-weight:600; }
.pfpi-table .pfpi-badge-no { color:#aaa; }
.pfpi-pagination { padding:12px 14px; border-top:1px solid #eee; display:flex; gap:4px; flex-wrap:wrap; }

/* Modal */
.pfpi-modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:99999; align-items:center; justify-content:center; }
.pfpi-modal.open { display:flex; }
.pfpi-modal-inner { background:#fff; border-radius:8px; max-width:700px; width:95%; max-height:90vh; overflow-y:auto; }
.pfpi-modal-header { background:#0d2f5e; color:#fff; padding:16px 20px; display:flex; justify-content:space-between; align-items:center; border-radius:8px 8px 0 0; }
.pfpi-modal-header h2 { color:#fff; margin:0; font-size:16px; }
.pfpi-modal-close { background:none; border:none; color:#fff; font-size:24px; cursor:pointer; line-height:1; padding:0; }

/* ── Multi-export & selection ── */
.pfpi-btn-primary {
  background: #0d2f5e;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}
.pfpi-btn-primary:disabled {
  background: #aac;
  cursor: not-allowed;
}
.pfpi-btn-primary:not(:disabled):hover { background: #1a4a8a; }

.pfpi-db-sel-info {
  font-size: 12px;
  color: #0d2f5e;
  font-weight: 600;
  margin-left: 10px;
}

tr.pfpi-row-selected { background: #eef3fb !important; }

.pfpi-btn-pdf {
  background: #fff;
  border: 1px solid #0d2f5e;
  color: #0d2f5e;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
}
.pfpi-btn-pdf:hover { background: #eef3fb; }
.pfpi-btn-pdf-na {
  opacity: 0.3;
  cursor: default;
  font-size: 13px;
}

.pfpi-actions-cell { white-space: nowrap; }
