.role-profile-presets {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) repeat(4, minmax(145px, 1fr));
  gap: 9px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #d9e8e2;
  border-radius: 12px;
  background: #f6faf8;
}

.role-profile-presets > div { padding: 7px 5px; }
.role-profile-presets b, .role-profile-presets small { display: block; }
.role-profile-presets b { font-size: 12px; color: #173f35; }
.role-profile-presets small { margin-top: 3px; color: #71817b; font-size: 10px; line-height: 1.35; }
.role-profile-presets button {
  min-width: 0;
  border: 1px solid #cfe0d8;
  border-radius: 10px;
  background: #fff;
  padding: 9px 10px;
  text-align: left;
  color: #194c3f;
}
.role-profile-presets button:hover, .role-profile-presets button.active {
  border-color: #38a57c;
  background: #e7f6ef;
  box-shadow: 0 0 0 2px rgba(44,168,120,.1);
}

.permission-section-list { display: grid; gap: 14px; }
.permission-section {
  overflow: hidden;
  border: 1px solid #dbe7e2;
  border-radius: 12px;
  background: #fff;
}
.permission-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #f2f8f5;
  border-bottom: 1px solid #dbe7e2;
}
.permission-section > header b, .permission-section > header small { display: block; }
.permission-section > header b { color: #174a3d; font-size: 13px; }
.permission-section > header small { margin-top: 3px; color: #71817b; font-size: 10px; }
.permission-section > header > span { color: #4d7669; font-size: 10px; font-weight: 700; white-space: nowrap; }
.permission-section .permission-matrix { border: 0; border-radius: 0; }
.permission-section .permission-matrix-row:first-of-type { border-top: 0; }

@media (max-width: 980px) {
  .role-profile-presets { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .role-profile-presets > div { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
  .role-profile-presets { grid-template-columns: 1fr; }
}
