//
// Popup
// --------------------------------------------------
.uiPopupWrapper {
	z-index: @zindexModalBackdrop !important;
}
.uiPopup ,.modal.uiPopup{
	border: 1px solid @uiPopupBorder;
	background: @uiPopupBackground;
	.box-shadow(0 2px 3px rgba(0,0,0,0.25));
	.border-radius(4px);
	position: absolute;
	max-width: 95%;
	word-wrap: break-word;

    .cke_dialog {
        width: auto;
        .uiIconClose {
            background: none;
            top: 10px;
        }
    }
	.popupHeader {
		background-color: @uiPopupHeaderBackground;
		.box-shadow(@uiPopupHeaderBoxShadow);
		border-bottom: @uiPopupHeaderBorder;
		margin-bottom: @uiPopupHeaderMarginBottom;
		.border-radius(4px 4px 0 0 );
		padding: 8px 10px 8px 15px;
		font-size: @popupTitleFontSize;
		font-weight: bold;
        color: @uiPopupTitleColor;
		
		[class^="uiIcon"] {
			margin: 0 0 0 4px;
			cursor: pointer;
		}
        [class^="uiIconArrow"] {
            margin: 13px 4px 0 0;
        }
        .uiIconArrowDownMini {
            margin: 6px 4px 0 ;
            &.pull-left {
                margin-left: 0;
            }
        }
        .popupTitle {
			margin: 0;
			color: @uiPopupTitleColor;
			display: block;
            cursor: move;
			font-size: @popupTitleFontSize;
			font-weight: bold;
		}
	}

	.popupContent {
		overflow: auto;
		padding: 15px;
		width: auto;
		background: @uiPopupContentBackground;
		.border-radius(0 0 4px 4px);
		.resizable {
			overflow: auto;
			padding: 15px;
			margin: -15px;
			max-height: ~"calc(100vh - 300px)";
		}
		> .resizable {
			padding: 0 15px;
            > .UIForm {
              padding-top: 15px;
            }
		}
        select {margin-bottom: 0;}
	}
	.form-horizontal {
		padding: 0;
		.control-group{
			&:last-child {
				margin-bottom: 0;
				&:first-child {
					margin-bottom: 12px;
				}
			}
		}
	}
	.table {
		margin-bottom: 15px;
	}
	.uiIconResize {
		.square(16px);
		margin: -18px 2px 2px;
		cursor: nw-resize;
	}
	.uiAction.uiActionBorder {
		margin-left: -15px;
		margin-right: -15px;
		padding-bottom: 0;
	}
	.form-horizontal.resizable {
		//margin-top: 0;
		//margin-bottom: 0;
		.controls-full {
			> .center {
				margin-bottom: 20px;
			}
		}
	}
}

/**********************Popup Messages*************************/

.uiPopup ,.modal.uiPopup{
	.popupMessage {
		&.resizable {
			padding-top: 15px;
			padding-bottom: 15px;
		}
		& > li {
			padding: 5px 0;
            .contentMessage {
                white-space: normal;
            }
		}

        &  > li span[class*="Icon"] {
			padding-left: 20px;
			line-height: 16px;
			//height: 16px;
			color: @popupMessageColor;
			font-weight: bold;
            position: relative;
            &:before {
                content: "";
                display: block;
                left: 0;
                top: 0px;
                .font-icon();
                position: absolute;
            }
		}

		> li span.errorIcon {
            &:before { content: "\e76d";color: @errorColor} //uiIconRemove
		}

		> li span.warningIcon {
            &:before {content: "\e771";color: @warningColor;}//.uiIconWarning
		}

		> li span.infoIcon {
            &:before { content: "\e767";color: @infoColor; }//.uiIconInformation
		}

		> li span.confirmationIcon {
            &:before {  content: "\e76b";color: @infoColor;}// uiIconQuestion
		}

		> li.collapseItem > ul {
			display: block;
		}

		> li.expandItem > ul {
			display: none;
		}

		> li > ul > li {
			line-height: 16px;
			padding: 0 0 0 40px;
		}
	}

	.popupContent .multipleMessage {
		background: @multipleMessageBackground;
		border: 1px solid @multipleMessageBorder;
		margin: 0;
	}

	.singleMessage > li span[class*="Icon"] {
		font-weight: normal;
		display: block;
		margin: 5px 0 5px;
	}
}
.uiPopup .popupHeader {
    .uiIconClose {
        height: 16px;
        line-height: 12px;
        text-align: center;
        width: 16px;
        position: absolute;
        right: 9px;
        top: 10px; 
        z-index: 9;
        margin: 0;
        & + .PopupTitle {
            margin-right: 25px;
			font-size: @popupTitleFontSize;
        }
    }
    [class^="uiIcon"] + .uiIconClose {
        position: static;
        margin-left: 4px;
        &:before {font-size: @sizeIcon12x12;}
    }
}
@media (max-width: 1024px) {
	.uiPopup .popupHeader {
	    .uiIconClose::before, .uiIconClose {
	    	margin: 3px 2px 0 0;
	    }

	}
    .uiPopup.cke_dialog {
        transform: none;
        z-index: 100000!important;
    }
}
