/* NEW-88 — Phân quyền (chỉ xem) + Quyền của tôi (js/views/permissions.js). Phẳng, chỉ token màu của app.css (sáng / tối tự theo). */
.pq-banner { font-size: 14px; }
.pq-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; font-size: 13px; }
.pq-leg { display: inline-flex; align-items: center; gap: 6px; }

/* Huy hiệu phạm vi: đậm dần theo độ rộng — Của mình (xám) → team (xanh lá) → khối (xanh nhạt) → toàn công ty (xanh thương hiệu) */
.pq-sc { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.pq-own { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.pq-team { background: var(--ok-soft); color: var(--ok-text); }
.pq-khoi { background: var(--brand-soft); color: var(--brand-dark); }
.pq-company { background: var(--brand); color: var(--on-brand); }

.pq-filter { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pq-filter select { min-width: 220px; }

.pq-wrap { max-height: 70vh; margin-bottom: 18px; }
.pq-grid { font-size: 13px; }
.pq-grid th, .pq-grid td { min-width: 118px; }
.pq-grid thead th { white-space: normal; text-transform: none; letter-spacing: 0; font-size: 12px; }
.pq-grid .pq-rolecol { position: sticky; left: 0; z-index: 2; background: var(--surface); min-width: 170px; }
.pq-grid thead .pq-rolecol { z-index: 3; background: var(--surface-2); }
/* table.data th dính TRÊN (sticky top) + chữ hoa — cột vai trò ở thân bảng chỉ dính TRÁI, chữ thường */
.pq-grid tbody th { top: auto; z-index: 1; font-weight: 600; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink); background: var(--surface); }
.pq-count { font-size: 12px; font-weight: 400; margin-top: 2px; }
.pq-cell { display: flex; flex-direction: column; gap: 4px; }
.pq-line { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pq-acts { color: var(--ink); font-size: 12px; line-height: 16px; }
.pq-no { color: var(--soon); }
.pq-grid tr.pq-on td, .pq-grid tr.pq-on th { background: var(--brand-soft); }

.pq-card { margin-bottom: 18px; }
.pq-card h2 { margin: 0 0 6px; font-size: 17px; }
.pq-detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.pq-detail-head h2 { margin: 0; font-size: 19px; }
.pq-h3 { font-size: 14px; margin: 16px 0 6px; }
.pq-notes { margin: 6px 0 4px; }
.pq-list { margin: 0; padding-left: 18px; line-height: 1.7; }
.pq-list li + li { margin-top: 4px; }
.pq-list .pq-sc { margin-left: 2px; }
.pq-note { font-size: 13px; line-height: 1.5; }
.pq-none { margin-top: 10px; font-size: 13px; }

@media (max-width: 760px) {
  .pq-filter, .pq-filter select { width: 100%; min-width: 0; }
  .pq-grid .pq-rolecol { min-width: 120px; }
}
