/****  BASIC ELEMENTS  ***********************************/


html,body{
    overflow: hidden; 
    height  : 100%; 
    margin  : 0; 
    padding : 0; 
}

body{
    color: #333;
    background: #FFF; 
    font: normal 1em/1.4 sans-serif;
    display: box;
    box-orient: vertical;
    box-flex: 1;
}

a                { color: #333; }
a:hover          { color: #000; }
a:active         { color: #800; }
a:visited        { color: #333; }
a:visited:hover  { color: #000; }
a:visited:active { color: #800; }

a { text-decoration: none; }
li{ list-style: none; }
.center{ text-align: center; }

button{border:none;}


/****  HEADER / FOOTER  **********************************/

header{
	overflow     : hidden;
	border-top   : 1px solid #737373;
	border-bottom: 1px solid #292929;
	background   : linear-gradient(top,#505050,#1b1b1b);
}

#app-name{
	display    : inline-block;
	float      : left;
	width      : 228px;
	margin     : 0;
	padding    : 4px 4px 2px;
	color      : #c8c8c8;
	font-size  : 1.2em;
	font-weight: bold;
	text-shadow: 0 -1px 1px #000;
}

#app-name a 			  { color: #c8c8c8; }
#app-name a:hover		  { color: #ddd; }
#app-name a:visited		  { color: #c8c8c8; }
#app-name a:visited:hover { color: #ddd; }

#window-title{
	float      : right;
	display    : inline-block;
	margin     : 8px 10px 0 0;
	color      : #c8c8c8;
	font-weight: normal;
	text-shadow: 0 -1px 1px #000;
}


footer{
	clear        : both;
	border-top   : 1px solid black;
	border-bottom: 1px solid black;
	background   : linear-gradient(#505050,#1b1b1b);
	box-shadow   : inset 0 1px 0 #6E6E6E,0 2px 2px rgba(0, 0, 0, 0.4);
}

#statusbar{
	display    : inline-block;
	float      : left;
	margin     : 6px 10px;
	padding    : 0;
	color      : #aaa;
	font-size  : 0.7em;
	font-weight: normal;
}




/****  CONTROLS  *************************************/

button{
	display 		  : inline-block;
	padding 		  : 5px 14px 6px;
	color 			  : #444;
	cursor 			  : pointer;
	font-size 		  : 0.8em;
	line-height 	  : normal;
	border 			  : 1px solid #CCC;
	border-radius 	  : 4px;
	border-color	  : rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
	background-color  : #CCC;
	background 		  : -webkit-linear-gradient(#EEE, #CCC);
	box-shadow        : inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 2px rgba(0,0,0,0.05);
	text-shadow		  : 0 -1px 0 rgba(0,0,0,0.25);
	/*-webkit-transition: 0.1s linear all;*/
}

button:hover{
	color:#000;
    /*opacity: .9;*/
}

button:active{
	color:#800;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
    /*border:1px solid #888;*/
}

button.blue{
	color 			  : #eee;
	background-color  : #0064CD;
	background 		  : -webkit-linear-gradient(#049CDB, #0064CD);
}

button.blue:hover{
	color:#fff;
    /*opacity: .9;*/
}


/*---- HOME BUTTON ----*/

home{
	float		 : left;
    display      : inline-block;
    width		 : 34px;
    margin       : 4px;
    padding      : 2px 0 0;
    line-height  : 1.4;
    color        : #AAA;
    cursor       : pointer;
    text-align   : center;
    text-shadow  : 0 -1px 1px rgba(0,0,0,0.8);
    border       : 1px solid #222;
    border-bottom: 1px solid #444;
    border-radius: 6px;
    background   : -webkit-linear-gradient(#555,#222);
	box-shadow   : inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 2px rgba(0,0,0,0.05);
}

home:hover{
    color     : #EEE;
    background: -webkit-linear-gradient(#505050,#202020);
}

home:active{
    color: #CCC;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
}

back{
    float        : left;
    display      : inline-block;
    visibility   : hidden;
    width        : 34px;
    margin       : 4px;
    padding      : 2px 0 0;
    line-height  : 1.4;
    color        : #AAA;
    cursor       : pointer;
    text-align   : center;
    text-shadow  : 0 -1px 1px rgba(0,0,0,0.8);
    border       : 1px solid #222;
    border-bottom: 1px solid #444;
    border-radius: 6px;
    background   : -webkit-linear-gradient(#555,#222);
    box-shadow   : inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 2px rgba(0,0,0,0.05);
}

back:hover{
    color     : #EEE;
    background: -webkit-linear-gradient(#505050,#202020);
}

back:active{
    color: #CCC;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
}


/*---- TOOLBAR ----*/

toolbar{
	display     : inline-block;
	float       : left;
	margin-left : 0px;
}

toolbar button{
    display      : inline-block;
    margin-top   : 4px;
    padding      : 4px 20px;
    line-height  : 1.4;
    cursor       : pointer;
    color        : #AAA;
    border       : 1px solid #222;
    border-bottom: 1px solid #444;
    border-radius: 6px;
    background   : -webkit-linear-gradient(#555,#222);
    text-shadow  : 0 -1px 1px #000;
	box-shadow   : inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 2px rgba(0,0,0,0.05);
}

toolbar button:hover{
    color     : #EEE;
    background: linear-gradient(#505050,#202020);
}

toolbar button:active{
    color: #CCC;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
}


toolbar button.blue{
    color             : #eee;
    background-color  : #0064CD;
    background        : -webkit-linear-gradient(#049CDB, #0064CD);
}

toolbar button.blue:hover{
    /*opacity: .9;*/
    color:#fff;
    background        : -webkit-linear-gradient(#049cdb, #0064cd);
}


/*---- NAVBAR ----*/

navbar{
	display           : block;
	overflow          : hidden;
	margin            : 0;
	padding           : 0;
	background        : #ddd;
	border-bottom     : 1px solid #468;
	-webkit-box-sizing: border-box;

}

navbar button{
    display      : inline-block;
    float		 : left;
    width        : 80px;
    height       : 50px;
    margin       : 0;
    padding		 : 0;
    color        : #048;
    cursor 		 : pointer;
    text-align   : center;
    font-size    : 0.7em;
    border-radius: 0;
    border-left  : 1px solid #d4e4ef;
    border-right : 1px solid #86aecc;
    border-bottom: 1px solid #8ac;
    background   :-webkit-linear-gradient(#d4e4ef,#86aecc);
    -webkit-box-sizing: border-box;
}

navbar button i{
    display:block;
/*
    width:24px;
    height:24px;
    margin 0 auto;
*/
	margin:0;
    padding:0;    
    text-align:center;
    border:none;
    outline:none;
    font-size:1.8em;
}
navbar button b{
	margin:0;
	padding:0;
	font-weight:normal;
	font-size:0.9em;
}

navbar button:hover  { color:#037; -webkit-box-shadow:inset 0 0 16px rgba(255,255,255,.3);}
navbar button:active { color:#048; -webkit-box-shadow:inset 0 0  6px rgba(  0,  0,  0,.1);}





/*---- RECBAR ----*/

recbar{
	display:block;
	overflow: hidden;
    height:36px;
	margin:0;
	padding:0 6px;
	text-align   : left;
    font-weight  : normal;
    font-size    : 0.9em;
    border-top   : 1px solid #aaa;
    border-bottom: 1px solid #ccc;
    background   : #ddd;
    line-height  : 1.2em;
    background: -webkit-linear-gradient(#f0f0f0,#ccc);
    -webkit-box-shadow: inset 0 0 2px #fff;
}

recbar button{
    display: inline-block;
    width:34px;
    margin: 4px;
    padding: 4px 0px;
    color: #FFF;
    cursor: pointer;
    text-align:center;
    /*text-shadow: 0 -1px 1px rgba(0,0,0,0.5);*/
    border: 1px solid #aaa;
    border-bottom: 1px solid #888;
    border-radius: 6px;
    background: -webkit-linear-gradient(#f6f6f6,#c0c0c0);
    -webkit-box-shadow: inset 0 0 2px #fff;
}

recbar button:hover{
    color: #ccc;
    background: -webkit-linear-gradient(#fff,#ccc);
}

recbar button:active{
    color: #EEE;
    -webkit-box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
}

recbar button.add{
	font-size:1.1em;
	color:#333;
}

recbar button.del{
	font-size:1.1em;
	float:right;
	color:#333;
}



/*---- EDITBAR ----*/

editbar{
    display:block;
    overflow: hidden;
    height:32px;
    margin:0;
    padding:0 6px;
    text-align   : left;
    font-weight  : normal;
    font-size    : 0.9em;
    border-top   : 1px solid #aaa;
    border-bottom: 1px solid #888;
    background   : #ddd;
    line-height  : 1.2em;
    background: -webkit-linear-gradient(#f0f0f0,#ccc);
    -webkit-box-shadow: inset 0 0 2px #fff;
}

editbar button{
    display: inline-block;
    width:34px;
    margin: 4px;
    padding: 4px 0px;
    color: #333;
    cursor: pointer;
    text-align:center;
    /*text-shadow: 0 -1px 1px rgba(0,0,0,0.5);*/
    border: 1px solid #aaa;
    border-bottom: 1px solid #888;
    border-radius: 6px;
    background: -webkit-linear-gradient(#f6f6f6,#c0c0c0);
    -webkit-box-shadow: inset 0 0 2px #fff;
}

editbar button:hover{
    color: #000;
    background: -webkit-linear-gradient(#fff,#ccc);
}

editbar button:active{
    color: #800;
    -webkit-box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
}

editbar button.ini{
    margin:0;
    margin: 4px 0 4px 4px;
    border: 1px solid #aaa;
    border-bottom: 1px solid #888;
    border-radius: 6px 0 0 6px;
}
editbar button.mid{
    margin:0;
    margin: 4px 0 4px 0;
    border: 1px solid #aaa;
    border-left: 1px solid transparent;
    border-bottom: 1px solid #888;
    border-radius: 0;
}
editbar button.end{
    margin:0;
    margin: 4px 4px 4px 0;
    border: 1px solid #aaa;
    border-left: 1px solid transparent;
    border-bottom: 1px solid #888;
    border-radius: 0 6px 6px 0;
}

editbar i{
    font-style : normal;
    font-family: serif;
    font-weight: bold;
}


/*---- LIST ----*/

list{
    margin  : 0;
    padding : 0;
    overflow: auto;
    display: -webkit-box;
    display:    -moz-box;
    display:     -ms-box;
    display:      -o-box;
    -webkit-box-orient: vertical;
       -moz-box-orient: vertical;
        -ms-box-orient: vertical;
         -o-box-orient: vertical;
    -webkit-box-flex: 1;
       -moz-box-flex: 1;
        -ms-box-flex: 1;
         -o-box-flex: 1;

}


list li a.empty{ color:#ccc;}


/*---- ADBAR ----*/

adbar{
    display:block; 
    overflow:hidden;
    width:320px;
    height:50px;
    -webkit-box-sizing: border-box;
}



/*---- ICONS ----*/

.pad{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-flex: 1;
    -webkit-box-orient: horizontal;
}


.icons{overflow:hidden; width:300px; margin:0; padding:20px 10px 10px; text-align:left; }
.icons li{display:inline-block; width:66px; height:86px; margin:2px; opacity:0.9; text-align:center; border:none;}
.icons  a{display:inline-block; width:34px; height:34px; 
    text-shadow : 0 -1px 0 rgba(0,0,0,0.25);
    border:1px solid #ccc; 
    border-bottom:1px solid #eee; 
    border-radius:4px;
    background  : -webkit-linear-gradient(#fafafa, #d0d0d0);
    box-shadow  : inset 0 2px 10px rgba(255,255,255,0.8), 0 1px 0px rgba(0,0,0,0.3);

}
.icons  a:hover{
    background:-webkit-linear-gradient(#ffffff,#dddddd);
}

.icons a:active{
    box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
}

.icons img{width:20px; height:20px; margin:7px;}
.icons p{display:inline-block; margin:0; padding:0; width:54px; color:#555; font-size:0.7em; text-align:center;}






/****  MAIN CONTENT  *************************************/

main{
    background   : #fff;
    overflow     : hidden;
    display      : box;
    box-orient   : horizontal;
    box-flex     : 1;
}
    
nav{
    overflow     : hidden;
    width        : 324px;
    background   : #eee;
    display      : box;
    border-right : 4px solid #222;
    box-sizing   : border-box;
}
    
nav ul{
    margin  : 0;
    padding : 0;
    overflow: scroll;
}

nav li{
    text-align   : left;
    font-weight  : normal;
    font-size    : 0.9em;
    border-top   : 1px solid #fff;
    border-bottom: 1px solid #ccc;
    background   : #eee;
    line-height  : 1.2em;
}
    
nav li b{
    margin-right : 6px;
    color:#ccc;
    font-size:0.8em;
}
    
nav li .chevron{
    display      : inline-block;
    float        : right;
    color        : #ccc;
}

nav li a{
    display       : inline-block;
    width         : 92%;
    margin        : 0;
    padding       : 10px 10px;
    text-align    : left;
    vertical-align: middle;
    font-weight   : normal;
    background    : #eee;
    line-height   : 1.2em;
}

nav li a:hover{ color:#333; background: linear-gradient(left,#DDD,#EEE); }
nav li a:hover  b  { color: #333; }
nav li a:active b  { color: #800; }
nav li a:hover  .chevron{ color: #333; }
nav li a:active .chevron{ color: #800; }
nav li a.empty{ color:#ccc; }
nav li a s{ color:#888; }

.nav-title{
	margin: 10px;
	padding: 0;
	/*text-align: center;*/
}

doc{
    box-flex: 1;
    box-orient: vertical;
    box-sizing: border-box;
    overflow:auto;
}


/*---- bg pattern ----*/

.noise{
    background-image: -webkit-linear-gradient(45deg, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%, #ddd), 
                      -webkit-linear-gradient(45deg, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%, #ddd);
    background-size:4px 4px;
    background-position:0 0, 2px 2px
}





/****  CSS4 / REMOVE SOMEDAY *****************************/

body{
    display: -webkit-box;
    display:    -moz-box;
    display:     -ms-box;
    display:      -o-box;
    -webkit-box-orient: vertical;
       -moz-box-orient: vertical;
        -ms-box-orient: vertical;
         -o-box-orient: vertical;
    -webkit-box-flex: 1;
       -moz-box-flex: 1;
        -ms-box-flex: 1;
         -o-box-flex: 1;
}

header{
    background: -webkit-linear-gradient(top,#505050,#1b1b1b);
    background:    -moz-linear-gradient(top,#505050,#1b1b1b);
    background:     -ms-linear-gradient(top,#505050,#1b1b1b);
    background:      -o-linear-gradient(top,#505050,#1b1b1b);
}


toolbar button{
    background: -webkit-linear-gradient(#555,#222);
    background:    -moz-linear-gradient(#555,#222);
    background:     -ms-linear-gradient(#555,#222);
    background:      -o-linear-gradient(#555,#222);
}

toolbar button:hover{
    background: -webkit-linear-gradient(#505050,#202020);
    background:    -moz-linear-gradient(#505050,#202020);
    background:     -ms-linear-gradient(#505050,#202020);
    background:      -o-linear-gradient(#505050,#202020);
}

main{
    display: -webkit-box;
    display:    -moz-box;
    display:     -ms-box;
    display:      -o-box;
    -webkit-box-orient: horizontal;
       -moz-box-orient: horizontal;
        -ms-box-orient: horizontal;
         -o-box-orient: horizontal;
    -webkit-box-flex: 1;
       -moz-box-flex: 1;
        -ms-box-flex: 1;
         -o-box-flex: 1;
}

nav{
    display: -webkit-box;
    display:    -moz-box;
    display:     -ms-box;
    display:      -o-box;
    -webkit-box-orient: vertical;
       -moz-box-orient: vertical;
        -ms-box-orient: vertical;
         -o-box-orient: vertical;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
         -o-box-sizing: border-box;
}


nav ul{
    display: -webkit-box;
    display:    -moz-box;
    display:     -ms-box;
    display:      -o-box;
    -webkit-box-orient: vertical;
       -moz-box-orient: vertical;
        -ms-box-orient: vertical;
         -o-box-orient: vertical;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
         -o-box-sizing: border-box;
    -webkit-box-flex: 1;
       -moz-box-flex: 1;
        -ms-box-flex: 1;
         -o-box-flex: 1;
}

nav li a:hover{
    background: -webkit-linear-gradient(left,#DDD,#EEE);
    background:    -moz-linear-gradient(left,#DDD,#EEE);
    background:     -ms-linear-gradient(left,#DDD,#EEE);
    background:      -o-linear-gradient(left,#DDD,#EEE);
}

doc{
    display: -webkit-box;
    display:    -moz-box;
    display:     -ms-box;
    display:      -o-box;
    -webkit-box-flex: 1;
       -moz-box-flex: 1;
        -ms-box-flex: 1;
         -o-box-flex: 1;
    -webkit-box-orient: vertical;
       -moz-box-orient: vertical;
        -ms-box-orient: vertical;
         -o-box-orient: vertical;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
         -o-box-sizing: border-box;
}

footer{
    background: -webkit-linear-gradient(top,#505050,#1b1b1b);
    background:    -moz-linear-gradient(top,#505050,#1b1b1b);
    background:     -ms-linear-gradient(top,#505050,#1b1b1b);
    background:      -o-linear-gradient(top,#505050,#1b1b1b);
    -webkit-box-shadow: inset 0 1px 0 #6E6E6E, 0 2px 2px rgba(0,0,0,0.4);
       -moz-box-shadow: inset 0 1px 0 #6E6E6E, 0 2px 2px rgba(0,0,0,0.4);
        -ms-box-shadow: inset 0 1px 0 #6E6E6E, 0 2px 2px rgba(0,0,0,0.4);
         -o-box-shadow: inset 0 1px 0 #6E6E6E, 0 2px 2px rgba(0,0,0,0.4);
}

.flex{
    display: -webkit-box;
    display:    -moz-box;
    display:     -ms-box;
    display:      -o-box;
    -webkit-box-flex: 1;
       -moz-box-flex: 1;
        -ms-box-flex: 1;
         -o-box-flex: 1;
}

.v-flex{
    border-bottom:none;
    display: -webkit-box;
    display:    -moz-box;
    display:     -ms-box;
    display:      -o-box;
    -webkit-box-orient: vertical;
       -moz-box-orient: vertical;
        -ms-box-orient: vertical;
         -o-box-orient: vertical;
    -webkit-box-flex: 1;
       -moz-box-flex: 1;
        -ms-box-flex: 1;
         -o-box-flex: 1;
}

.h-flex{
    display: -webkit-box;
    display:    -moz-box;
    display:     -ms-box;
    display:      -o-box;
    -webkit-box-orient: horizontal;
       -moz-box-orient: horizontal;
        -ms-box-orient: horizontal;
         -o-box-orient: horizontal;
    -webkit-box-flex: 1;
       -moz-box-flex: 1;
        -ms-box-flex: 1;
         -o-box-flex: 1;
}


/****  END OF DOCUMENT ***********************************/
