/*!
 * Copyright 2021 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/icons.less";
@import "../common/listview.less";
@import "base.less";

// ListView

.km-android li.km-state-active
{
    border: 0;
}

.km-android .km-listinset,
.km-android .km-listgroupinset
{
    margin: 0;
}

.km-android .km-listview-wrapper
{
    padding: 0 1em;
}

.km-android .km-list > li
{
    font-size: 1.3em;
    font-weight: normal;
    line-height: 2em;
    overflow: hidden;
}

.km-android .km-list
{
    margin-bottom: 1em;
    -webkit-margin-collapse: separate;
}

.km-android .km-group-title
{
    margin-top: 0;
    background: transparent;
    padding: .8em 0 .5em;
    line-height: inherit;
    text-transform: uppercase;
}

.km-android .km-scroll-header .km-group-title
{
    margin: 0 1em;
    border-bottom-width: @android-border-width;
    border-bottom-style: solid;
}

.km-android .km-listview-link:after,
.km-android .km-listview-label:after
{
    display: none;
}

.km-android .km-list .km-item
{
    height: 56px;
}

.km-android .km-listview .km-switch
{
    margin-top: -.8em;
}

// Filter box

.km-android .km-listview-wrapper form .km-filter-wrap > input
{
    font-size: 1.2em;
    padding-left: 1.8em;
    padding-right: 1.8em;
}

.km-android .km-filter-wrap:before
{
    margin: 0 -1.3em 0 .3em;
}

.km-android .km-filter-wrap:before,
.km-android .km-filter-reset .km-clear
{
    font-size: 1.4em;
}

.km-android .km-filter-reset .km-clear:after
{
    content: "\e038";
}

// Pull To Refresh

.km-root .km-android .km-load-more,
.km-android .km-scroller-pull
{
    font-size: 1.2em;
}

// Load more
.km-android .km-load-more .km-icon,
.km-android .km-scroller-pull .km-icon
{
    width: 1em;
    height: 1em;
    font-size: 1.7em;
}

.km-android .km-scroller-pull .km-template
{
    min-width: 0;
}

.km-android .km-item label:before
{
    border-width: @android-border-width;
    border-style: solid;
    border-radius: 2px;
    .box-sizing(border-box);
}

.km-android .km-listview-item-badge.km-badge,
.km-android .km-listview-link>.km-badge {
    min-width: 2.1em;
}
