.mf-portfolio-card {
	background: #ffffff;
	border-radius: 18px;
	padding: 18px 18px 16px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
	color: #111827;
}

.mf-portfolio-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
    flex-direction: column;
}

.mf-portfolio-title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 500;
}

.mf-portfolio-chips {
	display: inline-flex;
	gap: 6px;
	background: #f3f4f6;
	border-radius: 16px;
	padding: 6px;
}

.mf-portfolio-card .mf-chip {
	border: none;
	background: transparent;
	border-radius: 12px;
	padding: 10px 12px;
	min-width: 118px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 15px;
	font-weight: 700;
	color: #4b5563;
	cursor: pointer;
}

.portfolio-tabs-section .mf-tabs {
	gap:10px;
}

.mf-portfolio-card .mf-chip strong {
	font-size: 16px;
}

.mf-portfolio-card .mf-chip.is-active {
	background: #ffffff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	color: #1f2937;
	position: relative;
}

.mf-portfolio-card .mf-chip.is-active::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 6px;
	height: 3px;
	border-radius: 999px;
	background: #d5a123;
}

.mf-portfolio-bars {
	background: #ffffff;
	border-radius: 0;
	padding: 12px 4px 15px 10px;
	/* border-top: 1px solid #e5e7eb; */
	/* border-bottom: 1px solid #e5e7eb; */
	margin-bottom: 10px;
}
.mf-portfolio-bars h3{
 font-size:15px;
}
.mf-portfolio-bars[data-category-content="others"]{
    /* padding: 5px 0; */
}
.mf-portfolio-bars[data-category-content="others"] .mf-bar-row{
	/* display:none !important; */
}

.mf-bar-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 5px;
	align-items: center;
	margin-bottom: 15px;


    display: flex;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.mf-bar-row:last-child {
	margin-bottom: 0;
}

.mf-bar-label {
	font-size: 14px;
	font-weight: 300;
	color: #374151;
}

.mf-bar {
	position: relative;
	background: #e5f2e8;
	height: 5px;
	border-radius: 999px;
	overflow: hidden;
    width: 100%;
}

.mf-bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #76c58b, #9ed9af);
	border-radius: 999px;
}

.mf-bar-value {
    font-size: 14px;
    font-weight: 400;
    color: #111827;
}

.mf-portfolio-section{
	background: #F3F8FC;
	border-radius: 24px;

}

.mf-portfolio-toggle {
	display: inline-flex;
	border-radius: 14px;
	padding: 6px;
	margin-bottom: 10px;
	gap: 4px;
}

.mf-portfolio-card .mf-tab-btn {
    border: none;
    background: #f0f0f0;
    padding: 10px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    color: #6b7280;
    box-shadow: none;
}

.mf-portfolio-card .mf-tab-btn.is-active {
	background: #fff7e6;
	color: #c68a00;
	box-shadow: inset 0 0 0 1px #f0ca7b;
}

.mf-portfolio-panels {
	/* background: #f1f6fb; */
	/* border-radius: 18px; */
	/* border: 1px solid #dfe8f2; */
	padding: 12px 14px;
}

.mf-panel {
	display: none;
}

.mf-panel.is-active {
	display: block;
}

.mf-holdings-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
    max-height: 285px;
    overflow: auto;
}

.mf-holding-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px solid #e5e7eb;
}

.mf-holding-row.is-collapsed {
	display: none;
}

.mf-holding-row.is-category-hidden {
	display: none !important;
}

.mf-holding-row:last-child {
	border-bottom: none;
}

.mf-holding-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mf-holding-name {
	font-weight: 400;
	color: #5B6369;
	font-size: 15px;
}

.mf-holding-industry {
	font-size: 14px;
	color: #6b7280;
}

.mf-holding-value {
	font-weight: 400;
	font-size: 15px;
	color: #101010;
}

.mf-portfolio-actions {
	margin-top: 12px;
	display: inline-flex;
	gap: 8px;
	flex-wrap: wrap;
}

.mf-portfolio-card .mf-link {
	    display: inline-block;
    padding: 5px 14px;
    background: #FFFFFF;
    color: #3c9ee6;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #59abe0;
    box-shadow: none;
}
.mf-portfolio-card  .mf-tab, button.mf-tab{

    padding: 12px 12px;
}

.mf-portfolio-card .mf-link:hover {
	background: #d9e8ff;
}

.mf-toggle-holdings.is-hidden {
	display: none;
}

.mf-empty {
	margin: 0;
	font-size: 13px;
	color: #6b7280;
}

.mf-portfolio-footer {
	margin-top: 14px;
	padding-top: 8px;
	border-top: 1px solid #e5e7eb;
}

.mf-portfolio-card .mf-turnover {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
	color: #374151;
}
.mf-portfolio-card .mf-turnover .mf-turnover-label{
	display: flex;
    gap: 5px;
	align-items: center;
}

.mf-portfolio-card .mf-turnover-value {
	font-size: 17px;
	font-weight: 500;
}

.mf-portfolio-card .mf-turnover-period {
	font-size: 13px;
	color: #6b7280;
}

/* ── Others bar color variant ── */
.mf-bar.bar-others {
	background: #fce8c8;
}

.mf-bar.bar-others span {
	background: linear-gradient(90deg, #e8a838, #f0c060);
}

/* ── Active category tab ── */
.mf-portfolio-card .mf-tab.is-active {
	background: #fff7e6;
	box-shadow: inset 0 0 0 1px #f0ca7b;
	color: #c68a00;
}

/* ── Holdings Popup Modal ── */
.mf-holdings-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
}

.mf-holdings-modal.is-open {
	display: flex;
}

.mf-holdings-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.mf-holdings-modal-dialog {
	position: relative;
	background: #ffffff;
	border-radius: 18px;
	width: 92%;
	max-width: 560px;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
	animation: mfModalSlideUp 0.25s ease-out;
}
.portfolio-fund-category-debt-funds{

}
.pf_is_non_debt_fund[display-category="others"] [data-panel="sectors"] ul.mf-holdings-list.mf-sectors-list,
.pf_is_non_debt_fund[display-category="others"]  [data-panel="sectors"]  .mf-portfolio-actions{
	display: none;
	
}

.pf_is_non_debt_fund[display-category="others"]  [data-target="sectors"],
/* .pf_is_non_debt_fund[display-category="others"] [data-target="holdings"], */
.pf_is_debt_fund[display-category="equity"] [data-target="sectors"],
.pf_is_debt_fund[display-category="equity"] [data-target="holdings"]
{
	display: none;

}
.pf_is_debt_fund[display-category="equity"] [data-panel="sectors"] ul.mf-holdings-list.mf-sectors-list,
.pf_is_debt_fund[display-category="equity"]  [data-panel="sectors"]  .mf-portfolio-actions,
{
	display: none;
}

@keyframes mfModalSlideUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mf-holdings-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 20px 12px;
	border-bottom: 1px solid #e5e7eb;
}

.mf-holdings-modal-title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #111827;
}

.mf-holdings-modal-close,
.elementor-kit-7 button.mf-holdings-modal-close {
	border: none;
	background: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
	padding: 0 4px;
	box-shadow:none;
}

.mf-holdings-modal-close:hover,
.elementor-kit-7 button.mf-holdings-modal-close:hover {
	color: #111827;
}

.mf-holdings-modal-body {
	padding: 14px 20px 20px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.mf-holdings-list--modal {
	max-height: none !important;
	overflow: visible !important;
}

body.mf-modal-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.mf-portfolio-head {
		flex-direction: column;
	}

	.mf-portfolio-chips {
		width: 100%;
		flex-wrap: wrap;
	}
}
