/*
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 Meeds Association
contact@meeds.io
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
//
// Wizard
// --------------------------------------------------
.uiWizard {
	padding: 20px;
	.wizardStepTitleBar {
		.stepTitle {
			font-size:13px;
			font-weight: normal;
		}
	}

	.uiWizardPageSetInfo {
		border: 1px solid @borderColor;
		.border-radius(1px);
		.pageNodeContainer {
            float: none;
            @media (min-width: 768px) {
                width: 240px;
                float: left;
            }
			.uiTrees {
				max-height: 402px;
				overflow: auto;
				background: none;
				border: none;
				padding: 5px 10px;
			}
		}
		.selectedPageInfo {
            border-top: 1px solid @borderColor;
            min-height:412px;
            @media (min-width: 768px) {
                margin-left: 240px;
                border-left: 1px solid @borderColor;
                border-top: none;
            }

            .form-horizontal {
                padding: 15px;
            }
			.pageNodeInfo {
				background: @primaryBackground;
				padding: 8px 15px;
				border-bottom: 1px solid @borderColor;
				.label {
					background: none;
					color: @textColor!important;
					box-shadow: none;
					text-shadow: none;
					font-size: inherit;
                    padding: 0;
				}
			}

			.uiFormWithTitle {
				overflow: hidden;
				&> .title {
					background: @primaryBackgroundLight;
					border: none;
					box-shadow: none;
					padding: 8px 20px;
				}
			}
		}
		.NoPageSelecter .selectedPageInfo {
			margin-left: 0;
			border: none;
		}
	}

	.wizardControlBar {
		padding: 20px 0px 0;
		.stepNavigationBar {
			.btn {
				padding: 1px 7px;
			}
			.btn.active {
				color: @primaryColor;
				font-weight: bold;
			}
		}
	}

	.UIWizardPageSelectLayoutForm {
		background: @primaryBackgroundLight;
    	border: 1px solid @borderColor;
        @media (max-width: 767px) {
            border-left: none;
            overflow: visible;
        }
    	.uiItemSelector {
            padding: 0;
             @media (max-width: 767px) {
                    .itemDetail .title {
                        border-top: 1px solid @borderColor;
                }
            }
        }
		.itemListContainer {
			padding: 20px;
            @media (max-width: 767px) {
                border-left: 1px solid @borderColor;
            }
			.uiBox {
				margin: 0;
				.itemList {
					> li.selectedItem > a {
						color: @linkColor;
					}
				}
			}
			.itemList {
				height: 182px;
			}
		}
		.itemDetailList {
			background: @baseBackground;
			border-left: 1px solid @borderColor;
			.container {
				padding: 75px;
				width: auto;
				.tooltip {
					.tooltip-inner {
						max-width: 330px;
						white-space: nowrap;
		      		}
				}
			}
		}
    // Function set size for layouts
		.commonLayout(){
      		.size(125px, 90%);
			min-width: 185px;
      		background: url('@{images-path}/Container/ItemSelector.png') no-repeat center top transparent;
    	}
		.EmptyLayout {
      		.commonLayout;
			margin: auto;
		}

		.DashboardLayout {
			.commonLayout;
			margin: auto;
      		background-position: center -1500px;
		}

		.TwoColumnsLayout {
			.commonLayout;
			margin: auto;
      		background-position: center -1125px;
		}

		.ThreeColumnsLayout {
			.commonLayout;
			margin: auto;
      		background-position: center -1250px;
		}

		.TwoColumnsOneRowLayout {
			.commonLayout;
			margin: auto;
      		background-position: center -500px;
		}

		.TwoColumnsTwoRowsLayout {
			.commonLayout;
			margin: auto;
      		background-position: center -625px;
		}

		.OneRowsLayout {
			.commonLayout;
			margin: auto;
      		background-position: center -125px;
		}

		.TwoRowsLayout {
			.commonLayout;
			margin: auto;
      		background-position: center -250px;
		}

		.ThreeRowsLayout {
			.commonLayout;
			margin: auto;
      		background-position: center -375px;
		}

		.OneRowTwoColumnsLayout {
			.commonLayout;
			margin: auto;
      		background-position: center -1375px;
		}

		.TwoTabsLayout {
			.commonLayout;
			margin: auto;
      		background-position: center -1625px;
		}

		.ThreeTabsLayout {
			.commonLayout;
			margin: auto;
      		background-position: center -1750px;
		}

		.ThreeRowsTwoColumnsLayout {
			.commonLayout;
			margin: auto;
      		background-position: center -750px;
		}
	}
}