:root {
    --psicle-padding: 10px;
}

/*Mud Blazor styles overrides*/
.mud-nav-link .mud-nav-link-text {
    display: contents;
}

.main-layout {
    /* margin: 0; */
    display: grid;
    grid-template-columns: 4rem 1fr;
    grid-template-rows: 2.5rem 1fr;
    grid-template-areas:
        "top-nav top-nav"
        "side-nav mainc";
    max-height: 100vh;
    min-height: 100vh;
    max-width: 100vw;
    min-width: 100vw;
    overflow: hidden;
    background-color: var(--dynamo-light-grey);
}

.top-nav {
    background-color: var(--dynamo-dark-grey);
    grid-area: top-nav;
    display: flex;
    place-items: center;
    /* padding: .5em; */
    color: var(--dynamo-pale-grey);
    /* letter-spacing: .05em; */
}

.recent-projects {
    --expand-panel-radius: var(--mud-default-borderradius);
}

.recent-projects .mud-expand-panel.mud-panel-expanded+.mud-expand-panel {
    border-radius: var(--expand-panel-radius);
}

.recent-projects .mud-expand-panel {
    border-radius: var(--expand-panel-radius);
    border: 1px solid var(--mud-palette-divider);;
    background: var(--mud-palette-background);;
}

.recent-projects .mud-expand-panel-header {
    border-radius: var(--expand-panel-radius);
    background-color: var(--mud-palette-surface);
    /* color: var(--mud-palette-text-primary); */
}

.recent-projects .mud-panel-expanded .mud-expand-panel-header {
    border-bottom: solid 1px var(--mud-palette-divider);
}

.recent-projects .mud-expand-panel.mud-panel-expanded {
    overflow: hidden;
    /* border-radius clip */
}

.recent-projects .mud-expand-panel .mud-expand-panel-content {
    padding: 0;
}

.recent-projects__table__row__cell__project-name {
    width: 70%;
    max-width: 10em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (max-width: 960px) {
    .recent-projects__table__row__cell__project-name {
        max-width: unset;
        /* TODO: deal with long project names for the breakpoint */
    }
}

/*Custom Psicle Web classes*/
.main {
    margin: 0;
}

.navbar {
    grid-area: side-nav;
    /* position: fixed; */
    /* padding: 4px 0 !important; */
}

.main-content {
    grid-area: mainc;
    /* height: 100vh;
    max-height: 100vh; */
    /* padding: 4px 0 !important; */
    /* position: fixed;
    z-index: -999;
    left: 60px;
    width: 100vw; */
}

.inner-container {
    /* height: inherit;
    max-width: inherit;
    margin: 0 0 auto !important;
    overflow: hidden !important;
    padding: var(--psicle-padding) !important; */
}

.collapse {
    display: none;
}

.folder-content-container {
    /* max-height: 85vh; */
    overflow-y: scroll;
}

.explorer-sidebar.dxbs-tree ul.nav>.nav-item>.nav-link>.mud-typography {
    white-space: nowrap;
    text-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.explorer-sidebar.dxbs-tree ul.nav>.nav-item>.nav-link.active {
    background-color: var(--dynamo-orange-20);
    color: var(--dynamo-dark-grey);
}

.mud-list-item-clickable--primary.mud-list-item-clickable:hover {
    background-color: var(--dynamo-orange-20);
    color: var(--dynamo-dark-grey);
}

.mud-list-item-clickable--primary.mud-list-item-clickable:hover .mud-list-item-icon .mud-icon-default {
    color: var(--dynamo-orange);
}

.project-list-item .project-name:hover {
    text-decoration: underline;
}

.explorer-sidebar.dxbs-tree {
    background: var(--dynamo-pale-grey);
    height: 100%;
}

.explorer-sidebar>ul.nav.nav-pills {
    height: 100%;
}

.explorer-sidebar.dxbs-tree>.dxbl-navigation-filter {
    background-color: var(--dynamo-pale-grey);
}

.folder-list-item:hover {
    cursor: pointer;
    text-decoration: none;
    background-color: var(--mud-palette-action-default-hover);
}

.folder-list-item:hover::before {
    content: " ";
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    left: 0;
    top: 0;
    opacity: .1;
}

.mud-paper.mud-paper--darker {
    font-weight: 700;
    background-color: var(--mud-palette-surface);
    color: var(--mud-palette-text-disabled);
    border-color: var(--mud-palette-divider);
    border-width: 1px;
    border-style: solid;
}

.mud-paper.mud-paper--darker .mud-typography-subtitle2 {
    color: var(--mud-palette-text-disabled);
    font-weight: 700;
}

.datanode-container {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    margin: .25rem;
    /*height: -webkit-fill-available;*/
    align-items: center;
    gap: 0.25rem;
}

.datanode-acronym {
    background-color: #808080;
    flex: 0 0 3em;
    height: 3em;
    /* width: 10px; */
    display: flex;
    place-items: center;
    place-content: center;
    line-height: 1em;
    font-size: 0.5rem;
    font-weight: bold;
    text-align: center;
    color: #fff;
}

.datanode-description {
    flex: 1;
    height: -webkit-fill-available;
    overflow-wrap: anywhere;
    overflow-y: hidden;
    font-family: Segoe UI, Arial, sans-serif;
    font-size: 12px;
}

.devexpress-greyed-out-numeric-input-box {
    background-color: #e7e7e7;
    border-width: 1px;
    border-color: #e7e7e7;
    padding: 0;
    margin-top: 3px;
    text-align: right;
}

.modifier-comment-textarea {
    min-height: 18px;
    height: 18px;
    resize: none;
    overflow-y:  scroll;
    transition: all 0.5s ease;
    background-color: #e7e7e7 !important;
}
.modifier-comment-textarea:focus {
    height: 10rem;
    z-index: 10;
    overflow-y: auto;
}
.modifier-comment-memobox{
    position: absolute;
}
.modifier-comment-memobox:focus-within {
    z-index: 10;
}

/*Class for the Numeric Modifier*/
.modifier-numeric-edit {
    background-color: #e7e7e7;
    border-width: 1px;
    border-color: #e7e7e7;
    padding: 0;
}
/*Class for the Choice Modifiers*/
.modifier-combobox-edit{
    background-color: #e7e7e7;
    border-width: 1px;
    border-color: #e7e7e7;
    padding: 0;
    --dxbl-text-edit-btn-bg: #c7c7c7 !important;  /*Overrides the default drop down button bg colour*/
}

div.dxbl-listbox-item {
    background-color: #e7e7e7 !important;
}

div.dxbl-listbox-item:hover {
    background-color: #c0c0c0 !important;
}

div.dxbl-listbox-item.dxbl-listbox-item-selected {
    background-color: lightgrey !important;
    color: #3f3f3f;
}
/* Forced the mudblazor tooltip not to shrink the root element*/
.fullWidth-tooltipRoot {
    width: 100%;
}

/* PARAMETERS */
/*Class for the Choice Parameters*/
.choice-parameter{
    background-color: #e7e7e7 !important;
    border-width: 1px;
    border-color: #e7e7e7;
    padding: 0;
    --dxbl-text-edit-btn-bg: #c7c7c7 !important;  /*Overrides the default drop down button bg colour*/
}

div.dxbl-listbox-item {
    background-color: #e7e7e7 !important;
}

div.dxbl-listbox-item:hover {
    background-color: #c0c0c0 !important;
}

div.dxbl-listbox-item.dxbl-listbox-item-selected {
    background-color: lightgrey !important;
    color: #3f3f3f;
}

/*Numeric Parameter*/
.numeric-parameter {
    background-color: #e7e7e7;
    border-width: 1px;
    border-color: #e7e7e7;
    padding: 0;
    text-align: right;
}

/*String Parameter*/
.string-parameter {
    background-color: #e7e7e7;
    border-width: 1px;
    border-color: #e7e7e7;
    padding: 0;
    text-align: left;
}

.date-parameter {
    background-color: #e7e7e7;
    border-width: 1px;
    border-color: #e7e7e7;
    padding: 0;
    text-align: left;
    --dxbl-text-edit-btn-bg: #c7c7c7 !important;  /*Overrides the default drop down button bg colour*/
}

.date-parameter-button {
    background-color: #c7c7c7 !important;
    border-width: 1px;
    border-color: #c7c7c7 !important;
}

.vdb-edit-button {
    height: 35px;
    flex: 0 1 35px;
    align-self: center;
}

.PsiCode-Results-Tabs {
    background-color: transparent;
}

.w-full {
    width: 100%;
}