/* Permission matrix grid (same file in every tool: static/permissions.css; original in _shared/). */
.pm-help { color: #4a5868; font-size: 13px; margin: 0 0 10px; }
.pm-msg { min-height: 18px; font-size: 13px; color: #1b8a5a; margin-bottom: 4px; }
.pm-msg.pm-bad { color: #c62828; }
.pm-wrap { overflow-x: auto; border: 1px solid #e3e8ee; border-radius: 10px; }
.pm-grid { border-collapse: collapse; width: 100%; font-size: 13px; background: #fff; }
.pm-grid th, .pm-grid td { border-bottom: 1px solid #e3e8ee; padding: 7px 10px; vertical-align: middle; }
.pm-grid thead th { position: sticky; top: 0; background: #f5f7fa; font-weight: 600; text-align: center; white-space: nowrap; }
.pm-grid th.pm-perm, .pm-grid td.pm-perm { text-align: left; min-width: 220px; }
.pm-grid .pm-dir { background: #e8f1fc; }
.pm-grid tr.pm-group td { background: #f5f7fa; font-weight: 600; color: #1565c0; text-transform: uppercase; font-size: 11.5px; letter-spacing: .03em; }
.pm-cell { text-align: center; }
.pm-cell label { display: inline-flex; align-items: center; gap: 2px; cursor: pointer; }
.pm-cell input { width: 16px; height: 16px; cursor: pointer; }
.pm-dot { color: #b26a00; font-weight: 700; }
.pm-note { color: #7b8794; font-size: 12px; }
.pm-reset { border: 0; background: none; color: #1565c0; font-size: 11px; cursor: pointer; text-decoration: underline; padding: 0; }
.pm-person select { padding: 4px 6px; border: 1px solid #d3dae2; border-radius: 6px; background: #fff; }
.pm-always { color: #1565c0; font-weight: 700; font-size: 15px; }
