/* Permissions Modal Styles */
.jum_permissions-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jum_permissions-modal {
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
	width: 90%;
	max-width: 600px;
	max-height: 90vh;
	overflow-y: auto;
}

.jum_permissions-content {
	padding: 20px;
}

.jum_permissions-user-info {
	margin-bottom: 20px;
	padding: 10px;
	background-color: #f8f9fa;
	border-radius: 4px;
	border: 1px solid #dee2e6;
}

.jum_permissions-section {
	margin-bottom: 25px;
}

.jum_permissions-section h4 {
	margin-bottom: 10px;
	color: #333;
	font-size: 16px;
	font-weight: 600;
}

.jum_current-capabilities {
	min-height: 40px;
	padding: 12px;
	background-color: #f8f9fa;
	border-radius: 4px;
	border: 1px solid #dee2e6;
}

.jum_capability-granted {
	display: inline-block;
	background-color: #28a745;
	color: white;
	padding: 4px 10px;
	margin: 2px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
}

.jum_available-capabilities {
	max-height: 250px;
	overflow-y: auto;
}

.jum_capability-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	margin-bottom: 6px;
	background-color: white;
}

.jum_capability-info {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
}

.jum_capability-name {
	font-weight: 600;
	text-transform: uppercase;
	min-width: 50px;
}

.jum_capability-description {
	font-size: 12px;
	color: #6c757d;
}

.jum_capability-actions {
	display: flex;
	gap: 6px;
}

.jum_capability-btn {
	padding: 4px 12px;
	border: none;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: opacity 0.2s;
}

.jum_capability-btn.grant {
	background-color: #28a745;
	color: white;
}

.jum_capability-btn.revoke {
	background-color: #dc3545;
	color: white;
}

.jum_capability-btn:disabled {
	background-color: #6c757d;
	cursor: not-allowed;
	opacity: 0.6;
}

.jum_capability-audit-log {
	max-height: 200px;
	overflow-y: auto;
	padding: 12px;
	background-color: #f8f9fa;
	border-radius: 4px;
	border: 1px solid #dee2e6;
	font-size: 12px;
	font-family: monospace;
}

.jum_audit-entry {
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e9ecef;
}

.jum_audit-entry:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

/* Small button styling */
.jum_btn-small {
	background-color: #007cba;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	transition: background-color 0.2s;
}

.jum_btn-small:hover {
	background-color: #005a87;
}

.jum_btn-small:disabled,
.jum_btn-small[disabled] {
	opacity: 0.5;
	cursor: not-allowed !important;
	background-color: #007cba !important;
}

.jum_btn-small:disabled:hover,
.jum_btn-small[disabled]:hover {
	background-color: #007cba !important;
}

.jum_user-capabilities-section {
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 15px;
}