/*
 * 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>
 *
 * Application Dashboard and custom modules
 */
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    src: url("../fonts/fa-solid-900.eot");
    src: url("../fonts/fa-solid-900.eot?#iefix") format("embedded-opentype"), url("../fonts/fa-solid-900.woff2") format("woff2"), url("../fonts/fa-solid-900.woff") format("woff"), url("../fonts/fa-solid-900.ttf") format("truetype"), url("../fonts/fa-solid-900.svg#fontawesome") format("svg");
}

@font-face {
    font-family: 'Font Awesome 5 Brands';
    font-style: normal;
    font-weight: normal;
    src: url("../fonts/fa-brands-400.eot");
    src: url("../fonts/fa-brands-400.eot?#iefix") format("embedded-opentype"), url("../fonts/fa-brands-400.woff2") format("woff2"), url("../fonts/fa-brands-400.woff") format("woff"), url("../fonts/fa-brands-400.ttf") format("truetype"), url("../fonts/fa-brands-400.svg#fontawesome") format("svg");
}

.fab {
    font-family: 'Font Awesome 5 Brands';
}

.fa,
.fas {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

body > .wrapper {
    position: relative;
    top: 0;
    height: 100vh;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 500ms ease-in-out;
}

body > .wrapper > .sidebar,
body > .wrapper > .content {
    overflow: auto;
    max-height: 100%;
    height: 100%;
    -webkit-transition-property: top, bottom;
    transition-property: top, bottom;
    -webkit-transition-duration: .2s, .2s;
    transition-duration: .2s, .2s;
    -webkit-transition-timing-function: linear, linear;
    transition-timing-function: linear, linear;
    -webkit-overflow-scrolling: touch;
}

body > .wrapper > .sidebar {
    overflow: hidden;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 230px;
    display: block;
    z-index: 2;
    color: #fff;
    font-weight: 200;
    background-size: cover;
    background-position: center center;
    border-right: 1px solid #e6e6e6;
    box-shadow: -3px 0 5px 0 #555;
    transition: width 200ms ease-in-out;
}

body > .wrapper > .content {
    background: rgba(203, 203, 210, 0.15);
    position: relative;
    z-index: 1;
    float: right;
    width: calc(100% - 230px);
    min-height: 100%;
}

body > .wrapper > .content > main {
    box-shadow: -3px 0 5px 0 #555;
    /* window height - #header height */
    height: calc(100% - 38px);
    overflow-y: auto;
    overflow-x: hidden;
}

body.nav-sm > .wrapper > .sidebar {
    width: 90px;
}

body.nav-sm > .wrapper > .content {
    width: calc(100% - 90px);
}

#k-viewport-toolbar {
    border-left: 0;
}

.k-viewport-toolbar-text {
    padding: 0 10px;
}

.k-viewport-toolbar-text > img {
    position: relative;
    top: 3px;
}

.k-viewport-toolbar-text > small > span {
    background-color: #0275d8;
    display: inline-block;
    padding: .25em .4em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    font-family: Consolas, Verdana, sans-serif;
    float: right;
    position: relative;
    top: 3px;
    cursor: default;
}

#k-viewport-toolbar > .k-overflow-anchor > span:before {
    content: "\f142";
}

#k-viewport-toolbar span.k-sprite.fa.fa-plain-icon {
    top: 2px;
}

#k-viewport-toolbar > .k-overflow-anchor > span.k-icon {
    display: inline-block;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 13px;
    background: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#k-viewport-toolbar.k-toolbar > .k-button.k-align-right,
#k-viewport-toolbar.k-toolbar > .k-split-button.k-align-right {
    margin-top: 2px;
}

#k-viewport-cardlayout .k-card > .module-message {
    margin: .7em;
    display: inline-block;
}

#k-viewport-cardlayout .k-card > .k-content,
#k-viewport-cardlayout .k-card > .k-pane {
    height: 100%;
}

#k-viewport-cardlayout .k-card > .k-module {

}

#k-viewport-cardlayout .k-card > .k-content > .k-form {
    padding: 15px 15px 0;
}

#k-viewport-cardlayout .k-card > .k-module > .k-content > .k-form > .k-row:first-child {
    margin-top: 0;
}

#k-viewport-cardlayout .k-card > .k-content > .k-form,
#k-viewport-cardlayout .k-card > .k-module > .k-content > .k-form,
#k-viewport-cardlayout .k-card > .k-content > .k-footer {
    max-width: 735px;
    margin-left: 15px;
}

#k-viewport-cardlayout .k-card > .k-content > .k-form.full-width,
#k-viewport-cardlayout .k-card > .k-module > .k-content > .k-form.full-width,
#k-viewport-cardlayout .k-card > .k-content > .k-footer.full-width {
    max-width: none;
    width: calc(100% - 2rem) !important;
}

#k-viewport-cardlayout .k-card > .k-content > .k-form.floating-fieldsets,
#k-viewport-cardlayout .k-card > .k-module > .k-content > .k-form.floating-fieldsets {
    max-width: 100%;
    margin-right: 15px;
}

.sidebar .profile {
    text-align: center;
    display: block;
    cursor: pointer;
    width: 100%;
    padding-bottom: 15px;
    background-color: #fafafa;
    border-bottom: 1px solid #e6e6e6;
}

.sidebar .profile .profile-img {
    width: 80px;
    height: 80px;
    margin-top: 15px;
    border-radius: 50%;
    padding: 4px;
    border: 1px solid rgba(52, 73, 94, 0.44);
    box-shadow: 0 1px 2px 1px rgba(0, 0, 0, .08), 0 3px 6px rgba(0, 0, 0, .08);
}

.sidebar .profile .name {
    margin-top: 4px;
    margin-bottom: 0;
    color: #000;
    font-family: OpenSansRegular;
    font-weight: normal;
}

.sidebar .profile .group {
    color: #666;
}

.sidebar-loading {
    text-align: center;
    color: #000;
    opacity: .7;
}

.nav-sm .sidebar .profile .name,
.nav-sm .sidebar .profile .group {
    display: none;
}

.nav-sm .sidebar .profile {
    padding-bottom: 10px;
}

.nav-sm .sidebar .profile .profile-img {
    width: 60%;
    height: 60%;
}

.sidebar-menu {
    overflow-x: hidden;
    overflow-y: auto;
}

.k-grid-content.k-auto-scrollable::-webkit-scrollbar-track,
.sidebar-menu::-webkit-scrollbar-track,
.pretty-scrollbar::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: #F5F5F5;
}

.k-grid-content.k-auto-scrollable::-webkit-scrollbar,
.sidebar-menu::-webkit-scrollbar,
.pretty-scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 10px;
    background-color: #F5F5F5;
}

.k-grid-content.k-auto-scrollable::-webkit-scrollbar-thumb,
.sidebar-menu::-webkit-scrollbar-thumb,
.pretty-scrollbar::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    background-color: rgba(102, 102, 102, .1);
}

.k-grid-content.k-auto-scrollable::-webkit-scrollbar-thumb:horizontal {
    background-color: rgba(102, 102, 102, .1);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    border-radius: 10px;
}

div.k-grid-footer, div.k-grid-header {
    padding-right: 6px !important;
}

.sidebar-menu .menu-section {
    margin-bottom: 35px;
}

.nav-sm .sidebar-menu .menu-section {
    margin: 0;
}

.sidebar-menu .menu-section h3 {
    padding-left: 23px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 0;
    margin-top: 0;
}

.nav-sm .sidebar span.fa, .nav-sm .sidebar .sidebar-menu .menu-section h3 {
    display: none;
}

.sidebar-menu .menu-section > ul {
    margin-top: 10px;
}

.sidebar-menu .menu-section:first-child > ul {
    margin-top: 0;
}

.nav {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav.side-menu > li.current-page, .nav.side-menu > li.active {
    border-right: 5px solid;
}

.nav.side-menu > li {
    position: relative;
    display: block;
    cursor: pointer;
}

.nav-sm .nav.side-menu li a {
    text-align: center !important;
    font-weight: 400;
    font-size: 10px;
    padding: 5px;
}

.nav.side-menu > li > a {
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
}

.nav > li > a {
    position: relative;
    display: block;
    padding: 13px 15px 12px;
}

.nav.child-menu {
    display: none;
}

.nav.child-menu li.hidden {
    display: none;
    visibility: hidden;
}

.nav.child-menu li {
    padding-left: 36px;
}

.nav > li {
    position: relative;
    display: block;
}

.nav.child-menu > li > a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    padding: 9px;
}

.nav.side-menu > li > a, .nav.child-menu > li > a {
    color: #444;
    font-weight: 500;
    transition: all 200ms ease-in-out;
}

.nav > li > a {
    position: relative;
    display: block;
    padding: 8px 15px 8px;
}

.nav-md ul.nav.child-menu li:before {
    background: #e6e6e6;
    bottom: auto;
    content: "";
    height: 8px;
    left: 23px;
    margin-top: 15px;
    position: absolute;
    right: auto;
    width: 8px;
    z-index: 1;
    border-radius: 50%;
    transition: width 200ms ease-in-out;
}

.nav-md ul.nav.child-menu li:after {
    border-left: 1px solid #e6e6e6;
    bottom: 0;
    content: "";
    left: 27px;
    position: absolute;
    top: 0;
}

.active a span.fa {
    text-align: right !important;
    margin-right: 4px;
}

.active a span.fa:before {
    content: '\f111';
}

.sidebar-menu span.fa {
    float: right;
    text-align: center;
    margin-top: 5px;
    font-size: 10px;
    min-width: inherit;
    color: #C4CFDA;
}

.sidebar-menu .fa,
.sidebar-menu .fab,
.sidebar-menu .fas {
    width: 26px;
    display: inline-block;
    font-size: 16px;
}

.nav-sm .nav.side-menu li a i {
    font-size: 25px !important;
    text-align: center;
    width: 100% !important;
    margin-bottom: 5px;
}

.nav-sm ul.nav.child-menu li {
    padding: 0 10px;
}

.nav-sm ul.nav.child-menu li a {
    text-align: left !important;
    width: 57px;
    overflow: hidden;
    display: inline-block;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-sm ul.nav.child-menu {
    width: 210px;
    z-index: 4000;
    display: none;
}

/* Dashboard */
.dashboard {
    background-color: rgba(203, 203, 210, 0.15);
}

/* Roles components */
.user-details {
    width: auto !important;
}

.user-details tr {
    background: transparent !important;
}

.user-details tr td {
    vertical-align: top;
    background: transparent !important;
}

.user-details tr td > p {
    margin: 0;
}

.user-details tr td > p:first-child {
    margin-top: 5px;
}

.user-details tr td > p > strong {
    display: inline-block;
    width: 180px;
    font-size: 13px;
}

.profile-img,
.user-details .profile-img {
    width: 70px;
    margin-top: 10px;
    border-radius: 50%;
    padding: 4px;
    border: 1px solid rgba(52, 73, 94, 0.44);
    box-shadow: 0 1px 2px 1px rgba(0, 0, 0, .08), 0 3px 6px rgba(0, 0, 0, .08);
}

.k-profile-item {
    margin: 0;
}

.k-profile-item > img {
    float: left;
    width: 30px;
    min-height: 30px;
    margin: 0;
}

.k-profile-item > span {
    float: left;
    padding-left: 1.5em;
    padding-top: .2em;
}

.k-profile-item > span > h3 {
    padding: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.k-profile-item > span > p {
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1;
}

.k-profile-item > .remove {
    float: right;
    line-height: 35px;
    font-size: 15px;
    cursor: pointer;
    margin-right: 7px;
}

.k-profile-list {
    flex: 1;
    border-left: 1px solid #e6e6e6;
    padding: 1em 1em 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.k-profile-list > .k-profile-item {
    padding: .6em;
}

.k-profile-list > .k-profile-item:hover {
    background-color: #f9f9f9;
}

.k-profile-list > .no-data {
    margin: 0;
    padding: 0;
    text-align: center;
    vertical-align: middle;
    position: relative;
    top: 45%;
    color: #a1a4aa;
}

.k-profile-list > .k-profile-item:last-child {
    border-bottom: 0;
}

.k-module-permissions > .toolbar {
    height: 2.6em;
}

.k-module-permissions .k-grid-content {
    background: none;
}

.k-module-permissions .k-grid td.action-name > code {
    display: block;
    font-size: 10px;
    line-height: 1;
    margin-top: 1px;
}

.k-module-permissions .k-grid td.action-name > code > span {
    visibility: hidden;
    opacity: 0;
    transition: all 300ms ease-in-out;
}

.k-module-permissions .k-grid td.action-name:hover > code > span {
    opacity: 1;
    visibility: visible;
}

.k-module-permissions .k-grid td.action-name > span {
    font-weight: bold;
}

.k-module-permissions .k-grid td.action-name > span > small {
    font-weight: normal;
    font-size: 11px;
    color: #888;
}

.k-files-library .splitter {
    border: 0 none;
}

.k-files-library .toolbar .k-overflow-anchor {
    display: none !important;
}

.k-files-library .breadcrumbs {
    border-bottom: 1px solid #e5e5e5;
    height: 35px;
    line-height: 32px;
}

.k-files-library .listview {
    overflow-x: hidden;
    overflow-y: auto;
    border: none;
    padding: 20px;
}

.k-files-library .message-box {
    margin: 10px 20px;
    padding: 10px;
}

.k-files-library .message-box > p {
    margin-top: 0;
}

.k-files-library .message-box.no-button > p {
    margin-bottom: 0;
}

.k-files-library .public-url {
    width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.k-files-library .info-pane {
    padding: 1em 1.5em
}

.k-files-library .insert-list {
    width: 100%;
}

.k-files-library .side-button {
    width: 65px;
}

.k-files-library .filter {
    display: inline;
    position: absolute;
    left: 10px;
    top: 0px;
    padding: 5px
}

.k-files-library .filter > span {
    font-weight: bold;
}

.k-files-library .filter > span:after {
    content: ', ';
}

.k-files-library .filter > span:last-child:after {
    content: '';
}

.k-files-library .k-footer {
    margin-top: 0;
    margin-right: 10px;
    position: relative;
}

.k-files-library .pane-right > .k-block {
    background: none;
    border: 0;
    padding: 0;
}

.k-files-library .pane-right > .k-block > .k-header {
    padding: .6em 1em;
    margin: 0;
    border-radius: 0;
    background: none;
    border: 0;
    color: #444;
}

.k-files-library .pane-right > .k-block > .k-content {

}

/* Thumbs at KendoUI ListView */
.thumb-item {
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    height: 112px;
    margin-bottom: 10px;
    margin-right: 10px;
    padding-top: 5px;
    position: relative;
    text-align: center;
    width: 96px;
    transition: all 0.1s ease-in-out 0s;
}

.thumb-item:hover {
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(0, 0, 0, 0.05);
}

.thumb-item.k-state-selected,
.thumb-item.k-state-selecting {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 0 2px 3px rgba(0, 0, 0, 0.05);
}

.thumb-item.drop-in {
    opacity: .7;
    transform: scale(.7);
}

.thumb-item .in,
.thumb-item .out {
    position: absolute;
    top: 0;
    right: 0;
}

.thumb-item > .checkbox {
    width: 25px;
    height: 25px;
    position: absolute;
    top: 0px;
    right: 0px;
}

.thumb-item > .checkbox > label {
    left: 5px;
    top: 3px;
    z-index: 1;
}

.thumb-item .thumbnail {
    background: none repeat scroll 0 0 transparent;
    border: 0 none;
    display: inline-block;
    height: 80px;
    margin: 0;
    overflow: hidden;
    position: relative;
    vertical-align: middle;
    width: 67px;
    border-radius: 4px;
    line-height: 1.42857;
    max-width: 100%;
    padding: 4px;
    transition: all 0.2s ease-in-out 0s;
}

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

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

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

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

.thumb-item .thumbnail .centered {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    transform: translate(50%, 50%);
}

.thumb-item .thumbnail .centered img {
    max-height: 67px;
    width: auto;
    transform: translate(-50%, -50%);
}

.thumb-item .label {
    display: inline-block;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
    width: 80px;
    background-color: #fefefe;
    border-radius: 0.25em;
    color: #444;
    line-height: 1;
    padding: 0.2em 0.6em 0.3em;
    text-align: center;
    font-size: .8em;
}

.thumb-item.fixed .label {
    font-style: italic;
}

/* Thumbnails at List Mode */
.display-mode-list .thumb-item {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.display-mode-list .thumb-item .thumbnail {
    height: 25px;
    width: 25px;
    float: left;
}

.display-mode-list .thumb-item .thumbnail .centered {
    transform: none;
    position: relative;
}

.display-mode-list .thumb-item .thumbnail .centered img {
    max-height: 25px;
    transform: none;
}

.display-mode-list .thumb-item .label {
    width: auto;
    float: left;
    text-align: left;
    margin-top: 10px;
}

/* for k-footer on edit forms fixed bottom */
@media all and (max-width: 1366px) {
    body > .wrapper > .content > main {
        background-color: #fff;
    }

    #k-viewport-cardlayout .k-card > .k-module > .k-content > .k-form,
    #k-viewport-cardlayout .k-card > .k-content > .k-form {
        height: calc(100% + 100px);
    }

    #k-viewport-cardlayout .k-card > .k-module > .k-content > .k-form > .k-footer {
        position: fixed;
        bottom: 0;
        width: calc(100% - 260px);
        padding: 15px;
        right: 0;
        background-color: #fff;
    }

    body.fixed-content > .wrapper > .content > main {
        height: calc(100% - 98px);
    }

    body.nav-sm #k-viewport-cardlayout .k-card > .k-module > .k-content > .k-form > .k-footer {
        width: calc(100% - 120px);
    }

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

.splitter > .pane-right.tsn {
    opacity: 1;
    transition: all .3s ease
}

.splitter > .pane-right.tsn.k-state-collapsed {
    opacity: 0;
}
