/*
 * Copyright (c) 2017. Mobifly Grzegorz Zagrobelny, mobifly.pl
 * -------------------------------------------------------------------------------------------------------
 * Unauthorized copying of this file and any file from this project package, via any medium is strictly prohibited.
 * Any edition of the sources of files from this project without permission of the author is prohibited may result
 * in loss of services and guarantees obtained by means of the agreement on the final product.
 * -------------------------------------------------------------------------------------------------------
 * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
 * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
 * -------------------------------------------------------------------------------------------------------
 * Proprietary and confidential.
 * Written by Grzegorz Zagrobelny <mobifly@mobifly.pl>
 *
 * Kendo Forms classes (files could be edited only by project leader)
 */
.k-form .k-label.required {
    font-weight: bold;
}

.k-form .k-label.required::after {
    content: ' *';
    color: #ff0000;
    font-weight: normal;
}

.k-form .valid {
    color: green;
}

.k-form .invalid {
    color: red;
}

.k-form .k-label {
    color: #555;
}

.k-form .fill,
.k-form .full-width {
    width: 100%;
}

.k-form .k-row {
    display: flex;
    position: relative;
    margin: 10px 0;
    width: 100%;
    flex-wrap: wrap;
    flex-direction: row;
}

.k-form .k-row.stretch,
.k-form .k-row.k-stretch {
    display: block;
    flex: 0 1 100%;
}

.k-form .k-row > .k-cell {
    position: relative;
    flex: 1;
    padding: 0 0.3em;
}

.k-form.no-padding,
.k-form.k-no-padding,
.k-form .k-row > .k-cell.no-padding,
.k-form .k-row > .k-cell.k-no-padding {
    padding: 0;
}

.k-form .k-row.no-margin,
.k-form .k-row.k-no-margin {
    margin: 0;
}

.k-form .k-row.no-margin-top,
.k-form .k-row.k-no-margin-top {
    margin-top: 0;
}

.k-form .k-row.no-margin-bottom,
.k-form .k-row.k-no-margin-bottom {
    margin-bottom: 0;
}

.k-form .k-row.no-margin-left,
.k-form .k-row.k-no-margin-left {
    margin-left: 0;
}

.k-form .k-row.no-margin-right,
.k-form .k-row.k-no-margin-right {
    margin-right: 0;
}

.k-form .k-row > .k-cell.no-padding-left,
.k-form .k-row > .k-cell.k-no-padding-left {
    padding-left: 0;
}

.k-form .k-row > .k-cell.no-padding-right,
.k-form .k-row > .k-cell.k-no-padding-right {
    padding-right: 0;
}

.k-form hr {
    border: 0;
    height: 2px;
    box-shadow: 0 2px 2px -2px #8c8b8b inset;
    width: 100%;
}

.k-form hr.k-divider {
    border: 0;
    height: 1px;
    position: relative;
    margin: .5em auto;
    box-shadow: none;
}

.k-form hr.k-divider:before {
    top: -0.5em;
    height: 1em;
}

.k-form hr.k-divider:after {
    content: '';
    height: 0.5em;
    top: 1px;
}

.k-form hr.k-divider:before, .k-form hr.k-divider:after {
    content: '';
    position: absolute;
    width: 100%;
}

.k-form hr.k-divider, .k-form hr.k-divider:before {
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 75%);
}

.k-form .k-row > .k-cell.k-fit-to-content {
    flex-grow: 0;
}

.k-form .k-row > .k-cell.flex-columns {
    flex-direction: column;
}

.k-form .k-row > .k-cell.no-flex,
.k-form .k-row > .k-cell.flex-0 {
    flex: 0;
}

.k-form .k-row > .k-cell.flex-1 {
    flex: 1;
}

.k-form .k-row > .k-cell.flex-2 {
    flex: 2;
}

.k-form .k-row > .k-cell.flex-3 {
    flex: 3;
}

.k-form .k-row > .k-cell.flex-4 {
    flex: 4;
}

.k-form .k-row > .k-cell.flex-5 {
    flex: 5;
}

.k-form.left-labelled .k-row > .k-cell {
    display: flex;
}

.k-form .k-row > .k-cell > .k-label.k-empty-label,
.k-form .k-row > .k-cell > .k-label.empty-label {
    visibility: hidden;
    white-space: nowrap;
    width: 1px;
}

.k-form.left-labelled .k-row > .k-cell > .k-label,
.k-form.left-labelled .k-row > .k-cell.empty-label,
.k-form.left-labelled .k-row > .k-cell.k-empty-label {
    min-width: 8em;
    line-height: 2.7;
    margin-left: 10px;
    margin-right: 10px;
    white-space: nowrap;
}

.k-form.left-labelled .k-row > .k-cell.k-empty-label,
.k-form.left-labelled .k-row > .k-cell.empty-label {
    max-width: 8em;
    margin-left: 0;
    margin-right: 7px;
}

.k-form.left-labelled .k-row > .k-cell.text-right > .k-label,
.k-form.left-labelled .k-row > .k-cell.k-text-right > .k-label {
    margin-left: 0;
    margin-right: 10px;
}

.k-form .k-input-line-height {
    line-height: 2.7;
}

.k-form .k-input-height {
    height: 2.7em;
}

.k-form.top-labelled .k-label:not(.k-pager-info) {
    margin-bottom: .3em;
    display: block;
}

.k-form.left-labelled .k-row > .k-cell:first-child {
    padding: 0 !important;
}

.k-form.left-labelled .k-row > .k-cell:last-child {
    padding-right: 0;
}

.k-form .k-row.vertical-text-center,
.k-form .k-row.k-vertical-text-center,
.k-form .k-row .k-cell.vertical-text-center,
.k-form .k-row .k-cell.k-vertical-text-center {
    align-items: center;
}

.k-form .k-row.text-center,
.k-form .k-row.k-text-center {
    justify-content: center;
}

.k-form .k-row .k-cell.text-right,
.k-form .k-row.text-right,
.k-form .k-row .k-cell.k-text-right,
.k-form .k-row.k-text-right {
    justify-content: flex-end;
}

.k-form .k-row .k-cell.text-left,
.k-form .k-row.text-left,
.k-form .k-row .k-cell.k-text-left,
.k-form .k-row.k-text-left {
    justify-content: flex-start;
}

.k-form .k-row .k-tooltip {
    position: absolute;
    margin-left: 3px;
    padding: 4px;
    display: inline-block;
    top: 3px;
    right: 3px;
    width: 20px;
    overflow: hidden;
    height: 18px;

    border-color: #d43f3a;
    background-color: #d9534f;
    color: #FFF;
}

.k-form .k-row .k-tooltip .k-icon {
    position: relative;
    left: 0;
    top: 1px;
    margin-right: 0;
}

.k-form.top-labelled .k-row .k-dropdown .k-tooltip {
    top: 3px;
    right: 3px;
}

.k-form.top-labelled .k-row .k-combobox .k-tooltip {
    right: .3em;
}

.k-form.top-labelled .k-row .k-tooltip {
    top: 1.9em;
    right: .5em;
}

.k-form .k-default-width,
.k-autocomplete, .k-combobox, .k-datepicker, .k-datetimepicker, .k-dropdown, .k-listbox, .k-numerictextbox, .k-selectbox, .k-textbox, .k-timepicker {
    width: 15em;
}

div.k-window > .k-window-content > .k-form > .k-row:first-of-type {
    margin-top: 0;
}

.k-form {
    padding: 15px 0;
    clear: both;
}

.k-form.k-padding,
.k-form.padding {
    padding: 1em;
}

.k-form.floating-fieldsets {
    max-width: 100%;
}

.k-form.floating-fieldsets fieldset {
    min-width: 700px;
    max-width: 700px;
    float: left;
    margin-right: 20px;
}

fieldset {
    border-color: #fefefe;
    box-shadow: 0 1px 2px 1px rgba(0, 0, 0, .10), 0 2px 5px rgba(0, 0, 0, .10);
}

fieldset {
    border: none;
    margin-bottom: 15px;
}

fieldset > legend {
    background-color: #fefefe;
    border: 1px solid #ddd;
    color: #555;
    font-size: 13px;
    font-weight: bold;
    padding: 3px 6px;
}

fieldset.no-border {
    box-shadow: none;
    background-color: transparent !important;
}

.k-form.floating-fieldsets fieldset.fill {
    width: 100%;
    box-sizing: border-box;
}

.k-form h4 {
    margin: 0 0 .5em;
}

.k-window-content > .k-form {
    padding: 0;
}

.k-window-content > .k-form > .k-paragraph {
    margin: 0;
}

.k-form .k-row .k-cell > .k-button {
    padding: 9px 14px;
}

.k-form .k-row .k-cell > .k-button.k-small {
    padding: 5px 10px;
}

.k-form.top-labelled .k-row .input-protection .k-tooltip {
    top: 5px;
    right: 5px;
}

.k-form.top-labelled .k-row .k-timepicker .k-picker-wrap .k-tooltip,
.k-form.top-labelled .k-row .k-datepicker .k-picker-wrap .k-tooltip {
    top: 3.4px;
    right: 40px;
}

.k-form.top-labelled .k-row .k-datetimepicker .k-picker-wrap .k-tooltip {
    top: 3px;
    right: 71px;
}

.k-form.top-labelled .k-row .k-timepicker .k-picker-wrap .k-tooltip .k-icon,
.k-form.top-labelled .k-row .k-datepicker .k-picker-wrap .k-tooltip .k-icon {
    margin-left: 2px;
    margin-right: 3px;
}

.k-form.top-labelled .k-row .k-datetimepicker .k-picker-wrap .k-tooltip .k-icon {
    margin-left: 2px;
    margin-right: 2px;
}

.k-form .k-row .k-numerictextbox .k-tooltip {
    top: 3.5px;
    right: 2px;
}

.k-form .k-row .k-numerictextbox .k-tooltip .k-icon {
    color: #fff;
    height: 19px;
    left: 1px;
    top: 0px;
    width: 17px;
    margin-right: 10px;
}

.k-form .k-row .k-dropdown .k-tooltip .k-icon,
.k-form .k-row .k-combobox .k-tooltip .k-icon {
    height: 19px;
    left: 2px;
    top: 0px;
    width: 16px;
    margin-right: 10px;
}

.k-form .k-form-status {
    padding: 5px 10px;
    width: 95%;
    text-align: center;
    margin: 0;
}

.k-form .k-checkbox-label > span {
    position: relative;
    top: -2px;
}

.k-form .k-row > .k-cell.k-checkbox-group > .k-checkbox-label,
.k-form .k-row > .k-cell.k-radio-group > .k-radio-label {
    margin-right: 1em;
}

.k-form .k-row > .k-checkbox-label,
.k-form .k-row > .k-cell > .k-checkbox-label {
    top: 10px;
}

.k-form.top-labelled .k-row > .k-checkbox-label,
.k-form.top-labelled .k-row > .k-cell > .k-checkbox-label,
.k-form.top-labelled .k-row > .k-cell > .static-control,
.k-form.top-labelled .k-row > .k-cell > .k-static-control {
    position: relative;
    top: 30px;
}

.k-form.top-labelled .k-row > .k-cell > .k-button {
    position: relative;
    top: 22px;
}

.k-form.top-labelled .k-row > .k-cell > .k-button.no-top,
.k-form.top-labelled .k-row > .k-cell > .static-control.no-top,
.k-form.top-labelled .k-row > .k-cell > .k-static-control.no-top,
.k-form.top-labelled .k-row > .k-cell > .k-button.k-no-top,
.k-form.top-labelled .k-row > .k-cell > .static-control.k-no-top,
.k-form.top-labelled .k-row > .k-cell > .k-static-control.k-no-top {
    top: 0;
}

.k-form .k-thumbnail-container {
    width: 200px;
    height: 170px;
    position: relative;
    overflow: hidden;
}

.k-form .k-thumbnail-container .k-thumbnail-centered {
    position: absolute;
    left: 5px;
    top: -30px;
    height: 100%;
    width: 100%;
    transform: translate(50%, 50%);
}

.k-form .k-thumbnail-container .k-thumbnail-centered img {
    margin: 0;
    max-height: 100px;
    min-height: 100px;
    max-width: 100px;
    min-width: 100px;
    width: auto;
    transform: translate(-50%, -50%);
}

.k-form .k-thumbnail-container .k-thumbnail-centered button {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translate(-50%, -220%);
    white-space: nowrap;
}

input.k-textbox {
    text-indent: .5em;
}

input[disabled],
select[disabled] {
    opacity: .7;
    color: #999;
}

textarea.no-resize,
textarea.k-no-resize,
.k-scheduler-edit-form textarea.k-textbox.no-resize,
.k-scheduler-edit-form textarea.k-textbox.k-no-resize {
    resize: none;
}

textarea.k-textbox {
    padding: .17857143em .35em;
}

.k-form > .k-form-header {
    width: 100%;
    height: 40px;
    background: #d9534f;
    line-height: 36px;
    color: #fff;
    text-align: left;
    text-indent: 1.5em;
}

.k-form > .k-form-header.fixed {
    position: absolute;
    left: 0;
    top: 36px;
    z-index: 1;
    box-shadow: 0 1px 2px 1px rgba(0, 0, 0, .10), 0 2px 5px rgba(0, 0, 0, .10);
}

.k-form.with-fixed-header {
    margin-top: 40px;
}
