﻿:root {
    --brand-colour-primary-darkest: #9a2121;
    --brand-colour-primary-dark: #d32f2f;
    --brand-colour-primary: #f44336;
    --brand-colour-primary-light: #ff474a;
    --brand-colour-primary-lightest: #ffc3c3;
    /*data grid row*/
    --mud-palette-table-hover-custom: #f44336;
    --row-archived: #bababa;
    --row-checked-out: #ffefce;
    --row-selected: #ededed;
    --row-clicked: #ff938b;
    --row-header: #ff5353;
    /*data grid row*/
}

body {
    min-height: 100vh;
    background-color: #ededed;
}

td {
    font-weight: 300 !important;
}

td[data-label="File Name"] {
    font-weight: 500 !important;
}

.blurry-background {
    backdrop-filter: blur(10px);
}

td > .mud-input-control > .mud-input-control-input-container > label > span {
    /*prevents the mud data grid selection checkbox from causing the data grid to scroll on y axis*/
    padding: 0 0.2em;
}

.file-list-container {
    -webkit-user-select: none; /* Chrome, Safari, Opera */
    -moz-user-select: none;  /*Firefox */
    -ms-user-select: none; /*IE 10+ */
    user-select: none; /*Standard*/
}
/**/
.upload-file-div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    background-color: #ff5f53;
    color: white;
    padding: 0.5em 1em;
    border-radius: 4px;
    transition: 0.2s ease-out;
    cursor: pointer;
    flex: 1;
    gap: 3px !important;
}

    .upload-file-div:hover {
        opacity: 0.9;
    }

.upload-file-div-selected {
    background-color: rgba(191,50,40,1);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.upload-file-div-for-copy-selection {
    background-color:  cornflowerblue;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.file-icon {
    background-color: #ffffffb5 !important;
    border-radius: 4px;
    padding: 2px;
}

.view-window-file {
    width: 100%;
}

.cannot-view-in-browser {
    background-color: #808080 !important;
}

    .cannot-view-in-browser:hover {
        background-color: #5a5a5a !important;
    }

    .cannot-view-in-browser.upload-file-div-selected {
        background-color: #5a5a5a !important;
    }

.h-100 {
    height: 100% !important;
}

.w-100 {
    width: 100%;
}

.w-100-input-parent .mud-select {
    width: 100% !important;
}

.w-100-input-parent .mud-input-control {
    width: 100% !important;
}

.w-100-input-parent .mud-picker {
    width: 100% !important;
}

.w-100-input-parent .mud-input-slot {
    width: 100% !important;
}

.fw-bold {
    font-weight: 500;
}

.fw-light {
    font-weight: 300;
}

.document-mobile-menu-header .mud-dialog-title {
    background-color: var(--brand-colour-primary);
    color: white;
    margin: 0;
    font-weight: 500;
    padding: 1em;
    padding-right: 0;
}

.document-mobile-menu-header .mud-dialog-content {
    padding: 0.5em;
    margin: 0;
}

.spider-dialog-header .mud-dialog-title {
    background-color: var(--brand-colour-primary);
    color: white;
    margin: 0;
    font-weight: 500;
}

.uploaded-file-chip {
    height: 32px;
    font-size: 14px;
    border-radius: 16px;
    color: white;
    background-color: rgba(244,67,54,1);
}

.attributes-column-body {
    width: 100%;
}


.upload-col-body-scroll {
/*    overflow-y: auto;*/
    overflow-x: auto;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

    .upload-col-body > :first-child {
        margin-top: 0.5em !important;
    }
/*
        .upload-col-body > :first-child .mud-select {
            margin-top: 0.5em !important;
        }
*/
    .upload-col-body > :last-child {
        margin-bottom: 0 !important;
    }
/**/

/*align checkboxes of doc list view*/
tbody.mud-table-body label.mud-checkbox span {
    padding: 12px !important;
}

div > div.mud-toolbar.mud-toolbar-gutters.mud-table-toolbar {
    padding: 0 !important;
}

.blazor-context-menu__list {
    padding: 0 !important;
    padding-bottom: 8px !important;
}

.blazor-context-menu {
    padding: 0 !important;
    border-radius: 4px;
    padding-bottom: 4px;
}

.file-context-menu-container {
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.context-sub-menu-header {
    background-color: #f5f5f5 !important;
    padding: 4px;
    transition: 0.4s ease-out;
    border-radius: 4px;
    cursor: default !important;
}

.context-menu-item {
    font-size: 1.1rem;
    transition: 0.4s ease-out;
    border-radius: 4px;
    background-color: #fff !important;
    padding: 4px;
    cursor: pointer;
    margin-top: 4px;
}

    .context-menu-item:hover {
        background-color: #ffe8e8 !important;
    }

.context-menu-item-disabled {
    font-size: 1.1rem;
    color: #a0a0a0;
    cursor: not-allowed;
    padding: 4px;
    margin-top: 4px;
}

.context-menu-sub-menu {
    font-size: 1.1rem;
    border-radius: 4px;
}

    .context-menu-sub-menu .blazor-context-menu__list {
        padding: 0 !important;
        padding-bottom: 0 !important;
    }

.blazor-context-menu__item--with-submenu:after {
    right: 0px !important;
}

.context-menu-seperator-hr {
    height: 2px;
    width: 95%;
    background-color: #ffdedf;
    margin: 4px auto;
}

.context-menu-header {
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    background-color: var(--brand-colour-primary);
    color: white;
    display: block;
    box-sizing: border-box;
    /* Allow the header to wrap and not overflow the menu */
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    /* Provide sensible width limits so long filenames wrap like Archived Folders */
    min-width: 250px;
    max-width: 500px;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}



/*Prevent dragging entire dropzone*/
.mud-drop-zone-with-menu .mud-treeview > .mud-drop-zone > .mud-drop-item {
    transform: unset !important;

}
.mud-drop-zone-with-menu .mud-treeview > .mud-drop-zone > .mud-drop-item:active {
    transform: translate3d(0px, 0px, 0px) !important;
}

/* Drag and drop hover styling for folders */
.mud-drop-zone[dragging="true"] {
    background-color: rgba(244, 67, 54, 0.1) !important;
    border: 2px dashed var(--brand-colour-primary) !important;
    border-radius: 4px;
    transition: background-color 0.2s ease, border 0.2s ease;
}

/* Highlight the tree view item when a folder is dragged over it */
.mud-treeview-item-content:has(+ .mud-drop-zone[dragging="true"]) {
    background-color: rgba(244, 67, 54, 0.15) !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

/* Additional styling for MudBlazor drop zone hover state */
.mud-drop-zone.mud-drop-zone-drag-over {
    background-color: rgba(244, 67, 54, 0.1) !important;
    border: 2px dashed var(--brand-colour-primary) !important;
    border-radius: 4px;
    transition: background-color 0.2s ease, border 0.2s ease;
}

/* Highlight parent tree view item when dropzone has drag-over */
.mud-treeview-item-content:has(+ .mud-drop-zone.mud-drop-zone-drag-over) {
    background-color: rgba(244, 67, 54, 0.15) !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

/* Style the entire tree item when its child dropzone is being hovered during drag */
.mud-treeview-item:has(.mud-drop-zone.mud-drop-zone-drag-over) > .mud-treeview-item-content {
    background-color: rgba(244, 67, 54, 0.15) !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

/* Specific styling for folder dropzone */
.folder-dropzone {
    min-height: 20px;
    transition: all 0.2s ease;
}

/* When dragging over a folder dropzone, highlight it */
.folder-dropzone.mud-drop-zone-drag-over {
    background-color: rgba(244, 67, 54, 0.1) !important;
    outline: 2px dashed var(--brand-colour-primary) !important;
    outline-offset: -2px;
    border-radius: 4px;
}

/* Highlight the folder item content when hovering over its dropzone */
.mud-treeview-item:has(.folder-dropzone.mud-drop-zone-drag-over) > .mud-treeview-item-content {
    background-color: rgba(244, 67, 54, 0.2) !important;
    border-radius: 4px;
    box-shadow: 0 0 0 2px var(--brand-colour-primary-light);
}

/* Custom drag hover styling using manual event tracking */
.folder-drag-target {
    transition: all 0.2s ease;
    min-width: 400px;
    padding: 4px 16px;
    flex-grow: 0 !important;
}

.folder-drag-target.drag-hover-active {
    background-color: rgba(244, 67, 54, 0.15) !important;
}

.mud-table-row {
    transition: 0.15s ease-out;
}

.mud-table-row td {
    transition: 0.15s ease-out;
}

.document-properties-tooltip {
    padding: 0 !important;
    border-radius: 4px !important;
    background-color: white !important;
    box-shadow: rgba(100, 100, 111, 1) 0px 7px 29px 0px !important;
}

.document-properties-tooltip-header {
    background-color: var(--brand-colour-primary);
    border-start-start-radius: 4px;
    border-start-end-radius: 4px;
    color: white;
    margin: 0;
}

.mud-table-cell .mud-tooltip-root.mud-tooltip-inline {
    width: 100%;
}

    .mud-table-cell .mud-tooltip-root.mud-tooltip-inline:hover {
        text-decoration: underline;
    }

.share-link-container {
    padding: 0.5em;
    border-radius: 4px;
    background-color: #e6e6e6;
    font-weight: 500;
    margin: 0 auto;
    text-align: center;
    font-size: 1.4rem;
}

.add-shadow {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 3px 8px;
}

.tab-bg-white {
    background-color: white;
}

.document-list-header tr th {
    background-color: var(--brand-colour-primary) !important;
    color: white !important;
    font-weight: 500;
}

.document-history-list-header tr th {
    background-color: #373131 !important;
    color: white !important;
    font-weight: 500;
}

.document-history-list-header tr th:first-child {
    border-radius: 0px !important;
}

.document-history-list-header tr th:last-child {
    border-radius: 0px !important;
}

.bottom-view-header-text {
    background-color: #373131 !important;
    color: white;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    padding: 0.2em 0 0.2em 2em;
    margin: 0;
    font-weight: 500;
    letter-spacing: .02857em;
    line-height: 1.75;
    font-size: 1rem;
    text-align: center;
}

.mud-drawer-content {
    background-color: var(--brand-colour-primary) !important;
    color: white !important;
}

.mud-treeview-item-selected {
    color: white !important;
    background-color: var(--brand-colour-primary-dark) !important;
    border-radius: 2px;
}

.mud-navmenu-default {
    background-color: var(--brand-colour-primary) !important;
}

.mud-drawer {
    scrollbar-width: thin; 
    scrollbar-color: var(--brand-colour-primary-dark) var(--brand-colour-primary); 
}

.file-loading-list-item {
    animation: load-skeleton 2s infinite ease-in-out;
}

@keyframes load-skeleton {
    0% {
        background-color: rgba(46, 46, 46, 0.1);
    }

    50% {
        background-color: rgba(46, 46, 46, 0.2);
    }

    100% {
        background-color: rgba(46, 46, 46, 0.1);
    }
}

.bg-white {
    background: #fff !important;
    border-radius: 4px;
}

.mudnavmenu-header {
    background-color: var(--brand-colour-primary-light) !important;
    color: white !important;
    font-weight: 500;
}

.white-circular {
    color: var(--mud-palette-white);
}

.show-clickable:hover{
    cursor: pointer !important;
}

div.mud-list.mud-menu-list {
    padding: 0 !important;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.floating-fab-box {
    position: fixed;
    bottom: 10%;
    left: 45%;
    background: #9b9b9bab !important;
    backdrop-filter: blur(10px);
    z-index: 25;
    padding: 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;
}

.mud-select:has(> .mud-select-flex-1) {
    flex: 1;
}

.mud-text-field-flex-1 {
    flex: 1;
}


@media (max-width: 416px), (max-width: 600px) {

    .mud-table-pagination-toolbar {
        display: flex !important;
        padding: 0 !important;
        gap: 3px !important;
        row-gap: 3px !important;
        background-color: #f0f0f0 !important;
        min-height: 50px !important;
    }

    .mud-table-pagination-spacer {
        display: none;
    }

    .mud-typography.mud-typography-body2.mud-table-pagination-caption {
        flex: 1;
        font-size: 0.7rem !important;
    }

    .mud-table-pagination-toolbar .mud-select {
        flex: 1;
    }

    .mud-table-pagination-actions {
        flex: 1;
        padding-right: 1em;
    }

    .mud-table-pagination-actions button {
        padding: 0;
    }

    .xs-pa-1 {
        padding: 4px !important;
    }

    .mud-dialog .mud-dialog-content {
        padding: 0 4px;
    }

    .xs-chip-small-font .mud-chip-content {
        font-size: 0.6rem;
        padding: 0 0em;
    }

    .upload-file-div {
        font-size: 0.7rem;
    }

    .styled-header-text {
        font-size: 1rem !important;
    }
}

@media (max-width: 960px) {
    .document-list-header {
        display: none !important;
    }

    .mobile-row:before {
        padding: 0 !important;
    }

    .scroll-shadow {
        border: 1px solid #e7e7e7;
        box-shadow: inset 0px 10px 10px -3px rgba(0,0,0,0.05);
    }
}


@media (max-width: 1100px) {
    .xs-chip-small-font .mud-chip-content {
        font-size: 0.6rem;
        padding: 0 0em;
    }

    .upload-file-div {
        font-size: 0.7rem;
    }
}

.addin-header {
    background-color: var(--mud-palette-primary);
    color: white;
    border-radius: 4px;
    padding: 12px !important;
}

.addin-header-padding {
}

.translate-left-5 {
    transform: translateX(-20px);
}

@media (max-width: 600px) {

    .upload-files-main-root-media {
        overflow-y: auto !important;
        display: block !important;
/*        padding-right: 0.5rem;*/
    }    
    .files-body-media {
        max-height: 50dvh !important;
    }    

/*    .no-max-height-small-screen {
        max-height: none !important;
    }*/

/*    .attributes-max-height {
        max-height: 60vh !important;
    }*/

    .small-avatar-media-button {
        width: 24px !important;
        height: 24px !important;
        font-size: .75rem !important;
    }

    .small-icon-size-media {
        font-size: 1.25rem !important;
    }

    .no-margin-padding-media {
        padding: 0px !important;
        margin: 0px !important;
    }
    .empty-layout-container-media {
        padding: 0.25rem !important;
        padding-top: 0 !important;
        margin: 0px !important;
    }

    .gap-1-media{
        gap: 4px !important;
    }
}

.empty-layout-container {
    padding: 0.25rem !important;
    padding-top: 0 !important;
    margin: 0px !important;
    height: 95dvh;
}

.no-margin-padding {
    padding: 0px !important;
    margin: 0px !important;
}

.mobile-row {
    padding: 0.8em 0.4em !important;
}

#document-preview-frame {
    height: 99%;
}

.light-grey-dialog-footer .mud-dialog-actions {
    background-color: #ececec;
}

.inset-box-shadow {
    box-shadow: rgba(0, 0, 0, 0.06) 0px 0px 4px 4px inset;
}

.quick-search-cont {
    background: #fefefe;
    border-radius: 4px;
    border: 1px solid #e9e9e9;
    padding: 4px
}

.search-options-exist {
    animation: 2s infinite search-options-exist-button ease-in;
}

.no-display-tab {
    display: none !important;
}

@keyframes search-options-exist-button
{
    0% {
        background: #f52c2c;
    }

    50% {
        background: var(--mud-palette-error);
    }

    100% {
        background: #f52c2c;
    }
}

.data-grid-border {
    border-radius: 4px;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0
}

td.js--row-clicked svg {
    filter: brightness(0.7);
}

.search-toolbar-container {
    background-color: white;
    padding: 8px;
    border-color: red;
    border-radius: 4px;
    border-end-end-radius: 0px;
    border-end-start-radius: 0px;
}

.mud-table-sticky-header * .mud-table-root .mud-table-head.document-list-header * .mud-table-cell:first-child {
    border-radius: 0px !important;
}

.mud-table-sticky-header * .mud-table-root .mud-table-head.document-list-header * .mud-table-cell:last-child {
    border-radius: 0px !important;
}

.active-tab-panel-dark {
    background-color: var(--mud-palette-primary);
}

.main-search-container {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    gap: 1px !important;
}

.document-list-tab-container, .main-search-container {
    border-end-end-radius: 4px !important;
    border-end-start-radius: 4px !important;
}

.mud-tabs:has(.document-list-tab-container) {
    border-end-end-radius: 4px !important;
    border-end-start-radius: 4px !important;
}

#dl-progress {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: #1e1e2e;
    color: #fff;
    font-family: sans-serif;
    padding: 14px 18px;
    border-radius: 10px;
    min-width: 280px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: opacity 0.4s ease;
}

.dl-progress-top {
    margin-bottom: 8px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.dl-progress-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-progress-label {
    white-space: nowrap;
    color: #ffbab7;
}

.dl-progress-track {
    position: relative;
    background: #313244;
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}

@keyframes indeterminate {
    0% {
        left: -40%;
        width: 40%;
    }

    60% {
        left: 100%;
        width: 40%;
    }

    100% {
        left: 100%;
        width: 40%;
    }
}

.dl-progress-bar {
    position: absolute;
    height: 100%;
    background: var(--mud-palette-error);
    border-radius: 999px;
    animation: indeterminate 1.4s ease-in-out infinite;
}

/* Custom multi-select with inline chips */
.custom-multi-select-wrapper {
    position: relative;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.custom-multi-select-field {
    position: relative;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    padding: 8px 14px;
    background: white;
    transition: border-color 0.3s;
}

.custom-multi-select-field:hover:not(.disabled) {
    border-color: rgba(0, 0, 0, 0.87);
}

.custom-multi-select-field:focus-within:not(.disabled) {
    border-color: var(--mud-palette-primary);
    border-width: 2px;
    padding: 7px 13px;
}

.custom-multi-select-field.disabled {
    background-color: white;
    border-color: rgba(0, 0, 0, 0.23);
    cursor: not-allowed;
}

.multi-select-input-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    width: 100%;
}

.input-adornment {
    display: flex;
    align-items: center;
    color: rgba(0, 0, 0, 0.54);
    margin-right: 8px;
}

.inline-chip {
    margin: 0 !important;
}

.inline-autocomplete {
    flex: 1 1 auto;
    min-width: 150px;
    display: flex;
    align-items: center;
}

.inline-autocomplete .mud-autocomplete,
.inline-autocomplete .plain-autocomplete {
    width: 100%;
}

.inline-autocomplete .mud-input-control {
    margin: 0 !important;
}

.inline-autocomplete .mud-input {
    padding: 0 !important;
    margin: 0 !important;
    min-height: unset !important;
}

.inline-autocomplete .mud-input:before,
.inline-autocomplete .mud-input:after {
    display: none !important;
}

.inline-autocomplete input {
    padding: 8px 0 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    font-size: 1rem;
}

.inline-autocomplete input::placeholder {
    color: rgba(0, 0, 0, 0.42);
    opacity: 1;
}

.custom-fieldset {
    position: absolute;
    top: -5px;
    right: 0;
    left: 0;
    bottom: 0;
    margin: 0;
    padding: 0 8px;
    border: none;
    pointer-events: none;
}

.custom-legend {
    padding: 0 5px;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.6);
    transition: color 0.3s;
    line-height: 1;
    width: auto;
    background-color: white;
}

.custom-multi-select-field:focus-within .custom-legend {
    color: var(--mud-palette-primary);
}

.custom-multi-select-field.disabled .custom-legend {
    color: rgba(0, 0, 0, 0.38);
}

.helper-text {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 4px;
    margin-left: 14px;
    line-height: 1.66;
}

.custom-multi-select-field.disabled .helper-text {
    color: rgba(0, 0, 0, 0.38);
}

.user-preferences-header {
    background: var(--mud-palette-primary);
    padding: 4px;
    padding-left: 1em;
}

.iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

.iframe-responsive {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.cannot-view-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%;
}

.cannot-view-card {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.view-document-container {
    background: #9c9c9c;
    background: radial-gradient(circle, rgba(156, 156, 156, 1) 0%, rgba(31, 31, 31, 1) 100%);
    min-height: 85dvh;
    flex: 1;
    padding: 4px;
    border-radius: 4px;
}

.view-document-window .mud-dialog-actions {
    background: #dedede;
    z-index: 99999;
}

.view-document-window .mud-dialog-content {
    padding: 16px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: 85dvh !important;
    height: 85dvh !important;
}

.view-documents-list-container {
    min-width: 20dvw;
    max-width: 20dvw;
    max-height: 85dvh;
    overflow: auto;
}

.view-window-expansion {
    background: #f9f9f9;
}

.view-window-expansion-header {
    background: var(--brand-colour-primary) !important;
    color: white;
    font-size: 1.5rem !important;
    font-weight: 400;
}

.view-window-expansion .mud-expand-panel-content.mud-expand-panel-gutters {
    padding: 1em;
}

/* Compare Versions Styles */
.compare-versions-container {
    height: 100%;
    width: 100%;
    display: flex;
    gap: 16px;
}

.compare-panel {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: #ffffff;
    background: radial-gradient(circle, rgba(156, 156, 156, 1) 0%, rgba(31, 31, 31, 1) 100%);
    padding: 4px;
    border-radius: 4px;
}

.compare-panel-header {
    background: #fff;
    padding: 8px;
    border-radius: 4px; 
}

.compare-panel-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compare-header {
    display: flex;
    align-items: start;
    justify-content: flex-start;
    gap: 16px;
    flex-shrink: 0;
    background: #fff;
    padding: 4px;
    border-radius: 4px;
}

.compare-version-select {
    min-width: 220px;
    max-width: 220px;
}

.mud-select:has(.compare-version-select) {
    flex: 0 0 auto;
}

.compare-version-select .mud-input-control {
    min-height: 48px;
}

.compare-version-select .mud-input-outlined,
.compare-version-select .mud-input-root {
    background: white;
    border-radius: 4px;
}

.compare-version-select .mud-input {
    background: white;
    border-radius: 4px;
}

.version-reason {
    font-style: italic;
    color: black;
    text-align: left;
    flex: 1 1 auto;
}

.version-metadata {
    color: black;
    text-align: left;
    font-size: 0.875rem;
    flex: 0 0 auto;
    min-width: 200px;
}

.version-metadata .metadata-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.version-metadata .metadata-icon {
    color: black;
    flex-shrink: 0;
}

.compare-iframe-container {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    background: white;
    border-radius: 4px;
    overflow: auto;
}

.compare-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.cannot-view-message {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
}

@media (max-width: 600px) {
    .login-container {
        margin-top: 20dvh;
    }
}

@media (min-width: 601px) {
    .login-container {
        margin-top: 10dvh;
    }
}
}

.svg-white-fill svg {
    fill: #d4d4d4 !important;
}

.folder-row-selected-choose-folder .folder-row-text {
    color: #fff;
}

.folder-row-selected-choose-folder svg {
    color: #fff;
    fill: #fff !important;
}

.light-grey-border {
    border: solid 1px var(--mud-palette-divider);
}