:root {
    --bg-color: #fcfcfc;
    --line-color-1: #e3e3e3;
    --line-color-2: #f0f0f0;
    --canvas-background: #37404f;
    --mud-drawer-width-left: 300px !important;
    --mud-drawer-width-right: 300px !important;
}

.document-paper {
    height: 100%;
    background-color: var(--bg-color);
    border: 1px solid var(--line-color-1);
    border-radius: 4px;
}

body {
    background-color: #f3f2f2;
}

.blurry-background {
    backdrop-filter: blur(10px);
}

.card-canvas-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient( 45deg, rgba(0,182,255,1) 11.2%, rgba(25, 119, 207, 1) 98.1% );
    background-size: 150% 150%;
    animation: card-canvas-loading-overlay-animation 0.5s alternate infinite ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    opacity: 1;
    color: #fff;
    border-radius: 4px;
    box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.4);
    -webkit-box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.4);
    -moz-box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.4);
}

.canvas-background {
    background-color: #fff;
}

.right-drawer-container {
    border-top-left-radius: 1em;
}

.card-canvas-loading-overlay-fade-out {
    animation: card-canvas-loading-overlay-fade-out-animation 0.3s forwards ease-in;
}

@keyframes card-canvas-loading-overlay-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {

        background-position: 0% 50%;
    }
}

@keyframes card-canvas-loading-overlay-fade-out-animation {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.graph-paper {
    height: 100%;
    background-color: var(--bg-color);
    background-image: conic-gradient(at calc(100% - 2px) calc(100% - 2px),var(--line-color-1) 270deg, #0000 0), conic-gradient(at calc(100% - 1px) calc(100% - 1px),var(--line-color-2) 270deg, #0000 0);
    background-size: 100px 100px, 20px 20px;
}

html, body {
    font-family: 'Nunito', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.mud-button-label, .mud-typography, .mud-input-root {
    font-family: 'Nunito', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.mud-button-label {
    font-weight: 600;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.resize-drag {
    position: absolute;
    width: 300px;
    height: 100px;
    background-color: rgba(249, 249, 249, 0.7);
    cursor: move;
    overflow: hidden;
    min-width: 200px;
    min-height: 100px;
}

.cls-body {
    width:100%;
    height:100%;
}

.object {
    width: 200px !important;
    height: 40px !important;
    background-color: white;
    text-align: center;
    padding-top: 10px;
}

.comment_style {
    width: 750px !important;
    height: 150px !important;
}

.resize-drag input {
    width: calc(100vh - 20px);
    box-sizing: border-box;
    padding: 8px;
    margin: 0.5em;
}

.pretty-input {
    border: none;
    outline: none;
    font-size: 16px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

#editor {
    height: 150px; /* Set your initial height here */
}

.custom-drag-image {
    position: absolute;
    padding: 10px;
    opacity: 1;
    z-index: -1;
    border-radius: 4px;
    box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.4);
    -webkit-box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.4);
    -moz-box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.4);
    background-image: linear-gradient( 45deg, rgba(0,182,255,1) 11.2%, rgba(25, 119, 207, 1) 98.1% );
    background-size: 150% 150%;
}

.drag-cover-ddl {
    width: 200px;
    height: 50px;
}

.drag-cover-text {
    width: 200px;
    height: 100px;
}

.drag-cover-number {
    width: 80px;
    height: 50px;
}

.drag-cover-date {
    width: 135px;
    height: 50px;
}

.drag-cover-sampling {
    width: 300px;
    height: 50px;
}

.btn--blue {
    background-color: #2666B9;
    color: #fff;
}

.context-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    padding: 0;
    z-index: 999999;
    border-radius: 4px;
}

.context-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.context-menu ul li {
    padding: 0.4em;
    cursor: pointer;
    margin-top: -1px;
    border: 1px solid #ccc;
    font-weight: 600;
}
.context-menu ul li:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.context-menu ul li:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.context-menu ul li:hover {
    background-color: #f0f0f0;
    border: 1px solid #9bbef4;
}

.context-menu ul li:hover + li {
    border-top: 1px solid #9bbef4;
}

.context-menu .primary-btn {
    background-color: #3a81f2;
    color: #fff;
}

.context-menu .primary-btn:hover {
    background-color: #0e60e3;
}

    .context-menu .error-btn {
        background-color: var(--mud-palette-error);
        color: #fff;
    }

        .context-menu .error-btn:hover {
            background-color: var(--mud-palette-error-darken);
        }

    .context-menu .tertiary-btn {
        background-color: var(--mud-palette-tertiary);
        color: #fff;
    }

        .context-menu .tertiary-btn:hover {
            background-color: var(--mud-palette-tertiary-darken);
        }

    .context-menu .warning-btn {
        background-color: var(--mud-palette-warning);
        color: #fff;
    }

        .context-menu .warning-btn:hover {
            background-color: var(--mud-palette-warning-darken);
        }

.context-sub-menu {
    display: none;
    position: absolute;
    top: 0%;
    left: 100%;
    width: 150px;
    font-style: normal;
}

.has-submenu:is(:hover) > .context-sub-menu {
    display: block;
}

.has-submenu {
    position: relative;
    cursor: default !important;
    font-style: italic;
}

.context-menu .has-submenu.primary-btn {
    background-color: #1067f1 !important;
}

.context-menu .has-submenu.tertiary-btn {
    background-color: #1bb567 !important;
}

.container-shadow {
    box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.4);
    -webkit-box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.4);
    -moz-box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.4);
}

.card-item {
    background-color: #fff;
}

.folder-item {
    background-color: #2a7cf1;
    color: #fff;
}

.card-drag-over {
    background-color: var(--mud-palette-tertiary) !important;
    box-shadow: 0 0 10px rgba(112, 174, 255, 0.9);
}

.list-item-hover {
    transition: ease-in-out 0.2s;
    cursor: pointer;
}

.list-item-hover:hover {
    transform: scale(1.05);
}

.card-item-hover:hover {
    background-color: #f0f0f0;
}

.folder-item-hover:hover {
    background-color: #1d62c4;
}

.list-item-disabled {
    opacity: 0.6;
}

.primary-blue-bg {
    background-color: #2570e1;
}

.dark-blue-bg {
    background-color: #294381;
}

.gray-bg {
    background-color: #f3f2f2;
}

.pulsing-cancel {
    animation: pulsing-cancel 2s infinite;
}

@keyframes pulsing-cancel {
    0% {
        background-color: #f3f2f2;
    }
    50% {
        background-color: #f96060;
    }
    100% {
        background-color: #f3f2f2;
    }
}

.mud-toolbar .mud-select {
    flex-grow: unset;
}

.container-admin-flag-div > div {
    flex-grow: 1;
    min-width: 175px;
    max-width: 175px;
}

.custom-cursor-left {
    cursor: url('./js/objects/picture/mouse-cursor-middle-click-left.png'), auto;
}

.custom-cursor-right {
    cursor: url('./js/objects/picture/mouse-cursor-middle-click-right.png'), auto;
}
.expandable-paper {
    display: flex;
    flex-wrap: wrap;
    max-width: 600px;
    padding: 10px;
}

.simple-view-line-break {
    display: block;
    margin: 0;
    border-top: 1px dotted var(--line-color-1);
}

@keyframes alarmBorderBlinkNormal {
    from, to {
        border-color: transparent
    }

    50% {
        border-color: lightgrey;
        box-shadow: 0 0 15px #90EE90; /* Adjust the color and size of the glow as needed */
    }
}
@keyframes alarmBorderBlinkHigh {
    from, to {
        border-color: transparent
    }

    50% {
        border-color: lightgrey;
        box-shadow: 0 0 15px #FB5879; /* Adjust the color and size of the glow as needed */
    }
}
@keyframes alarmBorderBlinkLow {
    from, to {
        border-color: transparent
    }

    50% {
        border-color: lightgrey;
        box-shadow: 0 0 15px #Add8e6; /* Adjust the color and size of the glow as needed */
    }
}
.old_glowing-highlight {
    
}
.alarmBorderBlinkNormal {
    -webkit-animation: alarmBorderBlinkNormal 2s step-end infinite;
    animation: alarmBorderBlinkNormal 2s step-end infinite;
    /* add 'border-color: transparent' if you wish no border to show initially */
}
.alarmBorderBlinkHigh {
    -webkit-animation: alarmBorderBlinkHigh 1s step-end infinite;
    animation: alarmBorderBlinkHigh 1s step-end infinite;
    /* add 'border-color: transparent' if you wish no border to show initially */
}
.alarmBorderBlinkLow {
    -webkit-animation: alarmBorderBlinkLow 3s step-end infinite;
    animation: alarmBorderBlinkLow 3s step-end infinite;
    /* add 'border-color: transparent' if you wish no border to show initially */
}
.a-tag-pa-0 a {
    padding: 0;
    margin: 0;
    min-width: 50px;
}


.card-description-text.card-description-textbox {
    width: 218px; /* Limit the width of the container */
    padding-left: 5px;
    padding-right: 5px;
    overflow: hidden; /* Hide any overflow content */
    user-select: none;
    font-family: 'DM Mono', Nunito, 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-size: 15px !important;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    white-space: pre; /* Maintain white space formatting */
    color: darkgray;
    max-height: 4.8rem; /* Approx 3 lines of text (adjust as needed) */
}

.card-description-text.card-description-textbox.card-description-textbox-mobile {
    width: unset;
    padding: 0;
    font-size: 0.65rem !important;
}

.card-description-textinput .mud-input-root-text {
    color: darkgray !important;
    font-size: 15px !important;
    font-family: 'DM Mono', Nunito, 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0.14994px !important;
    text-align: left;
}

.card-title-input input {
    text-align: center;
}


.pulse-primary {
    animation: pulse-primary 2s infinite;

}

@keyframes pulse-primary {
    0% {
        background-color: var(--mud-palette-primary);
    }
    50% {
        background-color: var(--mud-palette-info);
    }
    100% {
        background-color: var(--mud-palette-primary);
    }
}

.th-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #2271e1;
    border-radius: 4px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
    border-top-right-radius: 1em;
    border-top-left-radius: 1em;
    border-bottom: 4px solid #2271e1;
}

.scroll-wrapper {
    position: relative;
    max-height: 79dvh;
}

.scroll-container {
    overflow-y: auto;
    max-height: 100%;
    overflow: scroll;
    border-radius: 4px;
    margin-bottom: 2em;
    padding-top: 2em;
    padding-bottom: 4em;
    padding-left: 4em;
    box-shadow: rgba(17, 17, 26, 0.2) 0px 4px 16px 0px inset, rgba(17, 17, 26, 0.05) 0px 8px 32px 0px;
    background: var(--canvas-background);
    background: radial-gradient(circle, rgb(112 124 145) 0%, rgb(81 90 107) 50%, rgb(41 54 77) 100%);
}

.shadow-top,
.shadow-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.2s ease;
    opacity: 0;
}

.shadow-top {
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent);
}

.shadow-bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
}

.th-top-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    width: 100%;
    height: 100%;
    border-top-right-radius: 1em;
    border-top-left-radius: 1.2em;
}

.th-title-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #2271e1;
    width: 100%;
    max-width: 645px;
    height: 100%;
    padding: 0.5em;
    border-top-right-radius: 1em;
    border-top-left-radius: 1em;
}

.th-title-title-container {
    flex: 1;
    min-width: 0; /* or some value */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
}

.th-title-title-container h1 {
    font-size: 2rem;
    font-weight: 400;
    color: #fff;
    padding: 0.1em 1em;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.th-title-version-container {
    flex: 1;
    max-width: 300px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
}

.th-title-version-container h2 {
    font-size: 1.5rem;
    font-weight: 300;
    color: #e7e7e7;
    padding: 0.1em 1em;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.th-change-version-container {
    max-width: 100px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
}

.th-btn-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0.5em;
}

.th-title-container-radius {
    content: "";
    background-color: #2271e1;
    height: 1em;
    width: 2em;
    align-self: end;
    -webkit-mask-image: radial-gradient(circle 1em at 1em 0, transparent 0, transparent 1em, black 1em);
}

.vertical-divider {
    height: 25px;
    width: 3px;
    background-color: #f1f1f1;
    margin: 0 10px;
    border-radius: 4px;
}

.th-btn-container button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0 16px;
}

    .th-btn-container button span {
        font-size: 14px;
        font-weight: 500;
        color: #000;
        margin-left: 8px;
    }

.th-info-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: 160px;
    max-height: 160px;
    margin: 2em;
    margin-top: 1em;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.ul-detail-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 105px;
    max-height: 105px;
    margin-top: 1em;
    border-radius: 4px;
    background: #fff;
    overflow-y: scroll;
}

.th-info-inner-container-holder {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    height: 100%;
}

.th-info-inner-container {
    width: 33%;
    height: 100%;
    padding: 0.5em 2em;
}

.th-full-details-btn {
    width: 100%;
    height: 40px;
    text-align: center;
    padding: 0.5em;
    border-top: 1px solid #f1f1f1;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
}

.th-title-go-back-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
}


.latest-version {
    color: #05f03c;
}

.role-drag-item {
    border-radius: 4px;
    background-color: #fff;
    max-width: 200px;
    min-width: 200px;
    max-height: 40px;
    margin-left: 1em;
    margin-right: 1em;
    z-index: 20;
    transition: 0.1s ease-out;
}

    .role-drag-item:hover {
        background-color: #fff;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
        transform: translateY(-2px) rotate(-1deg);
    }

.user-drag-over .role-drag-item {
    background-color: #70aeff;
    box-shadow: 0 0 10px rgba(112, 174, 255, 0.9);
}

.new-role-drag-item {
    background-color: #17b45c;
    animation: pulsing-new ease-in-out 4s infinite;
    width: 100px;
    transition: 0.2s ease-out;
}

@keyframes pulsing-new {
    0% {
        background-color: #17b45c;
    }

    75% {
        background-color: #08c259;
    }

    100% {
        background-color: #17b45c;
    }
}

.new-role-drag-item:hover {
    background-color: #11702a;
    animation: none;
}

.new-role-name-text {
    color: white;
    text-align: center;
    font-weight: 500 !important;
}

.role-management-level-name-field {
    max-width: 250px !important;
    min-width: 250px !important;
    background-color: white;
}

.role-management-level-delete-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0.5em;
    margin-right: 0.5em;
    max-width: 50px !important;
    min-width: 50px !important;
}

.role-level {
    background-color: transparent;
}

.dialog-container-external-group {
    border-radius: 4px;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1.6rem;
    background-color: #fff;
    min-width: 400px;
}

.role-right-side-btn {
    border-radius: 4px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    background-color: rgb(37,112,225);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-management-user-list-container {
    margin-right: 1em;
    overflow-y: auto;
}

.role-management-role-container {
    margin: 0;
}

.role-management-item-container {
    padding: 1em;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: 80vh;
}

.role-level-container {
    margin-top: 1em;
    max-height: 90%;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
    margin: 1em 0;
    padding: 1em;
    border-radius: 4px;
    border: #e3e3e3 1px solid;
    transform-origin: top left;
}

.zoomed-in > svg,
.zoomed-in > div {
    transform: scale(1.2); /* You can adjust the scale value */
    transform-origin: top left;
}

.zoomed-out > svg,
.zoomed-out > div {
    transform: scale(0.8); /* You can adjust the scale value */
    transform-origin: top left;
}

.connector-svg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.create-connection-svg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 11;
}

.role-management-container {
    display: flex;
    flex-direction: row;
    height: 100%;
    overflow: none;
}

.custom-dropzone {
    border: 1px dashed #aaa;
    padding: 10px;
    border-radius: 8px;
    background-color: #97d4ff7d;
    min-height: 60px;
}

.custom-dropzone-disabled {
    border: 1px dashed red;
    background-color: #fc545440;
}

.floating-change-box {
    position: fixed;
    bottom: 2.5%;
    left: 40%;
    background: linear-gradient(-45deg, #b2dcfd 40%, #fff 50%, #b2dcfd 60%);
    background-size: 300%;
    background-position-x: 100%;
    z-index: 25;
    padding: 0;
    padding-left: 1em;
    border-radius: 4px;
    animation: pending-changes-shimmer 5s infinite ease-in-out;
}

.floating-inner-cont {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fab-container {
    background: none !important;
    animation: none;
}

.admin-dropzone-cont {
    background-color: #4d504d;
    color: white;
    padding: 0.2em 1em;
    margin: auto 3em;
    font-weight: 700;
    min-width: 12em;
    min-height: 2.5em;
    border: 2px dashed #d8d8d8;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
    transition: 0.2s ease-in-out;
}

.admin-dropzone-cont:hover {
    border: 2px dashed #b9b9b9;
    background-color: #2b2c2b;
}

.admin-dropzone-cont-drag {
    border: 2px dashed #7ecaff;
    background-color: #2b2c2b;
}

.dialog-container-role-management {
    border-radius: 4px;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1.6rem;
    background-color: #fff;
}

.inner-admin-cont {
    padding: 1em;
    border-radius: 4px;
    background-color: #f5f5f5;
}

.add-shadow {
    box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.1);
    -webkit-box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.1);
}

.external-role-drag-over {
    background-color: #70aeff !important;
    box-shadow: 0 0 10px rgba(112, 174, 255, 0.9);
}

.external-group-title {
    background-color: #c0e2ff;
    border: 1px solid #2271e1;
    border-radius: 4px;
    padding: 0.2em;
}

.role-inner-wrapper {
    flex: 1 1 0;
    padding: 1em;
    margin: 0.5em;
    padding: 0.5em;
    border: 1px solid #ebebeb;
    background-color: #f3f3f30d;
    border-radius: 1em;
    box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.05) inset;
    -webkit-box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.05) inset;
    -moz-box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.05) inset;
}

.role-inner-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 0;
}

.sort-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em;
    padding-left: 2em;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    background-color: #fff;
}

.sort-dropdown-container {
    min-width: 150px;
}

.asc-switch-container {
    margin-left: 2em;
}

.role-list-container-div {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f9f9f9;
}

.bold-hr {
    border: 1px solid #b3b3b3;
    border-radius: 5px;
}

.hr-shadow {
    box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.15);
}

.role-item-container {
    margin-right: 0;
    padding: 0.5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.role-management-user-drop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 200px;
    max-width: 250px;
    max-height: 50px;
    background-color: #fbfbfb;
    border-radius: 8px;
    padding: 0 !important;
    margin-bottom: 0.5em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: 0.1s ease-out;
}

.role-management-user-drop-item:hover {
    background-color: #fff;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px) rotate(-1deg);
}

.user-not-accepted {
    background-color: #fdc284;
}

    .user-not-accepted:hover {
        background-color: #ffab52;
    }

.admin-user {
    background-color: #4d504d;
    font-weight: bold;
    color: white;
}

.admin-user:hover {
    background-color: #2b2c2b;
}

.user-drop-item-name-cont {
    display: flex;
    align-items: center;
    justify-content: start;
}

.resize-drag-number input {
    min-width: 80px;
    max-width: 400px;
    box-sizing: border-box;
    padding: 0.5rem;
    margin: 0.1em;
}

.adv-perm-check {
    border: 1px solid #e0e0e0;
    border-radius: 0.5em;
    padding: 0.75em;
    padding-left: 0;
}

.dialog-container-manage-permissions {
    border-radius: 4px;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: .5rem;
    background-color: #fff;
}

    .dialog-container-manage-permissions .mud-dialog-title {
        padding: 0.5rem ;
    }

    .dialog-container-manage-permissions .mud-dialog-content {
        padding: 0;
    }

.permissions-inner-wrapper {
    padding: 1em;
    padding: 0;
    border: 1px solid #ebebeb;
    background-color: #f3f3f30d;
    border-radius: 4px;
}

.permissions-inner-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 0;
}

.permission-radio-group {
    border: 1px solid #ebebeb;
    border-radius: 4px;
    padding: 0.5em;
}

    .permission-radio-group .mud-radio-group {
        justify-content: space-between;
    }

    .permission-radio-group .mud-input-control {
        flex: 1;
    }

    .permission-radio-group .mud-radio-group .mud-radio {
        flex-direction: column;
    }

        .permission-radio-group .mud-radio-group .mud-radio span {
            padding: 0;
        }

    .permission-radio-group .mud-typography-body1 {
        font-size: 0.8rem !important;
    }

    .permission-option-line {
        height: 5px;
        flex: 3;
        margin-bottom: 1.5em;
        background-color: black;
    }

.admin-container {
    margin: 0 2em;
}

.admin-container-tooltip {
    padding: 0 !important;
    border-radius: 4px !important;
    background-color: white !important;
    box-shadow: rgba(100, 100, 111, 1) 0px 7px 29px 0px !important;
}

.admin-container-header {
    background-color: var(--mud-palette-primary);
    border-start-start-radius: 4px;
    border-start-end-radius: 4px;
    margin: 0;
}

.pending-invites-container {
    padding: 1em;
    margin: 0 1em;
}

.user-permissions-container-div {
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f9f9f9;
}

.user-permission-item-container {
    margin-right: 0;
    padding: 0.2em 0.5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
}

.unsaved-changes-cont {
    background: linear-gradient(-45deg, #b2dcfd 40%, #fff 50%, #b2dcfd 60%);
    background-size: 300%;
    background-position-x: 100%;
    padding: 0.5em;
    margin-right: 3em;
    border-radius: 4px;
    animation: pending-changes-shimmer 5s infinite ease-in-out;
}

@keyframes pending-changes-shimmer {
    0% {
        background-position-x: 100%;
    }

    30% {
        background-position-x: 100%;
    }

    50% {
        background-position-x: 0%;
    }

    100% {
        background-position-x: 0%;
    }
}

hr {
    background-color: #b7b7b7;
    margin: 0;
}

.max-height-flex {
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
}

.page-number-header {
    position: absolute;
    color: #2271e1c9;
    font-size: 1.5rem;
    font-weight: 500;
    user-select: none;
}

.page-break-block {
    height: 4px;
    position: absolute;
    z-index: 0;
    background-color: var(--canvas-background);
}

.drawer-scroll {
    height: 90vh; 
    max-height: 90vh; 
    overflow-y: auto; 
    overflow-x: hidden; 
}

@keyframes curtainDown {
    0% {
        height: 0;
        opacity: 1;
    }

    100% {
        height: 100%;
        opacity: 1;
    }
}

@keyframes curtainUp {
    0% {
        height: 100%;
        opacity: 1;
    }

    100% {
        height: 0;
        opacity: 1;
    }
}

.curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
    border-radius: 4px;
    background: linear-gradient(144deg, rgba(24,117,249,1) 0%, rgba(125,179,255,1) 100%);
    background-size: 300% 300%; 
    animation: gradientMove 3s linear infinite;
}

.curtain.down {
    animation: curtainDown 0.4s ease-in-out forwards;
}

.curtain.up {
    animation: curtainUp 0.4s ease-in-out forwards;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

.splash-navbar {
    background: #004dab00 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.main-nav-background {
    background: #2d8cffba !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.share-link-table-header {
    background-color: var(--mud-palette-primary-lighten);
}

.mud-table-container:has(> .mud-table-root > .share-link-table-header) {
    border-start-end-radius: 4px !important;
    border-start-start-radius: 4px !important;
}

.share-link-table-header th {
    color: white !important;
}

.create-card-link-expire-opt-cont {
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    padding: 1em;
    width: 100%;
}

.cards-list-data-grid {
    /*border-radius: 8px;*/ /* Match MudBlazor's rounded-2 */
    overflow: hidden; /* Clip all children to rounded corners */
}

.cards-list-data-grid .mud-table-head {
    background-color: var(--mud-palette-info) !important;
    
}

.add-padding-to-actions .mud-card-header-actions {
    padding-top: 4px;
}

.mobile-cards-list-item {
    padding: 0px 8px;
    height: 100px;
    max-height: 100px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.mobile-cards-list-item-hidden {
    opacity: 0.7;
}

.opacity-40 {
    opacity: 0.4;
}

.card-shared-info-container {
    gap: 0.2rem;
    padding: 0;
}

@media (max-width: 600px) {
    .th-container {
        width: unset;
        background-color: unset;
        box-shadow: none;
        max-width: 90dvw;
        flex-direction: column;
    }

    .th-title-container {
        max-width: unset;
    }

    #card-view {
        max-width: 90dvw;
    }

    .card-title-text {
        font-size: 1.5rem !important;
    }

    .shared-card-th-top-row {
        flex-direction: column;
    }

    .card-shared-info-container {
        flex-direction: column;
        align-items: baseline;
        gap: 0.2em;
        padding: 0.4em;
        font-size: 0.7rem !important;
    }
}

.re-order-item {
    display: inline-block;
    animation: jiggle 0.4s ease-in-out infinite;
    animation-delay: var(--delay);
    transform-origin: center center;
    /* Default fallback angles (you can override per-icon via inline styles or JS) */
    --start-angle: 0deg;
    --mid-angle: 1deg;
    --delay: 0s;
}

@keyframes jiggle {
    0% {
        transform: rotate(var(--start-angle));
    }

    50% {
        transform: rotate(var(--mid-angle));
    }

    100% {
        transform: rotate(var(--start-angle));
    }
}

.mud-radio-flex-direction-column .mud-radio-group {
    flex-direction: column !important;
    align-items: start !important;
}

/* Chat region*/
.mainchat-popover {
    height: 600px;
    width: 600px;
    overflow: hidden;
    padding: 0px;
    position: absolute;
    box-sizing: content-box;
    z-index: 1301 !important; /*get chat popover below any dialogs but above main page header 1300< x<1400*/
/*    transition-property: transform !important;*/
/*    transition-duration: 2000ms !important;*/
}

.mainchat-content {
    width: 100%;
    height: 100%;
    padding: 0px;
    margin: 0px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    --mud-drawer-width-right: 300px;
}

.chat-popover-top-toolbar {
    flex: 0 0 auto;
    height: 56px; /* Or however tall your toolbar is */
    background-color: var(--mud-palette-info) !important;
    width: 100%;
    color: white;
}

.chat-drawer-container {
    flex: 1 1 auto;
    display: flex;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.chat-drawer {
    flex: 1;
    overflow: hidden;
    display: flex;
    border-color: lightgray;
    /* calc(100% - 56px) !important; /*height of the very top toolbar*/
    max-height: 100%;
}
    .chat-drawer.chat-left-drawer {
        border-right-width: 1px;
    }
    .chat-drawer.chat-right-drawer {
        border-left-width: 1px;
    }

.chat-drawer-scroll {
    flex: 1;
    display: flex;
    visibility: hidden;
    border-color: lightgray;
    overflow: auto;
    padding-left: 4px;
    padding-bottom: 4px;
}

.chat-right-drawer .chat-drawer-scroll {
    padding-right: 4px;
}
.chat-settings-list-item {
/*    width: 500px !Important;*/
}

.chat-drawer-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    /*    height: 0;*/
}

.chat-drawer-body,
.chat-drawer-scroll:hover,
.chat-drawer-scroll:focus {
    visibility: visible;
}

.chat-meta-list {
    overflow-y: initial !important;
}

.mainchat-maincontent {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

.mainchat-container-divs {
    display: flex;
/*    flex-direction: row;*/
    /*    justify-content: space-between;*/
    /*    align-items: center;*/
    flex: 1 1 auto;
    overflow: hidden;
    height: 100%;
}

.mainchat-header {
    height: auto;
    display: flex;
    flex-direction: row;
    z-index: 1;
    border-bottom-width: 1px;
    border-color: lightgrey;
    justify-content: space-between;
}


.new-chat-control {
    padding: 8px;
    width: 100%;
    align-items: center !important;
}

.new-chat-chips-auto > .mud-autocomplete {
    flex-grow: 1 !important;
}

.new-chat-chips-auto {
    flex-wrap: wrap;
    flex-grow: 1 !important;
}

.new-chat-users-autocomplete {
    display: flex;
    width: 100%;
    flex-grow: 1;
    padding: 2px;
}

.chat-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    /*    justify-content: space-between;*/
    /*    justify-content: stretch;*/
}

.chat-title-avatar-name {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
}

.chat-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.mud-icon-button {
    flex-shrink: 0;
}

.mainchat-scroll-area {
    flex: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding-right: 4px;
    visibility: hidden;
}
    .mainchat-body,
    .mainchat-scroll-area:hover,
    .mainchat-scroll-area:focus {
        visibility: visible;
    }

.mainchat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 0;
}

.chat-item-title-bold p {
    font-weight: bold !important;
}

.mainchat-footer {
    flex: 0 0 auto;
    position: relative;
    z-index: 3;
    padding-top: 32px;
    padding-bottom: 24px;
    padding-right: 32px;
    padding-left: 32px;
}

.message-last-read-receipt {
    display: flex;
    justify-content: flex-end;
    transition: 0.8s;
    padding-bottom: 4px;
}

.new-message-input-control {
    opacity: 1;
}
    .new-message-input-control .mud-input > textarea.mud-input-root-outlined {
        mask-image: inherit;
    }

.chat-typing-indicator-container {
    position: absolute;
    top: 0px; /* Position below the input (adjust as needed) */
    padding-left: 4px;
    opacity: 1;
    z-index: 0;
}
/*.chat-footer.typing-active .chat-typing-indicator-container {
    bottom: 4px;*/ /* Move it up to be visible (adjust as needed) */
/*opacity: 1;
}*/

.chat-user-avatar {
    border-radius: 2em;
    border-width: 0.15rem !important;
    border-color: white !important;
}

    .chat-user-avatar img {
/*        border-radius: 2em;*/
/*        width: 3em;
        height: 3em;*/
    }

/*.initials-container {
    display: flex;
    align-items: center;
    justify-content: center;
}*/

.typing-animation {
/*    display: inline-block;*/
    display: flex;
    align-items: center;
}

    .typing-animation span {
        display: inline-block;
        width: 0.4em;
        height: 0.4em;
        background-color: #999; /* Adjust color */
        border-radius: 50%;
        margin-right: 0.4em;
        margin-bottom: 0;
        padding-bottom: 0;
/*        horizontal-align: middle;*/
        animation: typing 1.8s infinite;
    }
        .typing-animation span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-animation span:nth-child(3) {
            animation-delay: 0.4s;
        }
@keyframes typing {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    25% {
        opacity: 0.5;
        transform: translateY(-0.2em);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-user-list-tooltip {
    background: var(--mud-palette-dark-hover);
}

.message-detail-container {
}

.system-chatmessage > P {
    text-align: center;
    word-wrap: anywhere;
    font-size: 0.8rem;
    white-space: pre-line;
}

.base-user-chatmessage {
    display: flex;
    flex-direction: row;
    text-align: start;
    padding-top: 0px;
    padding-bottom: 4px;
}

.loggedin-user-chatmessage {
    justify-content: flex-end;
/*    align-content: flex-end;*/
}

.other-user-chatmessage {
    justify-content: flex-start;
/*    align-items: flex-end;*/
}


.chatmessage {
    max-width: 75%;
    padding: 12px;
    padding-bottom: 8px;
    padding-top: 8px;
    border-radius: 15px;
}

    .chatmessage p {
        max-width: 100%;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

.loggedin-user-chatmessage .chatmessage {
    background-color: aqua;
}

.other-user-chatmessage .chatmessage {
    background-color: aliceblue;
    margin-left: 2px;
}

.participant-list-item-wrapper {
    align-items: center;
}

.participant-list-item-name {
    overflow-wrap: anywhere;
}
.participant-list-item-badge {
    overflow-wrap: anywhere;
}

.mud-avatar.mud-avatar-smallmedium {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.00rem !important;
}

.chat-list-multi-avatar-badge-position {
    transform: translateX(-0.6em) translateY(-0.9em);
    z-index: 100;
}

.chat-list-single-avatar-badge-position {
    transform: translateX(-0.6em) translateY(-0.6em);
    z-index: 100;
}
.single-active-avatar-badge-wrapper {
    line-height: 0;
}

.single-active-avatar-badge {
    transform: translateX(-0.2em) translateY(-0.2em);
}

.chat-dialog
{
    z-index: 1604; /*needs to be higher than popover*/
}

.add-members-list-item-button {
    padding-right: 32px !important; /*balance mudblazor auto paddig 32px left*/
}
.add-members-list-item-button > .mud-list-item-text {
    justify-items: center !important;
}


.group-chat-member-list-item {
    justify-content: space-between;
    align-items: center;
}
/*End Chat Region*/
.cannot-select-tree-item > .mud-treeview-item-content {
    background: #ffdddd !important;
}

.handshake-party-relationship-container,
.role-hierarchy-container {
    position: relative;
    padding: 2em;
    background: #e8eaeb;
    border-radius: 4px;
    margin-top: 2em;
}

.role-hierarchy-item {
    background-color: var(--mud-palette-info);
    color: white;
    z-index: 10;
    padding: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.1s ease-out;
}

    .role-hierarchy-item:hover {
        transform: scale(1.2);
    }

.connection-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.opened-role-hierarchy-item {
    background-color: var(--mud-palette-tertiary);
}

.ruler-object {
    position: absolute;
    z-index: 0;
    border-radius: 5px;
    opacity: 0.5;
    background-image: linear-gradient(#ff9800 0.6000000000000001px, transparent 0.6000000000000001px), linear-gradient(to right, #ff9800 0.6000000000000001px, #ffab2b 0.6000000000000001px);
    background-size: 16px 16px;
    border: 4px solid #ff9800;
    border-top: 3px solid #ff9800;
    border-left: 3px solid #ff9800;
}

    .ruler-object.drag-selected {
        box-shadow: none !important;
        border-color: #d17d00 !important;
    }

    .ruler-object:hover {
        opacity: 0.7;
        background-image: linear-gradient(#ff9800 0.6000000000000001px, transparent 0.6000000000000001px), linear-gradient(to right, #ff9800 0.6000000000000001px, #ffab2b 0.6000000000000001px);
        border-color: #ff9800;
    }

.view-as-user-dropdown .mud-input-slot.mud-input-root.mud-input-root-outlined.mud-input-root-adorned-end.mud-input-root-margin-dense.mud-select-input 
{
    border-radius: 5px;
}

.drag-select-area {
    background-color: var(--mud-palette-warning);
    border: 1px solid var(--mud-palette-warning);
    box-sizing: border-box;
    border-radius: 4px;
    opacity: 0.4;
    z-index: 99999;
}

.alert-dark {
    background-color: var(--mud-palette-dark) !important;
}

.line-wrapper {
    position: absolute;
    top: 0;
    left: 0;
}

.card-draw-line {
    pointer-events: auto; 
}

.endpoint,
.line-button {
    position: absolute; 
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none; 
}

.endpoint {
    width: 18px;
    height: 18px;
    background-color: var(--mud-palette-primary);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 100;
}

.line-button {
    padding: 4px;
    background-color: #ffffff;
    border: 1px solid #adb2b7;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
}

.draw-mode {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.card-draw-line-dot {
    background-image: radial-gradient(circle, currentColor 40%, transparent 40%);
    background-size: 8px 100%;
    background-repeat: repeat-x;
    background-color: transparent !important;
}

.expansion-bg-blue .mud-expand-panel {
    background-color: #f3f8ff;
}

.expansion-p-min .mud-expand-panel-header {
    padding: 0 8px;
}

.expansion-p-min .mud-expand-panel-content.mud-expand-panel-gutters {
    padding: 0 8px;
}

@property --a {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.preview-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border: solid 2px transparent;
    background: repeating-conic-gradient( from var(--a, 0deg), transparent 0% 40%, #63a8fb52 40% 100% ) border-box;
    animation: rotate-background 8s linear infinite;
}

    .preview-wrapper > .preview-inner-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        background: #ffffff;
        border-radius: calc(var(--b));
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        padding: 0.4em;
    }

@keyframes rotate-background {
    to {
        --a: 360deg;
    }
}

.left-drawer-close-button {
    height: 100%;
    width: 35px;
    background-color: #9fc6f5;
    border-left: 2px solid #51a0ff;
    transition: 0.2s ease-out;
}

    .left-drawer-close-button:hover {
        background-color: #51a0ff;
    }

.right-drawer-close-button {
    height: 100%;
    width: 35px;
    background-color: #9fc6f5;
    border-right: 2px solid #51a0ff;
    transition: 0.2s ease-out;
}

    .right-drawer-close-button:hover {
        background-color: #51a0ff;
    }

.custom-drawer-height .mud-drawer-content {
    height: 90vh !important;
    max-height: 90vh !important;
    overflow: hidden;
}

.custom-drawer-height.mud-drawer-pos-left {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.3) 5px 10px 15px 5px;
}

.custom-drawer-height.mud-drawer-pos-right {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.3) -5px 10px 15px 5px;
}

.chat-left-drawer-close-button {
    height: 100%;
/*    width: 15px;*/
    background-color: lightgray;
/*    border-left: 2px solid lightslategray;*/
    transition: 0.2s ease-out;
}

    .chat-left-drawer-close-button:hover {
        background-color: lightslategray;
    }

.pause-icon {
    position: relative;
    width: 13px; /* width of the icon container */
    height: 20px; /* height of the icon */
    background: transparent;
    border: none;
    cursor: pointer;
}

    .pause-icon::before,
    .pause-icon::after {
        content: "";
        position: absolute;
        top: 0;
        width: 2px; /* width of each vertical line */
        height: 90%; /* full height */
        background: darkslategray;
    }

    .pause-icon::before {
        left: 3px;
    }

    .pause-icon::after {
        right: 3px;
    }
/* Handshake Party Relationship Styles */
.handshake-container {
    position: relative;
    width: 500px;
    height: 400px;
    margin: 20px auto;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.handshake-party {
    position: absolute;
    width: 120px;
    height: 60px;
    padding: 4px;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1;
}

    .handshake-party:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .handshake-party.initiator-party {
        background-image: linear-gradient( 45deg, hsl(216deg 78% 85%) 0%, hsl(215deg 78% 85%) 8%, hsl(213deg 78% 84%) 17%, hsl(212deg 77% 83%) 25%, hsl(211deg 77% 83%) 33%, hsl(209deg 76% 82%) 42%, hsl(208deg 75% 81%) 50%, hsl(207deg 75% 80%) 58%, hsl(206deg 74% 79%) 67%, hsl(205deg 73% 79%) 75%, hsl(204deg 72% 78%) 83%, hsl(203deg 71% 77%) 92%, hsl(202deg 70% 76%) 100% );
        border: 2px solid #4640f5;
        font-weight: 600;
    }

    .handshake-party.accessing-container {
        background-image: linear-gradient( 45deg, hsl(47deg 74% 94%) 0%, hsl(48deg 76% 93%) 8%, hsl(49deg 78% 93%) 17%, hsl(51deg 78% 93%) 25%, hsl(52deg 78% 92%) 33%, hsl(53deg 78% 92%) 42%, hsl(54deg 77% 91%) 50%, hsl(56deg 76% 91%) 58%, hsl(57deg 75% 90%) 67%, hsl(59deg 74% 89%) 75%, hsl(61deg 73% 89%) 83%, hsl(62deg 75% 89%) 92%, hsl(64deg 77% 88%) 100% );
        border: 2px solid #ffb12b;
    }

    .handshake-party:not(.initiator-party):not(.accessing-container) {
        background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
        border: 1px solid #ccc;
    }

.party-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.party-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Adjust margin when status is hidden */
.handshake-party:not(.initiator-party):not(.accessing-container) .party-name {
    margin-bottom: 0;
}

.party-status {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.initiator-party .party-status {
    color: #4640f5;
}

.accessing-container .party-status {
    color: #ffb12b;
}

/* Central hub element for equal party scenarios */
.central-element {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid #ffa000;
    box-shadow: 0 4px 12px rgba(255, 160, 0, 0.3);
}

    .central-element .party-name {
        color: #e65100;
        font-weight: 700;
    }

    .central-element .party-status {
        color: #ef6c00;
    }

/* Connection line styles */
.connection-line {
    stroke: #6e6e6e;
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

    .connection-line:hover {
        opacity: 1;
        stroke-width: 3;
    }

/* Animation for connection indicators */
.connection-indicator {
    fill: #003f75;
}

.connection-line.equal-party-line {
    stroke: #0979db;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .handshake-container {
        width: 90%;
        max-width: 400px;
        height: 320px;
    }

    .handshake-party {
        width: 100px;
        height: 50px;
        font-size: 11px;
    }

    .party-name {
        font-size: 12px;
    }

    .party-status {
        font-size: 9px;
    }
}

.central-hub {
    background: #63ff73 !important;
    border: 2px solid #17b327 !important;
    opacity: 0;
}

.left-align-text-button {
    text-align: left;
    width: 100%;
    padding-left: 0.5em;
    padding-right: 0.5em;
    display: flex;
    align-items: center;
}

.left-align-text-button .mud-button-label {
    display: unset;
}

.selected-object-container {
    padding: 4px;
    border: 1px solid var(--mud-palette-primary);
    border-radius: 4px;
    background: #ebf5ff;
}

.available-connect-window-object {
    background: #2271e1;
}

.connected-object-settings-container {
    background: #ffffff9c;
    padding: 4px;
    border-radius: 5px;
}

.send-object-card-view-container {
    height: 70dvh;
    width: 80dvw;
    max-height: 700px;
    max-width: 1200px;
    border-radius: 4px;
    padding: 1em;
    overflow: scroll;
    background: radial-gradient(circle, rgb(112, 124, 145) 0%, rgb(81, 90, 107) 50%, rgb(41, 54, 77) 100%);
}

.send-object-card-view-canvas {
    border-radius: 4px;
    position: relative;

    background: white;
}

.send-object-card-view-object {
    position: absolute;
    background: #fafafa;
    border: 1px solid grey;
    border-radius: 5px;
    padding: 4px;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
}

    .send-object-card-view-object.selected-object {
        border: 1px solid var(--mud-palette-primary);
        background: #ebf5ff;
    }

.disabled-share-again-object {
    background: #bfbfbf;
    opacity: 0.5;
}

.send-object-card-view-object-name {
    text-overflow: ellipsis;
}

.transparent-element {
    opacity: 0;
    transition: 0.1s ease-in;
}

.max-width-popover-menu-30 {
    max-width: 30dvw !important;
}

.expansion-panel-soc-container .mud-expand-panel-content {
    padding: 4px 8px !important;
    background-color: #eaf5ff;
}

.expansion-panel-soc-padding {
    padding: 4px 8px !important;
    background-color: #d0e8ff;
    border-bottom: 1px grey solid;
}

.expansion-panel-soc-desination-select {
    flex: 3;
}

.thick-divider {
    height: 4px !important;
}

.primary-divider {
    border-color: var(--mud-palette-primary);
    background-color: var(--mud-palette-primary) !important;
    border-radius: 5px;
    opacity: 0.9;
}

.send-card-option-checkbox-container {
    border: 1px solid #dfdfdf;
    border-radius: 4px;
}

.mud-avatar.mud-avatar-smallmedium {
    width: 36px !important; 
    height: 36px !important;
    font-size: 1.00rem !important;
}

.custom-chat-badge-position {
    transform: translate(-5px, -5px);
    z-index: 100;
}

.drawer-header-change-btn.mud-button {
    min-width: unset !important;
    box-shadow: none;
    border: 1px solid #51a0ff;
    background-color: #9fc6f5 !important;
    transition: 0.2s ease-out !important;
}

    .drawer-header-change-btn.mud-button:hover {
        background-color: #51a0ff !important;
    }

.drawer-header-change-btn .mud-icon-root.mud-svg-icon {
    fill: #5d5d5d;
}

.invisible-avatar {
    border-color: transparent !important;
    background-color: transparent !important;
    color: transparent !important;
}

.custom-icon-primary, .custom-icon-primary svg {
    stroke: var(--mud-palette-primary) !important;
}

.mud-drawer--closed.left-fix {
    animation: mud-drawer-slide-in-left 225ms cubic-bezier(0, 0, 0.2, 1) !important;
    left: 0 !important;
}

.mud-drawer--closed.right-fix {
    animation: mud-drawer-slide-in-right 225ms cubic-bezier(0, 0, 0.2, 1) !important;
    right: 0 !important;
}

/*.no-scroll {
    overflow: hidden !important;
}*/
/*body {
    overflow: hidden !important;
}*/

.
}

.card-render-skeleton {
    background-color: #70b1ff3d !important;
}