/* +--------------------------------------------------------------------------+
// ? 2002-2007 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: portal.css,v 1.10 2022/03/11 13:13:45 jparis Exp $ */

.clear-btn {
	background-color: #FF5722 !important;
	font-size: 12px !important;
	font-weight: 500 !important;
}

.clear-btn:hover {
	background-color: #ff774c !important;
}

/* ======================================================================== */
/* Portail                                                                  */
/* ======================================================================== */

.cursor-pointer {
	cursor: pointer;
}

.cursor-default {
	cursor: default;
}

#portal {
    position: relative;
    height: 80vh;
    display: flex;
    gap: 15px
}

#portal #banner {
    width: 25%;
    overflow: hidden;
} 

#portal #container {
    width: 100%;
    min-height: 100%;
    display: flex;
	flex-direction: column;
	row-gap: 5px;
} 

#portal #container #nav {
    background: #f7f7f7;
    height: 5%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#portal #container #page {
    height: 95%;
    padding: 20px;
	overflow-y: auto;
	overflow-x: hidden;
}

#portal #container #nav,
#portal #container #page {
    border: 1px solid #E5E5E5;
}

/* ======================================================================== */
/* Accordeon                                                                */
/* ======================================================================== */

.portal-accordion {
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.portal-accordion-title {	
    border: 1px solid #E5E5E5;
    overflow: hidden;
}

.portal-accordion-icon {
	float: right;
	font-size: 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 5px;
}

.portal-accordion-icon .portal-accordion-icon-add {
	padding-left: 5px;
	padding-right: 5px;
	font-size: 1.15em;
	line-height: 24px;
	cursor: pointer;
}

.portal-accordion-item {
	overflow: hidden;	
}

.portal-accordion-item.active {
	flex: 1;
    background: #f1efef;
    display: flex;
    flex-direction: column;
}

.portal-accordion-item.active > portal-accordion-content {
	flex: 1;
}

.portal-accordion-item.active .portal-accordion-title {
	box-shadow: 0px 3px 1px 0px rgba(0, 0, 0, 0.16);
}

.portal-accordion-title {
	padding: 5px 15px;
	background: #f7f7f7;
	font-size: 18px;
	line-height: 24px;
	border-radius: 4px;
	margin: 0px !important;
	margin-bottom: 5px !important;
	box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.03);
}

.portal-accordion-content {
	background: #f1efef;
	height: 0px;
	overflow-y: auto;
	overflow-x: hidden;
}

.portal-accordion-item .portal-accordion-content {
	padding-right: 0px;
	min-height: 0px;
	transition: min-height 0.3s ease;
}

.portal-accordion-item .portal-accordion-content.active {
	padding-right: 10px;
	height: 90%;
}

.portal-accordion-sub-header.is-entity {	
	cursor: pointer;
}
.portal-accordion-sub-header.is-tag {	
	cursor: default;
	text-decoration: underline;
}

.portal-accordion-sub-header {
	display: flex;
	justify-content: space-between;
	gap: 10px;	
	transition: background-color 0.2s ease;
}
.portal-accordion-sub-header.is-entity .active,
.portal-accordion-sub-header.is-entity:hover {
	background-color: #fff0c1;
}

.portal-accordion-sub-header .portal-accordion-sub-title {
	font-size: 15px;
	line-height: 24px;
	margin: 0px !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.portal-accordion-sub-header.is-edited .portal-accordion-sub-title {
	font-weight: 430;
}

.portal-accordion-sub-header.is-edited .portal-accordion-icon  {
	color: #d96060;
}

.portal-accordion-sub-content > .portal-accordion-sub-content:last-child {
	padding-bottom: 0px;
}

.portal-accordion-item .portal-accordion-sub-content > .portal-accordion-sub-content {
	border-left: 1px solid #CECECE;
}

.portal-accordion-sub-content.active {
	padding: 0px 0px 15px 15px;
}

.portal-icon.icon-edited::before {
	font-weight: bold;
	content: "M";
}

.portal-accordion-filters {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 5px;
	background-color: #f1efef;	
}

.portal-accordion-filters,
.portal-accordion-filters .portal-accordion-filter {
	width: 100%;
}

.portal-accordion-filters select.portal-accordion-filter {
	border: 1px solid #E5E5E5;
	border-radius: 4px;
}


/* ======================================================================== */
/* Componants List                                                          */
/* ======================================================================== */

.portal-list-title {
	text-decoration: underline;
}

.portal-list-container {
	flex-wrap: wrap;
	display: flex;
	width: 100%;
	gap: 15px;
}

.portal-list-item {
	padding: 5px 15px;
	background-color: #f7f7f7;
	border-radius: 4px;
	flex: 1 1 auto;
	max-width: 250px;
	text-align: center;
	overflow: hidden;
	box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.16);
	transition: box-shadow 0.3s ease;
}

.portal-list-item:hover {
	box-shadow: 1px 4px 5px 0px rgb(0 0 0 / 16%);
}

.portal-list-item-title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.portal-nav {
	display: flex;
	gap: 5px;
	justify-content: start;
	height: 100%;
}


/* ======================================================================== */
/* Navigation                                                               */
/* ======================================================================== */

.portal-nav-item {
	position: relative;
}

.portal-nav-item .active {
    color: #74a3cf !important;
    font-weight: 450;
}

.portal-nav-item .active::after {
    content: "";
	display: block;
	border-bottom: solid 3px #74a3cf;
	position: absolute;
	width: 100%;
	bottom: 0;
	left: 0;
	transition: all 0.1s ease-out 0s;
}

.portal-nav-item-title {
    color: #515151 !important;
	margin: 0px !important;	
	padding: 5px 15px;
	line-height: 24px;
}

.portal-nav-item-title:hover {
	cursor: pointer;
    color: #74a3cf !important;
}


/* ======================================================================== */
/* Alert D'erreur                                                           */
/* ======================================================================== */

.portal-error {
	background: #fff1f0;
	color: #d85030;
	padding: 10px;
	margin-bottom: 15px;
	border: 1px solid rgba(216,80,48,0.3);
	border-radius: 4px;
	display: flex;
	justify-content: space-between;
}

.portal-error p {
	margin: 0px;
}

.portal-error .close {
	cursor: pointer;
}

/* ======================================================================== */
/* Formulaire                                                               */
/* ======================================================================== */

.page-form {
	position: relative;
}

.portal-form-group-clear,
.portal-form-group-btn {
	display: flex;
	justify-content: end;	
}

.portal-form-group {
	padding: 5px;
}

.portal-form-group .portal-form-group-title  {
	display: block;
}

.portal-form-buttons {
	margin-top: 5%;
}

.portal-form-buttons .left {
	float: left;
}

.portal-form-buttons .right {
	float: right;
}

.delete {
	background: #F04C1A !important;
}

/* ======================================================================== */
/* Formulaire d'un Modèle                                                   */
/* ======================================================================== */

.portal-page-list-add {
	height: 20%;
	overflow-y: auto;
	overflow-x: hidden;	
}

.portal-page-list-add,
.portal-page-list-container {
	padding-left: 10px;
}

/* ======================================================================== */
/* Loader			                                                        */
/* ======================================================================== */

.portal-loader {	
	position: fixed;
	width: 100%;
	height: 100%;
	background-color: #e3e3e36e;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: wait;
	z-index: 990; 
	top: 0;
	left: 0;
}

.portal-loader-container {	
	text-align: center;
	color: #74a3cf;
}

/* ======================================================================== */
/* Modules			                                                        */
/* ======================================================================== */

.portal-module {
	cursor: pointer;	
}

.portal-module:hover {
	color: #74a3cf;
	background-color: #fff0c1;
}

/* ======================================================================== */
/* Cadres			                                                        */
/* ======================================================================== */

#cms_build_container form {
	width: 100% !important;
}

.classement {
	position: absolute;
	background-color: white;
	padding: 15px;
	border: 2px solid #E5E5E5;
}

/* ======================================================================== */
/* Layout			                                                        */
/* ======================================================================== */

.portal-layout {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.portal-layout .menu {
	position: sticky;
	top: -20px;
	background-color: white;
	padding: 5px;
	padding-top: 10px;
	margin: 5px;
	display: flex;
	gap: 5px;
	z-index: 3;
}

.portal-layout .menu * {
	width: 100%;
}

.portal-layout-container {
	display: flex;
	justify-content: center;	
}

.portal-layout-container > .portal-zone {
	width: 75%;
	border: 0px;
}

.portal-layout,
.portal-zone-container {
	width: 100%;
}

.portal-zone {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 0px 5px 5px 5px;
}

.portal-frame {
	padding: 5px;
}

.portal-zone-menu {
	display: flex;
	justify-content: space-between;
	padding: 5px;
}

.portal-frame-menu {
	display: flex;
	justify-content: space-between;
	align-content: center;
	align-items: center;
}
.portal-frame-menu .title {
	margin: 0px;
	margin-left: 15px;	
}

.portal-frame-menu .parameters,
.portal-zone-menu .parameters {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.parameters .classes-parameters,
.parameters .global-parameters {
	display: flex;
	justify-content: end;
	gap: 10px;
}
.parameters .classes-list {
	display: flex;
	justify-content: end;
	flex-wrap: wrap;
	display: flex;
	width: 65%;
	gap: 6px;
}

.parameters .classes-parameters {
	display: flex;
	flex-direction: column;
	align-items: end;
}

.portal-zone-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.portal-zone,
.portal-frame {
	width: 100%;
}

.portal-zone {	
	border: 1px solid #6DBBBF;
}

.portal-frame {
	border: 1px solid #E65A5A;	
}

.portal-badge-add, 
.portal-badge {
	box-sizing: border-box;
	min-width: 22px;
	height: 22px;
	padding-left: 5px;
	color: #fff;
	font-size: 0.875rem;
	display: inline-flex;
	background-color: #74a3cf;
	justify-content: center;
	align-items: center;
	gap: 5px;
	cursor: default;
}

.portal-badge-add {
	cursor: pointer;	
}

.portal-badge .remove {
	height: 100%;
	display: flex;
	align-items: center;
}

.portal-badge > .fa {
	padding-left: 5px;
	padding-right: 5px;
	border-left: 1px solid #8db6dd;
	cursor: pointer;
}

.portal-badge > .remove:hover {
	background-color: #6b97bf;
}

.add-classes {
	display: flex;
	align-items: center;
	justify-content: end;
	width: 100%;
}

.add-classes-container-input {
	width: 100%;	
	position: relative;
}

.add-classes-container-input form {
	margin: 0;
	padding: 0;
	background: 0;
	border: 0;	
}

.add-classes-input {
	margin: 0;
	width: 100%;
}

.add-classes-close {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	width: 5%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #74a3cf;
	color: white;
	cursor: pointer;
}

.portal-zone-hidden {
	width: 31px;
	padding: 0px !important;
}

.portal-frame,
.portal-zone {
    position: relative;
}

.content-background {
    position: absolute;
    display: block;
    z-index: 1;
    background-color: rgba(249, 249, 249, 0.65);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hidden-btn {
    position: relative;
    z-index: 2;
}
