li.menu-item-my_account {
	border-top: 1px solid;
	padding-top: 20px;
	margin-top: 20px;
}

#tenant-switch {
	padding: 0;
	display: flex;
	align-items: center;
	height: 100%;
}
ul#tenant-switch-list li > a,
#tenant-switch span {
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
	white-space: nowrap;
}
/**
 * Hide module upgrade needed badge in tenan admin.
 * The non assigned module
 */
#setup-menu-item span.badge,
.menu-item-modules {
	display: none !important;
}

/* ========== Tenant dashboard: trial & invoice alerts (compact card, fits white UI) ========== */
.ps.col-md-12 {
	margin-bottom: 0.75rem;
	margin-top: 0;
}
.ps-invoice-alert {
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	padding: 0;
	min-height: 0;
	margin-top: 0.5rem;
	margin-bottom: 0.25rem;
	overflow: hidden;
}
.ps-invoice-alert__inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.65rem;
	padding: 0.65rem 0.85rem;
}
@media (min-width: 768px) {
	.ps-invoice-alert__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
	}
}
.ps-invoice-alert__main {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	min-width: 0;
	flex: 1;
}
.ps-invoice-alert__icon {
	flex-shrink: 0;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
}
.ps-invoice-alert--trial-active .ps-invoice-alert__icon {
	background: rgba(217, 119, 6, 0.12);
	color: #b45309;
}
.ps-invoice-alert--trial-ended .ps-invoice-alert__icon {
	background: rgba(220, 38, 38, 0.12);
	color: #b91c1c;
}
.ps-invoice-alert__icon--danger {
	background: rgba(220, 38, 38, 0.12);
	color: #b91c1c;
}
.ps-invoice-alert__copy {
	min-width: 0;
}
.ps-invoice-alert__kicker {
	display: block;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #b45309;
	margin-bottom: 0.2rem;
}
.ps-invoice-alert--trial-ended .ps-invoice-alert__kicker {
	color: #b91c1c;
}
.ps-invoice-alert__text {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	font-weight: 500;
	color: #44403c;
}
.ps-invoice-alert__text strong {
	font-weight: 700;
	color: #292524;
}
.ps-invoice-alert__cta {
	flex-shrink: 0;
	align-self: flex-start;
	white-space: nowrap;
	font-weight: 600;
	border-radius: 8px;
	padding: 0.35rem 0.85rem;
}
@media (min-width: 768px) {
	.ps-invoice-alert__cta {
		align-self: center;
	}
}
/* Trial — soft tint, left accent (not full yellow slab) */
.ps-invoice-alert--trial.ps-invoice-alert--trial-active,
.content .ps-invoice-alert--trial.ps-invoice-alert--trial-active,
#wrapper .ps-invoice-alert--trial.ps-invoice-alert--trial-active {
	background: #fffbeb !important;
	border: 1px solid #fde68a !important;
	border-left: 4px solid #d97706 !important;
	color: #44403c !important;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}
.ps-invoice-alert--trial.ps-invoice-alert--trial-ended,
.content .ps-invoice-alert--trial.ps-invoice-alert--trial-ended,
#wrapper .ps-invoice-alert--trial.ps-invoice-alert--trial-ended {
	background: #fff1f2 !important;
	border: 1px solid #fecdd3 !important;
	border-left: 4px solid #e11d48 !important;
	color: #44403c !important;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}
.ps-invoice-alert--trial-ended .ps-invoice-alert__text {
	color: #7f1d1d;
}
/* Outstanding invoice — match card pattern */
.ps-invoice-alert--outstanding {
	background: #fff1f2 !important;
	border: 1px solid #fecdd3 !important;
	border-left: 4px solid #e11d48 !important;
	color: #7f1d1d !important;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.ps-invoice-alert--outstanding .ps-invoice-alert__text {
	color: #7f1d1d;
}

/* Subscribe confirmation modal (replaces browser confirm) */
.ps-upgrade-modal .modal-dialog {
	margin-top: 12vh;
	max-width: 400px;
}
.ps-upgrade-modal .modal-content {
	border-radius: 16px;
	border: none;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18), 0 4px 16px rgba(15, 23, 42, 0.08);
}
.ps-upgrade-modal__body {
	padding: 1.75rem 1.5rem 1rem;
	text-align: center;
}
.ps-upgrade-modal__icon {
	font-size: 2.35rem;
	line-height: 1;
	color: #d97706;
	margin-bottom: 0.65rem;
}
.ps-upgrade-modal__title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 0.65rem;
	color: #111827;
}
.ps-upgrade-modal__msg {
	font-size: 0.875rem;
	line-height: 1.55;
	color: #4b5563;
	margin: 0;
}
.ps-upgrade-modal__footer {
	border-top: 1px solid #f3f4f6;
	padding: 1rem 1.25rem;
	text-align: center;
}
.ps-upgrade-modal__footer .btn {
	min-width: 5.5rem;
	border-radius: 8px;
	font-weight: 600;
}
.ps-upgrade-modal__btn-ok {
	background: #d97706;
	border-color: #b45309;
}
.ps-upgrade-modal__btn-ok:hover,
.ps-upgrade-modal__btn-ok:focus {
	background: #b45309;
	border-color: #92400e;
}

/* Quota widget on tenant dashboard - subtle card polish */
#widget-saas_top_stats .top_stats_wrapper {
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.06);
}
#widget-saas_top_stats .progress-bar-mini .progress-bar {
	border-radius: 0 4px 4px 0;
}
#widget-saas_top_stats a[href*="my_account"] {
	color: #2563eb;
	font-weight: 500;
}
#widget-saas_top_stats a[href*="my_account"]:hover {
	text-decoration: underline;
}

/* ========== Client portal: /clients/my_account (Billing / Marketplace) ========== */
.ps-marketplace-page.panel {
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.06);
	overflow: hidden;
}
.ps-marketplace-page .panel-body {
	background: #fafbfc;
	padding: 1.75rem 1.5rem;
}

/* Plan hero - layout and look without relying on Tailwind */
.ps-plan-hero {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e2e8f0;
}
.ps-plan-hero__title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: #1e293b;
	letter-spacing: -0.02em;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.ps-plan-hero__price {
	margin-top: 0.5rem;
}
.ps-price-pill {
	display: inline-flex;
	align-items: baseline;
	gap: 0.25rem;
	padding: 0.5rem 1rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: #fff;
	background: #1e293b;
	border-radius: 9999px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	letter-spacing: 0.01em;
}
.ps-price-pill small {
	color: #cbd5e1;
	font-size: 1rem;
	font-weight: 400;
}
.ps-next-invoice {
	border-radius: 10px !important;
	font-weight: 500;
}
.ps-next-invoice:hover {
	opacity: 0.95;
	text-decoration: none;
}

/* Features table */
.ps-features-table-wrapper {
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.ps-features-table {
	margin-bottom: 0 !important;
	border-radius: 12px;
}
.ps-features-table thead tr {
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	border-bottom: 2px solid #e2e8f0;
}
.ps-features-table thead th {
	font-weight: 600;
	color: #334155;
	font-size: 0.8125rem;
	text-transform: none;
	padding: 0.75rem 1rem;
	border-color: #e2e8f0 !important;
}
.ps-features-table tbody tr {
	transition: background-color 0.15s ease;
}
.ps-features-table tbody tr:hover {
	background-color: #f8fafc;
}
.ps-features-table tbody td {
	padding: 0.75rem 1rem;
	border-color: #e2e8f0 !important;
	color: #475569;
	font-size: 0.875rem;
}
.ps-features-table tbody tr.ps-included-features-row td {
	vertical-align: middle;
}

/* Summary card inner - layout without Tailwind */
.ps-summary-card__inner {
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	padding: 1rem;
	margin-bottom: 1rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.ps-summary-actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	justify-content: flex-end;
	width: 100%;
}

/* Included features as tags */
.ps-included-features-cell {
	max-width: 320px;
}
.ps-feature-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	line-height: 1.4;
}
.ps-feature-tag {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: #475569;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	white-space: nowrap;
}
.ps-feature-tag:hover {
	background: #e2e8f0;
	color: #334155;
}

/* Premium modules / services section rows */
.ps-features-table tbody tr td .tw-flex.tw-gap-3 {
	padding: 0.5rem 0;
}
.ps-features-table tbody tr td .btn-primary {
	border-radius: 8px;
	font-weight: 500;
}

/* Summary card */
.ps-summary-card__inner {
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}
.ps-summary-card__inner table {
	margin-bottom: 0;
}
.ps-summary-card__inner tfoot th {
	font-weight: 500;
	color: #64748b;
	font-size: 0.8125rem;
	padding: 0.4rem 0;
	border: none !important;
}
.ps-summary-card__inner tfoot td {
	padding: 0.4rem 0;
	border: none !important;
	font-size: 0.875rem;
	color: #334155;
}
.ps-summary-card__inner tfoot tr:last-child th,
.ps-summary-card__inner tfoot tr:last-child td {
	padding-top: 0.75rem;
	border-top: 2px solid #e2e8f0 !important;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
}

/* Action buttons */
.ps-summary-actions .ps-btn-update {
	border-radius: 10px;
	font-weight: 600;
	background: linear-gradient(180deg, #059669 0%, #047857 100%);
	border: none;
	box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}
.ps-summary-actions .ps-btn-update:hover {
	background: linear-gradient(180deg, #047857 0%, #065f46 100%);
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
	transform: translateY(-1px);
}
.ps-btn-cancel-wrapper .btn-danger {
	border-radius: 10px;
	font-weight: 500;
	width: 100%;
	padding: 0.5rem 1rem;
	border: 1px solid #dc2626;
	background: #fff;
	color: #dc2626;
}
.ps-btn-cancel-wrapper .btn-danger:hover {
	background: #fef2f2;
	color: #b91c1c;
	border-color: #b91c1c;
}
.ps-btn-cancel-wrapper {
	overflow: visible;
	position: relative;
}
.ps-btn-cancel-wrapper .btn-group {
	position: static;
}
.ps-btn-cancel-wrapper .btn-group .btn-danger {
	width: 100%;
	text-align: center;
}
.ps-btn-cancel-wrapper .dropdown-menu {
	border-radius: 10px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	border: 1px solid #e2e8f0;
	z-index: 1050;
}
.ps-btn-cancel-wrapper .btn-group.open .dropdown-menu {
	display: block;
}
