/*------------------------------------------------------------------------------
 * Dropdown Button Styles
 *----------------------------------------------------------------------------*/


/* Container */
.dropdown-btn {
	position: relative;
	display: inline-block;
}
.dropdown-btn {
	color: #231f20;
	background-color: #FFF;
	border-radius: 0;
	/*padding: 10px 20px;*/
	padding: 8px 15px;
	font-weight: 600;
	border: 1px solid #323232;
	width: fit-content;
}
.dropdown-btn .fa { display: inline-block !important; } /* hide icon */


.dropdown-btn:focus, .dropdown-btn.focus {
	color: #231f20;
	background-color: #f0f0f0;;
	border-color: #231f20;
	outline: none;
    outline-offset: 0;
}

.dropdown-btn:focus-within, .dropdown-btn.focus:focus-within,
.dropdown-btn:focus-visible, .dropdown-btn.focus:focus-visible,
.dropdown-btn:target, .dropdown-btn.focus:target,
.dropdown-btn:visited, .dropdown-btn.focus:visited {
	color: #231f20;
	background-color: #f0f0f0;;
	border-color: #231f20;
	outline: none;
    outline-offset: 0;
}

.dropdown-btn:hover,
.dropdown-btn.btn-default:hover {
	color: #231f20;
	background-color: #f0f0f0;
	border-color: #323232;
}

.dropdown-btn:active, .dropdown-btn.active {
	color: #231f20;
	background-color: #f0f0f0;
	border-color: #323232;
}

.dropdown-btn:active:hover, .dropdown-btn:active:hover,
.dropdown-btn:active:focus, .dropdown-btn:active:focus,
.dropdown-btn:active.focus, .dropdown-btn:active.focus,
.dropdown-btn.active:hover, .dropdown-btn.active:hover,
.dropdown-btn.active:focus, .dropdown-btn.active:focus,
.dropdown-btn.active.focus, .dropdown-btn.active.focus {
	color: #231f20;
	background-color: #f0f0f0;
	border-color: #323232;
}

.dropdown-btn:active:after {
	border-left: 1px solid #FFF;
}


.dropdown-btn.btn-sm {
	padding: 5px 10px;
}

.dropdown-btn.btn-primary, .dropdown-btn.save, .dropdown-btn.update {
	color: #231f20;
	background-color: #FFF;
	border: 1px solid #323232;
}

.dropdown-btn.btn-primary:hover, .dropdown-btn.btn-primary:focus, .dropdown-btn.btn-primary:active, .dropdown-btn.save:hover, .dropdown-btn.save:focus, .dropdown-btn.save:active, .dropdown-btn.update:hover, .dropdown-btn.update:focus, .dropdown-btn.update:active {
	color: #231f20;
	background-color: #f0f0f0;
	border-color: #323232;
}

.dropdown-btn.btn-primary:focus, .dropdown-btn.btn-primary.focus, .dropdown-btn.save:focus, .dropdown-btn.save.focus, .dropdown-btn.update:focus, .dropdown-btn.update.focus {
	color: #231f20;
	background-color: #f0f0f0;
	border-color: #323232;
}

.dropdown-btn.btn-primary:hover, .dropdown-btn.save:hover, .dropdown-btn.update:hover {
	color: #231f20;
	background-color: #f0f0f0;
	border-color: #323232;
}

.dropdown-btn.btn-primary:active, .dropdown-btn.btn-primary.active, .dropdown-btn.save:active, .dropdown-btn.save.active, .dropdown-btn.update:active, .dropdown-btn.update.active {
	color: #231f20;
	background-color: #f0f0f0;
	border-color: #323232;
}

.dropdown-btn.btn-primary:active:hover, .dropdown-btn.btn-primary:active:hover, .dropdown-btn.btn-primary:active:focus, .dropdown-btn.btn-primary:active:focus, .dropdown-btn.btn-primary:active.focus, .dropdown-btn.btn-primary:active.focus, .dropdown-btn.btn-primary.active:hover, .dropdown-btn.btn-primary.active:hover, .dropdown-btn.btn-primary.active:focus, .dropdown-btn.btn-primary.active:focus, .dropdown-btn.btn-primary.active.focus, .dropdown-btn.btn-primary.active.focus, .dropdown-btn.save:active:hover, .dropdown-btn.save:active:hover, .dropdown-btn.save:active:focus, .dropdown-btn.save:active:focus, .dropdown-btn.save:active.focus, .dropdown-btn.save:active.focus, .dropdown-btn.save.active:hover, .dropdown-btn.save.active:hover, .dropdown-btn.save.active:focus, .dropdown-btn.save.active:focus, .dropdown-btn.save.active.focus, .dropdown-btn.save.active.focus, .dropdown-btn.update:active:hover, .dropdown-btn.update:active:hover, .dropdown-btn.update:active:focus, .dropdown-btn.update:active:focus, .dropdown-btn.update:active.focus, .dropdown-btn.update:active.focus, .dropdown-btn.update.active:hover, .dropdown-btn.update.active:hover, .dropdown-btn.update.active:focus, .dropdown-btn.update.active:focus, .dropdown-btn.update.active.focus, .dropdown-btn.update.active.focus {
	color: #231f20;
	background-color: #f0f0f0;
	border-color: #323232;
}

.dropdown-btn.cancel {
	color: #231f20;
	background-color: #FFF;
	border: 1px solid #231f20;
}


.dropdown-btn.cancel:hover, .dropdown-btn.cancel:focus, .dropdown-btn.cancel:active {
	color: #FFF;
	background-color: var(--highlight-grey);
	border-color: var(--highlight-grey);
}
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

/* Button and Action area */
.dropdown-btn .dropdown-action {
	display: flex;
	align-items: center;
	width: 100%;
	cursor: pointer;

}
/* Icon container */
.dropdown-btn .dropdown-action .action-icon {
	display: flex;
	align-items: center;
}
/* Add spacing between icon and title when both exist */
.dropdown-btn .dropdown-action .action-icon + .action-title {
	margin-left: 8px;
}

/* Title area */
.dropdown-btn .dropdown-action .action-title {
	flex: 1;
	white-space: nowrap;
}

/* Arrow container */
.dropdown-btn .dropdown-action .dropdown-arrow {
	display: flex;
	align-items: center;
	justify-content: center; /* Center horizontally */
	margin-left: 8px;
}

/* Arrow icon */
.dropdown-btn .dropdown-action .dropdown-arrow i {
	font-size: 16px; /* Increased from 12px */
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Rotate arrow when dropdown is open */
.dropdown-btn.selected .dropdown-action .dropdown-arrow i {
	transform: rotate(180deg);
}


/* Dropdown arrow transition */
.dropdown-btn .dropdown-action .dropdown-arrow i {
	font-size: 16px;
	transition: transform 0.2s ease;
}


/* Dropdown Menu */
.dropdown-btn .dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 100%;
	margin-top: 2px;
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.15);
	z-index: 1000;
}

/* Menu Items */
.dropdown-btn .dropdown-menu .menu-item {
	border-bottom: 1px solid #e5e5e5;
}

.dropdown-btn .dropdown-menu .menu-item:last-child {
	border-bottom: none;
}

.dropdown-btn .dropdown-menu .menu-item a {
	display: flex;
	align-items: center;
	padding: 8px 12px;
	color: #333;
	text-decoration: none;
	white-space: nowrap;
}

.dropdown-btn .dropdown-menu .menu-item a:hover {
	background-color: #f5f5f5;
}

/* Icon in menu items */
.dropdown-btn .dropdown-menu .menu-item a .action-icon {
	margin-right: 8px;
}

/* Active/Selected states */
.dropdown-btn.selected .dropdown-action {
	/*background-color: #e6e6e6;*/
	/*border-color: #adadad;*/
}

/* Show menu when container has 'selected' class */
.dropdown-btn.selected .dropdown-menu {
	display: block;
}
/* Disabled menu item styles */
.dropdown-btn .dropdown-menu .menu-item.disabled {
    /*pointer-events: none;*/
    cursor: not-allowed;
    opacity: 0.6;
}

.dropdown-btn .dropdown-menu .menu-item.disabled a,
.dropdown-btn .dropdown-menu .menu-item .disabled-action {
    color: #999;
    cursor: not-allowed;
    /*pointer-events: none;*/
}

/* Keep hover effects for tooltip but prevent click */
.dropdown-btn .dropdown-menu .menu-item.disabled a {
    pointer-events: none;
}
/* Allow hover on the li element for tooltip */
.dropdown-btn .dropdown-menu .menu-item.disabled {
    pointer-events: auto;
}

/* Optional: Style for the tooltip on hover */
.dropdown-btn .dropdown-menu .menu-item.disabled:hover {
	background-color: transparent;
    cursor: not-allowed;
}

/* Ensure disabled state is visible */
.dropdown-btn .dropdown-menu .menu-item.disabled .btn-title {
    color: #999;
}