/* page-filters */

.card:not(.no-margin-top),
.card:not(.no-margin-top) > .card-content:first-of-type,
.mytz0-dx-top-radius,
.mytz0-dx-top-radius.card-content,
.mytz0-dx-top-radius > .card-content:first-of-type{
    border-top-left-radius:20px;
    border-top-right-radius:20px;
}

.card:not(.no-margin-bottom),
.card:not(.no-margin-bottom) > .card-content:last-child,
.mytz0-dx-bottom-radius{
    border-bottom-left-radius:20px;
    border-bottom-right-radius:20px;
}

.mytz0-dx-page-period-selector-wrapper:first-child:not(.no-margin-top),
.mytz0-dx-common-filters-wrapper:first-child:not(.no-margin-top){
    border-top-left-radius:20px;
    border-top-right-radius:20px;
    overflow:hidden;
}

.mytz0-dx-page-period-selector-wrapper:last-child:not(.no-margin-bottom),
.mytz0-dx-common-filters-wrapper:last-child:not(.no-margin-bottom){
    border-bottom-left-radius:20px;
    border-bottom-right-radius:20px;
    overflow:hidden;
}

.card-dx-component:not(.no-margin-top),
.card-dx-component:not(.no-margin-top) .card-dx-component-header{
    border-top-left-radius:20px;
    border-top-right-radius:20px;
}

.card-dx-component:not(.no-margin-bottom){
    border-bottom-left-radius:20px;
    border-bottom-right-radius:20px;
}

/* data-grid */

.card-dx-component:not(.no-margin-top) > .card-dx-component-wrapper:first-child > .dx-gridbase-container,
.card-dx-component:not(.no-margin-top) > .card-dx-component-wrapper:first-child > .dx-gridbase-container .dx-datagrid-header-panel,
.card-dx-component:not(.no-margin-top) > .card-dx-component-wrapper:first-child > .dx-gridbase-container .dx-treelist-header-panel,
.card-dx-component:not(.no-margin-top) > .btn-floating-wrapper:first-child + .card-dx-component-wrapper > .dx-gridbase-container,
.card-dx-component:not(.no-margin-top) > .btn-floating-wrapper:first-child + .card-dx-component-wrapper > .dx-gridbase-container .dx-datagrid-header-panel,
.card-dx-component:not(.no-margin-top) > .btn-floating-wrapper:first-child + .card-dx-component-wrapper > .dx-gridbase-container .dx-treelist-header-panel,
.card-dx-component:not(.no-margin-top) > .btn-floating-wrapper:first-child + .card-dx-component-wrapper > .dx-gridbase-container .dx-hidden + .dx-treelist-headers{
    border-top-left-radius:20px;
    border-top-right-radius:20px;
}

.card-dx-component:not(.no-margin-bottom) > .btn-floating-wrapper + .card-dx-component-wrapper > .dx-gridbase-container,
.card-dx-component:not(.no-margin-bottom) >             .card-dx-component-wrapper:first-child > .dx-gridbase-container{
    border-bottom-left-radius:20px;
    border-bottom-right-radius:20px;
}

.card-dx-component:not(.no-margin-bottom) > .btn-floating-wrapper + .card-dx-component-wrapper > .dx-gridbase-container > *:last-child,
.card-dx-component:not(.no-margin-bottom) >             .card-dx-component-wrapper:first-child > .dx-gridbase-container > *:last-child{
    padding-bottom:20px;
    border-bottom-left-radius:20px;
    border-bottom-right-radius:20px;
}

.card-dx-component:not(.no-margin-bottom) > .btn-floating-wrapper + .card-dx-component-wrapper > .dx-gridbase-container > .dx-pager:not(.dx-hidden) ~ *:last-child,
.card-dx-component:not(.no-margin-bottom) >             .card-dx-component-wrapper:first-child > .dx-gridbase-container > .dx-pager:not(.dx-hidden) ~ *:last-child{
    padding-bottom:0;
}

.card-dx-component .dx-pager .dx-page-sizes .dx-page-size,
.card-dx-component .dx-pager .dx-pages .dx-page,
.card-dx-component .dx-pagination .dx-pages .dx-page,
.card-dx-component .dx-pagination .dx-page-sizes .dx-page-size{
    padding: 0 4px;
    min-width: 30px;
    min-height: 30px;
    line-height: 30px;
    text-align: center;
}

.card.mytz0-dx-data-grid-legend:last-child{
    border-bottom-left-radius:20px;
    border-bottom-right-radius:20px;
    overflow-y:hidden;
}

/* chart */

.card-dx-component:not(.no-margin-bottom) > .card-dx-component-wrapper.card-dx-component-wrapper-chart,
.card-dx-component:not(.no-margin-bottom) > .card-dx-component-wrapper.card-dx-component-wrapper-piechart,
.card-dx-component:not(.no-margin-bottom) > .card-dx-component-wrapper.card-dx-component-wrapper-piechart{
    border-bottom-left-radius:20px;
    border-bottom-right-radius:20px;
}

/* scheduler */

.card-dx-component:not(.no-margin-bottom) > .card-dx-component-wrapper .dx-scheduler-container .dx-scheduler-work-space{
    border-bottom:none;
}

.card-dx-component:not(.no-margin-bottom) > .card-dx-component-wrapper .dx-scheduler-container,
.card-dx-component:not(.no-margin-bottom) > .card-dx-component-wrapper .dx-scheduler-container .dx-scheduler-work-space{
    border-bottom-left-radius:20px;
    border-bottom-right-radius:20px;
}

/* mytz0-dx-card-component-collapsible */

.mytz0-dx-card-component-collapsible:not(.no-margin-top),
.mytz0-dx-card-component-collapsible:not(.no-margin-top) li:first-of-type .collapsible-header{
    border-top-left-radius:20px;
    border-top-right-radius:20px;
}

.mytz0-dx-card-component-collapsible.no-margin-top .card-dx-component-wrapper .card-dx-component-header{
    border-top-left-radius:0px;
    border-top-right-radius:0px;
}

.mytz0-dx-card-component-collapsible li:not(:last-child) .card-dx-component-wrapper{
    border-bottom-left-radius:0px;
    border-bottom-right-radius:0px;
}

.mytz0-dx-card-component-collapsible li:last-child:not(.active) .collapsible-header{
    border-bottom-left-radius:0px;
    border-bottom-right-radius:0px;
}

.mytz0-dx-card-component-collapsible:not(.no-margin-bottom),
.mytz0-dx-card-component-collapsible:not(.no-margin-bottom) li:last-child .collapsible-header{
    transition:all .15s
}

.mytz0-dx-card-component-collapsible:not(.no-margin-bottom),
.mytz0-dx-card-component-collapsible:not(.no-margin-bottom) > li:last-child.active > .collapsible-body,
.mytz0-dx-card-component-collapsible:not(.no-margin-bottom) > li:last-child:not(.active) > .collapsible-header{
    border-bottom-left-radius:20px;
    border-bottom-right-radius:20px;
}

/* ingite-ai */

.ingite-ai-card{
    border-top-left-radius:20px;
    border-top-right-radius:20px;
}

.ingite-ai-card:not(.ingite-ai-has-prompt),
.ingite-ai-card-prompt{
    border-bottom-left-radius:20px;
    border-bottom-right-radius:20px;
    overflow:hidden;
}
