/*
 * Biz Advisory - Evaluator Partners Table Shortcode Styles
 */
.biz-advisory-msp-table-wrapper {
	overflow-x: auto;
	margin: 2em auto;
	max-width: 1200px;
}

/* Table Legend Styling */
.msp-table-legend {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 6px 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 11px;
}

.legend-title {
	font-weight: bold;
	color: #495057;
	margin-right: 5px;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.legend-color {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	flex-shrink: 0;
}

.legend-text {
	color: #495057;
	font-weight: 500;
}

/* Responsive legend */
@media (max-width: 768px) {
	.msp-table-legend {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	
	.legend-item {
		margin-bottom: 5px;
	}
}

.biz-advisory-msp-table {
	border-collapse: collapse;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.biz-advisory-msp-table th,
.biz-advisory-msp-table td {
	border: 1px solid #ddd;
	padding: 12px 15px;
	text-align: left;
	vertical-align: top;
}

.biz-advisory-msp-table thead th {
	background-color: #003366; /* Primary blue color */
	color: #ffffff;
	font-weight: bold;
	white-space: nowrap;
	font-size: 16px;
}

.biz-advisory-msp-table tbody .service-category-parent td {
	background-color: #E6F0FF; /* Light blue from primary color */
	font-weight: bold;
	color: #003366;
	font-size: 14px;
}

.biz-advisory-msp-table tbody tr:not(.service-category-parent) td:first-child {
	font-weight: bold;
	font-size: 12px;
	white-space: nowrap;
	padding-left: 30px; /* Indent child categories */
}

.biz-advisory-msp-table tbody td {
	line-height: 1.5;
	transition: background-color 0.2s ease;
}

/* Subtle hover feedback for table rows */
.biz-advisory-msp-table tbody tr:not(.service-category-parent):hover {
	background-color: #f8f9fa;
}

.biz-advisory-msp-table tbody tr:not(.service-category-parent):hover td {
	background-color: #f8f9fa;
}

/* Subtle hover feedback for individual cells */
.biz-advisory-msp-table tbody tr:not(.service-category-parent) td:hover {
	background-color: #e9ecef;
	cursor: pointer;
}

/* Partner Item Styling */
.msp-partner-item {
	position: relative;
	display: block;
}

.msp-partner-name {
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.3s ease;
}

.msp-partner-name:hover {
	text-decoration: underline;
	font-weight: 600;
}

/* Popup Styling */
.msp-popup {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1000;
	background: #fff;
	border: 2px solid #003366;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 51, 102, 0.3);
	min-width: 300px;
	max-width: 400px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
}

.msp-partner-item:hover .msp-popup,
.msp-popup.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.msp-popup-content {
	padding: 0;
}

.msp-popup-header {
	background: #003366;
	color: #fff;
	padding: 12px 15px;
	border-radius: 6px 6px 0 0;
	position: relative;
}

.msp-popup-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: bold;
}

.msp-popup-close {
	position: absolute;
	top: 8px;
	right: 12px;
	font-size: 20px;
	cursor: pointer;
	line-height: 1;
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.msp-popup-close:hover {
	opacity: 1;
}

.msp-popup-body {
	padding: 15px;
	max-height: 200px;
	overflow-y: auto;
	font-size: 13px;
	line-height: 1.5;
}

.msp-popup-body p {
	margin: 0 0 10px 0;
}

.msp-popup-body p:last-child {
	margin-bottom: 0;
}

/* Rich content styling from WYSIWYG editor */
.msp-popup-body h1,
.msp-popup-body h2,
.msp-popup-body h3,
.msp-popup-body h4,
.msp-popup-body h5,
.msp-popup-body h6 {
	margin: 0 0 8px 0;
	font-weight: bold;
	color: #003366;
}

.msp-popup-body h1 { font-size: 16px; }
.msp-popup-body h2 { font-size: 15px; }
.msp-popup-body h3 { font-size: 14px; }
.msp-popup-body h4 { font-size: 13px; }
.msp-popup-body h5 { font-size: 12px; }
.msp-popup-body h6 { font-size: 11px; }

.msp-popup-body ul,
.msp-popup-body ol {
	margin: 0 0 10px 0;
	padding-left: 20px;
}

.msp-popup-body li {
	margin-bottom: 3px;
}

.msp-popup-body blockquote {
	margin: 0 0 10px 0;
	padding: 8px 12px;
	border-left: 3px solid #003366;
	background: #f8f9fa;
	font-style: italic;
}

.msp-popup-body strong,
.msp-popup-body b {
	font-weight: bold;
	color: #003366;
}

.msp-popup-body em,
.msp-popup-body i {
	font-style: italic;
}

.msp-popup-body a {
	color: #003366;
	text-decoration: underline;
}

.msp-popup-body a:hover {
	color: #002244;
}

.msp-popup-body img {
	max-width: 100%;
	height: auto;
	margin: 5px 0;
	border-radius: 4px;
}

.msp-popup-footer {
	padding: 12px 15px;
	border-top: 1px solid #eee;
	text-align: center;
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.msp-learn-more-btn,
.msp-contact-btn {
	display: inline-block;
	padding: 8px 16px;
	text-decoration: none;
	border-radius: 4px;
	font-size: 12px;
	font-weight: bold;
	transition: background-color 0.3s ease;
	color: #fff !important;
	text-decoration: none !important;
}

.msp-learn-more-btn {
	background: #003366;
	color: #fff;
}

.msp-learn-more-btn:hover {
	background: #002244;
	color: #fff;
	text-decoration: none;
}

.msp-contact-btn {
	background: #28a745;
	color: #fff;
}

.msp-contact-btn:hover {
	background: #218838;
	color: #fff;
	text-decoration: none;
}

/* Popup arrow */
.msp-popup::before {
	content: '';
	position: absolute;
	top: -8px;
	left: 20px;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 8px solid #003366;
	z-index: 1;
}

/* Popup positioned to the right */
.msp-popup.popup-right::before {
	left: auto;
	right: 20px;
}

/* Popup positioned above */
.msp-popup.popup-top::before {
	top: auto;
	bottom: -8px;
	border-bottom: none;
	border-top: 8px solid #003366;
}

/* Scroll highlight effect for smooth scrolling targets */
.msp-scroll-highlight {
	animation: msp-highlight-pulse 2s ease-in-out;
}

@keyframes msp-highlight-pulse {
	0% {
		background-color: transparent;
		box-shadow: none;
	}
	25% {
		background-color: rgba(0, 51, 102, 0.1);
		box-shadow: 0 0 10px rgba(0, 51, 102, 0.3);
	}
	50% {
		background-color: rgba(0, 51, 102, 0.15);
		box-shadow: 0 0 15px rgba(0, 51, 102, 0.4);
	}
	75% {
		background-color: rgba(0, 51, 102, 0.1);
		box-shadow: 0 0 10px rgba(0, 51, 102, 0.3);
	}
	100% {
		background-color: transparent;
		box-shadow: none;
	}
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.msp-popup {
		min-width: 250px;
		max-width: 300px;
	}
	
	.msp-popup-body {
		max-height: 150px;
	}
} 