/*region Default override*/
body {
    background: #E6E6E6 !important;
    color: #000;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
}

a {
    color: #018ccd;
}

img {
    border-radius: 3px;
    height: auto;
}

h1, .h1 {
    color: #018ccd !important;
    display: inline-block;
    font-size: 32px !important;
}

h2, .h2 {
    color: #018ccd !important;
    display: inline-block;
    font-size: 28px !important;
}

h3, .h3 {
    color: #018ccd !important;
    display: inline-block;
    font-size: 24px !important;
}

h4, .h4 {
    color: #018ccd !important;
    display: inline-block;
    font-size: 18px !important;
}

/*endregion*/

/*region ZK override*/

/* page content */
.z-page {
    background: #fff;
    height: auto !important;
    margin: auto;
    max-width: 1200px;
    padding: 15px;
}

/* remove nowrap for list headers */
.z-listheader {
    white-space: normal;
}

/* blue group box caption titles */
.z-caption-content, .z-caption .z-label {
    font-size: 1.15em;
    color: #008ccc;
}

/* white popup text */
.z-window-header, .z-window-icon {
    color: white;
}

/* readonly labels appear in grey by default, keep the black color */
.z-combobox-input[readonly], .z-timepicker-input[readonly] {
    color: inherit;
    background: inherit;
}

/* default chosen box placeholder is black, change it to gray */
.z-chosenbox-input {
    color: #a8a8a8;
}

/* change list group header background as it is white by default */
.z-listgroup.z-listgroup-open .z-listgroup-inner {
    background: #daf1ff;
}

/* remove menubar border */
.z-menubar {
    border: none;
}

/* change rating icon size, color and hover style */
.z-rating > .z-rating-icon {
    font-size: 16pt;
}

.z-rating > .z-rating-selected {
    color: #018ccd;
}

.z-rating > .z-rating-hover {
    color: #018ccd;
    text-shadow: none;
    font-weight: bold;
}

/* change menu bars appearance to look like buttons in list views */
.z-listcell-content .z-menubar {
    background: none;
    padding: 0;
}

.z-listcell-content .z-menubar .z-menu .z-menu-content, .z-listcell-content .z-menubar .z-menu .z-menuitem-content {
    background: #018ccd;
    color: white;
    padding: 10px 16px;
}

.z-listcell-content .z-menubar .z-menu .z-menu-content .z-menu-icon {
    position: inherit;
    right: inherit;
    top: inherit;
}

/* reset font size for icon buttons so that it does not create extra height compared to text buttons */
.z-button i {
    font-size: inherit;
}

/* icon for links is too close to text */
.z-a > i {
    margin-right: 5px;
}

/* by default text areas do not take 100% width */
.z-textbox {
    width: 100%;
}

/* reduce buttons padding so they better match fields height */
.z-button {
    padding: 7px 14px;
}

/* to display a list using a grid */
.z-grid.u-list {
    border: none;
}

.z-grid.u-list .z-row-content {
    padding: 2px 3px;
}

/* so that icons in caption header are not to far from text */
.z-caption-content > span {
    margin-left: 0;
}

/* remove blue vertical borders in grids columns headers */
.z-column:not(:first-child) {
    border-left: 1px solid #fff;
}

/* remove blue bottom border in grids columns headers */
.z-column {
    border-bottom: 1px solid #fff;
}

/* remove blue bottom border in lists columns headers */
.z-listheader:not(:first-child) {
    border-left: 1px solid white;
}

/*endregion*/

/*region Unil theme overrides based on ZK iceblue theme */
body.iceblue .u-header, body.iceblue .z-window {
    background: #018ccd;
}

body.iceblue .z-listheader, body.iceblue .z-listheader:active {
    background: #018ccd;
    border-bottom: none;
}

body.iceblue .z-button:not(:disabled) {
    background-color: #018ccd;
}

body.iceblue .z-a {
    color: #018ccd;
}

body.iceblue .z-toolbarbutton:hover {
    background-color: #018ccd;
}

body.iceblue .z-chosenbox-item {
    background-color: #018ccd;
}

body.iceblue .z-combobox-button:active, .z-bandbox-button:active, .z-datebox-button:active, .z-timebox-button:active, .z-spinner-button:active, .z-doublespinner-button:active {
    background-color: #018ccd;
}

body.iceblue .z-menu-content:active, .z-menuitem-content:active {
    background-color: #018ccd;
}

body.iceblue .z-menu-selected > .z-menu-content {
    background-color: #018ccd;
}

body.iceblue .z-menupopup .z-menu-content:active, .z-menupopup .z-menuitem-content:active {
    background-color: #018ccd;
}

body.iceblue .z-tab-selected {
    border-bottom: 2px solid #018ccd;
}

body.iceblue .z-tab-selected .z-tab-text {
    color: #018ccd;
}

body.iceblue .z-column {
    background: #018ccd;
}

body.iceblue .z-listgroup.z-listgroup-open .z-listgroup-inner .z-listgroup-icon, .z-listgroup.z-listgroup-open .z-listgroup-inner .z-listcell-content {
    color: #018ccd;
}

body.iceblue .z-listgroup.z-listgroup-open .z-listgroup-inner {
    border-bottom: 2px solid #018ccd;
}

body.iceblue .z-auxheader {
    background-color: #018ccd;
}

body.iceblue input[type="checkbox"]:checked {
    background-color: #018ccd;
}

body.iceblue .z-checkbox-switch-on > .z-checkbox-mold {
    background-color: #018ccd;
}

body.iceblue input[type="radio"]:checked::before {
    background-color: #018ccd;
}

body.iceblue .z-calendar-selected {
    background: #018ccd;
}

body.iceblue .z-grid-header {
    background: #018ccd;
}

body.iceblue .z-paging-button:active {
    background-color: #018ccd;
}

/*endregion*/

/*region Header*/
.conf-title {
    color: #018ccd;
    display: block;
    font-size: 40px;
}

.conf-subtitle {
    color: #666;
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

/*endregion*/

/*region Toolbar*/
.u-toolbar.z-toolbar {
    padding: 6px 0;
}

.u-toolbar .u-flag img {
    height: 13px;
    width: 20px;
}

.u-toolbar .z-toolbarbutton, .u-toolbar .z-toolbarbutton-content > * {
    margin: 0;
}

.u-toolbar .z-toolbarbutton {
    padding: 2px 6px;
}

.u-toolbar a:not([href]):hover {
    color: white;
}

.u-toolbar a:not([href]) {
    color: rgba(0,0,0,0.57);
}

/*endregion*/

/*region i18n text */

/* vertical align images with fields */
.i18n-content .z-hlayout-inner {
    vertical-align: middle;
}

/* flag icon size */
.z-image.u-flag {
    height: 19px;
    width: 30px;
}

/* not selected flag icon style */
.z-image.u-flag-not-selected {
    cursor: pointer;
    height: 14px;
    opacity: 0.8;
    width: 22px;
}

/*endregion*/

/*region Content*/
.label-required:after {
    display: inline;
    color: #e32;
    content: '*';
}

.label-required-before:before {
    display: inline;
    color: #e32;
    content: '* ';
}

.label-required-before {
    font-style: italic;
}

.actions {
    background-color: #f7f7f7;
    border: 1px solid #e7e7e7;
    border-radius: 4px !important;
    margin: 15px;
    padding: 10px !important;
}

.actions-inside {
    background-color: #f7f7f7;
    border: 1px solid #e7e7e7;
    border-radius: 4px !important;
    margin-top: 15px;
    padding: 10px !important;
}

.top-message > .z-label {
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.clickable {
    cursor: pointer;
}

.u-bigger-font {
    font-size: 1.2em;
}

.default, .info, .success, .warning, .danger, .purple {
    border-radius: 3px;
    color: #fff !important;
    font-weight: 400;
    padding: 5px 10px;
    text-transform: uppercase;
}

.default button, .info button, .success button, .warning button, .danger button, .purple button {
    margin-top: 10px;
}

.default {
    background-color: #018ccd;
    border: 1px solid #016eaf;
}

.info {
    background-color: #7fcaef;
    border: 1px solid #6bacd1;
}

.success {
    background-color: #a3d783;
    border: 1px solid #85b965;
}

.warning {
    background-color: #ffc56c;
    border: 1px solid #e1a74e;
}

.danger {
    background-color: #e74360;
    border: 1px solid #c92542;
}

.purple {
    background-color: #b374d6;
    border: 1px solid #a948e1;
}

.i18n-static-content {
    display: inline-block;
    max-height: 300px;
    overflow: auto;
    width: 100%;
}

.u-conditions {
    max-height:300px;
    overflow:auto;
    display:inline-block;
    width:100%;
    border:1px solid #ccc;
    padding:8px
}

.variables {
    font-family: Courier New, sans-serif;
}

.u-font-sm {
    font-size: .8em;
}

/*endregion*/