/* Client Dashboard minimal styling */
.sd-account-holder-portal {
	max-width: 1100px;
	margin: 0 auto;
	padding: 16px;
	font-family: inherit;
	color: #1f2937;
}

.sd-portal-actions {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 12px;
}

.sd-portal-card {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: #ffffff;
	padding: 18px;
	margin-bottom: 20px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.sd-portal-section {
	margin-bottom: 12px;
}

.sd-section-title {
	font-weight: 600;
	font-size: 1.25em;
	margin-bottom: 12px;
}

.sd-section-subtitle {
	font-weight: 600;
	margin-bottom: 6px;
}

.sd-portal-list {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.sd-portal-list li + li {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sd-meta-line {
	margin: 4px 0;
	display: flex;
	gap: 6px;
	align-items: baseline;
}

.sd-meta-line .sd-label {
	color: #6b7280;
	font-size: 0.95em;
}

.sd-meta-line .sd-value {
	font-weight: 600;
	font-size: 1.05em;
}

.sd-remaining-low {
	color: #b91c1c;
}

.sd-remaining-mid {
	color: #c2410c;
}

.sd-remaining-high {
	color: #1f2937;
}

.sd-button,
.sd-button-secondary {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid #ccc;
	background: #f2f2f2;
	color: inherit;
}

.sd-button:hover,
.sd-button-secondary:hover {
	background: #e6e6e6;
}

.sd-portal-actions {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 16px;
}

.sd-portal-form .sd-form-group {
	margin-bottom: 12px;
}

.sd-portal-form label {
	display: block;
	margin-bottom: 6px;
}

.sd-portal-form input[type="email"],
.sd-portal-form input[type="password"],
.sd-portal-form input[type="text"],
.sd-portal-form input[type="number"] {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.sd-portal-form .sd-form-actions {
	margin-top: 12px;
}

.sd-honeypot-field {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sd-error-text {
	color: #a00;
	margin-bottom: 12px;
}

.sd-portal-list-details {
	margin-top: 6px;
}

.sd-portal-alert {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 14px;
}

.sd-portal-alert--warning {
	background: #fff7ed;
	border: 1px solid #fdba74;
	color: #9a3412;
}

.sd-inline-icon {
	display: inline-block;
	vertical-align: middle;
	margin-right: 6px;
}

.sd-public-calendar {
	max-width: 900px;
	margin: 0 auto;
	padding: 14px 14px 18px;
	font-family: inherit;
	color: #1f2937;
	background: #f9fafb;
}

.sd-public-calendar .sd-calendar-item {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #ffffff;
	padding: 18px 20px;
	margin-bottom: 20px;
	transition: background 0.2s ease;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
	border-left: 4px solid rgba(37, 99, 235, 0.15);
}

.sd-public-calendar .sd-calendar-title {
	font-weight: 700;
	font-size: 1.25em;
	color: #111827;
	margin-bottom: 8px;
}

.sd-public-calendar .sd-calendar-meta {
	font-size: 0.9em;
	color: #6b7280;
	line-height: 1.4;
	margin: 0 0 4px;
}

.sd-public-calendar .sd-calendar-status {
	font-style: italic;
	font-weight: 600;
	font-size: 0.95em;
	opacity: 0.9;
	margin: 8px 0 10px;
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(31, 41, 55, 0.08);
	color: #1f2937;
}

.sd-public-calendar .sd-calendar-schedule {
	font-size: 0.95em;
	color: #1f2937;
}

.sd-public-calendar .sd-calendar-schedule ul {
	padding-left: 0;
	margin: 10px 0 0;
	list-style: none;
}

.sd-public-calendar .sd-calendar-schedule li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	font-size: 0.95em;
	color: #1f2937;
}

.sd-public-calendar .sd-calendar-status.status-desfasurare {
	background: rgba(22, 163, 74, 0.1);
	color: #166534;
}

.sd-public-calendar .sd-calendar-status.status-curand {
	background: rgba(37, 99, 235, 0.1);
	color: #1e40af;
}

.sd-public-calendar .sd-status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 6px;
	background: rgba(17, 24, 39, 0.3);
	vertical-align: middle;
}

.sd-public-calendar .sd-calendar-status.status-desfasurare .sd-status-dot {
	background: rgba(22, 163, 74, 0.8);
}

.sd-public-calendar .sd-calendar-status.status-curand .sd-status-dot {
	background: rgba(245, 158, 11, 0.8);
}

.sd-public-calendar .sd-meta-icon,
.sd-public-calendar .sd-schedule-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 6px;
	color: #6b7280;
}

.sd-ui-credit {
	display: block;
	margin: 14px auto 0;
	max-width: 920px;
	padding: 8px 12px;
	text-decoration: none;
	color: #000;
	text-align: center;
	font-size: 0.9em;
	line-height: 1.45;
}

.sd-ui-credit-brand {
	display: inline-block;
	padding: 2px 8px;
	margin: 0 6px;
	background: #fff;
	color: #000;
	border-radius: 6px;
	font-weight: 700;
}

.sd-ui-credit-accent {
	color: #00EAff;
}

.sd-portal {
	max-width: 1100px;
	margin: 0 auto;
}

.sd-portal__container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 16px 24px;
}

.sd-portal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid #e5e5e5;
	padding-bottom: 20px;
	margin-bottom: 32px;
}

.sd-portal__title {
	margin: 0;
	font-weight: 600;
	font-size: 1.75rem;
	line-height: 1.2;
}

.sd-portal__logout {
	color: #4b5563;
	text-decoration: none;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	padding: 8px 12px;
	background: #fff;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}

.sd-portal__logout:hover {
	color: #111827;
	border-color: #d1d5db;
}

.sd-portal__switcher,
.sd-portal__overview,
.sd-portal__services,
.sd-portal__calendar {
	margin-bottom: 32px;
}

.sd-portal-switcher-form {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px 12px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	background: #fff;
	padding: 10px 14px;
	max-width: 560px;
	width: 100%;
}

.sd-portal-switcher-form label {
	color: #6b7280;
	font-size: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
}

.sd-portal-switcher-form select {
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	background: #fff;
	min-width: 0;
	width: 100%;
	font-weight: 600;
	min-height: 44px;
	padding: 0 12px;
}

.sd-portal-switcher-form button {
	margin-left: 0;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 6px;
	white-space: nowrap;
}

.sd-portal-overview-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
}

.sd-portal-stat-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 14px 16px;
	transition: box-shadow .2s ease;
}

.sd-portal-stat-card:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,.05);
}

.sd-portal-stat-label {
	text-transform: uppercase;
	font-size: .68rem;
	letter-spacing: .04em;
	color: #6b7280;
	margin-bottom: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sd-portal-stat-value {
	font-size: 1.25rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.25;
}

.sd-portal-stat-value--sm {
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.35;
}

.sd-portal-services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.sd-service-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 20px;
}

.sd-service-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.sd-service-card__title {
	margin: 0;
	font-size: 1.08rem;
	font-weight: 600;
}

.sd-service-card__badge {
	font-size: .75rem;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid #d1d5db;
	color: #374151;
	background: #f9fafb;
	line-height: 1.1;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 78px;
}

.sd-service-card__badge.is-active {
	color: #166534;
	border-color: #bbf7d0;
	background: #f0fdf4;
}

.sd-service-card__badge.is-expired {
	color: #9a3412;
	border-color: #fdba74;
	background: #fff7ed;
}

.sd-service-card__badge.is-inactive {
	color: #475569;
	border-color: #cbd5e1;
	background: #f8fafc;
}

.sd-service-card__badge.is-blocked {
	color: #991b1b;
	border-color: #fecaca;
	background: #fef2f2;
}

.sd-service-card__hint {
	margin: 0 0 12px;
	font-size: .85rem;
	line-height: 1.4;
	color: #6b7280;
}

.sd-service-card__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 14px;
	margin-bottom: 16px;
}

.sd-service-card__header {
	align-items: flex-start;
}

.sd-service-card__stats span {
	display: block;
	font-size: .78rem;
	color: #6b7280;
}

.sd-service-card__stats strong {
	display: block;
	font-size: 1rem;
	color: #111827;
	line-height: 1.3;
}

.sd-service-card__progress-bar {
	width: 100%;
	height: 8px;
	border: 0;
	border-radius: 4px;
	background: #f1f1f1;
	overflow: hidden;
}

.sd-service-card__progress-bar::-webkit-progress-bar {
	background: #f1f1f1;
	border-radius: 4px;
}

.sd-service-card__progress-bar::-webkit-progress-value {
	background: #2271b1;
	border-radius: 4px;
}

.sd-service-card__progress-bar::-moz-progress-bar {
	background: #2271b1;
	border-radius: 4px;
}

.sd-service-card__actions {
	margin-top: 14px;
	text-align: right;
}

.sd-service-card__actions a {
	text-decoration: none;
	color: #4b5563;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 7px 10px;
	display: inline-block;
}

.sd-service-card__actions a:hover {
	color: #111827;
	border-color: #d1d5db;
}

.sd-portal-calendar__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.sd-portal-calendar__list li {
	display: grid;
	grid-template-columns: minmax(120px, auto) 1fr auto;
	gap: 12px;
	align-items: center;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 12px 14px;
}

.sd-portal-calendar__service {
	font-weight: 600;
}

.sd-portal-calendar__time {
	color: #6b7280;
}

/* Available Sessions table */
.sd-sessions-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.sd-sessions-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .93rem;
}

.sd-sessions-table thead th {
	text-align: left;
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #6b7280;
	padding: 8px 12px;
	border-bottom: 2px solid #e5e5e5;
	white-space: nowrap;
}

.sd-sessions-table tbody td {
	padding: 10px 12px;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: middle;
}

.sd-sessions-table__row:last-child td {
	border-bottom: none;
}

.sd-sessions-table__row.is-booked {
	background: #f0fdf4;
}

.sd-sessions-table__row.is-full {
	opacity: .6;
}

.sd-sessions-table__service {
	font-weight: 600;
}

.sd-sessions-table__time {
	color: #6b7280;
	white-space: nowrap;
}

.sd-sessions-table__btn {
	min-height: 34px;
	padding: 0 14px;
	font-size: .85rem;
	white-space: nowrap;
}

.sd-sessions-badge {
	display: inline-block;
	font-size: .75rem;
	padding: 3px 8px;
	border-radius: 999px;
	font-weight: 600;
	white-space: nowrap;
}

.sd-sessions-badge--booked {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.sd-sessions-badge--full {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.sd-sessions-spots {
	font-size: .82rem;
	color: #6b7280;
}

.sd-sessions-table__form {
	margin: 0;
}

.sd-sessions-table__action {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	white-space: normal;
}

/* Pay Now button — outlined secondary style */
.sd-pay-now-btn {
	background: transparent;
	color: #374151;
	border: 1px solid #d1d5db;
	box-shadow: none;
}

.sd-pay-now-btn:hover,
.sd-pay-now-btn:focus {
	background: #f9fafb;
	border-color: #9ca3af;
	color: #111827;
}

/* Pay Now modal */
.sd-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.sd-modal[hidden] {
	display: none;
}

.sd-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .45);
}

.sd-modal__box {
	position: relative;
	background: #fff;
	border-radius: 10px;
	padding: 28px 28px 24px;
	max-width: 480px;
	width: 100%;
	box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}

.sd-modal__title {
	margin: 0 0 16px 0;
	font-size: 1rem;
	font-weight: 700;
	color: #111827;
}

.sd-modal__body {
	font-size: .9rem;
	line-height: 1.6;
	color: #374151;
}

.sd-modal__row {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 0;
	border-bottom: 1px solid #f3f4f6;
}

.sd-modal__row:last-child {
	border-bottom: none;
}

.sd-modal__row-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #9ca3af;
}

.sd-modal__row-value {
	font-size: 15px;
	font-weight: 600;
	color: #111827;
	word-break: break-all;
	font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

.sd-modal__row-plain {
	padding: 6px 0;
	color: #374151;
	font-size: .9rem;
}

.sd-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 1.1rem;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
	padding: 4px 6px;
}

.sd-modal__close:hover {
	color: #111827;
}

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

.sd-portal-alert--success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

@media (max-width: 767px) {
	.sd-portal__container {
		padding: 16px 14px 20px;
	}

	.sd-portal__header {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		margin-bottom: 24px;
	}

	.sd-portal-actions {
		width: 100%;
	}

	.sd-portal__logout {
		width: 100%;
	}

	.sd-portal__switcher,
	.sd-portal__overview,
	.sd-portal__services,
	.sd-portal__calendar {
		margin-bottom: 22px;
	}

	.sd-portal-overview-grid,
	.sd-portal-services-grid {
		grid-template-columns: 1fr;
	}

	.sd-portal-switcher-form {
		width: 100%;
		max-width: none;
		grid-template-columns: 1fr;
	}

	.sd-portal-calendar__list li {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.sd-service-card {
		padding: 16px;
	}

	.sd-service-card__stats {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.sd-service-card__actions {
		text-align: left;
	}

	.sd-service-card__actions a {
		width: 100%;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}

/* ── Client Portal — mobile app layout ─────────── */

.sd-client-portal {
	background: #f5f6fa;
	padding-bottom: calc( 64px + env(safe-area-inset-bottom, 0px) );
	overflow-x: hidden;
	width: 100%;
	box-sizing: border-box;
}

.admin-bar .sd-client-portal {
	padding-bottom: calc( 60px + env(safe-area-inset-bottom, 0px) );
}

.sd-client-portal .sd-portal__container {
	max-width: 900px;
	width: 100%;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

/* Top header bar */
.sd-client-portal__top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	background: #fff;
	border-bottom: 1px solid #eef0f2;
}

.sd-client-portal__greeting {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	overflow: hidden;
}

.sd-client-portal__greeting-name {
	font-size: 1rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sd-client-portal__greeting-next {
	font-size: 0.8rem;
	color: #6b7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sd-client-portal__logout-btn {
	font-size: 0.82rem;
	padding: 6px 12px;
	min-height: 36px;
	white-space: nowrap;
	flex-shrink: 0;
}

/* Client switcher */
.sd-client-portal__switcher {
	padding: 10px 16px;
	background: #fff;
	border-bottom: 1px solid #eef0f2;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
}

.sd-client-portal__switcher .sd-portal-switcher-form {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: none;
	width: 100%;
	box-sizing: border-box;
}

.sd-client-portal__switcher .sd-portal-switcher-form select {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
}

.sd-client-portal__switcher .sd-portal-switcher-form button {
	flex: 0 0 auto;
	width: auto;
	white-space: nowrap;
}

/* Alert */
.sd-client-portal__alert {
	margin: 10px 16px 0;
	border-radius: 8px;
}

/* Panels container */
.sd-client-portal__panels {
	padding: 16px;
}

/* Override inner section margins inside panels */
.sd-client-portal .sd-portal__overview,
.sd-client-portal .sd-portal__services,
.sd-client-portal .sd-portal__calendar {
	margin-bottom: 0;
}

.sd-client-portal .sd-portal-overview-grid {
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.sd-client-portal .sd-portal-services-grid {
	grid-template-columns: 1fr;
	gap: 12px;
}

.sd-client-portal__section-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 10px;
}

.sd-client-portal .sd-portal__calendar + .sd-portal__calendar {
	margin-top: 20px;
}

/* Support card */
.sd-client-portal__support {
	margin: 0 16px 16px;
}

.sd-client-portal__support .sd-section-title {
	font-size: 1rem;
}

/* ── Tab bar — fixed at bottom on all screen sizes ── */

.sd-client-portal__tab-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60px;
	display: flex;
	flex-direction: row;
	background: #fff;
	border-top: 1px solid #e5e7eb;
	z-index: 200;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.sd-client-portal__tab-btn {
	flex: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: none;
	background: none;
	color: #9ca3af;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	padding: 10px 16px;
	min-height: 44px;
	touch-action: manipulation;
	position: relative;
	transition: color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.sd-client-portal__tab-btn:active {
	opacity: 0.7;
}

.sd-client-portal__tab-btn.is-active {
	color: #2271b1;
	box-shadow: inset 0 2px 0 #2271b1;
}

.sd-client-portal__tab-btn svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	display: block;
}

.sd-client-portal__tab-badge {
	position: absolute;
	top: 6px;
	right: 8px;
	background: #ef4444;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	min-width: 16px;
	height: 16px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	line-height: 1;
}

/* When inside app-shell template: take full width */
.attendra-app-shell .sd-account-holder-portal.sd-client-portal {
	max-width: none;
	margin: 0;
	padding-left: 0;
	padding-right: 0;
}

/* ── Responsive overrides ───────────────────────── */

@media (min-width: 640px) {
	.sd-client-portal .sd-portal-overview-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.sd-client-portal .sd-portal-services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile: stack icon + label vertically, reduce text size */
@media (max-width: 782px) {
	.sd-client-portal__tab-btn {
		flex-direction: column;
		gap: 2px;
		font-size: 10px;
		padding: 8px 4px;
	}

	.sd-client-portal__tab-btn svg {
		width: 22px;
		height: 22px;
	}

	.sd-client-portal__tab-btn.is-active {
		box-shadow: none;
	}

	.sd-client-portal__tab-badge {
		right: calc(50% - 20px);
	}
}

@media (min-width: 1280px) {
	.sd-portal-overview-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

@media (min-width: 900px) and (max-width: 1279px) {
	.sd-portal-overview-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.sd-ui-credit {
		font-size: 0.86em;
		padding: 8px 10px;
		line-height: 1.4;
	}
}

@media (max-width: 640px) {
	.sd-account-holder-portal {
		padding: 12px;
	}

	.sd-portal-card {
		padding: 14px;
		margin-bottom: 16px;
	}

	.sd-section-title {
		font-size: 1.1em;
	}

	.sd-public-calendar {
		padding: 12px;
	}

	.sd-public-calendar .sd-calendar-item {
		padding: 14px 16px;
		margin-bottom: 16px;
	}

	.sd-public-calendar .sd-calendar-title {
		font-size: 1.1em;
	}

	.sd-public-calendar .sd-calendar-meta,
	.sd-public-calendar .sd-calendar-status,
	.sd-public-calendar .sd-calendar-schedule {
		font-size: 0.9em;
	}
}

/* ─── Home tab: welcome (no services) ──────────────────────────────────────── */

.sd-home__welcome {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	background: linear-gradient( 135deg, #eff6ff 0%, #f0fdf4 100% );
	border: 1px solid #bfdbfe;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
}

.sd-home__welcome-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #dbeafe;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #2271b1;
}

.sd-home__welcome-icon svg {
	width: 24px;
	height: 24px;
}

.sd-home__welcome-body {
	flex: 1;
	min-width: 0;
}

.sd-home__welcome-title {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
	margin-bottom: 6px;
}

.sd-home__welcome-text {
	font-size: 13px;
	color: #4b5563;
	line-height: 1.6;
}

/* ─── Home tab: next session card ──────────────────────────────────────────── */

.sd-home__next-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #f0f7ff;
	border: 1px solid #bfdbfe;
	border-left: 4px solid #2271b1;
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 20px;
}

.sd-home__next-card-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: #2271b1;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sd-home__next-card-icon svg {
	width: 22px;
	height: 22px;
}

.sd-home__next-card-body {
	flex: 1;
	min-width: 0;
}

.sd-home__next-card-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #2271b1;
	margin-bottom: 2px;
}

.sd-home__next-card-service {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sd-home__next-card-datetime {
	font-size: 13px;
	color: #6b7280;
	margin-top: 2px;
}

.sd-home__next-card-badge {
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 20px;
	background: #dbeafe;
	color: #1d4ed8;
}

.sd-home__next-card-badge--confirmed,
.sd-home__next-card-badge--attended {
	background: #dcfce7;
	color: #15803d;
}

.sd-home__next-card-badge--pending,
.sd-home__next-card-badge--pending_payment {
	background: #fef9c3;
	color: #854d0e;
}

.sd-home__next-card-badge--cancelled,
.sd-home__next-card-badge--rejected {
	background: #fee2e2;
	color: #b91c1c;
}

.sd-home__no-next {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f9fafb;
	border: 1px dashed #d1d5db;
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 20px;
	color: #9ca3af;
	font-size: 14px;
}

.sd-home__no-next svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	opacity: 0.5;
}

/* ─── Home tab: stats grid ──────────────────────────────────────────────────── */

.sd-home__stats-grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 12px;
	margin-bottom: 20px;
}

.sd-home__stat {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 16px 12px 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
}

.sd-home__stat-icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.sd-home__stat-icon svg {
	width: 18px;
	height: 18px;
}

.sd-home__stat-icon--blue   { background: #dbeafe; color: #2563eb; }
.sd-home__stat-icon--green  { background: #dcfce7; color: #16a34a; }
.sd-home__stat-icon--orange { background: #ffedd5; color: #ea580c; }
.sd-home__stat-icon--purple { background: #f3e8ff; color: #9333ea; }
.sd-home__stat-icon--gold   { background: #fef9c3; color: #ca8a04; }
.sd-home__stat-icon--pink   { background: #fce7f3; color: #db2777; }
.sd-home__stat-icon--teal   { background: #ccfbf1; color: #0d9488; }
.sd-home__stat-icon--yellow { background: #fef3c7; color: #d97706; }
.sd-home__stat-icon--red    { background: #fee2e2; color: #dc2626; }
.sd-home__stat-icon--slate  { background: #f1f5f9; color: #475569; }

.sd-home__stat-value {
	font-size: 22px;
	font-weight: 800;
	color: #111827;
	line-height: 1;
}

.sd-home__stat-value--sm {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.sd-home__stat-value--green  { color: #16a34a; }
.sd-home__stat-value--yellow { color: #d97706; }
.sd-home__stat-value--red    { color: #dc2626; }

.sd-home__stat-label {
	font-size: 11px;
	color: #9ca3af;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ─── Home tab: milestones ──────────────────────────────────────────────────── */

.sd-home__milestones {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.sd-home__milestone {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #2271b1;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 20px;
	padding: 4px 12px;
}

.sd-home__milestone::before {
	content: "★";
	font-size: 10px;
	color: #f59e0b;
}

@media ( max-width: 782px ) {
	.sd-home__stats-grid {
		grid-template-columns: repeat( 2, 1fr );
		gap: 10px;
	}

	.sd-home__stat {
		padding: 14px 10px 12px;
	}

	.sd-home__stat-value {
		font-size: 20px;
	}

	.sd-home__next-card {
		padding: 14px;
	}

	.sd-home__next-card-service {
		font-size: 14px;
	}
}

/* Package status badge — staff portal booking form */
.attendra-pkg-badge {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}
.attendra-pkg-badge--ok {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}
.attendra-pkg-badge--warning {
	background: #fffbeb;
	color: #92400e;
	border: 1px solid #fcd34d;
}
.attendra-pkg-badge--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}
.attendra-pkg-badge--info {
	background: #eff6ff;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}
