#main-app-bar .sc-search-bar {
    margin-top: 0;
}

    #main-app-bar .sc-search-bar .mud-input {
        background-color: var(--mud-palette-white);
        padding-left: 10px;
        margin-top: 0;
        border-top-right-radius: var(--mud-default-borderradius);
        border-bottom-right-radius: var(--mud-default-borderradius);
    }

    .sc-search-bar-list .mud-list-item-clickable .sc-search-bar-list-item:hover,
    .sc-search-bar-list .mud-list-item-clickable .sc-search-bar-list-item:active,
    .sc-search-bar-list .mud-list-item-clickable .sc-search-bar-list-item:focus {
        color: inherit;
        border: 0;
        cursor: pointer;
        margin: 0;
        outline: 0;
        user-select: none;
        border-radius: 0;
        vertical-align: middle;
        background-color: rgba(0, 0, 0, 0);
        -webkit-appearance: none;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    }

.sc-search-bar-list .mud-list-item.mud-list-item-dense {
    padding-bottom: 0;
    padding-top: 0;
}

.dark-mode #main-app-bar .sc-search-bar .mud-input {
    background-color: var(--mud-palette-dark-lighten);
    color: var(--mud-palette-appbar-text);
}

#main-app-bar .sc-search-bar-container {
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#main-app-bar .search-type-selection {
    height: 100%;
    width: 83px;
    border-bottom: 1px solid var(--mud-palette-lines-inputs);
    float: right;
    outline: -webkit-focus-ring-color;
    border-right: 1px solid var(--mud-palette-primary-lighten);
    font-family: "Roboto", "Helvetica", "Arial", "sans-serif";
    border-top-left-radius: var(--mud-default-borderradius);
    border-bottom-left-radius: var(--mud-default-borderradius);
    padding-left: 4px;
}

.dark-mode #main-app-bar .search-type-selection {
    background-color: var(--mud-palette-dark-lighten);
    color: var(--mud-palette-appbar-text);
}

    #main-app-bar .search-type-selection:focus {
        border-bottom: 2px solid var(--mud-palette-primary);
    }

#main-drawer-small.mud-drawer.mud-drawer-temporary.mud-drawer-pos-left.mud-drawer--open {
    width: 50%;
}

#main-drawer-small .mud-tooltip-root,
#main-drawer .mud-tooltip-root {
    width: auto;
}

.sc-message-board-item {
    overflow: auto;
}

    .sc-message-board-item h4,
    .sc-message-board-item p {
        padding: 0;
    }

    .sc-message-board-item .sc-message-board-item-signature {
        margin-top: 10px;
        font-size: smaller;
    }

.sc-app-bar-logo {
    margin-left: 4px;
}

.sc-avatar {
    margin-left: 8px;
    cursor: pointer;
}

.mud-tab {
    min-width: 125px !important;
    font-size: smaller;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start !important;
}

.sc-project-pipeline {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 2000px;
    min-width: 1120px;
    overflow-x: auto;
}

    .sc-project-pipeline .sc-project-pipeline-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
        min-width: 160px;
    }

    .sc-project-pipeline h4 {
        white-space: nowrap;
        padding: 12px;
        background-color: #2a627e;
        width: 100%;
        color: white;
        border-radius: 2px;
        margin: 1px;
        font-weight: 450;
    }

    .sc-project-pipeline .mud-card-header-content h6 {
        font-size: smaller;
    }

    .sc-project-pipeline .sc-project-pipeline-item.mud-grid-item {
        padding: 8px;
    }    
    
    .sc-project-pipeline .sc-project-pipeline-item.mud-grid-item .mud-card {
        transition: transform 0.3s, box-shadow 0.3s;
        z-index: 1;
    }

        .sc-project-pipeline .sc-project-pipeline-item.mud-grid-item:hover .mud-card {
            transform: scale(1.08);
            z-index: 2;
            cursor: pointer;
            background-color: #daeef8;
        }

.dark-mode .sc-project-pipeline .sc-project-pipeline-item.mud-grid-item:hover .mud-card {
    background-color: #4d4d54;
}

.sc-page-link-card {
    background-color: var(--mud-palette-white);
    margin-bottom: 8px
}
.dark-mode.sc-page-link-card {
    background-color: var(--mud-palette-surface);
}

    .sc-page-link-card .mud-typography-subtitle1 {
        font-weight: normal;
        font-size: small;
    }

    .sc-page-link-card .mud-card-header {
        padding-bottom: 4px;
    }

    .sc-page-link-card .mud-card-content {
        padding-bottom: 4px;
    }

    .sc-dashboard-table {
        margin-bottom: 1.5rem;
        margin-top: 0.5rem;
    }

    .sc-dashboard-table .mud-table-cell a {
        font-size: unset;
    }

    .sc-dashboard-table .mud-table-foot .mud-table-cell,
    .sc-dashboard-table .mud-table-foot .mud-table-cell a {
        font-weight: bold;
    }

    .sc-dashboard-table .mud-table-empty-row p {
        font-size: small;
    }

    .sc-dashboard-table .mud-table-sort-label:hover {
        color: unset !important;
    }

    .sc-dashboard-table .mud-table-toolbar {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
        padding-left: 6px;
    }

    .sc-dashboard-table .mud-typography-subtitle1 {
        font-size: smaller;
    }

    .sc-dashboard-table h6 {
        font-size: 1rem;
    }

    .sc-dashboard-table.mud-table-dense * .mud-table-root .mud-table-head .mud-table-cell {
        background-color: #2a627e;
        color: white;
        margin: 1px;
        font-weight: 450;
        font-size: small;
    }

        .sc-dashboard-table.mud-table-dense * .mud-table-root .mud-table-head .mud-table-cell button.sort-direction-icon,
        .sc-dashboard-table.mud-table-dense * .mud-table-root .mud-table-head .mud-table-cell button.filter-button {
            color: white;
        }

    .sc-dashboard-table.mud-table-dense * .mud-table-row .mud-table-cell {
        font-size: smaller;
        padding: 4px;
    }

.mud-paper.sc-form-input-card,
.sc-form-input-select-popover.mud-paper {
    background-color: var(--mud-palette-white);
}

.dark-mode .mud-paper.sc-form-input-card,
.dark-mode.sc-form-input-select-popover.mud-paper {
    background-color: var(--mud-palette-surface);
}

.sc-presentation-table-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.active .mud-nav-link-icon.mud-nav-link-icon-default {
    color: var(--mud-palette-primary) !important;
}

.sc-dashboard-table .mud-table-toolbar .sc-table-toolbar-filter-container {
    flex-direction: row;
    display: flex;
    position: relative;
    width: 100%;
}

    .sc-dashboard-table .mud-table-toolbar .sc-table-toolbar-filter-container .mud-input-control > .mud-input-control-input-container > .mud-input.mud-input-text {
        margin-top: 0;
    }

    .sc-dashboard-table .mud-table-toolbar .sc-table-toolbar-filter-container .mud-input {
        background-color: var(--mud-palette-white);
    }

    .sc-table-toolbar-filter-select .mud-input {
    background-color: var(--mud-palette-white);
}

.dark-mode .sc-table-toolbar-filter-select .mud-input {
    background-color: var(--mud-palette-background);
}

.dark-mode .sc-dashboard-table .mud-table-toolbar .sc-table-toolbar-filter-container .mud-input {
    background-color: var(--mud-palette-background);
}

.sc-expansion-panel-disabled.mud-disabled > .mud-expand-panel-header,
.sc-expansion-panel-disabled.mud-disabled .mud-svg-icon {
    color: unset;
}

.sc-info-table.sc-dense-table thead > tr > th.mud-table-cell,
.sc-info-table.sc-dense-table tbody > tr > td.mud-table-cell {
    font-size: smaller;
    padding: 2px !important;
}

.sc-info-table thead > tr > th,
.sc-info-table thead.mud-table-head > tr > th.mud-table-cell,
.sc-info-table.sc-dense-table thead.mud-table-head > tr > th.mud-table-cell {
    background-color: #2a627e;
    color: white;
    margin: 1px;
    font-weight: 450;
    font-size: small;
}

.sc-info-table tbody > tr > td {
    font-size: small;
}

    .sc-info-table tbody > tr > td > a {
        font-size: small;
    }

    .mud-simple-table.mud-table-dense.sc-info-table * tr td,
    .mud-simple-table.mud-table-dense * tr th {
        padding: 6px 6px;
    }

.sc-table-inline-edit-input.mt-0.mud-input-control > .mud-input-control-input-container > div.mud-input.mud-input-text {
    margin-top: 0;
}

.sc-table-inline-edit-input .mud-input > input.mud-input-root {
    padding: 4px;
}

.sc-table-inline-edit-input .mud-input > textarea.mud-input-root {
    padding: 4px;
    margin: 0;
}

.sc-budget-input-table .sc-table-inline-edit-input .mud-input-control > .mud-input-control-input-container > div.mud-input.mud-input-text {
    margin-top: 0;
}

.sc-text-and-select .mud-select {
    flex-grow: 0;
}

#loan-activity-table div.mud-table-container {
    padding-right: 8px;
    padding-bottom: 7px;
}

.mud-tab {
    cursor: pointer;
}

.sc-textarea-resize .mud-input > textarea.mud-input-root {
    resize: vertical;
}

.sc-form-input-card .mud-tooltip-root.mud-tooltip-inline {
    display: initial;
}

.sc-json-tree {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    margin: 0;
    padding: 0;
}

    .sc-json-tree ul {
        list-style-type: none;
        padding-left: 20px;
        margin: 0;
    }

    .sc-json-tree li {
        position: relative;
        padding: 2px 0;
    }

    /* Property name styling */
    .sc-json-tree .property-name {
        color: #2980b9;
        font-weight: 600;
    }

    /* Property value styling */
    .sc-json-tree .property-value {
        color: #16a085;
        font-weight: normal;
    }

    /* Array value styling */
    .sc-json-tree .array-value {
        color: #d35400;
    }

    /* Null value styling */
    .sc-json-tree .null-value {
        color: #7f8c8d;
        font-style: italic;
    }

    /* Empty string styling */
    .sc-json-tree .empty-string {
        color: #95a5a6;
        font-style: italic;
    }

    /* Hover effect for better visibility */
    .sc-json-tree li:hover > span.property-name {
        text-decoration: underline;
    }

    /* Visual vertical lines for better readability of deep nesting */
    .sc-json-tree ul ul {
        border-left: 1px dotted #ddd;
    }
    /* JSON dif styles */
    .dark-mode .jsondiffpatch-added .jsondiffpatch-property-name,
    .dark-mode .jsondiffpatch-added .jsondiffpatch-value pre,
    .dark-mode .jsondiffpatch-modified .jsondiffpatch-right-value pre,
    .dark-mode .jsondiffpatch-textdiff-added {
        background: #1e8a58 !important;
        color: white !important;
        border-radius: 2px;
        padding: 2px 4px;
    }

    /* Style for deleted items */
    .dark-mode .jsondiffpatch-deleted .jsondiffpatch-property-name,
    .dark-mode .jsondiffpatch-deleted .jsondiffpatch-value pre,
    .dark-mode .jsondiffpatch-modified .jsondiffpatch-left-value pre,
    .dark-mode .jsondiffpatch-textdiff-deleted {
        background: #a93131 !important; 
        color: white !important; 
        border-radius: 2px;
        padding: 2px 4px;
        text-decoration: none !important;
    }

    .dark-mode .jsondiffpatch-delta {
        font-family: 'Consolas', 'Monaco', monospace !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    /* Increase Property name visibility */
    .dark-mode .jsondiffpatch-property-name {
        color: #61afef !important;
        font-weight: bold;
    }

    /* Better nested structure */
    .dark-mode .jsondiffpatch-delta ul {
        border-left: 1px dotted #444 !important;
        padding-left: 20px !important;
    }

.tox-tinymce-aux, /* Older versions or auxiliary elements */
.tox-silver-sink, /* Main container for popups in v5/6/7 */
.tox-dialog-wrap__backdrop, /* Backdrop for TinyMCE dialogs */
.tox-dialog-wrap { /* Wrapper for TinyMCE dialogs */
    z-index: 1500 !important; /* Example value, adjust as needed */
}

/* You might also need to specifically target menus if the above isn't enough */
.tox-menu {
    z-index: 1501 !important; /* Slightly higher for menus on top of other popups if necessary */
}

.tox-tiered-menu .tox-menu {
    z-index: 1502 !important; /* For sub-menus */
}

.tox-statusbar__branding {
    display: none !important; /* Hide the TinyMCE branding */
}

.tox-promotion {
    display: none !important; /* Hide the TinyMCE promotion */
}

.tox-dialog {
    z-index: 1503 !important; /* Ensure dialogs are above other elements */
}

.sc-overflow-x-auto {
    overflow-x: auto;
}

.sc-raw-content {
    all: revert;
    font-family: initial;
}

    .sc-raw-content * {
        all: revert;
        font-family: initial;
    }

@keyframes blink-prod-appbar {
0%, 49% {
    background-color: var(--mud-palette-appbar-background);
}

50%, 100% {
    background-color: var(--mud-palette-error);
}
}

.blink-prod {
animation: blink-prod-appbar 2s infinite;
}