/* =========================================================
   USER EDIT PAGE — CLEAN / APPLE-INSPIRED
========================================================= */

.userEditPage {
	min-height: calc(100vh - 120px);
	padding: 64px 24px 90px;
	background: #fcf9f0;
}

.userEditPage .container {
	max-width: 760px;
	margin: 0 auto;
}

.userEditCard {
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 24px;
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.04),
		0 18px 45px rgba(0, 0, 0, 0.08);
	padding: 48px;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	max-width: 760px;
	margin: 0 auto;
}

.userEditHeader {
	margin-bottom: 40px;
}

.userEditHeader h1 {
	margin: 0 0 10px;
	color: #1d1d1f;
	font-size: 2rem;
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.15;
}

.userEditHeader p {
	margin: 0;
	max-width: 580px;
	color: #6e6e73;
	font-size: 1rem;
	line-height: 1.55;
}

.userEditCard .row {
	--bs-gutter-x: 22px;
	--bs-gutter-y: 26px;
}

.userEditCard .form-label {
	display: block;
	margin-bottom: 8px;
	color: #1d1d1f;
	font-size: 0.88rem;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.requiredMarker {
	color: #a23a49;
	margin-left: 2px;
}

.userEditCard .form-control,
.userEditCard .form-select {
	width: 100%;
	min-height: 50px;
	padding: 12px 15px;
	background: #f9f9fb;
	border: 1px solid #d2d2d7;
	border-radius: 12px;
	color: #1d1d1f;
	font-size: 0.96rem;
	box-shadow: none;
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.userEditCard .form-control::placeholder {
	color: #9a9aa0;
}

.userEditCard .form-control:hover,
.userEditCard .form-select:hover {
	background: #fff;
	border-color: #b8b8bd;
}

.userEditCard .form-control:focus,
.userEditCard .form-select:focus {
	background: #fff;
	border-color: #2c4d34;
	box-shadow: 0 0 0 4px rgba(44, 77, 52, 0.12);
	outline: none;
}

.userEditCard .form-select {
	cursor: pointer;
}

.fieldValidation {
	margin-top: 7px;
	color: #b42336;
	font-size: 0.8rem;
	line-height: 1.4;
}

.formHelperText {
	margin-top: 7px;
	color: #86868b;
	font-size: 0.8rem;
	line-height: 1.4;
}

.passwordResetOption {
	margin-top: 2px;
	padding: 18px 20px;
	background: #f9f9fb;
	border: 1px solid #e2e2e7;
	border-radius: 14px;
}

.passwordResetOption .form-check {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 24px;
	padding-left: 0;
	margin: 0;
}

.passwordResetOption .form-check-input {
	float: none;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 1px solid #b8b8bd;
	border-radius: 6px;
	cursor: pointer;
}

.passwordResetOption .form-check-input:checked {
	background-color: #2c4d34;
	border-color: #2c4d34;
}

.passwordResetOption .form-check-input:focus {
	box-shadow: 0 0 0 4px rgba(44, 77, 52, 0.12);
}

.passwordResetOption .form-check-label {
	margin: 0;
	color: #1d1d1f;
	font-size: 0.92rem;
	font-weight: 500;
	cursor: pointer;
}

.passwordResetOption p {
	margin: 8px 0 0 30px;
	color: #86868b;
	font-size: 0.8rem;
	line-height: 1.45;
}

.validationErrors {
	margin-top: 28px;
	padding: 15px 17px;
	background: #fff3f4;
	border: 1px solid #f0c6cb;
	border-radius: 12px;
	color: #8f2432;
}

.validationErrors[hidden] {
	display: none !important;
}

.validationErrorsHeading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 5px;
	font-size: 0.86rem;
	font-weight: 600;
}

.validationErrors ul {
	margin: 0;
	padding-left: 20px;
	font-size: 0.82rem;
	line-height: 1.45;
}

.userEditActions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
	margin-top: 38px;
	padding-top: 28px;
	border-top: 1px solid #e5e5e7;
}

.userEditActions .btn {
	min-width: 130px;
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 12px;
	font-size: 0.9rem;
	font-weight: 500;
	box-shadow: none;
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease,
		transform 0.18s ease,
		box-shadow 0.18s ease;
}

.userCancelButton {
	background: #f1f1f3;
	border: 1px solid transparent;
	color: #3a3a3c;
}

.userCancelButton:hover {
	background: #e7e7ea;
	border-color: transparent;
	color: #1d1d1f;
	transform: translateY(-1px);
}

.userSaveButton {
	background: #7a2c37;
	border: 1px solid #7a2c37;
	color: #fff;
}

.userSaveButton:hover:not(:disabled) {
	background: #8c3542;
	border-color: #8c3542;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(122, 44, 55, 0.2);
}

.userSaveButton:disabled {
	background: #d2d2d7;
	border-color: #d2d2d7;
	color: #fff;
	opacity: 1;
	cursor: not-allowed;
}

@media (max-width: 767.98px) {
	.userEditPage {
		padding: 32px 14px 60px;
	}

	.userEditCard {
		padding: 30px 22px;
		border-radius: 20px;
	}

	.userEditHeader {
		margin-bottom: 32px;
	}

	.userEditHeader h1 {
		font-size: 1.7rem;
	}

	.userEditActions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.userEditActions .btn {
		width: 100%;
	}

    /* Placeholder appearance for Access Level dropdown */
.placeholder-select {
    color: #9a9aa0;
}

.placeholder-select option {
    color: #1d1d1f;
}
/* =========================================================
   ORGANIZATION ADDRESS SECTION
========================================================= */

.companyAddressSection {
	padding: 24px;
	background: #f9f9fb;
	border: 1px solid #e2e2e7;
	border-radius: 16px;
}

.companyAddressHeader {
	margin-bottom: 22px;
}

.companyAddressHeader h2 {
	margin: 0 0 6px;
	color: #1d1d1f;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.015em;
}

.companyAddressHeader p {
	margin: 0;
	color: #86868b;
	font-size: 0.84rem;
	line-height: 1.45;
}

.companyAddressSection AddressEdit {
	display: block;
}

@media (max-width: 767.98px) {
	.companyAddressSection {
		padding: 20px 16px;
		border-radius: 14px;
	}
}

}

.usersNewButtonLocked {
	opacity: 0.62;
	cursor: help;
}

.usersNewButtonLocked:hover,
.usersNewButtonLocked:focus {
	opacity: 0.72;
}

.usersPremiumCrown {
	margin-right: 0.4rem;

	color: #a47c2b;

	font-size: 0.8rem;
}


/* Popover is rendered under body */

:host ::ng-deep .usersPremiumPopover.popover {
	min-width: 230px;
	max-width: 280px;

	overflow: hidden;

	background: #fffdf9;
	border: 1px solid rgba(122, 44, 55, 0.12);
	border-radius: 14px;

	box-shadow:
		0 14px 34px rgba(40, 28, 31, 0.16),
		0 3px 10px rgba(40, 28, 31, 0.08);
}

:host
::ng-deep
.usersPremiumPopover
.popover-header {
	margin: 0;
	padding: 0.8rem 1rem 0.45rem;

	color: #7a2c37;
	background: transparent;
	border: 0;

	font-size: 0.9rem;
	font-weight: 600;
}

:host
::ng-deep
.usersPremiumPopover
.popover-header::before {
	margin-right: 0.4rem;

	color: #a47c2b;

	font-family:
		"Font Awesome 6 Free",
		"Font Awesome 5 Free",
		FontAwesome;

	font-weight: 900;
	content: "\f521";
}

:host
::ng-deep
.usersPremiumPopover
.popover-body {
	padding: 0.35rem 1rem 0.95rem;

	color: #59605a;
	background: transparent;

	font-size: 0.8rem;
	line-height: 1.45;
}