/**
 * Bella Vita Booking – Dashboard styles.
 * Scoped with bv- prefix to avoid theme conflicts.
 */

[x-cloak] { display: none !important; }

/* Variables on :root so teleported modals (body) keep solid backgrounds. */
:root {
	--bv-primary: #6366f1;
	--bv-primary-hover: #4f46e5;
	--bv-danger: #ef4444;
	--bv-bg: #f8fafc;
	--bv-card: #ffffff;
	--bv-border: #e2e8f0;
	--bv-text: #1e293b;
	--bv-muted: #64748b;
	--bv-radius: 12px;
	--bv-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
}

.bv-app {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--bv-text);
	max-width: 1400px;
	margin: 0 auto;
	padding: 1.5rem;
	box-sizing: border-box;
}

.bv-app *, .bv-app *::before, .bv-app *::after {
	box-sizing: border-box;
}

.bv-modal-overlay,
.bv-modal-overlay *,
.bv-modal-overlay *::before,
.bv-modal-overlay *::after {
	box-sizing: border-box;
}

/* Header */
.bv-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.bv-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	color: var(--bv-text);
}

.bv-toolbar {
	display: flex;
	align-items: center;
	gap: .75rem;
	flex-wrap: wrap;
}

/* Buttons */
.bv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .5rem 1rem;
	border: 1px solid var(--bv-border, #e2e8f0);
	border-radius: 8px;
	background: #ffffff;
	color: var(--bv-text, #1e293b);
	font-size: .875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all .15s ease;
}

.bv-btn:hover { background: var(--bv-bg); }

.bv-btn--active,
.bv-btn--primary {
	background: var(--bv-primary);
	color: #fff;
	border-color: var(--bv-primary);
}

.bv-btn--active:hover,
.bv-btn--primary:hover {
	background: var(--bv-primary-hover);
	border-color: var(--bv-primary-hover);
}

.bv-btn--danger {
	background: var(--bv-danger);
	color: #fff;
	border-color: var(--bv-danger);
}

.bv-btn--sm { padding: .25rem .75rem; font-size: .8125rem; }
.bv-btn--lg { padding: .75rem 1.5rem; font-size: 1rem; }
.bv-btn--link { background: none; border: none; color: var(--bv-muted); cursor: pointer; font-size: 1.25rem; padding: 0 .25rem; }

.bv-view-toggle {
	display: flex;
	border: 1px solid var(--bv-border);
	border-radius: 8px;
	overflow: hidden;
}

.bv-view-toggle .bv-btn {
	border: none;
	border-radius: 0;
}

.bv-view-toggle .bv-btn + .bv-btn {
	border-left: 1px solid var(--bv-border);
}

/* Calendar */
.bv-calendar {
	background: var(--bv-card);
	border-radius: var(--bv-radius);
	box-shadow: var(--bv-shadow);
	padding: 1rem;
	min-height: 600px;
}

/* Custom therapist calendar */
.bv-cal-hint {
	font-size: .875rem;
	color: var(--bv-muted);
	margin: 0 0 1rem;
}

.bv-cal-wrap { background: var(--bv-card); border-radius: var(--bv-radius); border: 1px solid var(--bv-border); overflow: hidden; }

.bv-cal-nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem;
	padding: .75rem 1rem;
	background: var(--bv-bg);
	border-bottom: 1px solid var(--bv-border);
}

.bv-cal-view-toggle {
	display: flex;
	margin-left: auto;
	background: #e2e8f0;
	border-radius: 8px;
	padding: 2px;
	gap: 2px;
}

.bv-cal-view-btn {
	border: none;
	background: transparent;
	padding: .375rem .875rem;
	border-radius: 6px;
	font-size: .8125rem;
	font-weight: 600;
	color: var(--bv-muted);
	cursor: pointer;
	transition: background .15s, color .15s;
}

.bv-cal-view-btn:hover { color: var(--bv-text); }

.bv-cal-view-btn--active {
	background: #fff;
	color: var(--bv-primary);
	box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.bv-cal-nav-btn { padding: .375rem .75rem; min-width: 40px; }

.bv-cal-date-label {
	flex: 1;
	text-align: center;
	font-weight: 700;
	font-size: 1rem;
	color: var(--bv-text);
}

.bv-cal-staff-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .625rem;
	padding: .625rem 1rem;
	background: #fff;
	border-bottom: 1px solid var(--bv-border);
}

.bv-cal-staff-bar-label {
	font-size: .8125rem;
	font-weight: 600;
	color: var(--bv-muted);
	white-space: nowrap;
}

.bv-cal-staff-pills {
	display: flex;
	flex-wrap: wrap;
	gap: .375rem;
}

.bv-cal-staff-pill {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	padding: .375rem .75rem;
	border: 2px solid #e2e8f0;
	border-radius: 999px;
	background: #fff;
	font-size: .8125rem;
	font-weight: 600;
	color: var(--bv-text);
	cursor: pointer;
	transition: border-color .15s, background .15s, box-shadow .15s;
}

.bv-cal-staff-pill:hover {
	border-color: var(--bv-pill-color, var(--bv-primary));
	background: #f8fafc;
}

.bv-cal-staff-pill--active {
	border-color: var(--bv-pill-color, var(--bv-primary));
	background: #eef2ff;
	box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.bv-cal-staff-pill-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.bv-cal-summary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .5rem 1rem;
	font-size: .875rem;
	color: var(--bv-muted);
	background: #f8fafc;
	border-bottom: 1px solid var(--bv-border);
}

.bv-cal-summary-count {
	font-weight: 700;
	color: var(--bv-primary);
}

.bv-cal-summary-sep { opacity: .5; }

.bv-cal-legend {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1.25rem;
	padding: .625rem 1rem;
	background: var(--bv-bg);
	border-bottom: 1px solid var(--bv-border);
	font-size: .8125rem;
	color: var(--bv-muted);
}

.bv-cal-legend--colors {
	gap: .5rem 1.25rem;
}

.bv-cal-legend-hint {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	font-size: .8125rem;
	color: var(--bv-muted);
}

.bv-cal-legend-sample {
	width: 20px;
	height: 14px;
	border-radius: 3px;
	border: 1px solid rgba(0,0,0,.1);
}

.bv-cal-legend-sample--therapist {
	background: linear-gradient(90deg, #c7d2fe 80%, #e2e8f0 80%);
	border-left: 3px solid #6366f1;
}

.bv-cal-legend-sample--room {
	background: #f1f5f9;
	box-shadow: inset -4px 0 0 #22c55e;
}

.bv-cal-legend-item--confirmed { color: #166534; }
.bv-cal-legend-item--pending { color: #854d0e; }
.bv-cal-legend-item--completed { color: #1e40af; }
.bv-cal-legend-item--cancelled { color: #991b1b; }

.bv-card-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	flex-wrap: wrap;
	margin-bottom: .5rem;
}

.bv-card-section-head h4 { margin: 0; }

.bv-voice-toolbar {
	display: flex;
	gap: .375rem;
	flex-wrap: wrap;
}

.bv-voice-toolbar--lg {
	gap: .75rem;
	margin-bottom: .75rem;
}

.bv-voice-btn {
	font-size: .75rem;
	padding: .25rem .625rem;
}

.bv-voice-btn--lg {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 3.25rem;
	padding: .75rem 1.25rem;
	font-size: 1.0625rem;
	font-weight: 600;
	border-radius: 10px;
}

.bv-voice-btn-icon {
	font-size: 1.35rem;
	line-height: 1;
}

.bv-voice-btn-label {
	line-height: 1.2;
}

.bv-voice-btn--active {
	background: #fee2e2;
	border-color: #ef4444;
	color: #991b1b;
}

.bv-voice-btn--speaking {
	background: #dbeafe;
	border-color: #3b82f6;
	color: #1e40af;
}

.bv-voice-status {
	font-size: .8125rem;
	color: #b45309;
	margin: 0 0 .5rem;
	font-style: italic;
}

.bv-input--inline {
	display: inline-block;
	width: auto;
	min-width: 160px;
	max-width: 100%;
	margin-left: .35rem;
	padding: .25rem .5rem;
	font-size: .875rem;
}

.bv-history-item {
	padding: .625rem 0;
	border-bottom: 1px solid var(--bv-border);
}

.bv-history-row {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem .75rem;
	align-items: center;
}

.bv-history-notes {
	margin: .35rem 0 0;
	font-size: .8125rem;
	color: var(--bv-muted);
	font-style: italic;
}

.bv-cal-header-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: .375rem;
	vertical-align: middle;
}

.bv-color-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin-right: .5rem;
	vertical-align: middle;
	border: 1px solid rgba(0,0,0,.1);
}

.bv-field-hint {
	margin: .25rem 0 0;
	font-size: .75rem;
	color: var(--bv-muted);
}

.bv-cal-legend-dot {
	width: 12px; height: 12px; border-radius: 3px; border: 2px solid;
}

.bv-cal-scroll {
	overflow: auto;
	max-height: 720px;
}

.bv-cal-table {
	min-width: 100%;
}

.bv-cal-table--week {
	min-width: 900px;
}

.bv-cal-grid-wrap {
	position: relative;
}

.bv-cal-grid {
	display: grid;
	grid-template-columns: var(--bv-time-col, 56px) repeat(var(--bv-cols, 1), minmax(140px, 1fr));
}

.bv-cal-grid--head {
	position: sticky;
	top: 0;
	z-index: 10;
}

.bv-cal-grid--body {
	grid-template-rows: repeat(var(--bv-rows, 1), 48px);
}

.bv-cal-events {
	position: absolute;
	top: 0;
	left: var(--bv-time-col, 56px);
	right: 0;
	bottom: 0;
	display: grid;
	grid-template-columns: repeat(var(--bv-cols, 1), minmax(140px, 1fr));
	grid-template-rows: repeat(var(--bv-rows, 1), 48px);
	pointer-events: none;
	z-index: 5;
}

.bv-cal-empty {
	padding: 2rem 1rem;
}

.bv-cal-corner,
.bv-cal-col-header {
	background: #6366f1;
	color: #fff;
	padding: .625rem .5rem;
	font-weight: 600;
	font-size: .8125rem;
	text-align: center;
	border-right: 1px solid #4f46e5;
	border-bottom: 1px solid #4f46e5;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .125rem;
}

.bv-cal-col-header--staff {
	flex-direction: row;
	flex-wrap: wrap;
	border-top: 4px solid var(--bv-therapist, #4f46e5);
}

.bv-cal-col-header:not(.bv-cal-col-header--staff):not(.bv-cal-col-header--today) {
	flex-direction: column;
}

.bv-cal-col-header--today {
	background: #4f46e5;
	box-shadow: inset 0 -3px 0 #fbbf24;
}

.bv-cal-day-name {
	font-size: .6875rem;
	opacity: .85;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.bv-cal-day-num {
	font-size: .875rem;
	font-weight: 700;
}

.bv-cal-time-label {
	background: #f8fafc;
	padding: .25rem .5rem;
	font-size: .75rem;
	color: var(--bv-muted);
	text-align: right;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	border-right: 1px solid var(--bv-border);
	border-bottom: 1px solid var(--bv-border);
	height: 48px;
	box-sizing: border-box;
	position: sticky;
	left: 0;
	z-index: 4;
}

.bv-cal-grid--head .bv-cal-corner {
	position: sticky;
	left: 0;
	z-index: 12;
}

.bv-cal-cell {
	height: 48px;
	border-right: 1px solid var(--bv-border);
	border-bottom: 1px solid var(--bv-border);
	cursor: pointer;
	transition: background .1s;
	box-sizing: border-box;
}

.bv-cal-cell:hover { background: #eef2ff; }

.bv-cal-event {
	pointer-events: auto;
	position: relative;
	justify-self: start;
	align-self: stretch;
	width: calc((100% - 4px) / var(--bv-lanes, 1));
	margin-left: calc((100% - 4px) / var(--bv-lanes, 1) * var(--bv-lane, 0) + 2px);
	margin-top: 1px;
	margin-bottom: 1px;
	border-radius: 6px;
	border-left: 4px solid var(--bv-therapist, #6366f1);
	padding: .2rem 10px .2rem .35rem;
	font-size: .75rem;
	line-height: 1.25;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0,0,0,.12);
	z-index: 6;
	min-height: 0;
	box-sizing: border-box;
}

.bv-cal-event--narrow {
	font-size: .6875rem;
	padding: .15rem 8px .15rem .25rem;
}

.bv-cal-event--cancelled {
	opacity: .55;
	text-decoration: line-through;
}

.bv-cal-event-room-stripe {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 5px;
	border-radius: 0 5px 5px 0;
	pointer-events: none;
}

.bv-cal-event:hover { filter: brightness(.97); box-shadow: 0 2px 8px rgba(0,0,0,.15); }

.bv-cal-event-time { display: block; font-weight: 700; font-size: .6875rem; opacity: .85; }

.bv-cal-event-patient { display: block; font-weight: 700; font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bv-cal-event-therapist { display: block; font-size: .6875rem; font-weight: 600; opacity: .9; }

.bv-cal-event-service,
.bv-cal-event-room { display: block; font-size: .6875rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bv-cal-event-status {
	display: inline-block;
	margin-top: .125rem;
	font-size: .625rem;
	font-weight: 700;
	opacity: .95;
	padding: 0 .25rem;
	border-radius: 3px;
}

.bv-cal-event-status--pending { background: rgba(234,179,8,.35); }
.bv-cal-event-status--cancelled { background: rgba(239,68,68,.25); }
.bv-cal-event-status--completed { background: rgba(59,130,246,.25); }

.bv-cal-event-pay {
	display: inline-block;
	margin-top: 2px;
	padding: 0 4px;
	border-radius: 3px;
	font-size: .65rem;
	font-weight: 600;
	background: rgba(245,158,11,.35);
	line-height: 1.4;
}

.bv-cal-event-pay--due {
	background: rgba(239,68,68,.3);
}

.bv-cal-event-online {
	display: inline-block;
	margin-top: 2px;
	padding: 0 4px;
	border-radius: 3px;
	font-size: .65rem;
	font-weight: 700;
	background: rgba(99,102,241,.4);
	line-height: 1.4;
}

.bv-cal-event-online--room {
	background: rgba(148,163,184,.45);
}

.bv-checkbox-list {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	max-height: 180px;
	overflow: auto;
	padding: .5rem;
	border: 1px solid var(--bv-border);
	border-radius: 8px;
	background: #fff;
}

.bv-calendar { min-height: 400px; padding: 0; background: transparent; box-shadow: none; border: none; }

/* Status badges */
.bv-status {
	display: inline-block;
	padding: .125rem .5rem;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 600;
}

.bv-status--confirmed { background: #bbf7d0; color: #166534; }
.bv-status--pending   { background: #fef08a; color: #854d0e; }
.bv-status--completed { background: #bfdbfe; color: #1e40af; }
.bv-status--cancelled { background: #fecaca; color: #991b1b; }

/* Agenda (therapist view) */
.bv-agenda-section { margin-bottom: 1.5rem; }
.bv-agenda-section h3 {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 .75rem;
	color: var(--bv-muted);
	text-transform: uppercase;
	letter-spacing: .05em;
}

.bv-agenda-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .875rem 1rem;
	background: var(--bv-card);
	border: 1px solid var(--bv-border);
	border-radius: var(--bv-radius);
	margin-bottom: .5rem;
	cursor: pointer;
	transition: box-shadow .15s;
	flex-wrap: wrap;
}

.bv-agenda-item:hover {
	box-shadow: var(--bv-shadow);
}

.bv-agenda-time {
	font-weight: 700;
	min-width: 60px;
	color: var(--bv-primary);
}

.bv-agenda-patient { font-weight: 600; flex: 1; }
.bv-agenda-service, .bv-agenda-room { color: var(--bv-muted); font-size: .875rem; }

/* Modal – solid colors (teleported to body; must not rely on .bv-app alone) */
.bv-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, .55) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2147483000;
	padding: 1rem;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #1e293b;
	isolation: isolate;
}
.bv-modal-overlay--top {
	z-index: 2147483000;
}
.bv-modal-overlay--fullscreen {
	padding: 0;
	align-items: stretch;
	justify-content: stretch;
	background: rgba(15, 23, 42, .72) !important;
}

.bv-modal {
	background: #ffffff !important;
	color: #1e293b;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0,0,0,.25);
	padding: 1.5rem;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	opacity: 1 !important;
	position: relative;
	z-index: 1;
}

.bv-modal--wide { max-width: 720px; }
.bv-modal--fullscreen {
	max-width: none;
	max-height: none;
	width: 100%;
	height: 100%;
	border-radius: 0;
	padding: 1rem 1.25rem 1.5rem;
	box-shadow: none;
}
.bv-modal--fullscreen .bv-sis-canvas {
	max-width: 100%;
	height: 160px;
}
.bv-modal--fullscreen .bv-input--tall,
.bv-modal--fullscreen .bv-input--notes {
	min-height: 220px;
}

body.bv-modal-open {
	overflow: hidden;
}

.bv-modal h3 {
	margin: 0;
	font-size: 1.25rem;
}

.bv-modal-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.bv-appt-patient-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	flex-wrap: wrap;
	margin: 0 0 1rem;
	padding: .85rem 1rem;
	border-radius: 12px;
	background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
	border: 1px solid #99f6e4;
}

.bv-appt-patient-strip-label {
	display: block;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #0f766e;
	margin-bottom: .15rem;
}

.bv-appt-patient-strip strong {
	font-size: 1.05rem;
	color: #0f172a;
}

.bv-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: .75rem;
	margin-top: 1.25rem;
}

/* Forms */
.bv-form-group {
	margin-bottom: 1rem;
}

.bv-form-group label {
	display: block;
	font-size: .8125rem;
	font-weight: 600;
	margin-bottom: .375rem;
	color: var(--bv-muted);
}

.bv-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .75rem;
}

.bv-input {
	width: 100%;
	padding: .5rem .75rem;
	border: 1px solid var(--bv-border, #e2e8f0);
	border-radius: 8px;
	font-size: .875rem;
	font-family: inherit;
	background: #ffffff;
	color: var(--bv-text, #1e293b);
	transition: border-color .15s;
}

.bv-input:focus {
	outline: none;
	border-color: var(--bv-primary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

textarea.bv-input { resize: vertical; }

/* Autocomplete */
.bv-autocomplete {
	border: 1px solid var(--bv-border);
	border-radius: 8px;
	margin-top: .25rem;
	max-height: 160px;
	overflow-y: auto;
}

.bv-autocomplete-item {
	padding: .5rem .75rem;
	cursor: pointer;
	font-size: .875rem;
}

.bv-autocomplete-item:hover { background: var(--bv-bg); }

.bv-selected-patient {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex-wrap: wrap;
	padding: .5rem .75rem;
	background: #eef2ff;
	border-radius: 8px;
	margin-top: .5rem;
	font-weight: 500;
}

.bv-selected-patient > span {
	flex: 1;
	min-width: 8rem;
}

.bv-quick-add {
	margin-top: .75rem;
	font-size: .875rem;
}

.bv-quick-add summary {
	cursor: pointer;
	color: var(--bv-primary);
	font-weight: 500;
}

/* Patient card */
.bv-patient-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: .75rem;
	position: sticky;
	top: 0;
	z-index: 2;
	background: var(--bv-card, #fff);
	padding-bottom: .35rem;
}

.bv-patient-card-subtitle {
	margin: .25rem 0 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--bv-text, #1e293b);
}

.bv-patient-card-actions {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex-shrink: 0;
}

.bv-btn-fullscreen {
	white-space: nowrap;
}

.bv-patient-card-close {
	font-size: 1.5rem;
	line-height: 1;
	padding: .25rem .5rem;
}

.bv-card-tabs {
	display: flex;
	gap: .25rem;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--bv-border);
	margin-bottom: 1rem;
}

.bv-card-tab {
	appearance: none;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	padding: .625rem .875rem;
	font-size: .9375rem;
	font-weight: 600;
	color: var(--bv-muted);
	cursor: pointer;
	margin-bottom: -1px;
}

.bv-card-tab:hover {
	color: var(--bv-text, #1e293b);
}

.bv-card-tab--active {
	color: var(--bv-primary, #6366f1);
	border-bottom-color: var(--bv-primary, #6366f1);
}

.bv-card-panel {
	min-height: 8rem;
}

.bv-card-panel-hint {
	margin: 0 0 .75rem;
	font-size: .875rem;
	color: var(--bv-muted);
	line-height: 1.45;
}

.bv-info-grid--card {
	grid-template-columns: 1fr;
}

@media (min-width: 520px) {
	.bv-info-grid--card {
		grid-template-columns: 1fr 1fr;
	}
}

.bv-info-grid--card > div {
	display: flex;
	flex-direction: column;
	gap: .25rem;
}

.bv-mt { margin-top: .5rem; }

.bv-field-hint--warn {
	color: #b45309;
}

.bv-card-section {
	margin-bottom: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--bv-border);
}

.bv-card-section:last-child { border-bottom: none; }

.bv-card-section h4 {
	font-size: .875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--bv-muted);
	margin: 0 0 .75rem;
}

.bv-info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .5rem;
	font-size: .875rem;
}

.bv-history-list {
	display: flex;
	flex-direction: column;
	gap: .35rem;
}

.bv-history-item {
	border: 1px solid var(--bv-border);
	border-radius: 8px;
	overflow: hidden;
	background: var(--bv-card, #fff);
}

.bv-history-item--open {
	border-color: color-mix(in srgb, var(--bv-primary, #6366f1) 45%, var(--bv-border));
}

.bv-history-toggle {
	display: flex;
	align-items: center;
	gap: .5rem .75rem;
	flex-wrap: wrap;
	width: 100%;
	padding: .65rem .75rem;
	border: none;
	background: transparent;
	cursor: pointer;
	text-align: left;
	font-size: .875rem;
}

.bv-history-toggle:hover {
	background: #f8fafc;
}

.bv-history-chevron {
	margin-left: auto;
	color: var(--bv-muted);
	font-size: .875rem;
}

.bv-history-detail {
	padding: 0 .75rem .75rem;
	border-top: 1px solid var(--bv-border);
}

.bv-history-meta {
	margin: .5rem 0 .5rem;
	font-size: .8125rem;
	color: var(--bv-muted);
}

.bv-history-date { font-weight: 600; min-width: 130px; }
.bv-history-service { flex: 1; min-width: 8rem; }
.bv-readonly-notes { font-size: .875rem; line-height: 1.6; white-space: pre-wrap; }
.bv-readonly-notes--lg { font-size: .9375rem; padding: .75rem; background: #f8fafc; border-radius: 8px; }
.bv-input--notes { font-size: .9375rem; line-height: 1.5; }

/* Booking form */
.bv-booking-form { max-width: 640px; }

.bv-slots-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: .5rem;
	margin-top: .75rem;
}

.bv-slot-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: .75rem;
	border: 1px solid var(--bv-border);
	border-radius: 8px;
	background: var(--bv-card);
	cursor: pointer;
	transition: all .15s;
	font-size: .875rem;
}

.bv-slot-btn:hover,
.bv-slot-btn--selected {
	border-color: var(--bv-primary);
	background: #eef2ff;
}

.bv-slot-btn small { color: var(--bv-muted); font-size: .75rem; margin-top: .25rem; }

.bv-summary {
	margin-top: 1.5rem;
	padding: 1.25rem;
	background: var(--bv-bg);
	border-radius: var(--bv-radius);
}

.bv-hold-info {
	font-size: .8125rem;
	color: var(--bv-muted);
	margin: .75rem 0;
}

.bv-payment-choice {
	margin: 1rem 0;
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.bv-payment-option {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	padding: .875rem 1rem;
	border: 1px solid var(--bv-border);
	border-radius: 10px;
	cursor: pointer;
	background: #fff;
}

.bv-payment-option input {
	margin-top: .2rem;
}

.bv-payment-option span {
	display: flex;
	flex-direction: column;
	gap: .2rem;
}

.bv-payment-option strong {
	font-size: .9375rem;
}

.bv-payment-option small {
	font-size: .8125rem;
	color: var(--bv-muted);
	line-height: 1.35;
}

.bv-payment-option--active {
	border-color: var(--bv-primary, #6366f1);
	background: #eef2ff;
}

/* Utilities */
.bv-empty { color: var(--bv-muted); font-size: .875rem; text-align: center; padding: 2rem; }
.bv-loading { color: var(--bv-muted); font-size: .875rem; }
.bv-error { color: var(--bv-danger); font-size: .875rem; margin: .5rem 0; }

.bv-toast {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	background: #1e293b;
	color: #fff;
	padding: .75rem 1.25rem;
	border-radius: 8px;
	font-size: .875rem;
	z-index: 2147483646;
	box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.bv-toast--top {
	z-index: 2147483646;
}

.bv-recommendations {
	margin-top: 1.5rem;
	padding: 1rem;
	background: #f0fdf4;
	border-radius: var(--bv-radius);
	border: 1px solid #bbf7d0;
}

.bv-recommendations h3 {
	margin: 0 0 .5rem;
	font-size: 1rem;
}

.bellavita-notice {
	padding: 1rem;
	background: #fef3c7;
	border-radius: 8px;
	text-align: center;
}

/* Session bar */
.bv-session-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .5rem;
	padding: .625rem 1rem;
	background: #1e293b;
	color: #e2e8f0;
	border-radius: 8px;
	margin-bottom: 1rem;
	font-size: .875rem;
}

.bv-session-info strong { color: #fff; }

.bv-session-role {
	color: #94a3b8;
	font-size: .8125rem;
	margin-left: .25rem;
}

.bv-session-logout {
	color: #fca5a5;
	text-decoration: none;
	font-size: .8125rem;
	font-weight: 500;
}

.bv-session-logout:hover { color: #f87171; text-decoration: underline; }

.bv-patient-notice {
	padding: .75rem 1rem;
	background: #fef3c7;
	border: 1px solid #fde047;
	border-radius: 8px;
	font-size: .875rem;
	color: #854d0e;
	margin-bottom: 1rem;
}

/* Brand bar */
.bv-app-brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .75rem 0 1rem;
	border-bottom: 1px solid var(--bv-border);
	margin-bottom: 1rem;
}

.bv-app-brand-name {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--bv-primary);
}

.bv-app-brand-user {
	font-size: .875rem;
	color: var(--bv-muted);
}

/* Navigation tabs */
.bv-nav {
	display: flex;
	gap: .25rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
	padding: .25rem;
	background: var(--bv-bg);
	border-radius: var(--bv-radius);
	border: 1px solid var(--bv-border);
}

.bv-nav-item {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	padding: .5rem 1rem;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--bv-muted);
	font-size: .875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all .15s;
	font-family: inherit;
}

.bv-nav-item:hover {
	background: var(--bv-card);
	color: var(--bv-text);
}

.bv-nav-item--active {
	background: var(--bv-card);
	color: var(--bv-primary);
	box-shadow: var(--bv-shadow);
	font-weight: 600;
}

.bv-nav-icon { font-size: 1rem; }

.bv-tab { animation: bvFadeIn .2s ease; }

@keyframes bvFadeIn {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Tables */
.bv-table-wrap { overflow-x: auto; }

.bv-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .875rem;
}

.bv-table th {
	text-align: left;
	padding: .75rem 1rem;
	background: var(--bv-bg);
	color: var(--bv-muted);
	font-weight: 600;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	border-bottom: 1px solid var(--bv-border);
}

.bv-table td {
	padding: .75rem 1rem;
	border-bottom: 1px solid var(--bv-border);
}

.bv-table tbody tr:hover { background: var(--bv-bg); }

/* Badges */
.bv-badge {
	display: inline-block;
	padding: .125rem .5rem;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 600;
}

.bv-badge--ok { background: #bbf7d0; color: #166534; }
.bv-badge--warn { background: #fef08a; color: #854d0e; }
.bv-badge--muted { background: #e2e8f0; color: #64748b; }

/* Manage cards */
.bv-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
}

.bv-manage-card {
	background: var(--bv-card);
	border: 1px solid var(--bv-border);
	border-radius: var(--bv-radius);
	padding: 1.25rem;
	box-shadow: var(--bv-shadow);
}

.bv-manage-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: .5rem;
}

.bv-manage-card-header h3 {
	margin: 0;
	font-size: 1rem;
}

.bv-manage-card-meta {
	font-size: .8125rem;
	color: var(--bv-muted);
	margin: 0 0 .5rem;
}

.bv-manage-card-desc {
	font-size: .8125rem;
	color: var(--bv-muted);
	margin: 0 0 .75rem;
}

.bv-manage-card-actions {
	display: flex;
	gap: .5rem;
}

/* Settings */
.bv-settings-form { max-width: 640px; }

.bv-fieldset {
	border: 1px solid var(--bv-border);
	border-radius: var(--bv-radius);
	padding: 1.25rem;
	margin-bottom: 1.25rem;
}

.bv-fieldset legend {
	font-weight: 600;
	font-size: .875rem;
	padding: 0 .5rem;
	color: var(--bv-text);
}

.bv-checkbox {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	font-size: .875rem;
	cursor: pointer;
}

.bv-checkbox input { margin-top: .2rem; }

.bv-input--color {
	height: 40px;
	padding: .25rem;
	cursor: pointer;
}

.bv-search-bar { margin-bottom: 1rem; }

.bv-rodo-box {
	background: #f8fafc;
	border: 1px solid var(--bv-border);
	border-radius: 8px;
	padding: 1rem;
	margin: 1rem 0;
}

.bv-rodo-text {
	font-size: .8125rem;
	color: var(--bv-muted);
	margin: 0 0 .75rem;
	line-height: 1.5;
}

.bv-register-form { max-width: 520px; margin: 0 auto; }

.bv-register-header { text-align: center; margin-bottom: 2rem; }
.bv-register-header h2 { margin: 0 0 .5rem; font-size: 1.5rem; }
.bv-register-header p { color: var(--bv-muted); margin: 0; font-size: .9375rem; }

.bv-register-body { background: var(--bv-card); border: 1px solid var(--bv-border); border-radius: var(--bv-radius); padding: 2rem; }

.bv-btn--block { width: 100%; }

.bv-register-login { text-align: center; margin-top: 1.25rem; font-size: .875rem; color: var(--bv-muted); }
.bv-register-login a { color: var(--bv-primary); font-weight: 600; }

.bv-register-success { text-align: center; padding: 3rem 2rem; background: var(--bv-card); border-radius: var(--bv-radius); border: 1px solid #bbf7d0; }

.bv-success-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 64px; height: 64px; border-radius: 50%;
	background: #bbf7d0; color: #166534; font-size: 2rem; font-weight: bold;
	margin-bottom: 1rem;
}

@media (max-width: 640px) {
	.bv-form-row,
	.bv-info-grid { grid-template-columns: 1fr; }
	.bv-header { flex-direction: column; align-items: flex-start; }
	.bv-nav { overflow-x: auto; flex-wrap: nowrap; }
	.bv-nav-item { white-space: nowrap; font-size: .8125rem; padding: .5rem .75rem; }
}

/* Branded login page */
.bv-auth-page {
	max-width: 440px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.bv-auth-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(11, 61, 58, .1);
	border: 1px solid #ccfbf1;
	overflow: hidden;
}

.bv-auth-card--login {
	background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 32%);
	padding-bottom: .25rem;
}

.bv-auth-brand {
	text-align: center;
	padding: 1.75rem 1.5rem 1rem;
}

.bv-auth-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: #0f766e;
	color: #fff;
	font-weight: 700;
	font-size: .95rem;
	letter-spacing: .04em;
	margin-bottom: .75rem;
}

.bv-auth-logo-img {
	display: block;
	max-width: 72px;
	max-height: 72px;
	width: auto;
	height: auto;
	margin: 0 auto .85rem;
	object-fit: contain;
}

.bv-auth-logo {
	display: block;
	font-size: 2.5rem;
	margin-bottom: .5rem;
	line-height: 1;
}

.bv-auth-brand h1 {
	margin: 0 0 .375rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: #0f172a;
}

.bv-auth-brand p {
	margin: 0;
	font-size: .9rem;
	color: #64748b;
}

.bv-auth-form {
	padding: 0 1.5rem 1rem;
	display: flex;
	flex-direction: column;
	gap: .85rem;
}

.bv-auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	flex-wrap: wrap;
}

.bv-auth-remember {
	margin: 0;
}

.bv-auth-submit {
	width: 100%;
	padding: .75rem 1rem;
	font-size: 1rem;
	margin-top: .25rem;
	background: #0f766e;
	border-color: #0f766e;
}

.bv-auth-submit:hover {
	background: #0d9488;
	border-color: #0d9488;
}

.bv-auth-footer {
	padding: 1rem 1.5rem 1.5rem;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: .4rem;
	border-top: 1px solid #e2e8f0;
	font-size: .875rem;
	color: #64748b;
}

.bv-auth-link {
	color: #0f766e;
	font-size: .8125rem;
	font-weight: 600;
	text-decoration: none;
}

.bv-auth-link--strong { font-weight: 700; }
.bv-auth-link:hover { text-decoration: underline; }

.bellavita-notice {
	padding: 1rem 1.25rem;
	background: #fef3c7;
	border: 1px solid #fcd34d;
	border-radius: 8px;
	color: #92400e;
}

.bellavita-notice a {
	color: #6366f1;
	font-weight: 600;
}

/* ========== Booking wizard (step-by-step) ========== */
.bv-wizard {
	--bv-wiz-sidebar: #0b3d3a;
	--bv-wiz-accent: #14b8a6;
	--bv-wiz-font: 'Outfit', 'Segoe UI', sans-serif;
	display: grid;
	grid-template-columns: 260px 1fr;
	min-height: 620px;
	max-width: 1100px;
	margin: 0 auto;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(11, 61, 58, .12);
	font-family: var(--bv-wiz-font);
	background: #fff;
}

.bv-wizard-sidebar {
	background: linear-gradient(165deg, var(--bv-wiz-sidebar) 0%, #0d4f4a 55%, #115e59 100%);
	color: #ecfdf5;
	padding: 1.5rem 1rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.bv-wizard-sidebar--collapsed { width: 72px; padding-inline: .65rem; }
.bv-wizard-sidebar--collapsed .bv-wizard-step-label,
.bv-wizard-sidebar--collapsed .bv-wizard-brand-sub,
.bv-wizard-sidebar--collapsed .bv-wizard-contact,
.bv-wizard-sidebar--collapsed .bv-wizard-collapse-label { display: none; }

.bv-wizard-brand-name { display: block; font-size: 1.05rem; font-weight: 700; }
.bv-wizard-brand-sub { display: block; font-size: .75rem; opacity: .7; margin-top: .2rem; }

.bv-wizard-steps { display: flex; flex-direction: column; gap: .35rem; flex: 1; }

.bv-wizard-step {
	display: flex; align-items: center; gap: .65rem; width: 100%;
	padding: .7rem .65rem; border: none; border-radius: 10px;
	background: transparent; color: rgba(236, 253, 245, .78);
	cursor: pointer; text-align: left;
}
.bv-wizard-step:hover:not(:disabled) { background: rgba(255,255,255,.08); color: #fff; }
.bv-wizard-step:disabled { opacity: .4; cursor: not-allowed; }
.bv-wizard-step--active { background: rgba(20, 184, 166, .22); color: #fff; }
.bv-wizard-step--done { color: #a7f3d0; }
.bv-wizard-step-icon { flex-shrink: 0; display: inline-flex; }
.bv-wizard-step-label { flex: 1; font-size: .875rem; font-weight: 600; }
.bv-wizard-step-dot {
	width: 10px; height: 10px; border-radius: 50%;
	border: 2px solid rgba(255,255,255,.35); flex-shrink: 0;
}
.bv-wizard-step--active .bv-wizard-step-dot {
	border-color: var(--bv-wiz-accent); background: var(--bv-wiz-accent);
	box-shadow: 0 0 0 3px rgba(20,184,166,.35);
}
.bv-wizard-step--done .bv-wizard-step-dot { border-color: #6ee7b7; background: #6ee7b7; }

.bv-wizard-sidebar-footer {
	margin-top: auto; padding-top: 1rem;
	border-top: 1px solid rgba(255,255,255,.12);
}
.bv-wizard-contact {
	display: flex; flex-direction: column; gap: .25rem;
	font-size: .75rem; margin-bottom: .75rem;
}
.bv-wizard-contact a { color: #a7f3d0; text-decoration: none; }
.bv-wizard-collapse {
	display: inline-flex; align-items: center; gap: .4rem;
	background: transparent; border: none; color: rgba(236,253,245,.7);
	cursor: pointer; font-size: .75rem; padding: .25rem 0;
}

.bv-wizard-main {
	display: flex; flex-direction: column; min-height: 620px;
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%);
}
.bv-wizard-panel { flex: 1; padding: 1.75rem 1.75rem 1rem; overflow: auto; }
.bv-wizard-panel-head h2 { margin: 0 0 .35rem; font-size: 1.5rem; font-weight: 700; color: #0f172a; }
.bv-wizard-panel-head p { margin: 0 0 1.25rem; color: #64748b; font-size: .9375rem; }
.bv-wizard-toolbar { margin-bottom: 1rem; }
.bv-wizard-search { max-width: 320px; }

.bv-service-cards, .bv-therapist-cards { display: flex; flex-direction: column; gap: .65rem; }
.bv-service-card, .bv-therapist-card {
	display: flex; align-items: flex-start; gap: .9rem; width: 100%;
	padding: 1rem 1.1rem; border: 1px solid #e2e8f0; border-radius: 12px;
	background: #fff; cursor: pointer; text-align: left;
	transition: border-color .15s, box-shadow .15s;
}
.bv-service-card:hover, .bv-therapist-card:hover {
	border-color: #99f6e4; box-shadow: 0 4px 16px rgba(15, 118, 110, .08);
}
.bv-service-card--selected, .bv-therapist-card--selected {
	border-color: #0f766e; box-shadow: 0 0 0 2px rgba(15, 118, 110, .2);
}
.bv-service-card-avatar, .bv-therapist-avatar {
	width: 48px; height: 48px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	color: #fff; font-weight: 700; font-size: .8rem; flex-shrink: 0;
}
.bv-service-card-body { flex: 1; min-width: 0; }
.bv-service-card-top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.bv-service-card-top strong { font-size: 1rem; color: #0f172a; }
.bv-service-card-top em { font-style: normal; font-weight: 700; color: #0f766e; white-space: nowrap; }
.bv-service-card-meta { display: flex; gap: .75rem; margin-top: .25rem; font-size: .8125rem; color: #64748b; }
.bv-service-card-desc { display: block; margin-top: .35rem; font-size: .8125rem; color: #94a3b8; line-height: 1.4; }
.bv-therapist-card strong { display: block; font-size: 1rem; }
.bv-therapist-card small { color: #64748b; }
.bv-wizard-date { max-width: 240px; margin-bottom: 1.25rem; }

.bv-wizard-summary {
	display: grid; gap: .65rem; padding: 1.1rem 1.25rem;
	background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 12px; margin-bottom: 1rem;
}
.bv-wizard-summary > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; }
.bv-wizard-summary span { color: #64748b; }

.bv-wizard-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding: 1rem 1.75rem 1.35rem;
	border-top: 1px solid #e2e8f0;
	background: #fff;
	position: sticky;
	bottom: 0;
	z-index: 5;
	box-shadow: 0 -6px 20px rgba(15, 23, 42, .04);
}
.bv-wizard-btn-back {
	min-width: 110px;
	color: #0f172a !important;
	background: #fff !important;
	border: 1px solid #cbd5e1 !important;
}
.bv-wizard-btn-next,
.bv-wizard .bv-btn--primary.bv-wizard-btn-next {
	min-width: 140px;
	margin-left: auto;
	background: #0f766e !important;
	border-color: #0f766e !important;
	color: #fff !important;
}
.bv-wizard-btn-next:hover:not(:disabled),
.bv-wizard .bv-btn--primary.bv-wizard-btn-next:hover:not(:disabled) {
	background: #0d9488 !important;
	border-color: #0d9488 !important;
	color: #fff !important;
}
.bv-wizard-btn-next:disabled,
.bv-wizard .bv-btn--primary.bv-wizard-btn-next:disabled {
	background: #99f6e4 !important;
	border-color: #99f6e4 !important;
	color: #115e59 !important;
	opacity: 1;
}
.bv-wizard-btn--ghost {
	opacity: .35;
	pointer-events: none;
}
.bv-wizard-footer-spacer { flex: 1; }

@media (max-width: 820px) {
	.bv-wizard { grid-template-columns: 1fr; min-height: 0; }
	.bv-wizard-sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 1rem; }
	.bv-wizard-steps { flex-direction: row; flex-wrap: wrap; width: 100%; }
	.bv-wizard-step { flex: 1 1 auto; min-width: 120px; }
	.bv-wizard-sidebar-footer { width: 100%; border-top: none; padding-top: 0; }
	.bv-wizard-collapse { display: none; }
	.bv-wizard-main { min-height: 0; }
}

/* ========== Patient home panel ========== */
.bv-patient-home { max-width: 860px; }
.bv-patient-hero {
	display: flex; align-items: flex-start; justify-content: space-between;
	gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; padding: 1.5rem 1.6rem;
	border-radius: 18px;
	background:
		radial-gradient(ellipse 80% 70% at 100% 0%, rgba(45, 212, 191, .18), transparent 55%),
		linear-gradient(145deg, #f0fdfa 0%, #ecfeff 42%, #f8fafc 100%);
	border: 1px solid #ccfbf1;
}
.bv-patient-hero-kicker {
	margin: 0 0 .35rem; font-size: .75rem; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase; color: #0f766e;
}
.bv-patient-hero-lead { margin: .35rem 0 0; color: #64748b; font-size: .9375rem; max-width: 36rem; }
.bv-patient-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: .75rem;
	margin-bottom: 1.15rem;
}
.bv-patient-stat {
	padding: 1rem 1.1rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--bv-border);
	box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}
.bv-patient-stat--accent {
	background: linear-gradient(160deg, #0f766e 0%, #0d9488 100%);
	border-color: transparent;
	color: #fff;
}
.bv-patient-stat--accent .bv-patient-stat-label { color: rgba(255,255,255,.78); }
.bv-patient-stat-label {
	display: block;
	font-size: .7rem;
	font-weight: 650;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: .35rem;
}
.bv-patient-stat-value {
	font-size: 1.35rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
}
.bv-patient-stat--accent .bv-patient-stat-value { color: #fff; }
.bv-patient-tabs { margin-bottom: 1rem; flex-wrap: wrap; }
.bv-patient-section { display: flex; flex-direction: column; gap: .65rem; }
.bv-patient-empty { text-align: center; padding: 2rem 1rem; color: #64748b; }
.bv-patient-empty .bv-btn { margin-top: .75rem; }
.bv-patient-visit {
	display: flex; align-items: flex-start; gap: 1rem;
	padding: 1rem 1.15rem; border: 1px solid var(--bv-border);
	border-radius: 12px; background: #fff;
}
.bv-patient-visit--past { opacity: .92; }
.bv-patient-visit-when { display: flex; flex-direction: column; gap: .35rem; min-width: 140px; }
.bv-patient-visit-body { flex: 1; min-width: 0; }
.bv-patient-visit-body p { margin: 0 0 .2rem; }
.bv-patient-visit-notes {
	margin-top: .65rem;
	padding: .75rem .85rem;
	border-radius: 10px;
	background: #f0fdfa;
	border: 1px solid #99f6e4;
}
.bv-patient-notes-label {
	display: block;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #0f766e;
	margin-bottom: .3rem;
}
.bv-patient-visit-notes p {
	margin: 0;
	white-space: pre-wrap;
	line-height: 1.5;
	color: #134e4a;
	font-size: .9rem;
}
.bv-muted { color: var(--bv-muted); font-size: .875rem; }
.bv-patient-pay { margin-top: .35rem !important; font-size: .8125rem; font-weight: 600; color: #0f766e; }
.bv-recommendations--panel {
	padding: 1.25rem; border-radius: 12px; background: #f8fafc;
	border: 1px solid var(--bv-border); white-space: pre-wrap; line-height: 1.55;
}
.bv-patient-settings-block {
	padding: 1.25rem 1.35rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--bv-border);
}
.bv-patient-settings-block + .bv-patient-settings-block { margin-top: .35rem; }
.bv-patient-settings-block h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.bv-patient-settings-block .bv-btn { margin-top: .35rem; }
.bv-field-hint { margin: .35rem 0 0; font-size: .8rem; color: #94a3b8; }
.bv-patient-help-intro { margin-bottom: .25rem; }
.bv-patient-help-intro h3 { margin: 0 0 .35rem; }
.bv-patient-help-link {
	display: block;
	padding: 1rem 1.15rem;
	border-radius: 12px;
	border: 1px solid var(--bv-border);
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.bv-patient-help-link:hover {
	border-color: #5eead4;
	box-shadow: 0 0 0 3px rgba(15, 118, 110, .08);
}
.bv-patient-help-link--soft { background: #f0fdfa; border-color: #99f6e4; }
.bv-patient-help-title {
	display: block;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: .2rem;
}
.bv-patient-help-desc { display: block; font-size: .875rem; color: #64748b; }
.bv-visit-session-meta {
	display: flex; flex-wrap: wrap; gap: .5rem .85rem;
	align-items: center; margin: 0 0 1rem;
	font-size: .9rem; color: #475569;
}
.bv-visit-session-actions { flex-wrap: wrap; gap: .5rem; }
.bv-input--tall { min-height: 160px; resize: vertical; }
.bv-btn--teal {
	background: #0f766e;
	color: #fff;
	border-color: #0f766e;
}
.bv-btn--teal:hover { background: #0d9488; border-color: #0d9488; color: #fff; }

@media (max-width: 640px) {
	.bv-patient-visit { flex-direction: column; }
	.bv-patient-visit-when { min-width: 0; }
}

/* ========== SIS consent form ========== */
.bv-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: .25rem;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 999px;
	background: #0f766e;
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
}
.bv-sis-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: 1rem;
	padding: .85rem 1rem;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid var(--bv-border);
}
.bv-sis-toolbar-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.bv-sis-status { font-size: .875rem; font-weight: 600; }
.bv-sis-status--ok { color: #0f766e; }
.bv-sis-status--pending { color: #b45309; }
.bv-sis-doc {
	background: #fff;
	border: 1px solid #d6d3d1;
	border-radius: 8px;
	padding: 1.25rem 1.35rem 1.75rem;
	font-family: Georgia, "Times New Roman", serif;
	color: #1c1917;
	line-height: 1.5;
	font-size: .9375rem;
}
.bv-sis-page + .bv-sis-page {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 2px dashed #d6d3d1;
}
.bv-sis-dots { letter-spacing: .08em; color: #a8a29e; margin: 0 0 .75rem; font-size: .85rem; }
.bv-sis-title {
	text-align: center;
	font-size: 1.05rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	margin: 0 0 1rem;
}
.bv-sis-subtitle { font-size: 1rem; margin: 0 0 .75rem; }
.bv-sis-kicker {
	margin: 0 0 .5rem;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #57534e;
}
.bv-sis-device { font-weight: 700; margin: .5rem 0 1rem; }
.bv-sis-list { margin: .4rem 0 1rem 1.15rem; padding: 0; }
.bv-sis-list li { margin: .2rem 0; }
.bv-sis-lead { font-weight: 600; margin-bottom: .75rem; }
.bv-sis-table {
	width: 100%;
	border-collapse: collapse;
	margin: .5rem 0 1rem;
	font-size: .875rem;
	font-family: system-ui, sans-serif;
}
.bv-sis-table th,
.bv-sis-table td {
	border: 1px solid #a8a29e;
	padding: .45rem .55rem;
	vertical-align: middle;
}
.bv-sis-table thead th { background: #f5f5f4; }
.bv-sis-th-ans { width: 3.25rem; text-align: center; }
.bv-sis-radio { display: inline-flex; justify-content: center; width: 100%; }
.bv-sis-footnote { font-size: .78rem; color: #57534e; margin: .35rem 0; }
.bv-sis-hr { border: 0; border-top: 1px solid #d6d3d1; margin: 1.5rem 0; }
.bv-sis-sign-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	margin-top: 1.5rem;
}
.bv-sis-sign-col--single { max-width: 420px; margin-top: 1rem; }
.bv-sis-sig-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .4rem;
}
.bv-sis-canvas {
	width: 100%;
	max-width: 420px;
	height: 120px;
	border: 1px solid #a8a29e;
	border-radius: 6px;
	background: #fff;
	touch-action: none;
	cursor: crosshair;
}
.bv-sis-sig-img {
	display: block;
	max-width: 100%;
	height: 80px;
	object-fit: contain;
	border-bottom: 1px solid #44403c;
	margin-top: .35rem;
}
.bv-sis-sig-img--screen { display: none; }
.bv-sis-sign-caption {
	font-size: .78rem;
	color: #57534e;
	margin: .35rem 0 0;
	font-family: system-ui, sans-serif;
}
.bv-sis-inline-input {
	display: inline-block;
	width: auto;
	min-width: 220px;
	margin: 0 .25rem;
	vertical-align: baseline;
}
.bv-mt { margin-top: .65rem; }

@media (max-width: 720px) {
	.bv-sis-sign-row { grid-template-columns: 1fr; }
}

@media print {
	body * { visibility: hidden !important; }
	#bv-sis-print-root,
	#bv-sis-print-root * { visibility: visible !important; }
	#bv-sis-print-root {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		border: none;
		padding: 0;
	}
	.no-print { display: none !important; }
	.bv-sis-sig-img--screen { display: block !important; }
	.bv-sis-page--break { page-break-before: always; }
}

