/* Moot four-portal layout helpers */

.moot-portal-page .moot-portal-sidebar .dash-nav__link.is-active {
	border-color: rgba(15, 118, 110, 0.18);
	background: #e6f4f3;
	color: #0f766e;
}

.moot-portal-page.moot-portal--business_shipper .dash-sidebar__cta,
.moot-portal-page.moot-portal--personal_sender .dash-sidebar__cta,
.moot-portal-page.moot-portal--driver .dash-sidebar__cta {
	background: #0f766e;
	border-color: #0f766e;
	color: #ffffff;
	box-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
}

.moot-portal-sidebar .dash-nav__link--stacked {
	align-items: flex-start;
	padding-top: 0.55rem;
	padding-bottom: 0.55rem;
}

.moot-portal-sidebar .dash-nav__link--stacked > svg {
	flex-shrink: 0;
	margin-top: 0.12rem;
}

.moot-portal-sidebar .dash-nav__link-text {
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	min-width: 0;
	flex: 1;
	line-height: 1.25;
}

.moot-portal-sidebar .dash-nav__link-label {
	font-weight: 500;
}

.moot-portal-sidebar .dash-nav__link-sub {
	font-size: 0.68rem;
	font-weight: 500;
	line-height: 1.3;
	color: #64748b;
	overflow-wrap: anywhere;
}

.moot-portal-sidebar .dash-nav__link.is-active .dash-nav__link-sub {
	color: #64748b;
}

.moot-portal-hero {
	padding: 2rem;
	margin-bottom: 1.5rem;
}

.moot-portal-hero h2 {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
}

.moot-portal-hero p {
	margin: 0 0 1.25rem;
	color: var(--text-secondary, #94a3b8);
	max-width: 42rem;
}

.moot-portal-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.moot-portal-action {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.25rem;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

a.moot-portal-action:hover {
	transform: translateY(-2px);
	border-color: rgba(37, 99, 235, 0.45);
}

.moot-portal-action__icon {
	font-size: 1.5rem;
}

.moot-portal-action span:last-child {
	color: var(--text-muted, #64748b);
	font-size: 0.875rem;
}

.moot-portal-panel {
	padding: 1.5rem;
}

.moot-portal-empty {
	color: var(--text-muted, #64748b);
	padding: 1rem 0;
}

.moot-portal-recent-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.moot-portal-status {
	font-size: 0.8125rem;
	text-transform: capitalize;
	color: var(--text-secondary, #94a3b8);
}

.moot-portal-note {
	margin-top: 1rem;
	font-size: 0.875rem;
	color: var(--text-muted, #64748b);
}

.moot-bulk-drop {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 140px;
	margin: 1rem 0;
	border: 2px dashed rgba(148, 163, 184, 0.35);
	border-radius: 12px;
	cursor: pointer;
}

.moot-bulk-drop input {
	display: none;
}

.moot-api-key-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin: 1rem 0;
}

.moot-api-key-row code {
	padding: 0.65rem 1rem;
	border-radius: 8px;
	background: rgba(15, 23, 42, 0.6);
}

/* Personal sender — hide business/freight tools on shared pages */
.moot-portal--personal_sender #send-mode-freight,
.moot-portal--personal_sender .send-mode-picker__lead {
	display: none;
}

.moot-portal--personal_sender .send-mode-grid {
	grid-template-columns: 1fr;
}

.portal-form__account-type--four {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-form__account-type--four .portal-form__radio label {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	min-height: 72px;
}

.portal-form__account-type__hint {
	display: block;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--text-muted, #64748b);
}

@media (max-width: 768px) {
	.moot-portal-actions {
		grid-template-columns: 1fr;
	}

	.portal-form__account-type--four {
		grid-template-columns: 1fr;
	}
}
