/* --------- PRIMEFACES OVERLOAD --------- */

.ui-layout-north {
    z-index:20 !important;
    overflow:visible !important;
}

.ui-layout-north .ui-layout-unit-content {
    overflow:visible !important;
}

.ui-datatable-header {
    padding: 2px !important;
    text-align: left !important;
    background-color: #f2f1f1 !important;
    border-color: silver !important;
}

.ui-treetable-header {
    padding: 2px !important;
    text-align: left !important;
    background-color: #f2f1f1 !important;
    border-color: silver !important;
}

.ui-dialog-title {
    font-size: 16px !important;
}

.ui-dialog.ui-widget-content .ui-dialog-titlebar-close {
    margin-top: 3px;
}

/* relative column widths */
.ui-datatable table {
    table-layout: auto !important;
}

/* datagrid without border */
.ui-datagrid-content {
    border: none !important;
} 

/* datagrid without space on the top */
.ui-datagrid-column {
    padding-top: 0px !important;
    padding-left: 0px !important;
    padding-right: 6px !important;
    padding-bottom: 6px !important;
}

/* that was 1px over the selected item */
.ui-menu {
    margin: 0px !important;
}

.ui-menuitem {
    margin: 0px !important;    
}

.ui-menu.ui-widget ul li > .ui-menuitem-link {
    color: white;
}

/* seta branca do menubar */
.ui-menu.ui-widget.ui-widget-content .ui-icon {
    background-image: url("/sorter/javax.faces.resource/images/ui-icons_ffffff_256x240.png.jsf?ln=primefaces-bootstrap");
}

.ui-menu.ui-widget ul li ul li > .ui-menuitem-link {
    color: black;
}

.ui-menu.ui-menubar {
    color: white !important;
    background-image: inherit !important;
    background-color: transparent !important;
    border: 0px !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
    min-width: 100px !important;
}

.ui-row-editor .ui-icon-pencil {
    background-image: url("");
    background-position: 0px !important;
}

.ui-datatable .ui-row-editor .ui-icon-check {
    background-image: url("");
    background-position: 0px !important;
    margin-right: 10px !important;
}

.ui-datatable .ui-row-editor .ui-icon-close {
    background-image: url("");
    background-position: 0px !important;
}

/*conteudo do form*/
.ui-panel .ui-panel-content {
    padding: .5em !important;
}

/* --------- LAYOUT --------- */

.div-top {
    display: table;
    width: 100%;
    background-color: #253f63;
    background: -webkit-gradient(linear, left top, left bottom, from(#15153f), to(#344f74)) repeat-X;
    background: -moz-linear-gradient(270deg, #15153f, #344f74); 
    color: white;
}

.div-bottom {
    display: table;
    width: 100%;
    background-color: #F1F1F1;
    background: -webkit-gradient(linear, left top, left bottom, from(#F1F1F1), to(#FFF)) repeat-X;
    background: -moz-linear-gradient(270deg, #F1F1F1, #FFF);
    color: gray;
    padding-top: 5px;
    padding-bottom: 5px;    
    position: fixed;
    bottom: 0px;
}

.div-bottom-space {
    height: 20px;
}

.div-content {
    padding-top: 0.75em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
    min-height: 300px;
}

/* --------- CUSTOM --------- */

body, table, div, button, select,option {
    font-size: 12px;
    font-family: Verdana, "Verdana CE",  Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif;
}

.green-button {
    color: white !important; 
    background-color: green !important; 
    border-color: green !important; 
    background: -webkit-gradient(linear, left top, left bottom, from(limegreen), to(green)) repeat-X !important; 
    background: -moz-linear-gradient(270deg, limegreen, green) !important;
}

.div-painel {
    display: inline-block; 
    padding-bottom: 0.45em;
    width: 14em;
}

.ajax-status {
    width:16px; 
    height:16px; 
    position:absolute; 
    z-index:99;
    left:70px; 
    top:11px;
}

.div-top-label {
    display: inline;
}

/*nxfaces*/
.textBold {
    font-weight: bold;
}

.text-bold {
    font-weight: bold;
}

.text-bold-underline {
    font-weight: bold;
    text-decoration: underline;
}

.text-bold-red {
    font-weight: bold;
    color: red;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.align-top {
    vertical-align: top;
}

.favicon {
    width: 32px;
    height: 32px;
}

.div-color-table {
    display: table; 
    width: 72px;
}

.div-color-cell {
    display: table-cell;
    border: 1px solid silver;
    width: 24px;
    height: 24px;
}

.div-flow {
    display: inline-block; 
    vertical-align: top;
    padding-bottom: 5px;
}

.table-none {
    padding: 0px;
    border: 0px;
    margin: 0px;
}

.task-running {
    background-color: lime;
}

.task-normal {
    
}

.task-finished {
    background-color: indianred;
    color: white;
}

.div-filter {
    display: inline-block;
    padding: 0.25em;
}

.date-filter input {
    width: 110px !important;
}

.icon-time {   
    padding: 0.5em;
    width: 16px;
    height: 16px;
}

.color-lightgray {
    color: lightgray;
}

.color-silver {
    color: silver;
}

.col-form-label {
    text-align: right;
}

.col-form-content {
    width: 100%;
}

.discrete-link {
    text-decoration: none;
    color: black;
}

.discrete-link:hover {
    text-decoration: underline;
}

/* --------- MOBILE --------- */

@media only screen and (max-width: 480px) {
    .ui-datatable thead th, 
    .ui-datatable tbody td, 
    .ui-datatable tfoot td, 
    .ui-datatable tfoot th {
        padding: 3px !important;
    }
    
    .div-bottom {
        display: none;
    }
    
    .div-bottom-space {
        display: none;
    }
    
    .div-top-label {
        display: none;
    }
    
    .div-flow {
        width: 100%;
    }
    
}