/* -----------------------
Page styles
------------------------*/

body {
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f7f7f7;
    font: 1em/1.2 "Lato", Helvetica, Arial, Geneva, sans-serif !important;
}

table {
    font-size: 1em;
}

form {
    margin: 0;
    padding: 0;
}

.page-title {
    font-weight: 400 !important;
}

.login-panel {
    margin: 0 auto;
    border: none;
    max-width: 500px;
    font-size: 1.3em;
}

@media (max-width: 1024px) {
    .login-panel {
        font-size: 1.0em;
    }
}

.login-panel h2, .login-panel label {
    color: #3200E6 !important;
}

.login-panel input, .login-panel .ui-selectonemenu {
    line-height: 1.5em !important;
}

.ui-fileupload-simple .ui-button {
    overflow:hidden;
    height: 100px;
    width: 250px
}


.ui-panel.login-panel .ui-panel-titlebar {
    border: none;
    margin: 0;
    background: transparent;
    padding: 0;
}

.ui-panel.login-panel .ui-panel-titlebar .ui-messages-error {
    margin: 0;
    text-align: center;
    min-height: 30px;
}

.ui-panel.login-panel .ui-panel-footer {
    background: #fff;
    text-align: right;
    border: none;
}

.ui-menu.nav-bar-menu {
    background: #7BCC82;
    border: none;
}

.ui-menu.nav-bar-menu a {
    color: #fff;
    font-size: 1.1em;
}

.ui-menu.nav-bar-menu a.ui-state-hover {
    color: #888;
}

.ui-menu.nav-bar-menu .ui-menu-child a {
    color: #888;
}

.ui-menu.nav-bar-menu .ui-menubar-options {
    margin-top: -2px;
    margin-right: 10px;
}

.container {
    max-width: 100em;
    margin: 0 auto;
    padding-right: 10px;
    padding-left: 10px;
}

.header-login {
    margin: 0 auto;
    background: #3200E6;
    color: #fff;
    display: block;
    line-height: 40px;
}

.header-login a.ui-link {
    color: #fff;
    display: inline-block;
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 1px;
    margin-right: 5px;
    font-weight: 400;
    text-decoration: none;
    font-size: 1.2em;
}

.header-login a.ui-link.ui-link-active {
    background: #8DDAF5;
}

.header-login a.ui-link:hover {
    text-decoration: underline;
}

.header-login h5, .header-login a.ui-commandlink, .header-login a.ui-commandlink:visited {
    margin: 0;
    color: #fff;
}

.header {
    color: #707773;
    background: #f7f7f7;
    min-height: 50px;
}

.header-heading {
    margin: 0;
    font-weight: 400;
}

.header-title-block {
    margin-top: 12px;
}

.header-language-block {
    float: right;
    line-height: 2em;
}

.content {
    padding: 3em 1.25em;
    min-height: 300px;
    background-color: #fff;
}

.content.content-nopad {
    padding: 0;
    min-height: 0;
}

.footer {
    color: #888;
    background: #f7f7f7;
    padding: 1em 1.25em;
}

.page-validation-dialog div.ui-dialog-content {
    padding: 10px;
}

.page-validation-dialog div.ui-dialog-content .ui-messages-error {
    max-width: 500px;
    background: transparent;
    border: none;
    color: #000;
}

.page-validation-dialog div.ui-dialog-content .ui-messages-error li {
    margin-bottom: 5px;
}

.page-table-actions {
    padding: 4px 10px;
    border: 1px solid #d9d9d9;
    color: #1b1d1f;
    background: #f6f7f9 0 0 repeat-x;
    background: -moz-linear-gradient(top, #f6f7f9 0, #ebedf0 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f6f7f9), color-stop(100%, #ebedf0));
    background: -webkit-linear-gradient(top, #f6f7f9 0, #ebedf0 100%);
    background: -o-linear-gradient(top, #f6f7f9 0, #ebedf0 100%);
    background: -ms-linear-gradient(top, #f6f7f9 0, #ebedf0 100%);
    background: linear-gradient(top, #f6f7f9 0, #ebedf0 100%);
    font-weight: bold;
    margin-bottom: -1px;
}

span.page-vertical-separator {
    border-left: 1px solid #ddd;
    margin-left: 6px;
    margin-right: 10px;
}

@media screen and (max-width:40em) {
    span.page-vertical-separator {
        display: none;
    }
}

/* -----------------------
Common styles
------------------------*/

.ui-outputlabel-rfi {
    display: none;
}

.ui-datatable-reflow .ui-datatable-data td {
    width: 100% !important;
}

.ui-datatable-reflow .ui-datatable-data td span.ui-column-title {
    font-weight: 500;
}

.ui-datatable th span.ui-column-title {
    white-space: normal;
    font-weight: 400;
}

input.ui-inputfield, span.ui-spinner, textarea.ui-inputfield {
    width: 100%
}

span.ui-spinner input {
    text-align: left !important;
}

div.ui-selectonemenu, div.ui-selectcheckboxmenu {
    width: 100%;
    border: none !important;
    padding: 0;
}

div.ui-selectonemenu label.ui-selectonemenu-label,
div.ui-selectonemenu input.ui-selectonemenu-label,
div.ui-selectcheckboxmenu label.ui-selectcheckboxmenu-label{
    background: #fff !important;
    font-size: 1em;
    max-width: 95% !important;
    border: 1px solid rgb(214, 214, 214);
    padding-bottom: 3px;
}

div.ui-selectcheckboxmenu label.ui-selectcheckboxmenu-label.ui-state-hover {
    background: #eee !important;
}

.ui-selectonemenu .ui-selectonemenu-trigger, .ui-selectcheckboxmenu .ui-selectcheckboxmenu-trigger {
    width: 28px;
    background: rgb(214, 214, 214);
    border: none;
}

.ui-fieldset.ui-heading-fieldset > .ui-fieldset-legend  {
    font-size: 1.2em;
    font-weight: 500;
    margin-left: -1px;
    margin-top: 4px;
}

.ui-fieldset .ui-fieldset {
    margin-right: 0;
    margin-left: 0;
}

.ui-g-1,.ui-g-2,.ui-g-3,.ui-g-4,.ui-g-5,.ui-g-6,.ui-g-7,.ui-g-8,.ui-g-9,.ui-g-10,.ui-g-11,.ui-g-12,
.ui-sm-1,.ui-sm-2,.ui-sm-3,.ui-sm-4,.ui-sm-5,.ui-sm-6,.ui-sm-7,.ui-sm-8,.ui-sm-9,.ui-sm-10,.ui-sm-11,.ui-sm-12,
.ui-md-1,.ui-md-2,.ui-md-3,.ui-md-4,.ui-md-5,.ui-md-6,.ui-md-7,.ui-md-8,.ui-md-9,.ui-md-10,.ui-md-11,.ui-md-12,
.ui-lg-1,.ui-lg-2,.ui-lg-3,.ui-lg-4,.ui-lg-5,.ui-lg-6,.ui-lg-7,.ui-lg-8,.ui-lg-9,.ui-lg-10,.ui-lg-11,.ui-lg-12,
.ui-xl-1,.ui-xl-2,.ui-xl-3,.ui-xl-4,.ui-xl-5,.ui-xl-6,.ui-xl-7,.ui-xl-8,.ui-xl-9,.ui-xl-10,.ui-xl-11,.ui-xl-12 {
    padding: 0.2em !important;
}

.ui-g-nopad {
    padding: 0 !important;
}

label, label.ui-outputlabel {
    font-weight: 500;
    color: #444;
}

div.ui-g-right, .aright {
    text-align: right;
}

div.ui-g-center, .acenter {
    text-align: center;
}

div.ui-g-left, .aleft {
    text-align: left;
}

label.label-inline {
    float: left;
    line-height: 1.5em;
}

.input-inline {
    overflow: hidden;
    display: block;
    padding: 0 4px 0 4px;
}

.table-small table {
    font-size: 0.95em;
}

.ui-datatable.table-small table thead th, .ui-datatable.table-small table tbody td,
.ui-datatable.table-small table tfoot td, .ui-datatable.table-small table tfoot th {
    padding: 2px 5px;
}

.ui-datatable.table-header-nowrap th span.ui-column-title {
    white-space: nowrap;
}

div.ui-tabs.tabs-scrollable-130 .ui-tabs-panels {
    overflow: auto;
    height: 130px;
}

div.ui-tabs.tabs-scrollable-120 .ui-tabs-panels {
    overflow: auto;
    height: 120px;
}

div.ui-tabs.tabs-scrollable-110 .ui-tabs-panels {
    overflow: auto;
    height: 110px;
}

div.ui-tabs.tabs-scrollable-80 .ui-tabs-panels {
    overflow: auto;
    height: 80px;
}

.ui-tabs .ui-tabs-nav li a {
    /* usunąć to gdy uda się rozwiązać problem z tabView.scrollable */
    letter-spacing: -1px;
}

.labels-right label { text-align: right }
.labels-left label { text-align: left }
.labels-center label { text-align: center }
.labels-10 label, label.labels-10 {  min-width: 10px; }
.labels-20 label, label.labels-20 {  min-width: 20px; }
.labels-30 label, label.labels-30 {  min-width: 30px; }
.labels-40 label, label.labels-40 {  min-width: 40px; }
.labels-50 label, label.labels-50 {  min-width: 50px; }
.labels-60 label, label.labels-60 {  min-width: 60px; }
.labels-70 label, label.labels-70 {  min-width: 70px; }
.labels-80 label, label.labels-80 {  min-width: 80px; }
.labels-90 label, label.labels-90 {  min-width: 90px; }
.labels-100 label, label.labels-100 {  min-width: 100px; }
.labels-125 label, label.labels-125 {  min-width: 125px; }
.labels-150 label, label.labels-150 {  min-width: 150px; }
.labels-200 label, label.labels-200 {  min-width: 200px; }
.labels-250 label, label.labels-250 {  min-width: 250px; }
.labels-300 label, label.labels-300 {  min-width: 300px; }

.highlight input, input.highlight {
    background-color: #ffff95 !important;
}

.ui-sortable-column-icon {
    position: absolute;
    top: 5px;
    right: 0;
}

button.ui-button.button-inline, button.ui-button.ui-state-default.button-inline {
    font-size: 0.85em;
    display: inline-block;
    float: right;
    color: #fff;
    background: #3200E6;
}

button.ui-button.button-inline.ui-state-hover {
    background: #8DDAF5;
}

fieldset.ui-fieldset.daterange-fieldset {
    height: 2.6em;
}

fieldset.ui-fieldset.daterange-fieldset legend.ui-fieldset-legend {
    margin-bottom: -11px;
}

fieldset.ui-fieldset.daterange-fieldset table.ui-selectoneradio {
    margin: 0 auto;
    float: right;
}

fieldset.ui-fieldset.daterange-fieldset .ui-selectoneradio label {
    margin-right: 10px;
}

fieldset.ui-fieldset.filters-fieldset > legend.ui-fieldset-legend {
    margin-bottom: 5px;
}

dt.ui_tpicker_second_label, dd.ui_tpicker_second {
    display: none;
}

tr.row-highlight, tr.row-highlight.ui-state-hover {
    background: #3200E6;
    color: #fff;
}

tr.row-yellow, tr.row-yellow.ui-state-hover {
    background: #ffff95;
}

tr.row-light-gray {
    background: #ebe6e3;
}

.ui-state-highlight.ui-row-editing, .ui-state-error.ui-row-editing {
    background: rgb(235, 237, 240);
}

.ui-widget-content .ui-row-editor {
    display: none;
}

.ui-widget-content.ui-row-editing .ui-row-editor {
    display: block;
}

.ui-button.special-row-editor.ui-button-icon-only .ui-icon, .ui-button.special-row-editor .ui-button-text {
    left: 0;
    margin-left: 0;
    padding: 0;
}

body.body-row-editing .ui-button.special-row-editor {
    display: none;
}

.ui-commandlink.hide-on-row-edit, .ui-commandbutton.hide-on-row-edit {
    display: inherit;
}

body.body-row-editing .hide-on-row-edit {
    display: none;
}

span.input-addon {
    min-width: 30px;
    float: right;
    margin: 0 0 -2px 0;
    padding: 0 2px 0 2px;
    border: 1px solid #ccc;
    line-height:  1.5em;
    background: #eee;
    color: #999;
    text-align: center;
    position: relative;
    right: 5px;
}

li.instructions-tab, li.instructions-tab a {
    cursor: pointer !important;
    opacity: 1 !important;
}

.loader {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 120px;
    height: 120px;
    margin: -76px 0 0 -76px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #a0a0a0;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    display: none;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
