.role-matrix,.role-matrix>*{overflow-wrap:anywhere;min-width:0;max-width:100%}.role-matrix .section-head{flex-wrap:wrap;align-items:start;gap:1rem}.role-matrix .section-head h2{margin-bottom:.35rem}.role-matrix-layout{grid-template-columns:minmax(220px,280px) minmax(0,1fr);align-items:start;gap:1.25rem;display:grid}.role-matrix .role-list{background:#fff;border:1px solid #d7e1dc;border-radius:8px;height:auto;padding:16px;display:block;position:static}.role-list label{display:block}.role-list-item{text-align:left;color:#1e3430;white-space:normal;background:#fff;border:1px solid #d7e1dc;flex-direction:column;align-items:start;gap:.25rem;width:100%;margin:6px 0;padding:12px;font-weight:400;display:flex}.role-list-item.selected{background:#fff2f8;border-color:#c41478;box-shadow:inset 3px 0 #c41478}.role-list-item strong{font-weight:700}.role-list-item span,.role-list-item small{font-size:.86rem}.role-editor{margin:0;padding:1.25rem;scroll-margin-top:90px}.role-editor h3{margin-top:0}.role-fields{border:0;min-width:0;margin:0;padding:0}.role-fields>label{margin-block:1rem;display:block}.role-permission-count{font-weight:650}.role-permission-group{border:1px solid #d7e1dc;border-radius:8px;min-width:0;margin:1rem 0;padding:12px}.role-permission-group legend{padding:0 6px;font-weight:700}.role-permission-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.role-permission,.role-check{align-items:start;gap:10px;font-weight:400!important;display:flex!important}.role-permission{cursor:pointer;background:#f5f8f6;border-radius:6px;min-width:0;min-height:44px;padding:10px;margin:0!important}.role-permission input,.role-check input{flex-shrink:0;min-width:20px;height:20px;margin:2px 0 0;width:20px!important}.role-permission span{min-width:0}.role-matrix input,.role-matrix select,.role-matrix textarea{box-sizing:border-box;min-width:0;max-width:100%}.role-matrix textarea{min-height:90px}.role-change-summary{background:#f6f8f7;border-left:3px solid #82a88d;margin-block:1rem;padding:12px}.role-change-summary p{margin-bottom:0}.role-assignment{margin-top:1.25rem}.role-assignment summary{cursor:pointer;min-height:44px;padding-block:10px;font-weight:700}.role-assignment form{max-width:900px}.role-matrix .actions{flex-wrap:wrap}.role-matrix .actions button{white-space:normal;max-width:100%}@media (width<=1100px){.role-permission-grid{grid-template-columns:minmax(0,1fr)}}@media (width<=899px){.role-matrix-layout{grid-template-columns:minmax(0,1fr)}.role-editor{padding:1rem}.role-list section{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.role-list section h3,.role-list section>p{grid-column:1/-1}.role-list-item{margin:0}.role-assignment .form-grid{grid-template-columns:minmax(0,1fr)}}@media (width<=420px){.role-list section{grid-template-columns:minmax(0,1fr)}.role-editor{padding:12px}.role-permission-group{padding:8px}}.role-mobile-select{display:none}@media (width<=899px){.role-matrix .role-list{display:none}.role-mobile-select{margin-block:1rem;display:block}.role-mobile-select>label{display:block}.role-mobile-select .role-check{margin-top:10px}}
