.pyramid-bg {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, #1996a3, #008B99);
}

    .pyramid-bg::before {
        content: "";
        position: absolute;
        top: -10%; /* push upward to allow overspill */
        bottom: -10%; /* push downward */
        right: 0;
        width: 200%; /* adjust how wide the pyramid feels */
        background: no-repeat right center; /* gradient underneath */
        background-size: auto 280%; /* scale with height, keep aspect */
        background-image: url("/images/Circles.svg");
        z-index: 0;
    }

    .pyramid-bg > * {
        position: relative;
        z-index: 1;
    }

.mud-main-content {
   padding-top: 0px !important;
}

/* Fix for grid appearing above app bar for some reason and preventing clicking of buttons*/
.mud-container > .mud-grid {
    margin-top: 0px !important;
}
.mud-container > .mud-grid > .mud-grid-item-xs-12:first-child {
    padding-top: 12px !important;
}

.mud-appbar {
    box-shadow: none !important;
}

.org-switch-link svg {
    margin-right: 10px;
}

.nav-menu-logo {
    max-width: 100px;
    max-height: 25px;
}


.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }


.import-csv-card-content {
    text-align: center;
    align-content: center;
}

.mud-input-helper-text{
    color: white !important;
}

.user-block-popover {
    background-color: white !important;
    max-width: 300px !important;
}
.org-switch-link .mud-nav-link {
    padding-left: 3px;
    border: 1px solid #F3F3F3;
    text-align: center;
    border-radius: 4px;
}

.mud-drawer-header {
    padding-left: 12px !important;
}
.nav-menu-drawer-container-title {
    padding: 20px 16px 7px 16px;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.7rem;
}

.mud-drawer-content {
        padding-left: 10px;
        padding-right: 10px;
}

/* NAV MENU */

/* make background color 90% transparent white*/
.mud-navmenu.mud-navmenu-primary .mud-nav-link.active:not(.mud-nav-link-disabled) {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    font-weight: inherit !important;
}
/* add icon */
.nav-menu-drawer-add-icon {
    padding: 2px;
    margin-right: 8px;
    float: left;
    margin-top: 2px;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.75) !important;
    fill: rgba(255, 255, 255, 0.75) !important;
    height: 100%;
}
    .nav-menu-drawer-add-icon:hover {
        color: rgba(255, 255, 255, 0.75) !important;
        fill: rgba(255, 255, 255, 0.75) !important;
    }
/* add icon positioning */
.nav-menu-drawer-add-button > a {
    padding-left: 0px !important;
}
.nav-menu-drawer-add-button > a > div {
    margin-left: 8px !important;
}
/* nav menu fonts */
.mud-navmenu .mud-nav-group > .mud-nav-link > .mud-icon-root {
    font-size: 1.25rem !important;
}
.mud-navmenu .mud-nav-group .mud-collapse-container .mud-nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    padding-left: 8px !important;
}
.mud-navmenu .mud-nav-group .mud-navgroup-collapse .mud-collapse-wrapper{
    padding-top: 10px;
    margin-bottom: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 24px;
}
.mud-nav-group * .mud-navmenu .mud-nav-item .mud-nav-link {
    padding-left: 3px !important;
    margin-left: 8px !important;
}
.nav-menu-full-link .mud-nav-link-text {
    margin-left: 0px !important;
    font-weight: 400 !important;
}
.mud-nav-group > .mud-nav-link > .mud-nav-link-text {
    font-weight: 400 !important;
}
.mud-navmenu.mud-navmenu-primary .mud-nav-link-expand-icon.mud-transform {
    fill: white !important;
}

/*Nav Menu Search box*/
.search-box .mud-input-root {
    color: white;
}

.search-box input {
    color: white !important;
}

.text-muted {
    color: #6c757d !important;
    text-decoration: line-through;
}

/* Give required fields a light primary border*/
.mud-input-required > .mud-input-control-input-container > .mud-input.mud-input-outlined > input:not(:focus) ~ .mud-input-outlined-border {
    border-left-color: #7FC3CF;
    border-left-width: 5px
}

/* Hover effect for drawer navigation*/
.mud-navmenu .mud-nav-link:not(.active):hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.custom-settings-group {
    padding: 20px;
    border: 1px solid lightgrey;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 10px
}

.button-container {
    margin-top: 6px;
}

.full-height-button {
    /* height: calc(100% - 1rem);  Adjust based on the gap created by the label */
    height: 100%;
}

.custom-selection-list {
    list-style-type: none;
    padding-left: 0;
}
.custom-selection-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2px;
}
.custom-selection-list-item span:first-child {
    min-width: 30px;
}

/* make selection input within a data grid match font size*/
.mud-grid-drop-down div {
    font-size: 0.875rem !important;
}

.data-grid-child-content {
    padding-left: 70px !important;
}

/* make tab panel background color white instead of transparent */
.mud-tabs-panels {
    padding: 0px !important;
    padding-top: 25px !important;
    background-color: white;
}

.mud-tabs-vertical .mud-tab {
    justify-content: flex-end;
}


.mud-tabs-tabbar .mud-tabs-tabbar-inner {
    min-height: 40px !important;
}
.mud-tab {
    padding: 0px 15px !important;
    color: #6c757d !important;
    min-width: 60px !important;
    min-height: 40px !important;
    font-weight: 400 !important;
}

    .mud-tab.mud-tab-active {
        color: #2E434A !important;
        font-weight: 500 !important;
    }

/* remove box shadows from all tables */
.mud-table {
    box-shadow: none !important;
}


/* Remove uppercase transformation from tab headers and buttons*/
.mud-tab {
    text-transform: none !important;
}
.mud-button {
    text-transform: none !important;
}

/* make data grid header background color light grey */
.mud-table-head {
    background-color: #f8f9fb;
    border-top-left-radius: 4px !important;
    border-top-right-radius: 4px !important;
}

.mud-table-container {
    border: 1px solid rgb(224 224 224) !important;
    border-radius: 4px !important;
}

/* make links in data grids the same font size as default text (this implimentation doesnt effect the buttons in the table toolbar) */
.mud-table-row .mud-link {
    font-size: .875rem !important;
}
.mud-table td .mud-link {
    font-size: .875rem !important;
}

/* remove padding from controls above data grids*/
.mud-table-toolbar {
    padding: 0px !important;
}

/* remove shadow from buttons */
.mud-button-root {
    box-shadow: none !important;
}


.custom-card-border {
    border: 1px solid #e0e0e0 !important;
}

.block-layout-grid .mud-tooltip-root {
    width: 100% !important;
}

.mud-input.mud-input-outlined.mud-disabled input{
    background-color: #00000009 !important;
}

.custom-page-description {
    max-width: 70% !important
}

    .custom-page-description p {
        color: #577275 !important;
    }