/**
 * MHA Display Monetization Data — front-end styles (loaded only with shortcode).
 */

.mha-dmd {
	box-sizing: border-box;
	max-width: 100%;
	margin: 1.5rem 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: inherit;
}

.mha-dmd *,
.mha-dmd *::before,
.mha-dmd *::after {
	box-sizing: inherit;
}

.mha-dmd__section {
	margin-bottom: 2rem;
}

.mha-dmd__section:last-child {
	margin-bottom: 0;
}

.mha-dmd__heading {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
	font-weight: 600;
}

.mha-dmd__empty {
	margin: 0;
	padding: 0.75rem 1rem;
	background: rgba(0, 0, 0, 0.04);
	border-radius: 4px;
}

.mha-dmd__filter-empty {
	margin: 0.75rem 0 0;
	padding: 0.75rem 1rem;
	text-align: center;
	color: #424242;
	font-size: 0.9375rem;
	background: rgba(0, 0, 0, 0.04);
	border-radius: 4px;
}

.mha-dmd__table-wrap {
	overflow-x: auto;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	-webkit-overflow-scrolling: touch;
}

.mha-dmd__table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.mha-dmd__table th,
.mha-dmd__table td {
	padding: 0.5rem 0.65rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tbl-comparision.mha-programs-table tbody td[data-headtitle="Program"] a {
	text-transform: none !important;
}

.tbl-comparision.mha-programs-table tbody td[data-headtitle="State"] {
	padding: 15px 3px;
}

.mha-dmd__table th {
	font-weight: 600;
	font-size: 0.8125rem;
	white-space: nowrap;
	background: rgba(0, 0, 0, 0.03);
}

.mha-dmd__table tbody tr:last-child td {
	border-bottom: none;
}

.mha-dmd__table tbody tr:hover td {
	background: rgba(0, 0, 0, 0.02);
}

/* Program comparison layout (tbl-comparision / mha-programs-table) */
.mha-dmd .comparision-tbl {
	max-width: 100%;
}

.mha-dmd .comparision-tbl .tbl-comparision {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.mha-dmd .comparision-tbl .tbl-comparision th,
.mha-dmd .comparision-tbl .tbl-comparision td {
	padding: 0.5rem 0.65rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mha-dmd .comparision-tbl .tbl-comparision th {
	font-weight: 600;
	font-size: 0.8125rem;
	white-space: nowrap;
	background: rgba(0, 0, 0, 0.03);
}

.mha-dmd .comparision-tbl .tbl-comparision th.mha-dmd__th--filter {
	white-space: normal;
	vertical-align: bottom;
}

.mha-dmd .comparision-tbl .tbl-comparision th.mha-dmd__th--filter button{
	padding: 0;
}

.mha-dmd .comparision-tbl .tbl-comparision th.mha-dmd__th--stacked {
	white-space: normal;
	text-align: center;
	line-height: 1.25;
}

.mha-dmd .comparision-tbl .tbl-comparision th.mha-dmd__th--stacked .mha-dmd__th-subline {
	display: block;
	font-size: 0.85em;
	font-weight: 600;
}

.mha-dmd__th-label {
	margin-right: 0.25rem;
}

.mha-dmd__filter-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	padding: 0;
	margin: 0 0 0 0.15rem;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	line-height: 1;
}

.mha-dmd__filter-trigger:hover,
.mha-dmd__filter-trigger:focus-visible {
	background: rgba(0, 0, 0, 0.08);
	outline: none;
}

.mha-dmd__filter-trigger--active {
	color: #1a6dcc;
	background: rgba(26, 109, 204, 0.12);
}

.mha-dmd__filter-icon {
	display: block;
	width: 16px;
	height: 16px;
}

/* Mobile: filter buttons above table (viewport max 980px); desktop uses column header funnels */
.mha-dmd__filter-mobile {
	display: none;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
}

.mha-dmd__filter-trigger--mobile-bar {
	flex: 1 1 calc(50% - 0.25rem);
	min-width: min(100%, 10rem);
	padding: 0.55rem 0.75rem;
	margin: 0;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	border: 2px solid #4ca24f;
	border-radius: 8px;
	background: #fff;
	color: #4ca24f;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.mha-dmd__filter-trigger--mobile-bar:hover,
.mha-dmd__filter-trigger--mobile-bar:focus-visible {
	background: rgba(0, 172, 193, 0.12);
	outline: none;
}

.mha-dmd__filter-trigger--mobile-bar.mha-dmd__filter-trigger--active {
	color: #fff;
	background: #00acc1;
	border-color: #00acc1;
}

@media (max-width: 980px) {
	.mha-dmd__filter-mobile {
		display: flex;
	}

	.mha-dmd .comparision-tbl .tbl-comparision th.mha-dmd__th--filter .mha-dmd__filter-trigger--header {
		display: none;
	}
}

/* Filter modal */
.mha-dmd__filter-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.mha-dmd__filter-modal--open {
	display: block;
}

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

.mha-dmd__filter-modal-panel {
	--mha-dmd-filter-accent: #00acc1;
	position: relative;
	z-index: 1;
	max-width: 24rem;
	width: calc(100% - 2rem);
	margin: 10vh auto 2rem;
	padding: 1.35rem 1.5rem 1.5rem;
	background: #fff;
	border: 3px solid var(--mha-dmd-filter-accent);
	border-radius: 18px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
	max-height: 70vh;
	display: flex;
	flex-direction: column;
}

.mha-dmd__filter-modal-title {
	margin: 0 0 1rem;
	padding-bottom: 0.85rem;
	border-bottom: 2px solid var(--mha-dmd-filter-accent, #00acc1);
	font-size: 1.0625rem;
	font-weight: 600;
	text-align: center;
	color: #424242;
	letter-spacing: 0.01em;
}

.mha-dmd__filter-modal-list {
	overflow-y: auto;
	flex: 1 1 auto;
	min-height: 0;
	margin: 0 0 1.25rem;
	padding: 0.9rem 1rem;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	background: #fff;
}

.mha-dmd__filter-option {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0.4rem 0;
	cursor: pointer;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: #424242;
	font-weight: 400;
}

.mha-dmd__filter-option:first-child {
	padding-top: 0;
}

.mha-dmd__filter-option:last-child {
	padding-bottom: 0;
}

.mha-dmd__filter-option input {
	margin-top: 0.2rem;
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	accent-color: var(--mha-dmd-filter-accent, #00acc1);
}

.mha-dmd__filter-modal-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0;
	border-top: none;
}

.mha-dmd__filter-btn {
	cursor: pointer;
	flex: 1 1 0;
	min-width: 0;
	padding: 0.65rem 10px;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	transition: filter 0.15s ease;
}

.mha-dmd__filter-btn--primary {
	background: #00acc1;
	color: #fff;
}

.mha-dmd__filter-btn--primary:hover,
.mha-dmd__filter-btn--primary:focus-visible {
	filter: brightness(1.06);
	outline: none;
}

.mha-dmd__filter-clear.mha-dmd__filter-btn {
	background: #fff;
	color: #424242;
	border: 2px solid #bdbdbd;
}

.mha-dmd__filter-clear.mha-dmd__filter-btn:hover,
.mha-dmd__filter-clear.mha-dmd__filter-btn:focus-visible {
	background: rgba(0, 0, 0, 0.04);
	outline: none;
}

.mha-dmd__filter-close.mha-dmd__filter-btn {
	background: #f44336;
	color: #fff;
}

.mha-dmd__filter-close.mha-dmd__filter-btn:hover,
.mha-dmd__filter-close.mha-dmd__filter-btn:focus-visible {
	filter: brightness(1.06);
	outline: none;
}

.mha-dmd .comparision-tbl .tbl-comparision tbody tr:last-child td {
	border-bottom: none;
}

.mha-dmd .comparision-tbl .tbl-comparision a {
	text-decoration: underline;
}

/* Program column: pill button (theme .np-request-info), tuned for table cells */
.mha-dmd .comparision-tbl .tbl-comparision td a.np-request-info.mha-dmd__program-btn {
	display: inline-block;
	margin: 0;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	max-width: 100%;
	line-height: 1.3;
	text-transform: none !important;
}

.mha-dmd .comparision-tbl .tbl-comparision td .mha-dmd__program-label {
	display: inline-block;
	line-height: 1.4;
	text-transform: none !important;
}

/* AJAX pagination */
.mha-dmd__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1rem;
	margin-top: 1rem;
	padding: 0.5rem 0;
}

.mha-dmd__page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	min-width: 0;
}

.mha-dmd__page-ellipsis {
	display: inline-flex;
	align-items: center;
	padding: 0 0.15rem;
	font-size: 0.875rem;
	color: rgba(0, 0, 0, 0.45);
	user-select: none;
}

.mha-dmd__page-num.mha-dmd__page-num--current {
	font-weight: 600;
	border-color: rgba(0, 0, 0, 0.35);
	background: rgba(0, 0, 0, 0.06);
}

.mha-dmd__page-btn {
	cursor: pointer;
	padding: 0.35rem 0.85rem;
	font: inherit;
	font-size: 0.875rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	background: #fff;
	color: inherit;
}

.mha-dmd__page-btn:hover:not(:disabled) {
	background: rgba(0, 0, 0, 0.04);
}

.mha-dmd__page-btn:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.mha-dmd__page-info {
	font-size: 0.875rem;
	min-width: 8rem;
	text-align: center;
}

.mha-dmd--loading .mha-dmd__tbody {
	opacity: 0.45;
	transition: opacity 0.15s ease;
}


/* table design */
table.mha-programs-table.mha-dmd-programs-table {
	table-layout: fixed
}

table.mha-programs-table.mha-dmd-programs-table th {
	font-size: 18px;
	width: 16%;
	padding: 13px 9px;
}

table.mha-programs-table.mha-dmd-programs-table .mha-dmd__filter-trigger {
	display: inline-block;
	margin: -4.5px;
}

table.mha-programs-table.mha-dmd-programs-table a.np-request-info {
	background: transparent;
	color: #008eda;
	font-size: 14px;
	padding: 8px 10px;
	border-radius: 10px;
	margin: 0;
	text-align: center;
}

table.mha-programs-table.mha-dmd-programs-table a.np-request-info:hover {
	background: #008eda;
	color: #fff;
}

th[data-headtitle="Rank"]{
	width: 9% !important;
}
th[data-headtitle="Duration"]{
	width: 26% !important;
}

th[data-headtitle="State"] {
	width: 15% !important;
}

table.tbl-comparision .mha-dmd__tbody td {
	padding: 15px 10px;
}

th[data-headtitle="Accreditation"]{
	width: 16% !important;
}

th[data-headtitle="Program"] {
	width: 30% !important;
}

[data-headtitle="Tuition (Yearly Rate)*"] {
	width: 14% !important;
}

@media (max-width: 991px) {
	table.mha-programs-table.mha-dmd-programs-table th{
		font-size: 15px;
		padding: 13px 12px;
		line-height: normal;
	}
	table.tbl-comparision td{
		padding: 15px 3px;
		font-size: 13px;
	}
}

/* mobile design */
@media (max-width: 767px) {
	table.mha-programs-table.mha-dmd-programs-table tbody tr:before {
		display: none;
	}

	table.mha-programs-table.mha-dmd-programs-table tbody td:first-child {
		display: flex !important;
		background: transparent;
	}

	.tbl-comparision.mha-programs-table tbody td[data-headtitle="State"] {
		padding: 10px 15px;
	}

	table.mha-programs-table.mha-dmd-programs-table tbody tr {
		padding: 10px 15px;
		text-align: center;
		width: 100% !important;
		display: flex;
		align-items: center;
		border: 0;
		border-bottom: 1px solid #e7e7e7;
		position: relative;
		box-sizing: border-box;
		text-align: left;
	}

	table.mha-programs-table.mha-dmd-programs-table tbody tr:nth-child(odd) {
		background-color: #f6f6f6;
	}

	table.mha-programs-table.mha-dmd-programs-table tbody tr {
		position: relative;
		width: 100%;
		border-bottom: 2px solid #4ca24f;
		width: 100%;
		display: inline-block
	}

	table.mha-programs-table.mha-dmd-programs-table tbody tr td {
		padding: 10px 15px;
		text-align: center;
		width: 100% !important;
		display: flex;
		align-items: center;
		border: 0;
		border-bottom: 1px solid #e7e7e7;
		position: relative;
		box-sizing: border-box;
		text-align: left;
		font-size: 15px;
	}

	table.mha-programs-table.mha-dmd-programs-table tbody tr td:last-child {
		border: 0
	}

	table.mha-programs-table.mha-dmd-programs-table tbody tr td::before {
		content: attr(data-headtitle);
		width: 100%;
		max-width: 200px;
		font-size: 16px;
		font-weight: 600;
		margin: 0 15px 0 0;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		text-align: left;
		padding: 0 10px 0 0;
		box-sizing: border-box;
		background: transparent;
		text-transform: none !important;
	}

	table.mha-programs-table.mha-dmd-programs-table tbody tr td::after {
		content: "";
		position: absolute;
		top: 0;
		left: 215px;
		height: 100%;
		width: 1px;
		background: #eee
	}

	table.mha-programs-table.mha-dmd-programs-table tbody tr td:first-child:before {
		display: block !important;
	}
}
@media (max-width: 480px) {
	table.mha-programs-table.mha-dmd-programs-table tbody tr td::before {
		max-width: 100px;
	}
	table.mha-programs-table.mha-dmd-programs-table tbody tr td::after {
		left: 115px;
	}
}