/*!
 * Copyright 2023 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import "../common/base.less";

@fiori-border-width: 1px;
@fiori-border-radius: 2px;
@fiori-inline-border-radius: (@fiori-border-radius - 1px);

.km-fiori
{
    font: normal 1em "HelveticaNeue Light", "Roboto Light", "Slate Light", "Segoe WP", NokiaPureTextLight, sans-serif;
}

// override transform options for performance
.km-root .km-fiori.km-pane,
.km-root .km-fiori .km-view,
.km-root .km-fiori .km-slider,
.km-root .km-fiori .km-switch,
.km-root .km-fiori .km-group-title,
.km-root .km-fiori .km-filter-reset,
.km-root .km-fiori .km-shim .k-animation-container
{
    -webkit-transform: none;
}

.km-fiori,
.km-fiori *
{
    .box-sizing(border-box);
    .background-clip(border-box);
}

// Revert box/clip for Web widgets
.km-fiori [class^=k-]
{
    .box-sizing(content-box);
}


.km-fiori .km-tabstrip .km-button
{
    background: none;
}

// PopUp

.km-fiori .km-popup .k-popup
{
    font-size: 1em !important;
}

.km-fiori .km-popup .k-item,
.km-fiori .km-actionsheet > li > a
{
    text-decoration: none;
    padding: .5em .6em;
    border-radius: 0;
    border-width: 0 0 @fiori-border-width;
    border-style: solid;
    .box-sizing(border-box);
}

.km-fiori .km-popup
{
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    .box-sizing(border-box);
}

.km-fiori .km-popup .k-list-container
{
    width: 100% !important;
    height: auto !important;
}

.km-fiori .km-actionsheet,
.km-fiori .km-popup .k-list-container
{
    max-height: 80%;
}

.km-fiori .km-actionsheet-wrapper,
.km-fiori .km-popup .k-list-container
{
    bottom: 0;
    border-width: @fiori-border-width 0 0;
    border-style: solid;
    border-radius: 0;
    .box-sizing(border-box);
}

.km-fiori .km-shim .k-animation-container
{
    left: 0;
    top: auto;
    bottom: 0;
}

.km-fiori .km-popup-wrapper
{
    padding: 15px;
}

.km-fiori .km-popup.km-pane,
.km-fiori .km-actionsheet-wrapper.km-popup
{
    border-radius: @fiori-border-radius;
}

// Loader & Pull-to-refresh

.km-fiori .km-load-more
{
    height: 3.4em;
}

.km-fiori .km-load-more .km-button
{
    margin: 0 .8em;
    display: block;
}

.km-fiori .km-loader:before,
.km-fiori .km-scroller-refresh.km-load-more,
.km-fiori .km-scroller-pull
{
    border-radius: 20em;
    overflow: visible;
}

.km-fiori .km-loader:before
{
    content: "\a0";
    display: block;
    position: absolute;
    margin-top: -2em;
    margin-left: -2em;
    width: 4em;
    height: 4em;
    top: 50%;
    left: 50%;
    border-radius: 5em;
}

.km-fiori .km-loader
{
    left: 0;
    top: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}

.km-fiori .km-scroller-refresh.km-load-more
{
    padding: 0;
    position: relative;
    margin: auto;
}

.km-fiori .km-scroller-refresh.km-load-more,
.km-fiori .km-scroller-pull
{
    font-size: 1em;
    width: 2.5em;
    height: 2.5em;
    top: .25em;
    white-space: nowrap;
}

.km-fiori .km-scroller-pull
{
    left: 50%;
    margin: 0 0 0 -90px;
}

.km-fiori .km-loader h1
{
    display: none;
    font-size: 1em;
    position: absolute;
    left: -50%;
    width: 200%;
    top: 55%;
}

.km-fiori .km-scroller-pull .km-template
{
    position: absolute;
    line-height: 2em;
    font-size: 1.2em;
    min-width: 0;
    top: 0;
    left: 3em;
}

.km-fiori .km-loading,
.km-fiori .km-loader .km-loading-left,
.km-fiori .km-loader .km-loading-right,
.km-fiori .km-load-more.km-scroller-refresh .km-icon,
.km-fiori .km-scroller-pull.km-scroller-refresh .km-icon,
.km-fiori .km-scroller-refresh .km-loading-left,
.km-fiori .km-scroller-refresh .km-loading-right
{
    font-size: 1em;
    display: block;
    width: .36em;
    height: 1em;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -.8em;
    margin-top: -.5em;
    border-radius: 1em;
    .animation(km-fioriload .6s infinite linear);
    -webkit-background-clip: none;
}

.km-fiori .km-scroller-pull .km-icon
{
    margin-right: 0;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -1rem;
    margin-top: -1rem;
}

.km-fiori .km-load-more.km-scroller-refresh .km-icon,
.km-fiori .km-scroller-pull.km-scroller-refresh .km-icon,
.km-fiori .km-scroller-refresh .km-loading-left,
.km-fiori .km-scroller-refresh .km-loading-right
{
    height: .6em;
    margin-top: -.3em;
    margin-left: -.6em;
    width: .25em;
    .animation(km-fiorirefresh .6s infinite linear);
}

.km-fiori .km-scroller-pull .km-icon:after
{
    content: "\e012";
    margin-left: -3px;
}

.km-fiori .km-scroller-refresh .km-icon:after
{
    display: none;
}

.km-root .km-fiori .km-loading-left
{
    margin-left: -.2em;
    .animation-delay(.2s);
}

.km-root .km-fiori .km-loading-right
{
    margin-left: .42em;
    .animation-delay(.4s);
}

.km-fiori .km-scroller-refresh .km-loading-left
{
    margin-left: -.18em;
}

.km-fiori .km-scroller-refresh .km-loading-right
{
    margin-left: .28em;
}

@keyframes km-fioriload
{
    0% { height: 1em; margin-top: -.5em; }
    33% { height: 2em; margin-top: -1em; }
    66% { height: 1em; margin-top: -.5em; }
}

@-moz-keyframes km-fioriload
{
    0% { height: 1em; margin-top: -.5em; }
    33% { height: 2em; margin-top: -1em; }
    66% { height: 1em; margin-top: -.5em; }
}

@-webkit-keyframes km-fioriload
{
    0% { height: 1em; margin-top: -.5em; }
    33% { height: 2em; margin-top: -1em; }
    66% { height: 1em; margin-top: -.5em; }
}

@keyframes km-fiorirefresh
{
    0% { height: .6em; margin-top: -.3em; }
    33% { height: 1.2em; margin-top: -.6em; }
    66% { height: .6em; margin-top: -.3em; }
}

@-moz-keyframes km-fiorirefresh
{
    0% { height: .6em; margin-top: -.3em; }
    33% { height: 1.2em; margin-top: -.6em; }
    66% { height: .6em; margin-top: -.3em; }
}

@-webkit-keyframes km-fiorirefresh
{
    0% { height: .6em; margin-top: -.3em; }
    33% { height: 1.2em; margin-top: -.6em; }
    66% { height: .6em; margin-top: -.3em; }
}





// Color Template
@import "template.less";



// Tablet Styles

.km-tablet .km-fiori.km-horizontal .km-navbar .km-button,
.km-tablet .km-fiori.km-horizontal .km-toolbar .km-button
{
    margin-top: .2rem;
    margin-bottom: .2rem;
}
