//out: ./dist/modal.css, compress: true, outExt:.min.css
@import (reference) "color.less";
@import (reference) "font.less";
@import (reference) "variables.less";
@import (reference) "index.less";

.modalRender {
	position: fixed;
	z-index: 120;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	background-color: rgba(0, 0, 0, 0.7);
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;

	&#modalJson {
		z-index: 121;

		textarea {
			padding: 8px;
			border-radius: 4px;
			border: 1px solid var(--color-line);
			min-height: 500px;

			font-size: 14px;
			font-family: monospace;
			line-height: 16pt;
			tab-size: 2;
		}
	}

	&#modalTextarea {
		z-index: 121;

		textarea {
			padding: 8px;
			border-radius: 4px;
			border: 1px solid var(--color-line);
			min-height: 140px;

			font-size: 14px;
			font-family: monospace;
			line-height: 16pt;
			tab-size: 2;
		}
	}

	.modalInner {
		width: 50vh;
		min-height: 100px;
		//height: auto !important;
		background-color: var(--color-white);
		//border: 1px solid @colorLine;
		border-radius: 5px;
		position: relative;
		.boxShadow();

		&.modalInnerMini {
			width: 300px;
			min-height: 70px;
		}

		.btnCloseModal {
			position: absolute;
			font-size: 24px;
			right: -13px;
			top: -12px;
			z-index: 20;

			border-radius: 100px;
			opacity: 1;
			padding: 4px;

			i {
				background: var(--color-white);
				border-radius: 100px;
				border: 1px solid var(--color-white);
			}

			&:hover {
				i {
					background: var(--color-close-modal-hover);
					border: 1px solid var(--color-close-modal-hover);
					color: var(--color-white)
				}
			}
		}

		.modalHeader {
			padding: 4px 8px 4px 16px;
			border-bottom: 1px solid var(--color-line);
			display: flex;
			align-items: center;
			justify-content: space-between;
			border-radius: 5px 5px 0px 0px;

			&.blue-sky {
				background: var(--color-blue-soft);
			}


			.btn {
				.icon {
					font-size: 16px;
				}
			}

			.actions {
				display: flex;
				gap: 8px;
			}
		}

		.modalBody {
			padding: 16px; //padding-bottom: 0px;
			display: flex;
			font-size: var(--font-size-base);
			white-space: normal;
			word-wrap: break-word;
			overflow-wrap: anywhere;
			max-width: 100%;
			flex-direction: column;
			line-height: var(--line-height);
			gap: 8px;

			.thead {
				>.icon {
					font-size: 34px;
					margin-right: 8px;
					margin-bottom: 8px;
					margin-top: 0;
				}

				>span {
					line-height: 21px;
				}
			}

			.form {
				padding: 0;
			}

			.tbody {
				padding: 0;
			}
		}

		.modalControl {
			padding-left: 16px;
			padding-right: 16px;

			input {
				.widthAvailable();
				padding: 8px 8px;
				display: inline-block;
				z-index: 0;
				background: var(--color-bg-input);
				color: var(--color-input-text);
				border: 1px solid var(--color-input-border);
				//box-shadow: 0px 0px 0px 1px transparent !important;
				// box-shadow: 0px 0px 1px 1px #cecece !important;
				border-radius: var(--border-radius-form-input);
				font-size: 14px;
				transform: all ease 0.2s;
				margin-left: 4px;
				margin-right: 4px;
				margin-bottom: 8px;
			}
		}

		.modalFooter {
			padding: 16px;
			display: flex;
			justify-content: flex-end;

			.btn {
				margin-left: 8px;
			}

			.btnConfirmRemove {
				padding: 4px 35px;
			}
		}
	}

	&.modalAlert {
		.modalInner {
			max-width: 325px;
		}
	}

	&.modalConfirm {
		z-index: 121;

		.modalInner {
			max-width: 400px;

			.modalTitle {
				padding: 8px 16px;
				/* border-bottom: 1px solid red; */
				background: #96a3b5;
				color: var(--color-white);
				border-top-right-radius: 5px;
				border-top-left-radius: 5px;
			}
		}
	}

	&.modalRename {
		.modalBody {
			.icon {
				font-size: 24px !important;
				margin-bottom: 0 !important;
			}
		}

		.modalControl {
			input {
				font-size: 16px;
				//margin-top: 7px px;
				margin-bottom: 0 !important;
			}
		}
	}

	&.modalConfig {
		.modalInner {
			width: 90vw;
			width: 90dvw;
			max-width: 1200px;
			//min-height: 450px;
			//height: 85vh;
			height: 85dvh;
			transition: all ease .5s;
			z-index: 2;
			display: flex;
			flex-direction: column;

			>.head {
				display: flex;
				align-items: center;
				justify-content: space-between;
				padding-left: 25px;
				padding: 0px 8px;
				max-height: 45px;
				/* background: #e4e5f1; */
				/* border-radius: 6px 6px 0px 0px; */
				height: var(--header-height);
				position: absolute;
				right: 0;
				z-index: 100;

				h3 {
					font-size: 18px;
					font-weight: 600;
					margin: 0;
				}

				.icon {
					font-size: 16px;
					color: var(--color-text-btn);
					//margin-right: 10px;
				}

				

				.btnCancelModal {
					width: 28px;
					height: 28px;
					border-radius: 4px;

					.icon { font-size: 11px; }
				}

				a,
				button {
					display: flex;
					align-items: center;
					padding: 0;
					justify-content: center;
				}

				.title {
					display: flex;
					align-items: center;
					gap: 8px;
				}

				.actions {

					&.actionsDefault {
						display: flex;
						margin-top: 4px;
						margin-bottom: 4px;

						.btn {
							opacity: 1;

							&:hover {
								opacity: 1;
							}
						}
					}

					.btn {
						font-size: 14px;
						opacity: 0.3;

						&:hover {
							opacity: 0.7;
						}
					}
				}
			}

			>.tbody {
				.widthAvailable();
				.heightAvailable();
				position: relative;
				display: flex;
				min-width: auto;


				>.head {
					.widthAvailable();
					display: flex;
					align-items: center;
					justify-content: space-between;
					padding: 16px;

					.icon {
						font-size: 16px;
						margin-right: 8px;
					}

					.title {
						display: flex;
						align-items: center;



						h2,
						h1,
						h3 {
							font-size: 18px;
						}
					}

					.actions {
						display: flex;
						align-items: center;
					}
				}

				.form{
					margin: 0;
					padding: 0;
				}

				.rowActions {
					display: flex;
					align-items: center;
					justify-content: flex-end;
				}

				>.sidebarMenu {
					position: relative;
					display: flex;
					width: 180px;
					//.heightAvailable();
					
					flex-direction: column;
					gap: 4px;
					padding: var(--padding-lateral);
					overflow-y: auto;

					.sidebarGroup {
						padding: 16px 8px 4px;
						font-size: 11px;
						color: var(--color-text-aux);

						&:first-child {
							padding-top: 8px;
						}
					}

					.btn {
						.widthAvailable();
						margin-bottom: 0;
						align-items: center;
						padding-top: 8px !important;
						padding-bottom: 8px !important;

						&.active {
							background-color: var(--sidebarModalBtnActive);
							color: var(--color-text) !important;
							border-radius: 6px;

							.icon {
								color: var(--color-text) !important;
							}
						}

						.icon{
							color: var(--color-btn-sidebar-config);
						}

						span {
							text-align: left;
							font-size: 0.8rem;
						}
					}
				}

				.content {
					position: relative;
					width: calc(100% - 180px);
					overflow-y: hidden;
					border-left: 1px solid var(--color-line);
					

					.head,
					.header {
						padding: 16px 16px 8px 16px;
						display: flex;
						align-items: center;
						justify-content: space-between;
						gap: 8px;
						.widthAvailable();

						>.icon {
							font-size: 16px;
						}

						.title {
							display: flex;
							align-items: center;
							gap: 8px;
							font-weight: 600;
							font-size: 21px;

							.icon {
								font-size: 21px;
							}
						}

						.subtitle {
							font-size: 13px;
							font-weight: normal;
						}

						.pull-left {
							.head {
								align-items: flex-start !important;
							}
						}
					}

					.tbody {
						.widthAvailable();
						height: calc(100% - var(--header-height));
						padding: 0;
						padding-left: 16px;
						padding-right: 16px;
						overflow-y: auto;
					}
				}

				.contents {
					overflow-y: auto;
					padding-bottom: 40px;

					.content {
						.widthAvailable();
						.heightAvailable();
						overflow-y: auto;
						display: none;
						flex-direction: column;
						align-items: flex-start;
						position: relative;

						&.active {
							display: flex;
						}

						>.tbody {
							padding-left: 16px;
							padding-right: 16px;
						}

						.title{ //titles
							font-size: 12px;
							font-weight: 600;
							color: var(--color-text-aux, #999);
							margin: 0;
						}
					}
				}


			}

			.innerWindow {
				.container {
					width: 860px;
				}

				.tbody {
					.form {
						&:last-child>div {
							padding-bottom: 16px;
						}
					}
				}
			}
		}

		.modalBgBack {
			position: absolute;
			width: 100%;
			height: 100%;
			display: flex;
			z-index: 0;
		}
	}

	&.modalExtended {
		.modalInner {
			width: 100vw;
			width: 100dvw;
			height: 90vh !important;
			height: 90dvh !important;
		}
	}

	&.modalExtendedMedia {
		.modalInner {
			width: 80%;
			height: 85vh !important;
			position: relative;
		}

		.modalFormEditMedia {
			height: 100%;
			width: 100%;
			display: block;



			.body {
				display: flex;
				justify-content: space-between;
				height: 100%;
				position: relative;

				.col {
					&.col-media {
						width: 50%;
						border-right: 1px solid var(--color-line);

						.header {
							width: 100%;

							h2 {
								padding: 16px 30px;
								font-size: 150%;
								font-weight: 400;
							}
						}

						.media {
							display: flex;
							justify-content: center;
							align-items: center;
							margin-bottom: 16px;
							max-height: 50%;
							/* width: -webkit-fill-available; */
							/* border: 1px solid red; */
							padding: 30px;
							background: var(--color-bg-btn-menu);

							.img-fluid {
								.widthAvailable();
								.heightAvailable();
								max-height: max-content;
								max-width: 50%;
								overflow: auto;
							}
						}

						.data {
							padding: 0 30px;


							p {
								margin-bottom: 4px;

								b {}
							}
						}




					}

					&.col-form {
						width: 50%;
						padding-top: 30px;
						padding-bottom: 30px;
						overflow-y: auto;

						.title {
							font-size: 21px;
							font-weight: 400;
						}



					}
				}
			}
		}
	}

	&.modalMain {
		background-color: transparent;
		align-items: flex-start;
		top: 84px;

		.modalInner {
			width: 100%;
			height: 100% !important;
			box-shadow: none;
			border-radius: 0;
			display: flex;

			.modalSidebar {
				.heightAvailable();
				width: 240px;
				position: relative;
				display: flex;
				flex-direction: column;
				align-items: flex-start;

				overflow-y: auto;
				background: #f9f9f9;
				box-shadow: inset -1px 0px 0px #ebebef;

				.title {
					.widthAvailable();
					border-bottom: 1px solid var(--color-line);
					padding: 8px 16px;
					display: flex;
					align-items: center;

					.icon {
						font-size: 18px;
						margin-right: 8px;
					}
				}

				.inner {
					.widthAvailable();
					padding: 8px;
				}

				.btn {
					margin-bottom: 4px;
					align-items: center;
					justify-content: flex-start;
					padding-right: 8px;
					padding-left: 8px;
					.widthAvailable();

					&.active {
						background-color: #dbdde5;
					}

					.icon {
						font-size: 18px;
						margin-right: 4px;
					}

					span {
						text-align: left;
						font-size: 14px;
					}
				}
			}

			.modalBody {
				.header {}
			}
		}
	}
}

.modalHead {
	.widthAvailable();
	display: flex;
	padding: 4px 16px;
	font-size: 16px;
	background: var(--color-menu-top-btn);
	color: var(--color-white);
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}

.modalDraggable {
	position: fixed;
	z-index: 100;
	min-height: 320px;
	min-width: 34%;
	top: 30%;
	left: 50%;
	padding-bottom: 16px;
	margin-left: -17%;
	border: 1px solid var(--color-line);
	.boxShadowWindow();

	.head {
		height: 36px;
		border-top-left-radius: 8px;
		border-top-right-radius: 8px;
		background-color: #f1f3f4;
		-webkit-box-shadow: inset 0 1px 0 #fff;
		box-shadow: inset 0 1px 0 #fff;
		cursor: move;
		overflow: hidden;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding-left: 16px;
		padding-right: 16px;

		label {
			font-weight: 700;
		}
	}

	.bodyModal {
		margin-top: 8px;
	}
}

.modalDelete {
	.modalBody {
		flex-direction: row !important;


		.title {
			//.widthAvailable();
			font-size: var(--size-title-modal);
			font-weight: 700;
			overflow-wrap: break-word;
			width: 80%;
		}

		.form {
			padding: 0;
			margin-top: 8px;
			.widthAvailable();
		}
	}
}

.innerForm {
	width: 100%;
	height: 100%;
	position: absolute;
	//top: 40px;
	right: -200vh;
	//background-color: @bgModuleDefault;
	background-color: var(--color-inner-form);
	display: flex;
	//justify-content: center;
	align-content: center;
	flex-direction: column;
	z-index: 10;

	//.transition(.05s);

	&.collapse {
		//width: calc(100% - 45px) !important;
		.transition(.05s) !important;
	}

	&.on {
		.widthAvailable();
		right: 0;
		//.transition(.05s);

		&.responsive {
			top: 0;
			background-color: var(--color-white);
		}
	}

	&.mode-compact {
		background-color: transparent;

		.boxInnerForm {
			width: 400px;
			position: absolute;
			z-index: 1;
			right: 0;
			top: 0;
			height: 100vh;
			height: 100dvh;
			background-color: var(--color-white);
			overflow-y: auto;
			//padding: 0 var(--padding-lateral);
			margin: 0;
			padding-top: 46px;

			.form {
				padding: 0 var(--padding-lateral);

				>div {
					z-index: 1;
					position: relative;
				}

				.formTree {
					padding-left: 0;
					padding-right: 0;
					padding-top: 0;
					min-height: 50px;

					label {
						padding-left: 0;
						padding-right: 0;
						padding-top: 0;
						padding-bottom: 4px;
						position: relative;
					}

					.scrollBar {
						padding-left: 16px;
						background: var(--color-bg-ws);
						padding-top: 4px;
						margin-top: 0;
						border-radius: 5px 5px 5px 5px;
						border: 1px solid var(--color-line);
						.widthAvailable();
					}
				}

				.formBottomBtns {
					//position: sticky;
					/* bottom: 0; */
					/* right: 0; */
					z-index: 2;
					/* width: calc(100% + 17px); */
					/* margin-left: -24px; */
					padding-top: 8px;
					/* padding-right: 16px; */
					/* padding-left: 16px; */
					/* background: var(--color-white); */
					/* box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1); */
				}
			}
		}

		.bgInnerForm {
			background-color: rgba(0, 0, 0, 0.7);
			position: absolute;
			z-index: 0;
			.widthAvailable();
			.heightAvailable();
		}
	}

	.innerContainer {
		margin: 0 auto;
		max-width: 1024px;

		.head {
			padding-top: 4px;
			padding-bottom: 4px;
		}
	}

	.inner {
		overflow-y: auto;
		height: 100%;

		.headInnerForm {
			.widthAvailable();
			z-index: 10;
			//background: @bgModuleDefault;
			background: var(--color-inner-form-head);
			position: absolute;
			padding: 12px 35px 12px 35px;
			padding-right: var(--head-inner-form-pr, 35px);
			right: auto;
			justify-content: space-between;
			border-bottom: 1px solid #e0e6f470;
			outline: 1px solid var(--color-line);
			align-items: center;

			&.headFullWhite {
				background-color: var(--color-white);
				border-bottom: 1px solid var(--color-line);

				.inner {
					margin-bottom: 4px;
				}
			}

			.inner {
				position: relative;
				display: flex;
				justify-content: space-between;


				.box {
					display: flex;
					gap: 8px;
					align-items: center;
				}


				//margin-top: 5px;
				.btnFull {
					background-color: var(--color-white) !important;
				}
			}

			.container {
				display: flex;
				position: relative;
			}



			.boxLeft {
				display: flex;
				align-items: center;
				min-height: 32px;
				gap: 8px;

				h1,
				h2,
				h3,
				h4,
				h5,
				h6 {
					line-height: 10px;
				}

				.actions {
					margin-left: 8px;
					display: flex;
					align-items: center;
					gap: 8px;
					position: relative;

					label {
						font-size: 13px;
						color: var(--color-input-text);
					}

					.formControl {
						position: relative;
					}

					input,
					select {
						border-radius: 5px;
						padding: 4px 16px 4px 8px;
						border-color: var(--color-line);
						position: relative;
					}
				}
			}

			.boxRight {
				display: flex;
				justify-content: flex-end;
				min-height: 32px;
				gap: 8px;
			}
		}

	}

	.container {
		width: 948px;
	}

	.tbody {
		min-width: 998px;
		padding-left: 0 !important;
		padding-right: 0 !important;
		// padding-top: 65px; // header ahora es sticky
		padding-bottom: 16px;
		padding-top: 64px;

		.inner {
			padding-top: 4px;
		}

		.form {
			.formGroupTwoColumns {
				.form30w {
					.formGroupFrame {
						margin-right: 0;
						margin-left: 0;
					}
				}
			}
		}
	}
}

.innerWindow {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0px;
	right: -120vh;
	background-color: var(--color-inner-form);
	display: flex;
	//justify-content: center;
	align-content: center;
	flex-direction: column;
	z-index: 10;

	.transition(.05s);

	&.on {
		right: 0;
		.transition(.05s);

		&.responsive {
			top: 0;
			background-color: var(--color-white);
		}
	}

	.inner {
		overflow-y: overlay;
		height: 100%;
		display: flex;
		flex-direction: column;
		position: relative;

		.headInnerForm {
			.widthAvailable();
			z-index: 10;
			background: var(--color-inner-form-head);
			position: sticky;
			top: 0;
			padding: 8px 35px 8px var(--head-inner-form-pr, 35px);
			padding-right: var(--head-inner-form-pr, 35px);
			right: auto;
			justify-content: space-between;
			border-bottom: 1px solid var(--color-line);
			align-items: center;
			display: flex;

			&.headFullWhite {
				background-color: var(--color-white);
				border-bottom: 1px solid var(--color-line);

				.inner {
					margin-bottom: 4px;
				}
			}

			.inner {
				position: relative;
				display: flex;
				justify-content: space-between;
				flex-direction: row;


				.box {
					display: flex;
					align-items: center;
					gap: 8px;
				}


				//margin-top: 5px;
				.btnFull {
					background-color: var(--color-white) !important;
				}
			}

			.container {
				display: flex;
				position: relative;
			}

			.btnBack {}

			.boxLeft {
				display: flex;
				align-items: center;
				min-height: 32px;
				gap: 8px;

				h1,
				h2,
				h3,
				h4,
				h5,
				h6 {
					line-height: 10px;
					margin-top: -4px;
				}

				.actions {
					margin-left: 8px;
					display: flex;
					align-items: center;
					gap: 8px;
					position: relative;

					label {
						font-size: 13px;
						color: var(--color-input-text);
					}

					.formControl {
						position: relative;
					}

					input,
					select {
						border-radius: 5px;
						padding: 4px 16px 4px 8px;
						border-color: var(--color-line);
						position: relative;
					}
				}
			}

			.boxRight {
				display: flex;
				justify-content: flex-end;
				min-height: 32px;
				gap: 8px;
			}
		}
	}

	.header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 4px 24px 4px 24px;
	}

	/* .container {
		width: 948px;
	} */

	.tbody {
		min-width: 998px;
		padding-left: 0 !important;
		padding-right: 0 !important; //padding-top: 65px;
		overflow-y: auto;
		.heightAvailable() !important;

		.inner {
			padding-top: 16px;
			padding-bottom: 40px;
		}

		.form {
			.formGroupTwoColumns {
				.form30w {
					.formGroupFrame {
						margin-right: 0;
						margin-left: 0;
					}
				}
			}
		}
	}
}


.tooltip {
	position: absolute;
	z-index: 200;
	width: auto;
	height: auto;

	&.tooltipTop {
		margin-top: -8px;
	}


	.tooltipInner {
		padding: 8px;
		background-color: white;
		box-shadow: 0px 2px 7px #aaabb1;
		border-radius: 5px;
		box-sizing: content-box;
		max-width: 300px;
	}

	//&.tooltipTop {}
	.arrow {
		width: 10px;
		height: 10px;
		position: absolute;
		bottom: -5px;
		left: 50%;
		margin-left: -4px;
		transform: rotate(45deg);
		background: #fff;
		box-shadow: 1px 1px 0px #c3bcbc;
		z-index: 0;
	}
}


.boxInfoModal {
	position: fixed;
	top: 46px;
	right: -2500px;
	background: var(--color-bg-box-info-modal);
	z-index: 500;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	height: 95vh;
	border-left: 1px solid var(--color-line);
	box-shadow: 2px 2px 4px;
	transition: all 0.3s ease;
	padding: 30px;
	width: 300px;

	&.on {
		right: 0;
		transition: all 0.3s ease;
	}

	table {
		tr {
			border-collapse: collapse;
			border-bottom: 1px solid var(--color-line);
			display: inline-table;

			td {
				padding: 8px;
				vertical-align: top;

			}
		}

		/* rr:nth-child(even) {
			background-color: #f0f0f0;
		}

		tr:nth-child(odd) {
			background-color: #ffffff;

		}*/
	}
}

.btnInfoModal {
	&.on {
		.icon {
			color: var(--color-blue-active);
		}
	}
}


.modalContextMenu {
	position: absolute;
	z-index: 100;
	width: 120px;
	min-height: 60px;
	background: var(--color-white);
	box-shadow: 0px 2px 7px #aaabb1;
	border-radius: 5px;
	box-sizing: content-box;


	.btn {
		.widthAvailable();
		border-radius: 0;

		&:first-child {
			border-top-left-radius: var(--border-radius);
			border-top-right-radius: var(--border-radius);
		}

		&:last-child {
			border-bottom-left-radius: var(--border-radius);
			border-bottom-right-radius: var(--border-radius);
		}
	}

	.separator {
		width: 100%;
		height: 1px;
		background: var(--color-line);
		//margin: 7px 0;
	}
}

//@Media
@media (max-width: 1920px) {}

@media (max-width: 1445px) {}

@media (max-width: 1280px) {}

@media (max-width: 470px) {
	.innerForm {
		right: auto !important;
		width: 100vw !important;
		width: 100dvw !important;

		.inner {
			.headInnerForm {
				padding: 8px 16px;

				.inner {
					.widthAvailable();
				}

				.btnBack {
					position: relative;
				}

				.box {
					display: flex;
					align-items: center;
					gap: 8px;

					&.boxLeft {
						margin-left: 0;
					}

					.title2 {
						display: none;
					}
				}

				.btn {
					padding-left: 8px;
					padding-right: 8px;
				}
			}

			.tbody {
				.widthAvailable();
				min-width: auto;
				padding-top: 52px;
				padding-bottom: 52px;

				.inner {
					padding-top: 0;
					.widthAvailable();

					.form {
						padding: 0;

						.formGroupTwoColumns {
							flex-direction: column;

							.formControl {
								width: 100% !important;

								.formGroupFrame {
									margin: 0;
								}
							}

							.formGroup {
								width: 100% !important;
								flex-direction: column !important;

								.formGroupFrame {
									margin: 0;
								}
							}

							.formColumn {
								width: 100% !important;

								&::last-child {
									padding-bottom: 8px;
								}
							}
						}
					}
				}
			}
		}
	}
}

// ─── Profile Configuration Modal ─────────────────────────────────────────────
#modalProfileConfig {
	&.modalConfig .modalInner {
		width: 680px;
		max-width: 96vw;
		height: 560px;
		max-height: 82vh;
	}

	.profileConfigContent {
		flex: 1;
		overflow-y: auto;
		padding: var(--padding-body);
	}
}

.profileSection {
	.profileSectionHead {
		margin-bottom: 14px;

	 
	}

	.profileNote {
		font-size: 13px;
		color: var(--color-text-aux, #999);
		margin: 0 0 20px;
	}

	.profileFormGrid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px 20px;

		.formControl {
			display: flex;
			flex-direction: column;
			gap: 5px;
			margin: 0;
		}

		&.profileFormGridMain {
			flex: 1;
			align-content: start;

			.profileFormGridFull { grid-column: 1 / -1; }
		}

		&.profileFormGrid3 {
			grid-template-columns: 1fr 1fr 1fr;
		}
	}

	.profileAvatarRow {
		display: flex;
		align-items: flex-start;
		gap: 20px;

		.profileAvatarBox {
			display: flex;
			flex-direction: column;
			align-items: center;
			gap: 8px;
			flex-shrink: 0;

			.formPreview {
				width: 72px;
				height: 72px;
				border-radius: 50%;
				overflow: hidden;
				background: var(--color-bg-btn-menu, #eee);
				display: flex;
				align-items: center;
				justify-content: center;

				img {
					width: 100%;
					height: 100%;
					object-fit: cover;
				}
			}
		}
	}

	.profileFormCol {
		display: flex;
		flex-direction: column;
		gap: 14px;

		.formControl { margin: 0; }
	}

	.passwordRules {
		display: flex;
		flex-direction: column;
		gap: 3px;
		margin-top: 6px;
		padding-left: 4px;

		.rule {
			font-size: 11px;
			color: var(--color-text-aux, #aaa);
			display: flex;
			align-items: center;
			gap: 4px;
			transition: color 0.2s;

			&.ok {
				color: #2e7d32;
				i { color: #2e7d32; }
			}

			i { font-size: 10px; }
		}
	}

	.passwordMatch {
		font-size: 11px;
		margin-top: 4px;
		display: block;

		&.match  { color: #2e7d32; }
		&.nomatch { color: #c62828; }
	}

	.profileGroupsList {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		min-height: 32px;
		align-items: center;

		.tag {
			display: inline-flex;
			align-items: center;
			padding: 3px 10px;
			border-radius: 20px;
			font-size: 12px;
			font-weight: 500;
			background: var(--color-bg-btn-menu, #eee);
			color: var(--color-text, #333);
		}
	}

	.profileNoGroups {
		font-size: 13px;
		color: var(--color-text-aux, #999);
		font-style: italic;
	}

	.profileActions {
		margin-top: 24px;
		padding-top: 16px;
		border-top: 1px solid var(--color-line);
	}

	.profileSessionsList {
		display: flex;
		flex-direction: column;
		gap: 8px;

		.sessionItem {
			display: flex;
			align-items: center;
			gap: 10px;
			padding: 10px 12px;
			border-radius: 6px;
			background: var(--color-bg-btn-menu, #f5f5f5);
			font-size: 13px;

			&.isCurrent {
				border: 1px solid var(--sidebarModalBtnActive, #4a6cf7);
			}

			.sessionInfo {
				flex: 1;
				min-width: 0;

				.sessionBrowser {
					font-weight: 500;
					color: var(--color-text);
					white-space: nowrap;
					overflow: hidden;
					text-overflow: ellipsis;
				}

				.sessionDate {
					font-size: 11px;
					color: var(--color-text-aux, #999);
					margin-top: 2px;
				}
			}

			.sessionPill {
				flex-shrink: 0;
				font-size: 10px;
				font-weight: 600;
				padding: 3px 8px;
				border-radius: 20px;
				letter-spacing: 0.3px;

				&.pillActive {
					background: #e8f5e9;
					color: #2e7d32;
				}

				&.pillInactive {
					background: var(--color-bg-btn-menu, #eee);
					color: var(--color-text-aux, #999);
				}
			}

			.btnRevokeSession {
				flex-shrink: 0;
				font-size: 11px;
				padding: 4px 10px;
				color: var(--color-text-aux, #999);
				border: 1px solid var(--color-line);
				border-radius: 4px;
				cursor: pointer;

				&:hover { color: #c62828; border-color: #c62828; }
			}
		}

		.sessionEmpty {
			font-size: 13px;
			color: var(--color-text-aux, #999);
			font-style: italic;
		}
	}
}