/**************************************************************************************
******* This CSS file is used for all the rules that define the layout structure 
***************************************************************************************/
body {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Helper classes */
/* Flex-box */
.flex{
    display:flex
}
.flex.center{
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}
.container-flex_column{
    display: flex;
    flex-direction: column;
}
.container-flex_row{
    display: flex;
    flex-direction: row;
}
.flex-1{
    flex: 1 0 1px;
}
.align-center{
    align-items: center;
}
.align-baseline{
    align-items: baseline;
}
.justify-center{
    justify-content: center;
}
.overflow-hidden{
    overflow: hidden;
}
.scroll-h{
    overflow: hidden;
    overflow-x: auto;
}
.scroll-v{
    overflow: hidden;
    overflow-y: auto;
}
/* Helper classes:end */

#top-menu{
    flex: 0 0 30px;
}

.app{
    display: flex;
    flex-direction: row;  
    flex: 1 0 200px;  
}

#assetsTree{
    display: flex;
    flex-direction: column;
    flex: 0 0 40px;

    border-right: 1px solid #ddd;
    background: #FFFFFF;
}

/* Expand AssetsTree on mousehover */
#assetsTree.thin,
#assetsTree.thin.forceClose:hover{
    position: fixed;
    width: 40px;
    z-index: 99;
    height: 100%;  
    overflow: hidden; /* Force to hide all elements in the AssetsTree panel */         
}
#assetsTree.thin:hover,
#assetsTree.thin.hover{
    width: auto;
    box-shadow: 8px 0px 10px rgb(0 0 0 / 4%); 
    z-index: 999;
}
#assetsTree.thin:hover .assetsTree-container,
#assetsTree.thin.hover .assetsTree-container{
    opacity: 1;
    margin-left: 0;
    transition: all .2s;
    transition-delay: .25s;
}

#assetsTree.thin .assetsTree-container{
    opacity: 0;
    margin-left: -500px;
    transition: all .2s;
}

#assetsTree.large{
    position: relative;   
}

.assetstree-title{
    position: absolute; /* This attribute is required to avoid misalignment error on toggle effect */          
    opacity: 0;      
}
aside.thin:hover .assetstree-title,
aside.thin.hover .assetstree-title,
aside.large .assetstree-title{         
    opacity: 1;    
    transition-delay: .35s;
}


.assetsTree-header{
    flex: 0 0 50px;
    
    display: flex;
    padding: 10px;
}
.assetsTree-filters{
    flex: 0 0 40px;
}
.assetsTree-contents{
    flex: 1 1 200px;
    overflow: auto;

    padding-bottom: 40px;
}

#workarea{
    display: flex;
    flex-direction: column;
    flex: 1 0 1px;
    margin-left: 40px;
}
/* Add margin to the left when AssetsTree is closed */
#workarea.assetPanelExpanded{
    margin-left: 0px;
}
.asset-toolbar{
    flex: 0 0 40px;
}
.page{
    display: flex;
    flex-direction: column;
    flex: 1 0 200px;
}
en-page-header{
    flex: 0 0 40px;
}
.page-container{
    position: relative;
    flex: 1 0 200px;
    overflow: auto;

    padding: 20px 10px;
}
/* EBU-5960 */
.page-container.dashboard,
.page-container.dashboard .flex-grid{
    overflow: visible;
}

/* Remove flex-box for printing widgets (EBU-5852) */
.report-template .panel-report .report-disable-flex{
    display: block;
    flex-direction: unset;
    flex: unset;
    height: auto !important;
}

.report-template .panel-report .report-disable-flex>.printableHighChartDiv{
    flex: unset;
    width: 100%;
    height: 100%;
}

.report-template .cell-actions>.avatar,
.report-template .cell-actions>.cell-actions-group{
    display: none !important;
}

.report-template .cell-actions>.cell-content{
    white-space: unset;
}

.report-template en-sortable-header>.sortable>i.icon{
    display: none;
}






















/***** 
* Container for a layout with the InfoPanel on the right side
******/
.workarea-split {
	display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}
.split-left{
	flex: 1;

    overflow: hidden;
    overflow-y: auto;
}
.split-right{
	padding: 10px 15px;
    flex: 1;
    max-width: 25%;
    min-width: 350px;

    overflow: hidden;
    overflow-y: auto;
}
.split-right.collapsed{
	display: none;
}


/*****
* Info Panle
******/

#info-panel .heading{
	margin-top: -10px;
}

#info-panel .heading h4{
	font-weight: 500;
}

.icon-box{
	padding: 10px;
    padding-left: 80px;
    float: left;
    width: 100%;
    position: relative;
}

.icon-box .fa{
	color: #333;
    position: absolute;
    left: 5px;
}

.icon-box p{
	margin-bottom: 5px;
	font-size: 12px;
}

.icon-box p .text-capitalize{
	font-weight: 700;
}

.asset-details .asset-actions{
	border-left: 1px solid #ddd;
}

.asset-details .asset-actions .btn{
	padding: 10px 25px;
}

#info-panel .asset-name{
	font-weight: 500;   
    line-height: 1.3;
	max-width: 290px;
}

#info-panel .asset-info{
	list-style-type: none;
	padding: 15px 10px;
    border-top: 1px solid #ddd;
}


#info-panel .asset-info p{
	font-size: 13px;
    padding-left: 40%;
    position: relative;
	min-height: 25px;
}
#info-panel .asset-info p .info-lable{
	width: 40%;
    text-transform: capitalize;
    color: #777;
    display: block;
    position: absolute;
    left: 0;
}


