.v43-actions{display:flex;flex-wrap:wrap;align-items:end;gap:6px}.v43-actions button{font-size:12px;padding:6px 9px;white-space:nowrap}.v43-actions label{flex:1;min-width:130px;max-width:300px}.v43-compare .v43-actions{gap:16px}.v43-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.v43-summary-item{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;border:1px solid var(--v18-line,#d4ddd4);border-radius:9px;padding:12px}.v43-summary-item span{font-weight:600}.v43-compare table{width:100%;table-layout:fixed}.v43-compare th:first-child{width:40%}.v43-perms{display:flex;gap:5px;flex-wrap:wrap}.v43-perm{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;font-size:11px;font-weight:700;border-radius:4px;border:1px solid var(--v18-line,#d7ded8)}.v43-perm.yes{background:#dcece2;color:#174c36;border-color:#b8d6c3}.v43-perm.no{color:#657369;background:transparent}.v43-status{white-space:normal;overflow-wrap:anywhere;flex-basis:100%;grid-column:1/-1}.v43-status:empty{display:none}@media(max-width:600px){.v43-summary{grid-template-columns:1fr}.v43-compare table{table-layout:auto}.v43-perm{width:20px;height:20px}.v43-compare .v43-actions label{max-width:none}}

/* V45: compact role editor, scoped to the role permission form. */
.v45-role-editor{scroll-margin-top:150px}.v45-role-editor .v45-form{gap:10px}.v45-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;max-width:780px}.v45-fields label{margin:0;min-width:0}.v45-fields :is(input,select){width:100%;box-sizing:border-box}.v45-help{font-size:12px;margin:0!important;line-height:1.4}.v45-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.v45-tools input{width:min(100%,300px);min-width:0}.v45-bulk{display:flex;flex-wrap:wrap;gap:6px}.v45-bulk button{padding:6px 10px;font-size:12px;min-height:32px}.v45-matrix .scroll{max-height:none;overflow-x:auto}.v45-matrix table{width:100%;min-width:465px;table-layout:fixed}.v45-matrix th:first-child{width:44%}.v45-matrix :is(th,td){padding:5px 9px!important;font-size:12px;line-height:1.3}.v45-matrix th{position:static!important}.v45-head{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap}.v45-module{display:flex;align-items:center;gap:8px;text-align:left}.v45-role-editor .v45-form input[type=checkbox]{accent-color:#205e4c;cursor:pointer;width:16px;height:16px;min-width:16px;margin:0;flex:none}.v45-role-editor .v45-form input[type=checkbox]:disabled{cursor:not-allowed;opacity:.5}.v45-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 0 2px;border-top:1px solid var(--v18-line,#d4ddd4)}.v45-summary{display:flex;align-items:center;gap:10px;margin-right:auto;flex-wrap:wrap}.v45-count{font-size:13px;white-space:nowrap}.v45-summary progress{width:110px;height:7px;accent-color:#205e4c}.v45-footer button{min-height:36px;white-space:nowrap}.v45-role-editor .v43-status{margin:0}.v45-role-editor .v45-matrix p{margin:8px}.v45-role-editor .v45-matrix tbody tr:hover{outline:1px solid var(--v18-line,#bfcfc4);outline-offset:-1px}
@media(max-width:650px){.v45-fields{grid-template-columns:1fr;gap:8px}.v45-tools input{width:100%}.v45-matrix table{min-width:440px}.v45-matrix th:first-child{width:40%}.v45-head{flex-direction:column;gap:4px}.v45-matrix :is(th,td){padding:6px 5px!important}.v45-summary{flex-basis:100%}.v45-footer button{flex:1}.v45-role-editor{scroll-margin-top:100px}}
