﻿body {
    background-color: var(--md-sys-color-background);
}

.wiz-container {
    display: grid;
    grid-template-columns: 205px minmax(300px,100%);
    grid-template-rows: 1fr 0.1fr;
    gap: 0px 0px;
    grid-template-areas:
        "overview content"
        "footer footer";
    height: inherit;
    position: relative;
}

.wiz-overview {
    grid-area: overview;
}

.wiz-content {
    grid-area: content;
}

.wiz-footer {
    grid-area: footer;
}

.user-container-area {
    display: grid;
    grid-auto-columns: 1fr;
    grid-template-rows: 1fr minmax(0,2fr);
    ;
    gap: 0px 0px;
    min-height: 100%;
    width: 100%;
}

.user-table-area {
    grid-area: 2 / 1 / 3 / 2;
}

.user-controls-area {
    grid-area: 1 / 1 / 2 / 2;
}

.designer-overlay {
    background-color: var(--md-sys-color-background);
}


.datasource-card {
    background-color: #ffff;
    width: 295px;
    height: 157.89px;
    border-radius: 16px !important;
}


.app-profile-panel {
    width: 45%;
    background-color: var(--md-sys-color-secondary-container);
    padding: 24px;
    border-radius: 12px;
    min-height: 400px;
}

.app-bar {
    background-color: var(--md-sys-color-background);
}

.search-bar.mud-input.mud-input-underline:before {
    border-bottom: none;
}

.search-bar.mud-input.mud-input-underline:after {
    border-bottom: none;
}




.dashboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(196px, 0.2fr));
    grid-gap: 1rem; /* To define the gap between rows/columns */
    gap: 1rem;
}

.dashboard-card {
    /* This will come in handy later to center the contents */
    position: relative;
    height: 190px;
    /*max-width: 230px;*/
}

    .dashboard-card:after {
        content: "";
        display: block;
        padding-bottom: 56.25%;
    }

    .dashboard-card .content {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
    }

    .dashboard-card .inner {
        width: 100%;
        height: 100%;
    }



.image-hover:hover, .image-hover:focus {
    transition: .2s;
    transform: scale(1.05);
}

.image-hover {
    transition: transform 0.4s;
}

.filter-badge {
    background-color: var(--md-sys-color-primary-container) !important;
}

.filter-menu {
    max-height: 55vh;
}

.menu-override {
    box-shadow: var(--mud-elevation-2) !important;
    border-radius: 16px !important;
}

.menu-list-override {
    border-radius: 16px !important;
}

.mud-chip.mud-chip-size-medium {
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
}

.mud-chip.mud-chip-size-small {
    border-radius: 8px;
    font-size: 12px;
    height: 24px;
    padding: 0 8px;
}

.mud-chip-filled {
    color: var(--mud-palette-text-primary);
    background-color: rgb(232 240 254);
}

    .mud-chip-filled:hover:not(.mud-disabled), .mud-chip-filled:focus-visible:not(.mud-disabled) {
        background-color: #D8E0ED;
    }

.mud-expand-panel.mud-expand-panel-border {
    /* border-bottom: 1px solid var(--mud-palette-lines-default); */
    border-bottom: none;
}

.fields > .mud-expand-panel-header {
    padding: 16px 0px 16px 0px !important;
}

.app-panels-border {
    border-radius: 16px !important;
}

    .app-panels-border > .mud-table-container {
        border-radius: 16px 16px 0px 0px !important;
    }

.table-search {
    max-width:400px !important;
}


.mud-button {
    height: 40px;
}

.mud-dialog .mud-dialog-actions {
    padding: 0px;
}

.mud-expand-panel.mud-panel-expanded {
   margin:  0px; 

}

/*NavRail*/

.naivrailbutton-container {
    align-items: center;
    padding-bottom: 12px;
    color: var(--md-sys-color-on-surface-variant);
}

    .naivrailbutton-container.active {
        color: var(--md-sys-color-on-surface);
    }

    .naivrailbutton-container:hover {
        color: var(--md-sys-color-on-surface);
    }

    .naivrailbutton-container.active > .naivrailbutton {
        background-color: var(--md3-navicon-active) !important;
        color: var(--md-sys-color-on-surface);
    }

        .naivrailbutton-container.active > .naivrailbutton:hover {
            background-color: var(--md3-navicon-hover) !important;
            color: var(--md-sys-color-on-surface);
        }

.naivrailbutton,
.naivrailbutton-active {
    height: 32px;
    width: 56px;
    min-width: 56px !important;
    border-radius: 25px;
    margin-right: 12px;
    margin-left: 12px;
    margin-bottom: 4px;
    color: inherit;
}

    .naivrailbutton:hover {
        background-color: var(--mud-palette-action-default-hover) !important;
    }

.action-button {
    background-color: #0C57D0;
    color: #ffff;
}


    .action-button:hover {
        background-color: #1e64d4;
    }

.action-button-outlined {
    color: #0C57D0;
    border-color: #0C57D0;
    background-color: transparent;
}

    .action-button-outlined:hover {
        color: #1e64d4;
        border-color: #1e64d4;
        background-color: rgb(11, 87,208, 0.08);
    }

.pill-green {
    background-color: #E6F4EA;
    color: #188038;
}



.pill-red {
    background-color: #fce8e6;
    color: #b31412;
}

.pill-blue {
    background-color: #e8f0fe;
    color: #1967d2;
}

.pill-red:hover {
    background-color: #e3cac8 !important;
}

.pill-blue:hover {
    background-color: #D8E0ED !important;
}

.pill-green:hover {
    background-color: #c4dbcb !important;
}

table tr:hover td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

table tr:hover td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.td-no-border {
    border: none !important;
}

.mud-list-item-clickable-extended {
    border-radius: 8px;
}

/*app layout*/

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: white;
    justify-content: space-between;
    padding: 0;
    background-color: var(--md-sys-color-background);
}

@media (min-width:600px) {
    .app-container {
        background: var(--md-sys-color-background);
        justify-content: center;
        padding: 48px 0
    }
}

@media (min-width:600px) and (orientation:landscape) {
    .app-container {
        background: white;
        justify-content: space-between;
        padding: 0
    }
}

@media (min-width:960px) and (orientation:landscape) {
    .app-container {
        background: var(--md-sys-color-background);
        justify-content: center;
        padding: 48px 0
    }
}

.app-container-content, .app-container-footer {
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
}

.app-container-content {
    background-color: white;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    padding-bottom: 24px;
    position: relative;
   
}

.app-container-inner {
    padding-top: 96px;
}

@media (min-width:600px) {
    .app-container-content {
        border-radius: 28px;
        min-height: 528px;
        padding-left: 24px;
        padding-right: 24px;
        width: 480px
    }

    .app-container-footer {
        padding: 0 16px;
        width: 480px
    }
}

@media (min-width:600px) and (orientation:landscape) {

    .app-container-content,
    .app-container-footer {
        padding-left: 24px;
        padding-right: 24px;
        width: 100%
    }

    .app-container-content {
        border-radius: 28px;
        min-height: unset
    }
}

@media (min-width:840px) {
    .app-container-content {
        padding-bottom: 24px;
        padding-left: 24px;
        padding-right: 24px;       
        width: 480px
    }

    .app-container-inner {
        padding-top: 96px;
    }
    .app-container-footer {
        width: 480px
    }
}

@media (min-width:840px) and (orientation:landscape) {

    .app-container-content,
    .app-container-footer {
        padding-left: 32px;
        padding-right: 32px;
        width: 100%
    }
}

@media (min-width:960px) {
    .app-container-content {
        padding-left: 24px;
        padding-right: 24px;
        width: 480px
    }

    .app-container-footer {
        width: 480px
    }
}

@media (min-width:960px) and (orientation:landscape) {
    .app-container-content {
        border-radius: 28px;
        min-height: 384px;
        padding-left: 36px;
        padding-right: 36px;       
        width: 840px
    }

    .app-container-inner {
        padding-top: 36px;
    }
    .app-container-footer {
        padding: 0 16px;
        width: 840px
    }
}

@media (min-width:1240px) {
    .app-container-content{
        padding-left: 24px;
        padding-right: 24px;
        width: 480px
    }

    .app-container-footer {
        width: 480px
    }
}

@media (min-width:1240px) and (orientation:landscape) {
    .app-container-content {
        margin-left: 200px;
        margin-right: 200px;
        padding-left: 36px;
        padding-right: 36px;
        width: auto
    }
    .app-container-footer {
        width: auto;
        margin-left: 200px;
        margin-right: 200px
    }
}

@media (min-width:1600px) {
    .app-container-content {
        min-height: 384px;
        padding-bottom: 36px;
        padding-left: 36px;
        padding-right: 36px;        
        width: 1040px
    }

    .app-container-inner {
        padding-top: 36px;
    }

    .app-container-footer {
        width: 1040px
    }
}

@media (min-width:1600px) and (orientation:landscape) {
    .app-container-content {
        margin-left: auto;
        margin-right: auto;
        padding-left: 36px;
        padding-right: 36px;
        width: 1040px
    }

    .app-container-footer {
        margin-left: auto;
        margin-right: auto;
        width: 1040px
    }
}

/* simple table responsive */

.simpletable-res {
    height: calc(80vh - 340px);
}

@media ( min-height: 600px ) {
    .simpletable-res {
        height: calc(80vh - 340px);
    }
}

@media ( min-height: 620px ) {
    .simpletable-res {
        height: calc(81vh - 340px);
    }
}

@media ( min-height: 700px ) {
    .simpletable-res {
        height: calc(83vh - 340px);
    }
}

@media ( min-height: 750px ) {
    .simpletable-res {
        height: calc(84vh - 340px);
    }
}

@media ( min-height: 820px ) {
    .simpletable-res {
        height: calc(85vh - 340px);
    }
}

@media ( min-height: 900px ) {
    .simpletable-res {
        height: calc(86vh - 340px);
    }
}
