
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

}

html, body {
    background: #f0f2f5;
    color: #212527;
    font-size: 13px;
    font-weight: 400;
    font-family: 'Open Sans', sans-serif;
    height: 100%;
    margin: 0;
    width: 100%;
}

::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .26);
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: #BBBBBB;
}

::-moz-placeholder { /* Firefox 19+ */
    color: #BBBBBB;
}

:-ms-input-placeholder { /* IE 10+ */
    color: #BBBBBB;
}

:-moz-placeholder { /* Firefox 18- */
    color: #BBBBBB;
}

.qui-contextmenu-container::-webkit-scrollbar-thumb {
    background: #2F8FC6;
}

th {
    text-align: left;
}

p {
    clear: both;
    margin: 0 5px 0 0;
    padding: 0;
}

address {
    font-size: 14px;
    line-height: normal;
}

address .name,
address .salutation {
    margin-top: 10px;
}

address .adr {
    margin-bottom: 10px;
}

address .icon {
    float: left;
    line-height: 16px;
    margin-right: 5px;
    text-align: center;
    width: 20px;
}

h1 {
    font-size: 34px;
    font-weight: normal;
    margin: 0 0 20px;
}

h2 {
    font-size: 28px;
    font-weight: normal;
    margin: 0 0 18px;
}

h3 {
    font-size: 24px;
    font-weight: normal;
    margin: 0 0 16px;
}

h4 {
    font-size: 20px;
    font-weight: normal;
    margin: 0 0 14px;
}

button:focus {
    box-shadow: 0 0 3px 1px #cd201f;
    outline: 0;
}

.description {
    clear: both;
    font-style: italic;
}

.highlight {
    background-color: #CFF09E;
    border-color: #666;
}

.console {
    white-space: normal;
    background: #232627;
    padding: 10px;
    color: #fcfcfc;
    font-family: monospace;
}

input[type="search"] {
    position: relative;
}

input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
    position: relative;
}

.cke_reset {
    min-height: 250px;
}

/** logo, title
 * ====================================================== */

.qui-logo-container {
    color: #BABABA;
    float: left;
    height: 50px;
    line-height: 50px;
    position: relative;
    text-align: center;
    width: 100%;
}

.qui-logo-container img {
    float: left;
    margin: 10px;
}

.qui-logo-container p {
    color: #2F8FC6;
    float: right;
    font-size: 14px;
    font-style: italic;
    margin: 0 10px 0 0;
    padding: 0;
}

/** admin logo
 * ====================================================== */

.qui-contextmenu-bar .qui-contextmenu-baritem:first-child img {
    max-height: 22px;
}

/** menu
 * ====================================================== */

.qui-menu-container {
    background: #F2F2F2;
    border-bottom: 2px solid #e3e4e8;
    float: left;
    height: 50px;
    padding-top: 10px;
    width: 100%;
}

/** workspace
 * ====================================================== */

.qui-workspace-container {
    background: #F2F2F2;
    float: left;
    width: 100%;
}

/** field container
 * ====================================================== */

.field-container {
    display: flex;
    width: 100%;
}

.field-container-field {
    flex: 1;
}

select.field-container-field {
    /* flex bug fix */
    /* it is not 50% but flex box needs a width attribute */
    width: 50%;
}

label.field-container-field {
    cursor: pointer;
}

.field-container-field:not(:first-child) {
    border-left: 0;
}

.field-container-field:not(:last-child) {
    border-right: 0;
}

.field-container-item {
    background-color: #f4f2f0;
    color: #666666;
    font: inherit;
    font-weight: normal;
    width: 200px;
    flex-shrink: 0;
}

.field-container-field,
.field-container-item {
    border: 1px solid rgba(147, 128, 108, 0.25);
    padding: 0.5em 0.75em;
}

.field-container-field[type="number"] {
    padding: 0.5em 0 0.5em 0.75em;
}

.field-container-field:disabled {
    color: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
    border: 1px solid rgba(147, 128, 108, 0.25);
    border-left: none;
}

.field-container-field:first-child,
.field-container-item:first-child {
    border-radius: 2px 0 0 2px;
}

.field-container-field:last-child,
.field-container-item:last-child {
    border-radius: 0 2px 2px 0;
}

.field-container-field-no-padding {
    padding: 0;
}

.field-container-field > .field-container-field {
    border: none;
}

.field-container-item-desc {
    background-color: #CEE6F2;
    color: #00529B;
    clear: both;
    float: left;
    padding: 10px 10px 10px 210px;
    width: 100%;
}

.field-container-item-desc p {
    width: 100%;
}

/** form elements
 * ====================================================== */

input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

select:disabled {
    border: 1px solid #ddd;
    cursor: not-allowed;
}

.field-container .qui-controls-colorpicker {
    border: 1px solid rgba(147, 128, 108, 0.25);
    flex: 1;
}

.field-container .qui-controls-colorpicker .qui-controls-colorpicker-colorContainer {
    border: none;
    border-radius: 0;
    width: calc(100% - 100px);
}

.field-container .qui-controls-colorpicker button {
    border-radius: 0;
    border-left: 1px solid rgba(147, 128, 108, 0.25);
    box-shadow: none;
    width: 50px;
}

.date-input {
    width: 100%;
}

.date-input input[type="date"],
.date-input input[type="datetime"] {
    float: left;
    cursor: pointer;
    max-width: calc(100% - 31px);
    width: 105px;
}

.date-input button {
    width: 50px;
}

.date-input input[type="datetime"] {
    width: 180px;
}

.field-container-field > input[type="date"],
.field-container-field > input[type="datetime"] {
    border: none;
    float: left;
    width: calc(100% - 50px);
}

/** button helper
 * ====================================================== */

.btn-red {
    color: #faddde !important;
    border-color: #980c10 !important;
    background: #d81b21 !important;
}

.btn-red:hover {
    background: #b61318 !important;
}

.btn-red:active {
    color: #de898c !important;
    background: -webkit-gradient(linear, left top, left bottom, from(#aa1317), to(#ed1c24)) !important;
    background: -moz-linear-gradient(top, #aa1317, #ed1c24) !important;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#aa1317', endColorstr='#ed1c24') !important;
}

/* green */
.btn-green {
    color: #e8f0de !important;
    border-color: #538312 !important;
    background: #64991e !important;
}

.btn-green:hover {
    background: #538018 !important;
}

.btn-green:active {
    color: #a9c08c !important;
    background: -webkit-gradient(linear, left top, left bottom, from(#4e7d0e), to(#7db72f)) !important;
    background: -moz-linear-gradient(top, #4e7d0e, #7db72f) !important;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4e7d0e', endColorstr='#7db72f') !important;
}

.btn-green:disabled,
.btn-green:disabled:hover,
.btn-green:disabled:focus {
    background: #dddddd !important;
    color: #999 !important;
}
