/* xLocums Basecamp phone features (1.6.1). Navy and brand blue only, no yellow.
   Switches: xl_phone_push_enabled, xl_phone_passkeys_enabled, xl_phone_camera_enabled,
   xl_phone_offline_enabled, xl_phone_calendar_enabled. */
.xl-ph-card,
.xl-ph-cal {
	background: #fff;
	border: 1px solid #e3e8ef;
	border-radius: 14px;
	padding: 18px 18px 8px;
	margin: 18px 0;
	box-shadow: 0 1px 2px rgba(3, 18, 50, 0.04);
	color: #031232;
	box-sizing: border-box;
}
.xl-ph-cal {
	padding-bottom: 16px;
}
.xl-ph-card .xl-ph-card__h,
.xl-ph-cal .xl-ph-card__h,
.xl-ph-cam .xl-ph-card__h {
	margin: 0 0 4px !important;
	font-size: 17px !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	color: #031232 !important;
}
.xl-ph-card__sub {
	margin: 0 0 8px !important;
	font-size: 14px !important;
	line-height: 1.45 !important;
	color: #5b6578 !important;
}
.xl-ph-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 0;
	border-top: 1px solid #e3e8ef;
}
.xl-ph-card__h + .xl-ph-row,
.xl-ph-card__sub + .xl-ph-row {
	border-top: 0;
}
.xl-ph-row__icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #edf2fd;
	color: #2f55c9;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.xl-ph-row__main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.xl-ph-row__main strong {
	font-size: 15px;
	line-height: 1.3;
	color: #031232;
}
.xl-ph-row__text {
	font-size: 13.5px;
	line-height: 1.45;
	color: #5b6578;
}
.xl-ph-row__msg {
	display: block;
	font-size: 13px;
	line-height: 1.4;
	color: #067647;
	margin: 2px 0 0;
	min-height: 0;
}
.xl-ph-row__msg:empty {
	display: none;
}
.xl-ph-row__msg.is-bad {
	color: #b42318;
}
.xl-ph-row__act {
	flex: 0 0 auto;
	align-self: center;
}
.xl-ph-btn,
a.xl-ph-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid #3f6ae0;
	border-radius: 10px;
	background: #3f6ae0;
	color: #fff !important;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}
.xl-ph-btn:hover,
.xl-ph-btn:focus {
	background: #2f55c9;
	border-color: #2f55c9;
	color: #fff !important;
	outline: none;
}
.xl-ph-btn:focus-visible {
	box-shadow: 0 0 0 3px rgba(63, 106, 224, 0.35);
}
.xl-ph-btn--ghost,
a.xl-ph-btn--ghost {
	background: #fff;
	color: #2f55c9 !important;
	border-color: #c9d6f5;
}
.xl-ph-btn--ghost:hover,
.xl-ph-btn--ghost:focus {
	background: #edf2fd;
	color: #031232 !important;
	border-color: #3f6ae0;
}
.xl-ph-btn[disabled] {
	opacity: 0.55;
	cursor: default;
}
.xl-ph-btn--block {
	display: flex;
	width: 100%;
	margin-top: 8px;
}
.xl-ph-textbtn {
	background: none;
	border: 0;
	padding: 10px 4px;
	color: #5b6578;
	font: inherit;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}
.xl-ph-textbtn:hover,
.xl-ph-textbtn:focus {
	color: #031232;
	background: none;
}

/* Alert settings */
.xl-ph-prefs-wrap,
.xl-ph-prefs-inline {
	padding: 4px 0 14px 52px;
}
.xl-ph-prefs {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.xl-ph-check {
	display: flex !important;
	align-items: center;
	gap: 10px;
	font-size: 14px !important;
	font-weight: 500 !important;
	color: #031232 !important;
	margin: 0 !important;
}
.xl-ph-check input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: #3f6ae0;
}
.xl-ph-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 4px;
}
.xl-ph-field {
	display: flex !important;
	flex-direction: column;
	gap: 4px;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #031232 !important;
	margin: 0 !important;
}
.xl-ph-field select,
.xl-ph-field input {
	height: 44px;
	padding: 0 12px;
	border: 1px solid #d0d7e2;
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 400;
	color: #031232;
	box-sizing: border-box;
	width: 100%;
}
.xl-ph-field select:focus,
.xl-ph-field input:focus {
	border-color: #3f6ae0;
	outline: none;
	box-shadow: 0 0 0 3px rgba(63, 106, 224, 0.18);
}
.xl-ph-prefs__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}

/* Calendar card */
.xl-ph-cal__head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.xl-ph-cal__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 10px 0 0 52px;
}

/* Setup sheet */
.xl-ph-sheet {
	position: fixed;
	inset: 0;
	z-index: 99995;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.xl-ph-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 18, 50, 0.45);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.xl-ph-sheet__panel {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 88vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 18px 18px 0 0;
	padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
	box-sizing: border-box;
	transform: translateY(100%);
	transition: transform 0.25s ease;
	box-shadow: 0 -8px 30px rgba(3, 18, 50, 0.25);
}
.xl-ph-sheet.is-in .xl-ph-sheet__backdrop {
	opacity: 1;
}
.xl-ph-sheet.is-in .xl-ph-sheet__panel {
	transform: translateY(0);
}
.xl-ph-sheet__panel::before {
	content: "";
	display: block;
	width: 40px;
	height: 4px;
	border-radius: 2px;
	background: #d0d7e2;
	margin: 4px auto 6px;
}
.xl-ph-card--sheet {
	border: 0;
	box-shadow: none;
	margin: 0;
	padding: 8px 2px 0;
}

/* Offline banner */
.xl-ph-off {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid #c9d6f5;
	background: #edf2fd;
	color: #031232;
}
.xl-ph-off.is-sent {
	border-color: #abefc6;
	background: #ecfdf3;
}
.xl-ph-off__icon {
	flex: 0 0 auto;
	color: #2f55c9;
	padding-top: 1px;
}
.xl-ph-off.is-sent .xl-ph-off__icon {
	color: #067647;
}
.xl-ph-off__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 auto;
	font-size: 14px;
	line-height: 1.45;
}
.xl-ph-off__body strong {
	font-size: 15px;
}
.xl-ph-off__link {
	align-self: center;
	color: #2f55c9;
	font-weight: 600;
	font-size: 14px;
}

/* Camera */
.xl-ph-cam__input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
.xl-ph-take {
	margin: 8px 0 0;
}
.xl-ph-take svg {
	flex: 0 0 auto;
}
.xl-ph-shots {
	list-style: none;
	margin: 8px 0 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.xl-ph-shots:empty {
	display: none;
}
.xl-ph-shots li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #031232;
	margin: 0 !important;
}
.xl-ph-shots img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #e3e8ef;
}
.xl-ph-cam {
	position: fixed;
	inset: 0;
	z-index: 99996;
	background: rgba(3, 18, 50, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.xl-ph-cam.is-in {
	opacity: 1;
}
.xl-ph-cam__panel {
	width: 100%;
	max-width: 520px;
	max-height: 100%;
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	padding: 16px;
	box-sizing: border-box;
}
.xl-ph-cam__stage {
	position: relative;
	background: #f4f6fa;
	border-radius: 12px;
	padding: 10px;
	display: flex;
	justify-content: center;
	margin: 8px 0;
}
.xl-ph-cam__canvas {
	display: block;
	max-width: 100%;
	max-height: 52vh;
	width: auto;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 0 0 2px #3f6ae0, 0 4px 14px rgba(3, 18, 50, 0.18);
}
.xl-ph-cam__tools,
.xl-ph-cam__actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}
.xl-ph-cam__actions {
	margin-top: 10px;
}
.xl-ph-cam__actions .xl-ph-btn {
	flex: 1 1 0;
}
.xl-ph-cam__size {
	text-align: center;
	font-size: 12.5px !important;
	color: #5b6578 !important;
	margin: 8px 0 0 !important;
}

/* Sign-in card: Face ID button */
.xl-ph-login {
	margin-top: 14px;
}
.xl-ph-login__or {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #5b6578;
	font-size: 13px;
	margin: 0 0 12px;
}
.xl-ph-login__or::before,
.xl-ph-login__or::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: #e3e8ef;
}
.xl-ph-login__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	border: 1px solid #031232;
	border-radius: 10px;
	background: #fff;
	color: #031232;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}
.xl-ph-login__btn:hover,
.xl-ph-login__btn:focus {
	background: #031232;
	color: #fff;
	outline: none;
}
.xl-ph-login__btn[disabled] {
	opacity: 0.6;
}
.xl-ph-login__msg {
	font-size: 13.5px;
	line-height: 1.4;
	margin-top: 8px;
	color: #5b6578;
}
.xl-ph-login__msg:empty {
	display: none;
}
.xl-ph-login__msg.is-err {
	color: #b42318;
}
.xl-ph-login__msg.is-ok {
	color: #067647;
}

@media (max-width: 480px) {
	.xl-ph-card,
	.xl-ph-cal {
		padding: 16px 14px 6px;
		border-radius: 12px;
	}
	.xl-ph-row {
		flex-wrap: wrap;
	}
	.xl-ph-row__main {
		flex: 1 1 calc(100% - 52px);
	}
	.xl-ph-row__act {
		flex-basis: 100%;
		padding-left: 52px;
		align-self: flex-start;
	}
	.xl-ph-grid {
		grid-template-columns: 1fr;
	}
	.xl-ph-prefs-wrap,
	.xl-ph-prefs-inline {
		padding-left: 0;
	}
	.xl-ph-cal__btns {
		margin-left: 0;
	}
	.xl-ph-cal__btns .xl-ph-btn {
		flex: 1 1 100%;
	}
}
