/* Global Link Definitions 
-----------------------------*/
a {
    color: #2B67A0;
}

a:hover {
    background-color: #2B67A0;
    color: #FFF;
}

h3 a {
    padding: 3px 1px 0;
}

/* Global Items 
-----------------------------*/
#global {
    position: absolute;
    padding-right: 10px;
    right: 10px;
    text-align: right;
    top: 15px;
}

#global a {
    color: #264F7B;
    color: #FFF;
    display: block;
    float: left;
    font-size: 12px;
    height: 20px;
    line-height: 20px;
    margin: 0 2px;
    padding-right: 10px;
    text-decoration: none;    
}

#global a:hover {
    background: none;
    color: #264F7B;

}

#global a span {
    display: block;
    padding-left: 10px;    
    padding-bottom: 1px; /*IE Fix*/
}

#global a:hover span {
    background: none;
}

#global a.active, #global a.active:hover {
    color: #FFF;
    background: url("img/bg_global_rgt.gif") no-repeat right center;
}

#global a.active span, #global a.active:hover span {
    background: url("img/bg_global_lft.gif") no-repeat left center;
}

#global li {
    display: inline;
}

h1 {
    color: #FFF;
    font-size: 24px;
    font-weight: normal;
    height: 60px;
    letter-spacing: -1px;
    line-height: 60px;
    padding: 0 20px;
}

h1 a {
    color: #FFF;
    text-decoration: none;
    
}

a.app_logo {
    /* se l'applicazione ha un logo viene definito qui*/
    background: url("img/app_logo.png") no-repeat left center;
    display: block;   
    height: 60px;
    letter-spacing: -500em;
    text-indent: -500em;
    width: 200px;
}
/* Tabs  
-----------------------------*/

#tabs {
    clear: both;
    font-size: 13px;
    padding: 10px 0 0 20px;
}

#tabs a {
    background-color: #3267A0;
    background-image: url("img/bg_folded.gif");
    background-position: left bottom;
    background-repeat: repeat-x;
    border-top: 2px solid #72A6D0;
    color: #FFF;
    display: block;
    float: left;
    height: 30px;
    line-height: 30px;
    margin: 0 1px;
    padding: 0 15px;
    text-decoration: none;
}

#tabs a:hover {
    color: #333;
    background-color: #DEEDFE;
    background-image: url("img/bg_folded_hov.gif");
}

#tabs a.active, #tabs a.active:hover  {
    background-color: #FBFBFB;
    background-image: url("img/bg_folded_sel.gif");
    border-color: #FBFBFB;
    color: #333;
}

#tabs a.inactive, #tabs a.inactive:hover {
    background-color: #3267A0;
    background-image: url("img/bg_folded.gif");    
    color: #6F9ABC;
}

#tabs li {
    display: inline;
}

/* Page Title  
-----------------------------*/

h2.pagetitle {
    clear: both;
    color: #333;
    font-size: 22px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 60px;
}

h2.pagetitle span {
    color: #666;
    font-weight: normal;
}

/* Main Elements  
-----------------------------*/
div.page_header {
    background-color: #EAF4FE;
/*    float: left;*/

}

div.page_header p {
    text-align: right;
    padding: 10px;
}

div.inner_col {
    clear: both;
    padding: 15px;
}

div.inner_col p {
    color: #333;
    font-size: 13px;
    line-height: 120%;
    margin: 10px 0;
}

h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

h4 {
    color: #666;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    
}

/* Buttons  
-----------------------------*/
/*
    TODO Gestione dell'hover e delle icone.
    Tieni presente che c'è anche uno span!
*/
a.button {
    background-color: #EEE;
    background-repeat: no-repeat;
    background-position: 4px center;
    border: 1px solid #999;    
    border-top-color: #CCC;
    border-left-color: #CCC;    
    color: #333;
/*    display: block;
    float: left;*/
    font-size: 12px;
    font-weight: bold;
/*    height: 30px;*/
    line-height: 30px;
    margin-left: 5px;
    padding: 8px 10px 9px 24px;
    text-decoration: none;
    text-transform: capitalize;
}

a.button:hover { /*necessario per sovrascrivere il comportamento generale dei link*/
    background-color: #EEE;
    color: #333;
}

a.new {
    background-image: url("img/icons/new.png");
}

a.edit {
    background-image: url("img/icons/edit.png");
}

a.back {
    background-image: url("img/icons/back.png");
}

a.destroy {
    color: #C00;
    background-image: url("img/icons/destroy.png");
}

a.remove_document {
    color: #900;
}

a.remove_document:hover {
    color: #FFF;
    background-color: #900;
}

/* Page Filters  
-----------------------------*/

.page_filters {
    background-color: #E9F4FE;
    float: left;
    width: 100%;
}

.page_filters ul {

    float: left;
    margin-left: 20px;

}

.page_filters ul a {
    background-color: #FFF;
    border: 1px solid #DDD;
    border-bottom: none;
    color: #666;
    display: block;
    float: left;
    font-size: 12px;
    line-height: 24px;
    margin-left: 1px;
    padding: 0 10px;
    text-decoration: none;
}


.page_filters ul a.active {
    color: #333;
    font-weight: bold;
}

.page_filters ul li {
    display: inline;
}


/* Dialog Boxes  
-----------------------------*/
div.error_box {
    border:solid 1px #C00; 
    background:#FCC;
    margin: 0 0 10px;
    padding: 15px;
}

div.error_box h4 {
    color: #900;
    margin: 0 !important;
}

div.valid_box {
    border:solid 1px #0C0; 
    background:#CFC;
    margin: 0 0 10px;
    padding: 15px;
}

div.valid_box h4 {
    color: #090;
    margin: 0 !important;
}

/* Footer  
-----------------------------*/
#footer {
    margin-bottom: 15px;
}
#footer p {
    color: #999;
    font-size: 11px;
    padding: 10px;
    text-align:center;
    width: 67%;
}
#footer a {
    color: #666;
    text-decoration: underline;
}
#footer a:hover {
    background: none !important;
    color: #333;
}

/* Utlità 
-----------------------------*/
div.killer {
    clear: both;
    font-size: 1px;
}
