

@import "bootstrap";

@import "fontawesome/fontawesome";

@import "fontawesome/v4-shims";
@import "fontawesome/regular";

@import "fontawesome/solid";

@import "manager";

@import "redactor";
@import "pane_hover";
@import "vendor/select2";
@import "public/menu_item_link_contents";

@import "admin/qi";
@import "redactor_plugins/alignment";

$vert:rgba(143,193,46,0.9);


input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}


.big_icon{
  font-size:1.5em;
  display:inline-block;
  margin-right:3px;
  text-decoration:none;
  color:rgba(0,0,0,0.2);
  
  &.active{
    color:#ffd400;
  }
}
.done{
  color:green;
}

.fire{
  color:red;
}
.undone, .unfire{
  color:rgba(0,0,0,0.2);
}

.i_task_row{
  margin:10px 0;
  padding:0px 0;
  
  .icon{
    background:transparent !important;
  }
  .qi_pannel.padding{
    padding:2px;
    
    
  }
  td{
    border:0 !important;
    border:0 !important;
    vertical-align: middle !important;
  }
  
  table{
    margin:0;
  }
  
}
#edit_watcher_result{
  .inner{
    position:fixed;
    bottom:3px;

    left:3px;
    z-index:10;
    width:450px;
    
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
    padding:8px 12px;
    border:1px solid rgba(#856404, 0.1);
  
  }
}

.shiped{
  background:green;
}

.image_file_helper{
  
  background:rgba(255,255,255,0.8);
  border-radius:20px;
  border:1px solid rgba(0,0,0,0.2);
  padding:5px 10px;
  
}
.navbar{
  margin-bottom:0;
}
.home_slider_slide_css{
  border:1px solid black;
  border-left:10px solid black;
  padding:10px;
  margin:5px;
  position:relative;
  &.active{
    border-color:green;
  }
  .actions{
    position:absolute;
    top:10px;
    right:10px;
  }
  
}

#admin_nav{
border-radius:0px;
border:0;

.active{
  color:white;
  border-bottom:1px solid white;
}

}


span.preview{
img{
max-width:125px;
max-height:125px;
cursor:pointer;
}

}
img{

max-width:100%;
}

html {
  height: 100%;
  width: 100%;
  
}

body {

  width: 100%;
  font-family: 'Nunito Sans', sans-serif;
  background:#E9ECEE no-repeat fixed;
  background-size:100%;
  background-position:bottom center;
  padding-left:100px !important;
}


#tags .tag_label{
  i{ display:none;}
  
  &.active{
  
    background:rgba(0,136,204,1);
    color:white;
    i{ display:inline;}
  
  }
}

.set_tag{
display:none;
}

.tag_label{
  border-radius:11px;background:rgba(206,220,244,1);border:1px solid rgba(170,196,238,1);padding:2px 9px;display:inline-block;cursor:default;color:black;
  margin-bottom:5px;
}

.map_content_map img { 
  max-width: none;
}

#mapCanvas label { 
  width: auto; display:inline; 
} 

body.admin{

#artworks{
.artwork{
  float:left;width:250px;height:270px;margin:0px 10px 10px 0px;
  }

}




padding:0px;

.right{
float:right;

}

.icon{
//border:1px solid #0088cc;
display:inline-block;
padding:3px;
font-size:18px;
min-width: 30px;
text-align:center;
background:transparent;
color:rgba(0,0,0,0.8);

&:hover{

color:#0088cc;
text-decoration:none;
}


}
  
    #upload_details{
    display:none;
    .content{
    position:absolute;
    top:0px;
    left:0px;
    right:0px;
    bottom:0px;
        overflow:auto;
    
    }
    
    height:400px;
    width:800px;
    position:absolute;
    top:-400px;
    right:1em;

    background:white;
    box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);
    //background-color: @dropdownBackground;
    border: 1px solid #ccc; // Fallback for IE7-8
    //border: 1px solid @dropdownBorder;
    *border-right-width: 2px;
    *border-bottom-width: 2px;
    //.border-radius(6px);
    //.box-shadow(0 5px 10px rgba(0,0,0,.2));
    
    
    
    }
    #upload_details::before {

    content: '';
    display: inline-block;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;

    position: absolute;

    right: 215px;
    border-top: 7px solid rgba(0, 0, 0, 0.2);

    border-bottom: 0;
    bottom: -7px;

      
      
      
      
    }

    #upload_details::after {
    
    
  
      content: '';
      display: inline-block;
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
      
      position: absolute;

      right: 216px;
      border-top: 6px solid #ffffff;
      border-bottom: 0;
      bottom: -6px;

    }


  
  
  #toolbar-text{
  position:fixed;
  z-index:2;

  top:52px;
  left:0px;
  right:330px;
  
  
  }
  
  #flashs{
    position:fixed;
    bottom:0px;

    left:1em;
    min-width:600px;
    width:50%;
    z-index:3;

  }
  

  form .clearfix:before, form .clearfix:after {
    display: inline;
  }

  .error{
    color:red;
  
    input{
      border-color:red;
    }
  
    *{
      color:red;
    }
  }

  body.dragging, body.dragging * {
    cursor: move !important;

  }

  .dragged {
    position: absolute;
    opacity: 0.5;
    z-index: 2000;
  }

  ol.sortable li.placeholder {
    position: relative;
  }

  ol.sortable li.placeholder:before {
    position: absolute;

  }

  
    

  
  .placeholder{
    background:rgba(143,202,70,0.8);
    height:10px;
  }

  .prevv_folder{

    border-top:1px solid #999999;
    border-bottom:1px solid #999999;
    padding:8px 0px;

    .placeholder{
    height:0px;
    }
  
    &.active{
    background:rgba(143,202,70,0.8);

    }

  }


  #menu_item_breadcrumb{
    margin-bottom:20px;
    a.root{
      padding:9px 0px;
      
      display:inline-block;
      &.child:before{
        content:"> ";
      }
      
    }
    
    span, .child{
      padding:9px 0px;
      
      display:inline-block;
      
      &:before{
        content:"> ";
      }
    }
    
  }
  #sortable_menu_item{
    .menu_item_row{
      padding:4px 0px;
      border-top:1px solid rgba(240,240,240,1);
      
      .actions{
      text-align:right;

      }
  
    }
  
  
  
    .receptable{
      position:relative;
  
      .placeholder{
      position:absolute;
      top:0px;
      left:0px;
      right:0px;
      bottom:0px;
      height:auto;
      }

    }

  }
  
  #menu_item_informations{
  
  
  form{
  
  .preview{
  
  img{
  height:50px;
  
  }
  }
  }
  
  position:fixed;
  z-index:3;
  overflow:auto;
  box-shadow:rgba(0,0,0,1) 0px 0px 5px;
  margin-bottom:0px;
  top:52px;
  right:0px;
  width:330px;
  bottom:0px;
  background:white;
  .placeholder{
  display:inline-block;
  width:91px;
  height:91px;
  margin:0px;
}
  

  }
  

  
  .block_portlets{
    min-height:50px;
    padding:10px;
    border:1px dotted rgba(0,0,0,0.5);
  
    
  }

  .block_portlets_sortable{
  border:0px;
  
  }

  
  
  #menu_item_inspector_container{
  .panel{
  border-radius:0px;
  border-left:0px;
  border-right:0px;
  
  }
  .accordion{
    
    height:auto;
    
  }
    
    .accordion-group{
    border:0px;
    border-radius:0px;
    }
    
    
    .accordion-body{
    background:white;
  
    }
    .accordion-heading{
    border-radius:0px;
    border:0px;
    background:-webkit-linear-gradient(top, #222222, #111111);
    padding:0px;
    min-height:0px;
      a{
      padding:10px 20px;
      color:white;
      
      &:hover{
      text-decoration:none;
      }
      }
  
    }
    .inspector_handle{
    height:10px;
    width:100%;
    background:black;
    cursor:pointer;
    
    }
    
    .content_type{
    display:inline-block;
    img{height:50px;cursor:pointer;}
    
    }
  }
  
  .btn-toolbar{
  display:none;
  top:-35px;
  
  }
  
  
  #column_sliders{
  
  position:relative;
  
  .slider{
  position:absolute;
  top:0px;
  left:0px;
  width:100%;
  }
  
  .slider-selection{
  display:none !important;
  }
  
  .slider:not(:first-child){
    
    
    .slider-track{
    background:transparent;
    box-shadow:transparent 0px 0px 0px;
    }
  }
  
  
  .slider-handle{
  z-index:100;
  }
  
  }
  
  .html_content_form{

  
  


    #ace_editor_pre{
      position:relative;
      width:100%;
      height:400px;
      background:white;
      border:1px solid #353535;
  
    }
  


    

      &.large{
        position:fixed;
        top:0px;
        left:0px;
        bottom:0px;
        right:0px;
        background:white;
        z-index:2000 !important;
    
    
        #ace_editor_pre{
          position:absolute;
          top:10px;
          left:10px;
          bottom:50px;
          right:10px;
          width:inherit;
          height:inherit;
      
  
        }
      
        .action{
      
          position:absolute;
    
          bottom:15px;
          right:5px;
        
      
        }
    
    
    
  
      }

  
  }
  
  

  .image_square{
  display:inline-block;
    padding:5px;
    margin:5px;
    position:relative;
    border : 1px solid rgb(230,230,230);

    background:white;
    
    .actions{
    display:none;
    position:absolute;
    top:0px;
    right:0px;
    }
  }

  .image_square .img{
    text-align:center;
    width:150px;
    height:150px;
    margin:0px;
    background-position:center center;
    background-repeat:no-repeat;

    background-size: contain;
  
  
  
  }

  .image_square:hover .actions{
    display:block;
    border:none;
    padding:0px;
    margin:0px;


  
  }

  .image_square:hover .actions:hover{

    opacity:1;
  
  }
  
  
  
}

.event_date_form{
  background:rgba(143,193,46,0.9);
  margin:0px -10px 20px -10px;
  padding:10px;
  
  color:black;
  
  p{
    line-height:35px;
  }
  
  label{
  display:inline;
  }
  
}


.field_with_suppr{
  display:inline-block;
  position:relative;
  
  .suppr{

    display:block;
    position:absolute;
    top:7px;
    right:5px;
    img{
      cursor:pointer;
    }

  }
  
}

.periodes_form .field, .jockers_form .field{
border:1px solid #5b94c7;
margin:0.5em;
}




@media print {
  .visible-print  { display: inherit !important; }
  .hidden-print   { display: none !important; }
  
  
  
  
}

.portlet_placeholder{
background:lighten($vert,40);
cursor:pointer;
padding:3px;
text-align:center;
i{
font-size:17px;
color:lighten($vert,60);
}
&:hover{
background:darken($vert,0);

i{

}
}

}
.portlet{
cursor:pointer;
box-sizing: border-box;
position:relative;
border:1px solid rgba(0,0,0,0.3);
margin:10px 5px;
padding:5px;
&.portlet_block_content{
  border:0;
  padding:0;
}

.portlet_label{
  position:absolute;
  top:0;
  right:0;
  font-size:12px;
  background:rgba(0,0,0,0.4);
  color:white;
  padding:2px 4px;
  border-radius:0 0px 0 5px;
  &:hover{
    z-index:100;
    background:rgba(0,0,0,1);
  }
  
}
&.active{
border:3px solid rgba(129,155,237,1);
.redactor-editor{
background:rgba(225,237,251,1);

}
}
&.portlet_text_content{
//border:0;
}

&.move{
opacity:0.5;
}

}





.block_portlets{
.portlet{
min-height:50px;
}

.portlet_video_content{

  .video_thumb{
    width:300px;
    height:200px;
    margin:auto;
    .play_button{
      text-align:center;
      color:white;
      font-size:50px;
      padding-top:70px;
    }
    
  }
}

}

#menu_item_informations{
  #collapse3{

  position:relative;
  padding-bottom:50px;
  }


  #element_form_action{

  position:fixed;
  width:330px;
  right:0;
  bottom:0;
  border-top:solid rgba(221,221,221,1) 1px;

  .portlet_handle, .trash, .save{
  border-radius:0;
  border:0;
  margin:0;
  display:block;
  float:left;
  padding:10px 12px;

  }
  
  .portlet_handle{
  width:35%;
  
  .cancel_message{
  display:none;
  }
  }
  .trash{
  width:20%;
  }
  .save{
  width:45%;
  }
  

  }
  
}




.row{

margin:auto;

display:block;


&:after{
content: "";
  display: table;
  clear: both;

}

.columns{

display:block;

box-sizing: border-box;
float:left;
display:inline-block;

&.span_12{
width:100%;

}

&.span_11{
width:100/12*11;

}
&.span_10{
width:percentage(1/12*10);

}
&.span_9{
width:percentage(1/12*9);

}
&.span_8{
width:percentage(1/12*8);

}
&.span_7{
width:percentage(1/12*7);

}

&.span_6{
width:percentage(1/12*6);

}
&.span_5{
width:percentage(1/12*5);

}
&.span_4{
width:percentage(1/12*4);

}
&.span_3{
width:percentage(1/12*3);

}
&.span_2{
width:percentage(1/12*2);

}

&.span_1{
width:percentage(1/12*1);

}


}
}
#menu_item_informations{
h4{
color: #333333;
background-color: whitesmoke;
border:1px solid #dddddd;
padding:10px 15px;
font-size:16px;
cursor:pointer;
border-left:0px;
border-right:0px;
}

.panel{
padding:0 10px;
}
}
#collapse3{
height:auto !important;

}


h1{
  
  font-size: 28px !important;
  margin-top: 21px;
  margin-bottom: 10.5px
}

.clear{
  clear:both;
}

.formtastic{
  .form-wrapper{
    .row{
      .col-xs-1, .col-xs-2, .col-xs-3{
        width:auto;
        margin:0;
        padding:0px 5px;
      }
    }
    
  }
  
  
}



#right_bar{
  background:rgba(0,0,0,0.8);
  position:fixed;
	box-shadow:0 0 5px rgba(0,0,0,0.6);
  top:0;
  left:0;
  bottom:0;
  width:100px;
  padding:10px 0;
	padding-top:0;
  
  z-index:4;
	
	
	#logo-basic{
		display:block;
		max-width:70%;
		margin:auto ;
		margin-top:10px;
		margin-bottom:-5px;
	}
	
	
	#logo{
	  display:block;
		//background:white;
	  img{
			//background:white;
	    display:block;
	    margin:auto;
	    max-width:80px;
			
			padding:10px;
			margin-bottom:10px;
			//padding-right:5px;
	    //padding-top:0;
	  }
	}
	
  .bottom{
    position:absolute;
    bottom:20px;
    left:0;
    right:0;
    
  }
  .element{
    .cat{
      padding:7px 0;
    }
    display:block;
    position:relative;
    text-align:center;
    font-size:11px;
    i{
      position:relative;
      display:block;
      font-size:30px;
      line-height:40px;
    }
    
    a{
      color:rgba(white, 0.6);
      display:block;
      padding:0px 0;
      
      
      &:hover, .active, &:focus{
        text-decoration:none;
        color:white;
      }
    }
  }
  
  
}


.ui-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    float: left;
    display: none;
    min-width: 160px;   
    padding: 4px 0;
    margin: 0 0 10px 25px;
    list-style: none;
    background-color: #ffffff;
    border-color: #ccc;
    border-color: rgba(0, 0, 0, 0.2);
    border-style: solid;
    border-width: 1px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box;
    *border-right-width: 2px;
    *border-bottom-width: 2px;
}

.ui-menu-item > a.ui-corner-all {
    display: block;
    padding: 3px 15px;
    clear: both;
    font-weight: normal;
    line-height: 18px;
    color: #555555;
    white-space: nowrap;
    text-decoration: none;
}

.ui-state-hover, .ui-state-active {
    color: #ffffff;
    text-decoration: none;
    background-color: #0088cc;
    border-radius: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    background-image: none;
}

.tdr{
  text-align:right !important;
  padding-left:5px;
}

.p_customer_fin{
  border:3px solid rgba(0,0,0,0.6);
}

  





$big_colors :(
clients:rgba(1,102,153	,1),
ventes : #518889,
todos : #f8b411,
tournees:#786455,
stocks:#718197,
documents : rgba(217, 121, 65, 1),
payments : #ED6353,
statistiques : #6C5B7B,
export_compta : #7d308e

);


@each $admin_space, $color in $big_colors {
  #body_#{$admin_space}{
    #admin_nav{
      //background:$big_color_#{$admin_space} !important;
      background-color: $color !important;
    }
  
  }
  #big_cat_#{$admin_space}.active, #big_cat_#{$admin_space}:hover{
    //color:$big_color_#{$admin_space} !important;
    //background-color: $color !important;
    color:white !important;
		border-right:4px solid $color;
    
  }
  
  #big_cat_#{$admin_space}{
    //color:$big_color_#{$admin_space} !important;
    color: rgba(white, 0.5) !important;
    border-right:4px solid transparent;
  }
  
  .bgbd-#{$admin_space}{
    background-color: $color !important;
    border-color: $color !important;
  }
  
}



.table-striped > tbody > tr:nth-child(odd) > td, .table-striped tr:nth-child(odd) td, .table-striped tr:nth-child(odd) th{

//background:rgba(235,244,250,1) ;

}
.table-striped {

  tr:nth-child(odd){
    th{
      background:transparent !important;
  
    }
  }  
}

.table-striped{

  tr:nth-child(odd) {
  td, th{
  background:#f9f9fe ;
  }}
  
  tr{
    th{
      background:transparent !important;
    
    }
  }

}


.table-hover > tbody > tr:hover{
  td{

  background:#f1f1fe ;}

}




.round{
  width:10px;
  height:10px;
  display:inline-block;
  border-radius:50%;
  
  &.green{
  background:green;}
  &.orange{
  background:orange}
  &.red{
  background:red}

}


.en-tete-table{
  table{
    border-collapse:collapse;
  }
  td,th{
    border:1px solid black;
    padding:3px 5px;
  }
}

#admin_nav{
border-radius:0px;
position:fixed;
right:0;
left:100px;
top:0;
z-index:10;
.active{
  color:white;
  border-bottom:1px solid white;
}

}

.qi_padding{
  padding:0 20px;
  
}

.qi_header{
  position:fixed;
  z-index:3;
  box-shadow:0 0 5px rgba(0,0,0,0.2);
  top:50px;
  right:0;
  left:100px;
  min-height:48px;
}

.p_customer_particulars{
  padding-top:30px;
  vertical-align:top;
  white-space: nowrap;
  overflow:auto;
  
  .particular_apercu{
    vertical-align:top;
    display:inline-block;
    margin: 0 10px;
    width:300px;
    white-space: normal;
    margin-bottom:20px;
    
    
  }
  
  .qi_pannel{
    padding:10px;
  }
  
  .prim{
    .qi_pannel{
      border-top:4px solid green;
      padding-top:6px;
    }
  }
  
}




.bottom_fixed{
  
  .qi_pagination{
    border:0;
    padding:0;
    margin:0;
    text-align:left;
    padding-left:20px;
    
  }
  position:fixed;
  bottom:0;
  left:100px;
  right:0;
  box-shadow:0 0 5px rgba(0,0,0,0.2);
  background:white;
  padding:20px;
}


td.actions{
  
  text-align:right;
}


td.numeraire, th.numeraire{
  white-space: nowrap;
  text-align:right;
}





.qi_search_row{
	position:relative;
	
	padding:20px;
	padding-top:10px;
	background:#dbe4ea;
	padding-bottom:40px;
	
	table{
		td,th{
			padding: 3px 0;
			padding-right:5px;
		}
		
	}
	.results_count{
		position:absolute;
		color:rgba(0,0,0,0.5);
		font-size:12px;
		bottom:12px;
		left:20px;
	}
	.btn-qi-search{
		background:#6bbdf6;
		border-color:#6bbdf6;
		color:white;
		position:absolute;
		
		bottom:10px;
		right:20px;
		
	}
	
}



.search_label{
  width:110px;
  text-align:right;
  padding-right:5px;
}
.search_op{
  width:25px;
  text-align:center;
  color:rgba(0,0,0,0.5);
}

.search_number_input{
  width:100px;
}

.table-area{
	position:relative;
	padding-top:15px;
	
	
	.table{
		background:white;
	}
	.zoom{
		display:block;
		position:absolute;
		top:5px;
		right:5px;
		
	}
	.unzoom{
		display:none;
		
		
		
	}
	
	.table-area-inner{
		
		
	}
	
	td, th{
		 white-space: nowrap;
		
	}
	
} 
.large_table_area{
	position:fixed;
	top:0;
	left:0;
	right:0;
	bottom:0;
	background:white;
	z-index:100;
	padding:20px;
	overflow:auto;
	.table-area-inner{

	}
	td, th{
		 white-space: nowrap;
		
	}
	.zoom{
		display:none;
	}
	.unzoom{
		display:block;
		position:absolute;
		top:5px;
		right:5px;
		
		
		
	}
	
}

.dyn_table_container{
	td, th{
		 white-space: nowrap;
		
	}
	
}

.new_table_container{
	
	padding:15px 30px !important;
}


.clone-column-table-wrap{
  box-shadow: 15px 0 15px -18px rgba(0,0,0,0.3);
}

.DTFC_LeftBodyWrapper{
  box-shadow: 15px 0 15px -14px rgba(0,0,0,0.3);
  border-right:2px solid white;
}


.DTFC_RightBodyWrapper{
  box-shadow: -15px 0 15px -14px rgba(0,0,0,0.3);
  border-right:2px solid white;
}

.dataTables_wrapper{
  .col-sm-12{
    padding:0;
  }
  
  th{
      
  }
  .table{
    td{
     
      
    }
  }
}




.form-table{
  width:100%;
  td{
    vertical-align:top;
  }
}


.large_actions{
  min-height:150px;
  .actions{
    position:fixed;
    z-index: 3;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    bottom: 0px;
    right: 0;
    left: 100px;
    padding:10px 30px;
    text-align:right;
    background:rgba(white,0.9);
  }
}

form{
  
  .qi_pannel.qi_plain{
    background-color:rgba(white,0.7);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    
  }
  
}

.ui-helper-hidden-accessible{
  display:none;
}

.qi_form_header{
  padding:0 20px;
  margin:0;
  margin-bottom:-10px;
  
}

.qi_form_sub_link{
  padding:0 20px;
  margin:0;
  margin-top:-10px;
  
}


.qi_tab_content{
  border:1px solid #ddd;
  border-top:0;
  .qi_tab_header{
    padding:10px 20px;
    h3{
      padding:0;
      margin:0;
    }
    
  }
  min-height:1000px;
  margin-bottom:300px;
  background:white;
  
  
}
