//修改ionic主色调
:root {
    --ion-color-primary: var(--app-dominant-color);
    --ion-color-primary-shade: var(--app-dominant-color-activate);
}

// 默认隐藏返回按钮
.app-back-button {
    display: none;
}

// 可以回退时显示返回按钮
.can-go-back {
    .app-back-button {
        display: block;
    }
}

// 模态框默认显示返回按钮
ion-modal {
    .app-back-button {
        display: block;
    }
}

.app-view-header {

    ion-searchbar {
        padding: 0px 10px;
        height: 36px;
    }
}


.app-view-content {
    background-color: var(--app-background-fill-color, --ion-background-color);

    ion-refresher {
        z-index: 1;
    }

    .app-view-progress-bar {
        position: fixed;
        z-index: 1;
    }

}

// 表单
.app-form {

    .app-form-button {
        text-align: center;
    }

    .app-form-group {
        margin-bottom: 2px;
        box-shadow: 0 2px 0 var(--app-background-color);

        .app-form-group-accordion {

            .app-form-group-accordion-panel {

                .am-accordion-header {
                    border-left: 3px solid var(--ion-color-primary, #3880ff);
                    border-radius: 0px;
                }
            }

            .app-form-group-accordion-panel.non {

                .am-accordion-header {

                    i {
                        display: none;
                    }
                }
            }
        }
    }

    .app-form-item {
        --min-height: 36px;
        --border-width: 0 0 0.55px 0 !important;

        label {
            font-size: var(--app-important-font-size);
        }

        .app-form-item-label {
            display: flex;
            align-items: center;

            app-icon {
                height: 22px;
                width: 22px;
                margin-right: 3px;
            }
        }

        .app-form-item-editor {
            display: flex;
            justify-content: var(--app-form-editor-justify-content, flex-end);
            align-items: center;
            width: 100%;
            text-align: var(--app-form-editor-text-align, end);
            font-size: var(--app-important-font-size);
        }

        .stars {
            font-size: var(--app-important-font-size);
            color: red;
        }

        .app-form-item-input {
            text-overflow: ellipsis;
        }
    }
}

// 搜索表单
.app-search-form.am-accordion-item {

    .am-accordion-header {
        height: 30px;
        line-height: 30px;
        font-size: 14px;

        .arrow {
            top: 7px;
        }
    }

    .app-form {
        margin: 0px;
    }

    .app-search-form-footer {

        .app-search-form-footer-buttons {
            display: flex;

            div {
                flex-grow: 1;
                padding: 6px;
            }
        }
    }

}

// 门户
.app-view-content.app-portal {

    .app-portal-card {
        margin: 0 !important;

        ion-card {
            margin: 0 !important;
        }

        .app-portal-card-content {
            overflow-y: auto;
            overflow-x: hidden;
        }
    }
}

.app-mob-portlet {
    .app-portal-card {
        margin: 0 !important;

        ion-card {
            margin: 0 !important;
        }
    }
}

// 快捷工具栏
.app-quick-toolbar {
    display: flex;

    .app-quick-toolbar-item {
        flex-grow: 1;
        margin: 0px 3px;
    }
}

// 布局面板
.app-layout-panel {

    .app-layout-panel-container-grid,
    .app-layout-panel-container-row {
        padding: 0px;
        height: 100%;
        width: 100%;
    }

    .app-layout-panel-container-col {
        height: 100%;
        padding: 0px;
    }

    .app-layout-panel-container-flex {
        width: 100%;
        height: 100%;
        display: flex;
    }
}

// 树部件
.app-tree {

    .app-treenode {
        padding: 6px;
        border-bottom: 1px solid #e3e3e3;
    }

    .app-treectrl-list {
        margin-bottom: 0px;
    }
}

// 日历视图
.calendar-data-item {
    padding-left: 16px;
    background: var(--app-background-color);
    height: 42px;
    color: var(--color);
    font-family: var(--ion-font-family, inherit);
    font-size: 18px;
    display: flex;
    align-items: center;
}

// 多数据部件
.app-mdctrl-list {

    .app-mdctrl-list-item {

        .app-row-header {
            font-family: PingFangSC-Regular;
            font-size: 15px;
            color: #333333;
            letter-spacing: 0;
            padding-left: 5px;
            height: 18px;
        }

        .app-row-col {
            display: flex;
            justify-content: flex-start;
            align-items: center;
        }

        .app-col-style {
            font-family: PingFangSC-Regular;
            font-size: 13px;
            color: #999999;
            letter-spacing: 0;
            height: 24px;
        }

        .app-col-data {
            font-family: PingFangSC-Regular;
            font-size: 14px;
            color: #666666;
            letter-spacing: 0;
        }

        .app-mdctrl-list-item-end {
            height: 100%;
            padding: 10px 0px;
            font-size: var(--app-secondary-font-size, 0.7rem);

            p {
                color: var(--ion-color-step-400, #999);
            }
        }
    }
}

.app-mob-card {
    padding: 2px;

    .sc-ion-card-ios-h {
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 12px;
        border-radius: 0;
    }
}

.app-portal-card {
    .sc-ion-card-ios-h {
        -webkit-margin-start: 0;
        margin-inline-start: 0;
        -webkit-margin-end: 0;
        margin-inline-end: 0;
    }

    .sc-ion-card-ios-h {
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 0;
        border-radius: 0;
    }

    .app-portal-card-header {
        padding: 5px;

        .app-portal-card-title {
            font-size: 20px;
        }
    }

    .app-portal-card-content {
        padding: 5px;
        font-size: 16px;
    }
}

.sc-ion-searchbar-ios-h {
    height: 36px;
}

.list-ios {
    margin-bottom: 0px;
}

.list-md {
    padding-top: 0px;
    padding-bottom: 0px;
}

//多表单部件
.app-medit-view-panel-card {
    margin: 0 0 5px 0;
    border-radius: 0;
}

.app-view-embedded {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 16px;
    font-size: 16px;
    font-weight: bold;
    color: #f5f5f5;
    background: var(--app-dominant-color);

    div {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .app-view-embedded-icon {
        font-size: 32px;
        font-weight: bolder;
    }
}

//视图级
.app-view {
    width: 100%;
    height: 100%;

    .app-view-body {
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        background: #f9f7f7;
    }
}

//视图头部样式
.app-view-header {
    position: relative;

    .app-view-title {
        text-align: center;
    }

    .app-toolbar-left-buttons {
        position: absolute;
       // top: 25%;
        left: 0;
    }

    .app-toolbar-right-buttons {
        position: absolute;
       // top: 25%;
        right: 0;
    }
}