/**
 * Havenlytics Agent admin styles.
 *
 * @package Havenlytics
 * @since   3.0.2
 */
#adminmenu li#toplevel_page_edit-post_type-hvnly_agent a.wp-has-current-submenu {
    background: #6c60fe !important;
    color: #fff;
}
#adminmenu li#menu-posts-hvnly_property a:focus,

#adminmenu li#menu-posts-hvnly_property a:hover {
    background: #6c60fe;
    color: #fff;
}
#adminmenu li#menu-posts-hvnly_property a.wp-has-current-submenu {
    background: #6c60fe;
    color: #fff;
}
/* When any child inside .wp-submenu is hovered, style the parent li */
#adminmenu li#menu-posts-hvnly_property:has(.wp-submenu li:hover) > a,
#adminmenu li#menu-posts-hvnly_property:has(.wp-submenu li:hover) {
    background: #6c60fe !important;
    color: #fff !important;
}

/* Keep your existing styles */
#adminmenu li#menu-posts-hvnly_property a:focus,
#adminmenu li#menu-posts-hvnly_property a:hover {
    background: #6c60fe;
    color: #fff;
}
/* Force override all states with very high specificity */
/* #adminmenu li#menu-posts-hvnly_property.menu-top > a.menu-top,
#adminmenu li#menu-posts-hvnly_property.menu-top > a.menu-top:hover,
#adminmenu li#menu-posts-hvnly_property.menu-top > a.menu-top:focus,
#adminmenu li#menu-posts-hvnly_property.menu-top:hover > a.menu-top,
#adminmenu li#menu-posts-hvnly_property.menu-top.opensub > a.menu-top,
#adminmenu li#menu-posts-hvnly_property.menu-top:has(.wp-submenu li:hover) > a.menu-top {
    background: #6c60fe !important;
    color: #fff !important;
} */

 /* #adminmenu li#toplevel_page_hvn-realty a.toplevel_page_hvn-realty:hover{
    background: #6c60fe !important;
    color: #fff;
} */

/* Reset any transitions to avoid flicker */
#adminmenu li#menu-posts-hvnly_property > a {
    transition: none !important;
}

/* Keep active state */
#adminmenu li#menu-posts-hvnly_property a.wp-has-current-submenu {
    background: #6c60fe !important;
    color: #fff !important;
}
#adminmenu li#menu-posts-hvnly_property a.wp-has-current-submenu {
    background: #6c60fe;
    color: #fff;
}
.hvnly-agent-metabox {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px 20px;
	margin-top: 4px;
}

.hvnly-agent-metabox__field {
	margin: 0;
}

.hvnly-agent-metabox__field label {
	display: block;
	margin-bottom: 6px;
}

.hvnly-agent-metabox__field--full {
	grid-column: 1 / -1;
}

.hvnly-agent-metabox--social {
	grid-template-columns: 1fr;
}

@media (max-width: 782px) {
	.hvnly-agent-metabox {
		grid-template-columns: 1fr;
	}
}

.hvnly-agency-fields__heading {
	margin: 1rem 0 0.5rem;
	font-size: 14px;
}

.wp-list-table .column-hvnly_agency_logo {
	width: 72px;
}

.wp-list-table .hvnly-agency-list-logo {
	display: block;
	max-height: 40px;
	width: auto;
	border-radius: 4px;
	background: #f8fafc;
	padding: 2px;
}

.hvnly-agency-logo-field__preview img {
	display: block;
	max-width: 160px;
	max-height: 80px;
	margin-bottom: 8px;
	border-radius: 6px;
	background: #f8fafc;
	padding: 6px;
}

.hvnly-agent-availability-fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.hvnly-agent-availability-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hvnly-agent-availability-option:hover {
	border-color: #6c60fe;
}

.hvnly-agent-availability-option input {
	margin: 0.2rem 0 0;
}

.hvnly-agent-availability-option__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-top: 0.35rem;
	flex-shrink: 0;
}

.hvnly-agent-availability-option--available .hvnly-agent-availability-option__dot {
	background: #00b46a;
}

.hvnly-agent-availability-option--busy .hvnly-agent-availability-option__dot {
	background: #ffb507;
}

.hvnly-agent-availability-option--away .hvnly-agent-availability-option__dot {
	background: #6c60fe;
}

.hvnly-agent-availability-option--offline .hvnly-agent-availability-option__dot {
	background: #888;
}

.hvnly-agent-availability-option__text {
	display: grid;
	gap: 2px;
}

.hvnly-agent-availability-option__text strong {
	font-size: 13px;
}

.hvnly-agent-availability-option__text .description {
	margin: 0;
	font-size: 12px;
	color: #646970;
}
