/* Shared look-and-feel tokens. New UI uses these, never literal values (skill: infinity-ui-conventions).
   These are the light values; a token that needs a dark one gets it on html:root in the dark theme base files. */
:root {
    /* Cards, panels, boxes, inputs and tag chips. */
    --infinity-radius: 8px;

    /* Primary actions, progress and step numbers. */
    --infinity-accent: #1f7ac0;
    /* Highlight and focus cues, e.g. the column picked in the grid column search. Dark values in the dark base files. */
    --infinity-accent-edge: #1f7ac0;
    --infinity-accent-tint: rgba(31, 122, 192, 0.18);

    /* Done: a step's tick, an uploaded badge. */
    --infinity-success: #2e8b57;

    /* Needs attention before you can continue, e.g. a required field still empty. */
    --infinity-warning: hsl(32, 90%, 44%);
    --infinity-warning-edge: hsl(35, 90%, 50%);
    --infinity-warning-soft: hsla(35, 90%, 50%, 0.18);
    --infinity-warning-tint: hsla(35, 90%, 50%, 0.07);

    /* Failed or refused, e.g. an upload the server rejected. */
    --infinity-danger: hsl(0, 65%, 50%);
    --infinity-danger-tint: hsla(0, 70%, 50%, 0.08);

    /* Scrollbar thumb, on DevExtreme's scrollbars and on .infinity-scroll alike. */
    --infinity-scrollbar: #8bc7ec;
}

/* A plain overflow box that scrolls like DevExtreme's: an 8px strip with a 4px square thumb,
   no track and no arrows. Put it on any element of ours that has overflow: auto. */
.infinity-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.infinity-scroll::-webkit-scrollbar-track,
.infinity-scroll::-webkit-scrollbar-corner {
    background: transparent;
}

.infinity-scroll::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    background-clip: padding-box;
    background-color: var(--infinity-scrollbar);
}

.infinity-scroll::-webkit-scrollbar-button {
    display: none;
}

/* Firefox has no ::-webkit-scrollbar; the standard properties get it close. */
@supports not selector(::-webkit-scrollbar) {
    .infinity-scroll {
        scrollbar-width: thin;
        scrollbar-color: var(--infinity-scrollbar) transparent;
    }
}

/*Role Sim radio button dot not showing*/
.dx-radiobutton-icon-checked .dx-radiobutton-icon-dot {
    border-color: #8bc7eb;
}

#notification-popup .dx-popup-content {
    padding: 0px;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
}

.toolbar-text {
    margin: 0 5px 0 5px;
}

.footer-text {
    margin-top: -9px;
}

.logo-img {
    height: 34px;
    margin-left: 5px;
    margin-top: -3px;
}

.theme-switch {
    margin-top: -6px;
    margin-left: 5px;
}

.inline-edit-grid-action .dx-button-content {
    padding: 4px;
    margin: 0;
}

.dx-tab .dx-button-content {
    padding: 0;
    margin: 0;
}

.dx-treeview-item-content .dx-button-content {
    padding: 0 0 2px 5px;
    margin: 0;
}

.dx-toolbar-items-container .dx-texteditor-with-label {
    margin: 0;
}

.dx-dropdowneditor-overlay .dx-popup-content {
    padding: 0;
}

.dx-datagrid-rowsview .dx-master-detail-row > .dx-master-detail-cell {
    padding: 5px;
}

.visible.dx-radiobutton-checked .dx-radiobutton-icon .dx-radiobutton-icon-dot {
    background: #A1FB8E;
    border-width: 0px !important;
}

.read-only.dx-radiobutton-checked .dx-radiobutton-icon .dx-radiobutton-icon-dot {
    background: #A3FBFB;
    border-width: 0px !important;
}

.hidden.dx-radiobutton-checked .dx-radiobutton-icon .dx-radiobutton-icon-dot {
    background: #FB9A9B;
    border-width: 0px !important;
}

.required.dx-radiobutton-checked .dx-radiobutton-icon .dx-radiobutton-icon-dot {
    background: #E0DA3E;
    border-width: 0px !important;
}

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    src: url(fonts/materialsymbolsoutlined.woff2) format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symboles Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -moz-font-feature-settings: 'liga';
    -moz-osx-font-smoothing: grayscale;
}

    .material-symbols-outlined::before {
        content: attr(data-icon);
    }

.notifications-icon {
    font-size: 20px;
}

.form-button {
    height: 24px !important;
}

.form-button-align {
    margin-top: 6px;
}

.form-button-green {
    background: #b6d9a8;
}

.grid-toolbar-button {
    height: 36px !important;
    width: 36px !important;
    font-size: 20px !important;
    padding: 6px !important;
}

.nav-menu-button {
    font-size: 14px !important;
    display: inline;
    top: 8.5px;
    position: static;
}

.nav-menu-record-with-icon {
    font-size: 16px !important;
    display: inline !important;
    float: left;
}

.nav-menu-record-without-icon {
    font-size: 16px !important;
}

.nav-menu-name {
    display: block; /* Fallback for non-webkit */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 2px;
}

div.span.nav-menu-name {
    overflow: visible;
    white-space: normal;
    height: auto; /* just added this line */
}

.dx-dashboard-settings-form .dx-dashboard-settings-form-content .dx-dashboard-form-left-column {
    float: left;
    width: 100%;
    padding-right: 0px;
}

.dx-dashboard-designer-menu-popup .dx-dashboard-designer-menu-header.dx-popup-title {
    width: 240px !important;
}

.dx-dashboard-context-menu-panel {
    height: 90% !important;
}

.toolbar-button-material-icon {
    width: 34px;
    height: 34px;
    padding-top: 4px;
    padding-left: 4px;
}

.toolbar-button-green {
    color: #b6d9a8;
}

.toolbar-button-red {
    color: #e3999a;
}

.warning-config-toolbar-button {
    color: #c9e127;
}

.error-config-toolbar-button {
    color: #d5806d;
}

.center-form-caption {
    text-align: center;
}

.gallery-item-left {
    float: right;
    width: 330px;
    height: 470px;
    padding: 20px;
    background: rgba(191, 191, 191, 0.15);
    margin-right: 30px;
}


.image_container {
    border-radius: 5px;
    background-color: #8bc7ec;
    border-spacing: 0;
    cursor: pointer;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    opacity: 1;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    text-indent: 0;
    -webkit-transition: border-color .3s;
    transition: border-color .3s;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 100%;
    font-family: inherit;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /*box-shadow: 0 15px 9px 0 rgba(0, 0, 0, 0.1);*/
    border: 3px solid #8bc7ec;
    align-items: center;
    justify-content: center;
}

    .image_container:focus {
        outline: none;
    }

    .image_container::-moz-focus-inner {
        border: 0;
    }

    .image_container:hover {
        border-color: #8bc7ec;
        background: #8bc7ec;
    }

.image_container_loading_indicator {
    position: absolute;
    alignment: center;
}

.gallery_item {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-inner-item {
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    width: 220px;
    height: 120px;
    object-fit: contain;
}

.image-container-info {
    padding: 10px;
    background: #0d2943;
    width: 100%;
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

.image-container-info-key {
    font-weight: 300;
    color: white;
}

.gallery-item {
    object-fit: cover;
    flex: 1;
}

.info-container {
    flex: 1;
    padding: 10px;
}

.gallery-item-holder {
    display: flex;
    /*min-width: 50%;*/
}

/*grid split display for datagrid control*/

.grid-splitter-parent-container {
    display: flex;
    flex-direction: column;
}

.datagrid-splitter-dragbar {
    height: 10px;
    cursor: row-resize;
    background-color: #8bc7ec;
    z-index: 9;
}

.datagrid-splitter-top-element {
    resize: vertical;
    min-height: 112px;
}

.datagrid-splitter-bottom-element {
    flex: 1;
    margin-top: 5px;
    min-height: 50px;
}

#section-links {
    color: gray;
    padding: 0.5rem 1rem;
    display: block;
    text-decoration: none;
    border-left: 2px solid;
    scroll-behavior: smooth;
}

    #section-links:hover {
        color: #1a7ebb;
    }

.active-link {
    background: #0085f230;
    font-weight: bold;
    color: #1a7ebb !important;
}

.scroll-container {
    scroll-behavior: smooth;
    padding: 30px;
    overflow-y: hidden;
    /*for non-webkit browsers such as Firefox*/
    scrollbar-color: #6AB5E2;
    scrollbar-width: thin;
}

    .scroll-container::-webkit-scrollbar {
        width: 4px;
    }

    .scroll-container::-webkit-scrollbar-thumb {
        background-color: #6AB5E2;
    }

    .scroll-container:hover {
        overflow-y: scroll;
    }

/* #413 — recolour the grey DevExpress scrollbar to the dark-theme accent blue
   and keep it permanently visible (don't fade out when the mouse moves away).
   !important beats DevExpress's higher-specificity state rules; forcing
   opacity:1 on the invisible state stops the idle fade-out. */
.dx-scrollable-scroll-content {
    background-color: var(--infinity-scrollbar) !important;
}

.dx-scrollable-scroll.dx-state-invisible {
    opacity: 1 !important;
}

/*.custom-task {
    max-height: 48px;
    height: 100%;
    display: block;
    overflow: hidden;
}

.custom-task-wrapper {
    padding: 8px;
    color: #fff;
    height: 63px;
}

.custom-task-wrapper > * {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-task-title {
    font-weight: 600;
    font-size: 13px;
}*/

.dx-gantt .dx-row {
    height: 25px;
}

.custom-task-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
}

.toolbar-top-simulation {
    border-bottom: 3px solid #20dd36;
}

/*.form-item-read-only {
    background: #E8EAEB !important;
}*/

.form-item-visible {
    border-color: #6AB5E2 !important;
}

.checkbox-wrapper .dx-checkbox-icon {
    border-color: #6AB5E2;
}

.split {
    display: flex;
    flex-direction: row;
}

.gutter {
    background-color: #eee;
    background-repeat: no-repeat;
    background-position: 50%;
}

    .gutter.gutter-horizontal {
        background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
        cursor: col-resize;
    }

.dx-tabs .dx-tabs-wrapper .dx-tab {
    width: auto;
    padding-left: 20px;
}

.dx-tabs-wrapper {
    display: contents !important
}

.dx-tab-content .dx-icon-close {
    display: inline-block;
    opacity: 0.6;
    margin-right: 0;
    margin-left: 14px;
    font-size: 15px;
    margin-bottom: 2px;
}

/*Browser notifications*/
.container {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 2fr;
    grid-auto-rows: minmax(670px, auto);
}

.listContainer {
    background-color: #FAFAFA;
    grid-column: 1;
}

.contentContainer {
    background-color: #FAFAFA;
    grid-column: 2/4;
}

.listItemContainer {
    height: 60px;
    position: relative;
}

.itemSubject {
    inline-size: 300px;
    overflow: hidden;
    font-size: 15px
}

.itemBody {
    inline-size: 300px;
    overflow: hidden;
    margin-bottom: 4px;
}

.itemDate {
    inline-size: fit-content;
    position: absolute;
    left: 0;
}

.itemTime {
    position: absolute;
    right: 20px;
}

#unreadItems {
    font-weight: bold;
}

.tabContainer {
    margin: 2px;
    height: 35px;
    position: relative;
    background-color: #FAFAFA;
}

#unreadCounter {
    margin-left: 5px;
    font-weight: bold;
}

.tabActionItems {
    background-color: #FAFAFA;
    position: absolute;
    left: 0;
}

.important {
    position: absolute;
    right: 0;
    color: darkorange;
    margin-top: 2px;
}

.material-symbols-outlined.md-18 {
    font-size: 18px;
}

.action-sheet-item-container {
    width: 158px !important;
    height: 34px !important;
    padding-top: 7px !important;
    padding-bottom: 8px !important;
    padding-right: 18px !important;
    padding-left: 18px !important;
    border-style: solid !important;
    border-color: #cacfd1 !important;
    border-width: 1px !important;
    border-radius: 2px !important;
    text-align: center !important;
    background-color: white;
}

    .action-sheet-item-container:hover {
        background-color: #F5F5F5;
    }

.inline-icon {
    vertical-align: bottom;
    font-size: 20px !important;
}

.icon-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: transparent; /*#0D2943*/
    border: none;
    outline: none;
}

.notification-badge {
    position: absolute;
    top: -1px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: red;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 12px;
}

.config-options {
    margin-top: 5px !important;
}

.okta-login-container {
    margin-top: 10%;
}

/**lightbox styling*/

.photo-gallery {
    color: #313437;
    padding: 10px;
}

    .photo-gallery p {
        color: #7d8285;
    }

@media (max-width:767px) {
    .photo-gallery h2 {
        margin-bottom: 25px;
        padding-top: 25px;
        font-size: 24px;
    }
}

.photo-gallery .photos {
    padding-bottom: 10px;
}

.photo-gallery .item {
    padding-bottom: 10px;
}

.form-label {
    margin-bottom: 2px !important;
}

.form-item {
    margin: 10px;
}

/*.dx-overlay-wrapper.dx-popup-wrapper.dx-dropdowneditor-overlay .dx-overlay-content {
    min-width:350px;
}*/

/*
    Kanban classes
*/


.v3-kanban-card {
    position: relative;
    background-color: white;
    box-sizing: border-box;
    width: 230px;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
}

.v3-kanban-card-subject {
    padding-bottom: 10px;
}

.v3-kanban-header {
    margin: auto;
    text-align: center;
    font-weight: bold;
    font-size: x-large;
}

.v3-kanban-left-element {
    margin-left: 2%;
}

.v3-kanban-card-color {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 5px;
    width: 5px;
    border-radius: 2px;
    background: #ADD8E6;
}

.v3-kanban-scrollable-board {
    width: max-content;
}

.v3-kanban-scrollable-list {
    height: 70vh;
    width: 260px;
}

.v3-kanban-sortable-cards {
    min-height: 380px;
}

.v3-kanban-list {
    border-radius: 8px;
    margin: 5px;
    background-color: rgba(192, 192, 192, 0.4);
    display: inline-block;
    vertical-align: top;
    white-space: normal;
    height: 75vh;
}

.v3-kanban-list-title {
    font-size: 16px;
    padding: 10px;
    padding-left: 30px;
    margin-bottom: -10px;
    font-weight: bold;
    cursor: pointer;
}

.max-line-ellipis {
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

#kanban {
    white-space: nowrap;
    max-width: 75vw;
}

/*File Viewer*/

/* The redesigned viewer (C.19-C.24). Colours are set here for both themes: the app swaps whole
   stylesheets rather than setting a class on <html>, so the viewer marks itself with
   fileviewer--dark when the dark theme is on. --fileviewer-canvas is the surround a page or
   picture sits on - the page itself stays white, as in every PDF reader. */
.fileviewer {
    --fileviewer-surface: #ffffff;
    --fileviewer-canvas: #e9edf1;
    --fileviewer-sunken: rgba(127, 127, 127, 0.12);
    --fileviewer-muted-surface: rgba(127, 127, 127, 0.06);
    --fileviewer-border: rgba(127, 127, 127, 0.28);
    --fileviewer-border-strong: rgba(127, 127, 127, 0.5);
    --fileviewer-text-muted: #5f6b76;
    --fileviewer-text-faint: #8a949c;
    --fileviewer-accent: #0b61a4;
    --fileviewer-accent-soft: #e3f1fb;
    --fileviewer-danger: #c62828;
    --fileviewer-danger-soft: rgba(198, 40, 40, 0.08);
    --fileviewer-warning: #9a5b00;
    --fileviewer-warning-soft: rgba(240, 170, 40, 0.16);
    --fileviewer-page-shadow: 0 1px 3px rgba(13, 41, 67, 0.18), 0 4px 14px rgba(13, 41, 67, 0.08);
    --fileviewer-raised-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    --fileviewer-mono: 'Cascadia Mono', 'Cascadia Code', Consolas, Menlo, monospace;
    --fileviewer-tok-key: #01609a;
    --fileviewer-tok-string: #2f7d4f;
    --fileviewer-tok-number: #a35200;
    --fileviewer-tok-literal: #7b3fa0;
    --fileviewer-checker: #dfe3e7;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    min-height: 0;
    outline: none;
    font-size: 13.5px;
    line-height: 1.4;
}

.fileviewer.fileviewer--dark {
    --fileviewer-surface: #2a2a2a;
    --fileviewer-canvas: #18191b;
    --fileviewer-text-muted: #a9b1b8;
    --fileviewer-text-faint: #7d858c;
    --fileviewer-accent: #74c8ee;
    --fileviewer-accent-soft: rgba(116, 200, 238, 0.16);
    --fileviewer-danger: #ff8a80;
    --fileviewer-danger-soft: rgba(255, 138, 128, 0.12);
    --fileviewer-warning: #f0b875;
    --fileviewer-warning-soft: rgba(240, 184, 117, 0.14);
    --fileviewer-page-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 6px 18px rgba(0, 0, 0, 0.4);
    --fileviewer-raised-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    --fileviewer-tok-key: #74c8ee;
    --fileviewer-tok-string: #7fd6a0;
    --fileviewer-tok-number: #f0b875;
    --fileviewer-tok-literal: #c9a2e6;
    --fileviewer-checker: #3a3d40;
}

.fileviewer:fullscreen {
    background: var(--fileviewer-surface);
}

.fileviewer-icon {
    font-family: 'Material Symbols Outlined';
    font-size: 20px;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

@keyframes fileviewer-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Toolbar ---------- */

.fileviewer-header {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 6px 8px 6px 6px;
    border-bottom: 1px solid var(--fileviewer-border);
}

.fileviewer-header__group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.fileviewer-header__position {
    min-width: 46px;
    color: var(--fileviewer-text-muted);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.fileviewer-header__icon {
    display: inline-flex;
    margin-left: 6px;
    color: var(--fileviewer-accent);
}

.fileviewer-header__icon .fileviewer-icon {
    font-size: 22px;
}

/* min-width: 0 is what lets the name ellipsis instead of pushing the actions off the end. */
.fileviewer-header__identity {
    display: flex;
    flex: 1 1 160px;
    flex-direction: column;
    min-width: 0;
}

.fileviewer-header__name {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fileviewer-header__meta {
    overflow: hidden;
    color: var(--fileviewer-text-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fileviewer-header__tools {
    gap: 6px;
    padding: 0 8px;
    border-left: 1px solid var(--fileviewer-border);
    border-right: 1px solid var(--fileviewer-border);
}

.fileviewer-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.fileviewer-tool:hover:not(:disabled) {
    background: var(--fileviewer-sunken);
}

.fileviewer-tool:disabled {
    opacity: 0.35;
    cursor: default;
}

.fileviewer-tool:focus-visible,
.fileviewer-zoom__value:focus-visible {
    outline: 2px solid var(--fileviewer-accent);
    outline-offset: 1px;
}

.fileviewer-tool[aria-pressed='true'] {
    background: var(--fileviewer-accent-soft);
    color: var(--fileviewer-accent);
}

.fileviewer-zoom {
    display: flex;
    align-items: center;
}

.fileviewer-zoom__host {
    position: relative;
}

.fileviewer-zoom__value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 30px;
    padding: 0 2px 0 8px;
    border: 1px solid var(--fileviewer-border);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 12.5px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}

.fileviewer-zoom__value:hover {
    background: var(--fileviewer-sunken);
}

.fileviewer-zoom__value .fileviewer-icon {
    font-size: 18px;
}

.fileviewer-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 50%;
    min-width: 140px;
    padding: 4px;
    transform: translateX(-50%);
    border: 1px solid var(--fileviewer-border);
    border-radius: 8px;
    box-shadow: var(--fileviewer-raised-shadow);
}

.fileviewer-menu button {
    display: block;
    width: 100%;
    padding: 7px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.fileviewer-menu button:hover {
    background: var(--fileviewer-sunken);
}

.fileviewer-menu button[aria-checked='true'] {
    color: var(--fileviewer-accent);
    font-weight: 600;
}

.fileviewer-menu hr {
    margin: 4px 0;
    border: none;
    border-top: 1px solid var(--fileviewer-border);
}

.fileviewer-page {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--fileviewer-text-muted);
    font-size: 12.5px;
}

.fileviewer-page input {
    width: 4ch;
    height: 28px;
    padding: 0 4px;
    border: 1px solid var(--fileviewer-border);
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 12.5px;
    font-weight: 500;
    text-align: center;
}

/* A narrow pane keeps the name and the actions on the first row and moves the tools to a row of their own. */
@container (max-width: 760px) {
    .fileviewer-header__meta {
        display: none;
    }

    .fileviewer-header__tools {
        order: 3;
        width: 100%;
        justify-content: center;
        padding: 4px 0 0;
        border: none;
        border-top: 1px solid var(--fileviewer-border);
    }

    .fileviewer-details {
        display: none;
    }
}

/* ---------- Find ---------- */

.fileviewer-find {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 5px 8px 5px 14px;
    border-bottom: 1px solid var(--fileviewer-border);
    background: var(--fileviewer-muted-surface);
    color: var(--fileviewer-text-muted);
}

.fileviewer-find input {
    flex: 0 1 320px;
    min-width: 120px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--fileviewer-border-strong);
    border-radius: 8px;
    background: var(--fileviewer-surface);
    color: inherit;
    font-size: 13px;
}

.fileviewer-find input:focus {
    outline: none;
    border-color: var(--fileviewer-accent);
}

.fileviewer-find__count {
    min-width: 84px;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.fileviewer-find__count.is-empty {
    color: var(--fileviewer-danger);
}

.fileviewer-find .fileviewer-find__close {
    margin-left: auto;
}

/* Matches in text and Word, painted with the CSS Custom Highlight API rather than by rewriting the DOM. */
::highlight(fileviewer-find) {
    background-color: rgba(255, 200, 40, 0.45);
}

::highlight(fileviewer-find-current) {
    background-color: #ff9632;
    color: #000;
}

/* ---------- Body and details ---------- */

.fileviewer-main {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

/* The stage every renderer draws into, and scrolls itself. */
.fileviewer-body {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    background: var(--fileviewer-canvas);
}

.fileviewer-details {
    display: flex;
    flex: none;
    flex-direction: column;
    width: 290px;
    border-left: 1px solid var(--fileviewer-border);
}

.fileviewer-details__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 6px 6px 14px;
    border-bottom: 1px solid var(--fileviewer-border);
}

.fileviewer-details__body {
    flex: 1;
    overflow: auto;
    padding: 2px 14px 16px;
}

.fileviewer-details__body h4 {
    margin: 16px 0 8px;
    color: var(--fileviewer-text-faint);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fileviewer-details__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.fileviewer-details__empty {
    color: var(--fileviewer-text-faint);
    font-size: 12.5px;
}

.fileviewer-details__facts {
    margin: 0;
}

.fileviewer-details__facts > div {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid var(--fileviewer-border);
    font-size: 12.5px;
}

.fileviewer-details__facts dt {
    color: var(--fileviewer-text-muted);
    font-weight: normal;
}

.fileviewer-details__facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* ---------- Messages and waiting ---------- */

.fileviewer-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    padding: 24px;
    box-sizing: border-box;
    text-align: center;
}

.fileviewer-message__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--fileviewer-surface);
    color: var(--fileviewer-text-muted);
    box-shadow: var(--fileviewer-page-shadow);
}

.fileviewer-message__icon .fileviewer-icon {
    font-size: 32px;
}

.fileviewer-message strong {
    font-size: 15px;
}

.fileviewer-message__detail {
    max-width: 420px;
    color: var(--fileviewer-text-muted);
}

.fileviewer-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 7px 14px;
    border: 1px solid var(--fileviewer-border);
    border-radius: 8px;
    background: var(--fileviewer-surface);
    color: inherit;
    font-weight: 500;
    cursor: pointer;
}

.fileviewer-button--primary {
    border-color: var(--fileviewer-accent);
    background: var(--fileviewer-accent);
    color: #fff;
}

.fileviewer--dark .fileviewer-button--primary {
    color: #10232f;
}

.fileviewer-button .fileviewer-icon {
    font-size: 18px;
}

.fileviewer-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    color: var(--fileviewer-text-muted);
}

.fileviewer-spinner {
    flex: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--fileviewer-border-strong);
    border-top-color: var(--fileviewer-accent);
    border-radius: 50%;
    animation: fileviewer-spin 0.8s linear infinite;
}

/* Shown while a file is still being laid out; the load panel belongs to the download, and is
   already gone by the time this matters. */
.fileviewer-preparing {
    position: absolute;
    z-index: 5;
    top: 16px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--fileviewer-surface);
    box-shadow: var(--fileviewer-raised-shadow);
    font-size: 12.5px;
}

.fileviewer-chip {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--fileviewer-sunken);
    color: var(--fileviewer-text-muted);
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
}

.fileviewer-chip--warning {
    background: var(--fileviewer-warning-soft);
    color: var(--fileviewer-warning);
}

/* The status line over text and spreadsheets. */
.fileviewer-strip {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--fileviewer-border);
    color: var(--fileviewer-text-muted);
    font-size: 12.5px;
}

.fileviewer-strip__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 0 auto;
    color: inherit;
    cursor: pointer;
}

/* ---------- PDF ---------- */

.fileviewer-pdf {
    display: flex;
    height: 100%;
}

.fileviewer-pdf__rail {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 140px;
    overflow: auto;
    padding: 12px 0;
    border-right: 1px solid var(--fileviewer-border);
    background: var(--fileviewer-surface);
}

.fileviewer-pdf__thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--fileviewer-text-muted);
    font-size: 11.5px;
    cursor: pointer;
}

.fileviewer-pdf__thumb canvas {
    display: block;
    min-height: 60px;
    background: #fff;
    box-shadow: var(--fileviewer-page-shadow);
}

.fileviewer-pdf__thumb:hover {
    background: var(--fileviewer-sunken);
}

.fileviewer-pdf__thumb[aria-current='page'] {
    border-color: var(--fileviewer-accent);
    color: var(--fileviewer-accent);
    font-weight: 600;
}

.fileviewer-pdf__stage {
    position: relative;
    flex: 1;
    min-width: 0;
}

.fileviewer-pdf__scroller {
    position: absolute;
    inset: 0;
    overflow: auto;
    outline: none;
}

.fileviewer-pdf .pdfViewer {
    padding: 16px 0 4px;
}

.fileviewer-pdf .pdfViewer.removePageBorders .page {
    margin: 0 auto 16px;
    box-shadow: var(--fileviewer-page-shadow);
}

/* ---------- Image ---------- */

.fileviewer-image {
    position: relative;
    height: 100%;
    overflow: hidden;
    touch-action: none;
    user-select: none;
}

.fileviewer-image--pannable {
    cursor: grab;
}

.fileviewer-image.is-dragging {
    cursor: grabbing;
}

.fileviewer-image__picture {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none;
    box-shadow: var(--fileviewer-page-shadow);
    transition: transform 120ms ease-out;
}

.fileviewer-image.is-dragging .fileviewer-image__picture {
    transition: none;
}

.fileviewer-image__picture--transparent {
    background: repeating-conic-gradient(var(--fileviewer-checker) 0% 25%, var(--fileviewer-surface) 0% 50%) 50% / 20px 20px;
}

/* ---------- Text ---------- */

.fileviewer-text,
.fileviewer-sheet {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--fileviewer-surface);
}

.fileviewer-text__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 8px 0 16px;
    font-family: var(--fileviewer-mono);
    font-size: 13px;
    line-height: 1.6;
}

.fileviewer-text__line {
    display: grid;
    grid-template-columns: var(--fileviewer-gutter) 1fr;
    column-gap: 16px;
    padding-right: 16px;
}

.fileviewer-text__body:not(.fileviewer-text__body--wrap) .fileviewer-text__line {
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
}

/* The number is not text: find cannot match it and copying leaves it out. */
.fileviewer-text__line::before {
    content: attr(data-line);
    padding-left: 8px;
    color: var(--fileviewer-text-faint);
    text-align: right;
    user-select: none;
}

.fileviewer-text__line code {
    color: inherit;
    font: inherit;
    white-space: pre;
}

.fileviewer-text__body--wrap .fileviewer-text__line code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.fileviewer-text__line--error {
    background: var(--fileviewer-danger-soft);
}

.fileviewer-text__line--warn {
    background: var(--fileviewer-warning-soft);
}

.fileviewer-text__more {
    padding: 12px 16px;
    color: var(--fileviewer-text-faint);
    font-size: 12.5px;
    font-style: italic;
}

.fileviewer-tok-key {
    color: var(--fileviewer-tok-key);
}

.fileviewer-tok-string {
    color: var(--fileviewer-tok-string);
}

.fileviewer-tok-number {
    color: var(--fileviewer-tok-number);
}

.fileviewer-tok-literal {
    color: var(--fileviewer-tok-literal);
}

.fileviewer-tok-comment {
    color: var(--fileviewer-text-faint);
}

.fileviewer-tok-level {
    font-weight: 700;
}

.fileviewer-tok-level--erro,
.fileviewer-tok-level--fata {
    color: var(--fileviewer-danger);
}

.fileviewer-tok-level--warn {
    color: var(--fileviewer-warning);
}

.fileviewer-tok-level--info {
    color: var(--fileviewer-accent);
}

.fileviewer-tok-level--debu {
    color: var(--fileviewer-text-faint);
}

/* ---------- Spreadsheet ---------- */

.fileviewer-sheet__grid {
    flex: 1;
    min-height: 0;
}

.fileviewer-sheet .fileviewer-sheet__row-number {
    background: var(--fileviewer-muted-surface);
    color: var(--fileviewer-text-faint);
    font-variant-numeric: tabular-nums;
}

.fileviewer-sheet__tabs {
    display: flex;
    flex: none;
    order: 3;
    gap: 2px;
    padding: 0 8px;
    border-top: 1px solid var(--fileviewer-border);
    background: var(--fileviewer-muted-surface);
}

.fileviewer-sheet__tab {
    padding: 7px 14px;
    border: none;
    border-top: 2px solid transparent;
    background: transparent;
    color: var(--fileviewer-text-muted);
    font-size: 12.5px;
    cursor: pointer;
}

.fileviewer-sheet__tab[aria-selected='true'] {
    border-top-color: var(--fileviewer-accent);
    background: var(--fileviewer-surface);
    color: var(--fileviewer-accent);
    font-weight: 600;
}

/* ---------- Word ---------- */

/* docx-preview lays out page-sized sections, taller than the pane and can be wider than a narrow
   one, so this is what scrolls - in both directions. */
.fileviewer-docx {
    position: relative;
    height: 100%;
    overflow: auto;
}

.fileviewer-docx .docx-wrapper {
    padding: 24px 24px 8px;
    background: transparent;
}

.fileviewer-docx .docx-wrapper > section.docx {
    margin-bottom: 24px;
    box-shadow: var(--fileviewer-page-shadow);
}

/* ---------- Links inside documents (C.18) ---------- */

/* A web link copies, never opens. */
.fileviewer-docx a[data-fileviewer-link='web'],
.fileviewer-pdf .annotationLayer a[data-fileviewer-link='web'] {
    cursor: copy;
}

.fileviewer-docx a[data-fileviewer-link='web'] {
    color: #0b61a4;
    text-decoration: underline dashed;
    text-underline-offset: 3px;
}

.fileviewer-docx a[data-fileviewer-link='web']::after {
    content: 'content_copy';
    margin-left: 2px;
    font: normal 0.85em/1 'Material Symbols Outlined';
    font-feature-settings: 'liga';
    vertical-align: -0.12em;
}

/* A removed link reads as the text around it, whatever colour the document gave it. */
.fileviewer-docx .fileviewer-link-removed,
.fileviewer-docx .fileviewer-link-removed * {
    color: inherit !important;
    text-decoration: none !important;
}

.fileviewer-pdf .annotationLayer a[data-fileviewer-link='none'] {
    cursor: not-allowed;
}

.fileviewer-pdf .annotationLayer a[data-fileviewer-link='none']:hover {
    background: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.fileviewer-linknote {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: min(520px, calc(100% - 32px));
    padding: 12px 10px 12px 14px;
    transform: translateX(-50%);
    border: 1px solid rgba(127, 127, 127, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    font-size: 12.5px;
}

.fileviewer-linknote > .dx-icon {
    font-size: 18px;
    margin-top: 1px;
}

.fileviewer-linknote__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.fileviewer-linknote__text > span {
    opacity: 0.75;
}

.fileviewer-linknote__url {
    width: 100%;
    margin-top: 2px;
    padding: 5px 8px;
    border: 1px solid rgba(127, 127, 127, 0.35);
    border-radius: 6px;
    background: rgba(127, 127, 127, 0.08);
    color: inherit;
    font: 12px Consolas, 'Cascadia Mono', monospace;
}

.fileviewer-linknote__close {
    display: inline-flex;
    padding: 2px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.fileviewer-linknote__close:hover {
    background: rgba(127, 127, 127, 0.15);
}

/* ---------- Video and audio ---------- */

.fileviewer-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
    box-sizing: border-box;
}

.fileviewer-media__video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    background: #000;
    box-shadow: var(--fileviewer-page-shadow);
}

.fileviewer-media__audio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 32px;
    border: 1px solid var(--fileviewer-border);
    border-radius: 12px;
    background: var(--fileviewer-surface);
    box-shadow: var(--fileviewer-page-shadow);
}

.fileviewer-media__audio > .fileviewer-icon {
    color: var(--fileviewer-accent);
    font-size: 48px;
}

.fileviewer-media__audio audio {
    width: min(360px, 70vw);
}

/* ---------- Shortcuts ---------- */

.fileviewer-shortcuts {
    position: absolute;
    z-index: 30;
    top: 12px;
    right: 12px;
    width: 300px;
    padding: 6px 8px 12px 14px;
    border: 1px solid var(--fileviewer-border);
    border-radius: 12px;
    box-shadow: var(--fileviewer-raised-shadow);
}

.fileviewer-shortcuts header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fileviewer-shortcuts dl {
    margin: 4px 6px 0 0;
}

.fileviewer-shortcuts dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 12.5px;
}

.fileviewer-shortcuts dt {
    font-weight: normal;
}

.fileviewer-shortcuts dd {
    margin: 0;
    color: var(--fileviewer-text-muted);
    text-align: right;
}

.fileviewer-shortcuts kbd {
    padding: 2px 6px;
    border: 1px solid var(--fileviewer-border-strong);
    border-bottom-width: 2px;
    border-radius: 4px;
    background: var(--fileviewer-muted-surface);
    color: inherit;
    font: 500 11.5px var(--fileviewer-mono);
}

/*Mobile specific*/
.disable-user-selection {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}


/*aligns the items with the arrows in the tree view, don't need 10px padding*/
.dx-treeview-item {
    padding: 5px 0px;
}

/*for disabling the dxChatBox when sending messages*/
.dx-chat-disabled .dx-chat-messagebox {
    opacity: 0.5;
    pointer-events: none;
}

#ai_toolbar_widget .dx-button-content {
    background-color: blue;
    border-radius: 6px;
    padding-block: 1px
}

/*#region Dev Express Tab UI Changes*/
.dx-tabs {
    background: none;
    padding-left: 4px;
    padding-top: 5px;
    padding-bottom: 5px;
    display: flex;
    gap: 0;
}

.dx-tab {
    border: 1px solid #ccc !important;
    /* Removed the black border-bottom */
    padding: 8px 14px !important;
    cursor: pointer;
    font-weight: 500 !important;
    border-radius: 8px 8px 0 0 !important;
    transition: background-color 0.2s ease !important;
    margin-right: 0px !important;
}

    .dx-tab:not(.dx-tab-selected) {
        border-bottom: 2px solid #8bc7ec !important; /* Your color for non-selected */
    }

    .dx-tab.dx-tab-selected {
        font-weight: bold !important;
        font-size: calc(1em + 2px);
        z-index: 1;
        border: 2px solid #8bc7ec !important; /* Your color for selected */
        border-bottom: 0px !important;
        margin-bottom: 0 !important;
    }


        .dx-tab.dx-tab-selected:focus {
            outline: none;
        }

/* remove devexpress outline*/
.dx-tabpanel.dx-state-focused:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

    .dx-tabpanel.dx-state-focused:not(:focus-visible)::before,
    .dx-tabpanel.dx-state-focused:not(:focus-visible)::after {
        content: none !important;
    }

/*this is for keyboard users to still see*/
.dx-tabpanel.dx-state-focused:focus-visible {
    outline: 2px solid #0078d7;
    outline-offset: 2px;
    box-shadow: none !important;
}

.dx-tab:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

    .dx-tab:not(:focus-visible)::before,
    .dx-tab:not(:focus-visible)::after {
        content: none !important;
    }

.dx-tab:focus-visible {
    outline: 2px solid #0078d7;
    outline-offset: 2px;
    box-shadow: none !important;
}


/*this is for the dashboard tabs*/
.dx-dashboard-tabs-content {
    margin-top: 2rem !important;
}

/* Fix: Added dot before dx-widget */
.dx-dashboard-caption-toolbar .dx-toolbar.dx-widget.dx-visibility-change-handler.dx-collection.dx-dashboard-caption-toolbar-border {
    border: none !important;
}

.dx-dashboard-standalone-item .dx-dashboard-item-container {
    border: none !important;
}

/* Additional selectors to ensure all borders are removed */
.dx-dashboard-caption-toolbar-border {
    border: none !important;
    border-bottom: none !important;
}

.dx-dashboard-item-container {
    border: none !important;
}

.dx-dashboard-tab-content .dx-dashboard-standalone-item {
    border: none !important;
}

/* Remove borders from the toolbar itself */
.dx-dashboard-caption-toolbar.dx-toolbar {
    border: none !important;
    border-bottom: none !important;
}

/* Target the specific class that adds borders */
.dx-dashboard-ignore-border {
    border: none !important;
}

/*#endregion*/
/*#region Dev Express Datagrid*/
.dx-datagrid-header-panel .dx-toolbar {
    margin-bottom: 5px !important;
    margin-top: 5px !important;
}

.dx-data-row.dx-selection {
    font-weight: bold;
}

/* #639: column picked in the grid column search. A tint over the cell background keeps pinned cells opaque. */
.dx-datagrid .dx-row > td.infinity-column-focus {
    background-image: linear-gradient(var(--infinity-accent-tint), var(--infinity-accent-tint));
}

.dx-datagrid .dx-header-row > td.infinity-column-focus {
    box-shadow: inset 0 -3px 0 var(--infinity-accent-edge);
}

/* Toolbar buttons and editors only; DevExtreme editors elsewhere keep their 4px. Grids and tree lists
   use DevExtreme's header-panel classes as several controls host them; the app header and drop-down arrows keep their shape. */
.dx-datagrid-header-panel .dx-toolbar .dx-button:not(.dx-dropdowneditor-button),
.dx-datagrid-header-panel .dx-toolbar .dx-texteditor,
.dx-treelist-header-panel .dx-toolbar .dx-button:not(.dx-dropdowneditor-button),
.dx-treelist-header-panel .dx-toolbar .dx-texteditor,
.infinity.control.file_manager .dx-toolbar .dx-button:not(.dx-dropdowneditor-button),
.infinity.control.file_manager .dx-toolbar .dx-texteditor,
.infinity.control.toolbar:not(.toolbar-top) .dx-button:not(.dx-dropdowneditor-button),
.infinity.control.toolbar:not(.toolbar-top) .dx-texteditor {
    border-radius: var(--infinity-radius);
}
/*#endregion*/

/*#region Error CSS */

/*validation error on tabs */
@keyframes validation-error {
    0% {
        background-color: #ED2222;
    }

    50% {
        background-color: #ED5D49;
    }

    100% {
        background-color: #ED2222;
    }
}

.validation-error-tabs {
    background-color: #D63E3E;
    animation-name: validation-error;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

/*#endregion*/


/*#region file manager column lines*/

/* The file manager builds its details view with showColumnLines off and does not expose the
   option, so the separators that show where a column can be resized are drawn here instead. */
.dx-filemanager-details .dx-datagrid-headers .dx-header-row > td,
.dx-filemanager-details .dx-datagrid-rowsview .dx-data-row > td {
    border-right: 1px solid var(--dx-color-border, rgba(127, 127, 127, 0.28));
}

.dx-filemanager-details .dx-datagrid-headers .dx-header-row > td:last-child,
.dx-filemanager-details .dx-datagrid-rowsview .dx-data-row > td:last-child {
    border-right: none;
}

/*#endregion*/

/*#region Resizable master-detail panel (Processes / History tabs) */
.infinity-resizable-master-detail {
    box-sizing: border-box;
    padding-bottom: 8px;
}

/* DevExtreme's bottom handle is an invisible 3px strip - widen the hit area and show a
   grip so the drag edge is findable. Grey works against both themes. */
.infinity-resizable-master-detail > .dx-resizable-handle-bottom {
    height: 8px;
    cursor: row-resize;
}

.infinity-resizable-master-detail > .dx-resizable-handle-bottom::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 3px;
    width: 40px;
    height: 2px;
    margin-left: -20px;
    border-radius: 1px;
    background-color: rgba(128, 128, 128, 0.55);
}

.infinity-resizable-master-detail > .dx-resizable-handle-bottom:hover::after {
    background-color: rgba(128, 128, 128, 0.95);
}

/*#endregion*/


/*#region file uploader tag gate and help*/

/* Shown under the uploader while the upload is held back for want of a Tag Key. */
.file-uploader-tag-required {
    margin-top: 8px;
    font-size: 0.9em;
    color: var(--dx-color-warning, #c77700);
}

/* While the upload waits for a Tag Key the whole picker reads as locked, rather than leaving a
   live-looking drop area that silently refuses files. */
.file-uploader-locked {
    opacity: 0.55;
}

.file-uploader-locked .dx-fileuploader-input-wrapper {
    pointer-events: none;
}

/* Committed tags sit on one line each in a dxForm group, so the chip hugs its text rather
   than stretching across the form the way the text box it replaced did. */
.file-uploader-tag {
    display: inline-flex;
    max-width: 100%;
    margin: 2px 0;
}

/* One tag chip, from infinity.util.tagChip. The tint comes from the Tag Key, so the same key is
   the same colour in the grid, the upload dialog and the file details. Translucent rather than
   solid, so it sits on either theme without a second palette. */
.infinity-tag {
    display: inline-flex;
    max-width: 100%;
    margin: 2px 4px 2px 0;
    vertical-align: top;
}

.infinity-tag .dx-tag-content {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 0;
    border: 1px solid transparent;
    border-radius: var(--infinity-radius);
}

.infinity-tag__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.infinity-tag--tint-0 .dx-tag-content { background-color: hsla(210, 70%, 50%, 0.16); border-color: hsla(210, 70%, 50%, 0.32); }
.infinity-tag--tint-1 .dx-tag-content { background-color: hsla(160, 60%, 42%, 0.16); border-color: hsla(160, 60%, 42%, 0.32); }
.infinity-tag--tint-2 .dx-tag-content { background-color: hsla(275, 55%, 55%, 0.16); border-color: hsla(275, 55%, 55%, 0.32); }
.infinity-tag--tint-3 .dx-tag-content { background-color: hsla(30, 85%, 50%, 0.16);  border-color: hsla(30, 85%, 50%, 0.32); }
.infinity-tag--tint-4 .dx-tag-content { background-color: hsla(340, 65%, 55%, 0.16); border-color: hsla(340, 65%, 55%, 0.32); }
.infinity-tag--tint-5 .dx-tag-content { background-color: hsla(190, 65%, 45%, 0.16); border-color: hsla(190, 65%, 45%, 0.32); }
.infinity-tag--tint-6 .dx-tag-content { background-color: hsla(95, 50%, 42%, 0.16);  border-color: hsla(95, 50%, 42%, 0.32); }
.infinity-tag--tint-7 .dx-tag-content { background-color: hsla(250, 55%, 58%, 0.16); border-color: hsla(250, 55%, 58%, 0.32); }

/* A tag nobody chose - stamped by the uploader or by configuration. Quieter than a chosen
   one, because it cannot be added, removed or filtered on, but still a tag. */
.infinity-tag--system .dx-tag-content {
    background-color: transparent;
    border-style: dashed;
    opacity: 0.75;
}

/* The file manager and its details pane sit side by side. The shell exists so that the
   load panel and the popovers, which are appended to the control itself, do not become
   flex items. */
.file-manager-shell {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 8px;
}

.file-manager-shell > .dx-filemanager {
    flex: 1 1 auto;
    /* Without this a wide grid refuses to shrink and pushes the pane off the edge. */
    min-width: 0;
}

/* flex-basis is set inline as the pane is dragged; this is only the floor it cannot cross. */
.file-manager-details {
    position: relative;
    flex: 0 0 320px;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 4px;
}

/* The drag handle straddles the gap between grid and pane, so it is grabbable without
   stealing space from either. Invisible until approached. */
.file-manager-details__resize {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -5px;
    width: 9px;
    cursor: col-resize;
    /* Stops a touch drag scrolling the page instead of resizing. */
    touch-action: none;
    z-index: 2;
}

.file-manager-details__resize::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 4px;
    width: 1px;
    background-color: transparent;
    transition: background-color 120ms ease;
}

.file-manager-details__resize:hover::after,
.file-manager-details__resize--active::after {
    background-color: rgba(128, 128, 128, 0.85);
}

/* Too narrow to show both: the pane covers the grid, and Close is the way back to it. */
.file-manager-shell--narrow .file-manager-details {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    flex-basis: auto;
    min-width: 0;
    border-radius: 0;
    z-index: 5;
    /* Opacity comes from dx-theme-background-color on the element, so it follows the theme. */
}

/* Nothing to drag when the pane is already the full width. */
.file-manager-shell--narrow .file-manager-details__resize {
    display: none;
}

/* Pinned, so what the file is never scrolls out of view. */
.file-manager-details__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
}

.file-manager-details__name {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-manager-details__close {
    flex: 0 0 auto;
    cursor: pointer;
    opacity: 0.7;
}

.file-manager-details__close:hover {
    opacity: 1;
}

.file-manager-details__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px;
}

.file-manager-details__section + .file-manager-details__section {
    margin-top: 18px;
}

.file-manager-details__heading {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.6;
}

.file-manager-details__chips {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.file-manager-details__empty {
    margin: 0;
    font-size: 12px;
    opacity: 0.6;
}

.file-manager-details__row {
    display: flex;
    gap: 8px;
    padding: 3px 0;
    font-size: 12px;
}

.file-manager-details__caption {
    flex: 0 0 72px;
    opacity: 0.6;
}

.file-manager-details__value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The Tags column lets its chips flow and wrap, so a file with two tag keys is one row. */
.file-manager-tags-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    white-space: normal;
}

/* C.25: the Key | Label list picked keys land in. One tight grid, so rows sit close together
   whatever the length of the key. */
.infinity-upload-dialog .file-uploader-tag-list {
    margin: 6px 0 0;
    border-radius: var(--infinity-radius);
    overflow: hidden;
}

/* The Tag Keys box and the row label boxes round like the drop zone below them. */
.infinity-upload-dialog .infinity-upload > .dx-form .dx-texteditor,
.infinity-upload-dialog .file-uploader-tag-list__label .dx-texteditor {
    border-radius: var(--infinity-radius);
}

.infinity-upload-dialog .file-uploader-tag-list__head,
.infinity-upload-dialog .file-uploader-tag-list__row {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) 28px;
    gap: 8px;
    align-items: center;
    padding: 0 8px 0 10px;
}

.infinity-upload-dialog .file-uploader-tag-list__head {
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.65;
    background: rgba(127, 127, 127, 0.08);
}

/* About three rows before it scrolls, and two once there are files, so the file list keeps its room. */
.infinity-upload-dialog .file-uploader-tag-list__body {
    max-height: 110px;
    overflow-y: auto;
}

.infinity-upload-dialog .infinity-upload--has-files .file-uploader-tag-list__body {
    max-height: 74px;
}

.infinity-upload-dialog .file-uploader-tag-list__row {
    min-height: 34px;
    border-top: 1px solid rgba(127, 127, 127, 0.18);
}

.infinity-upload-dialog .file-uploader-tag-list__key .file-uploader-tag {
    margin: 0;
}

/* Tag keys run long, so here the chip wraps rather than cutting the key off. */
.infinity-upload-dialog .file-uploader-tag-list__key .infinity-tag__text {
    white-space: normal;
    overflow-wrap: anywhere;
}

.infinity-upload-dialog .file-uploader-tag-list__row {
    padding-top: 2px;
    padding-bottom: 2px;
}

/* Compact label editors, so a row is one line of text rather than a full form field. */
.infinity-upload-dialog .file-uploader-tag-list__label .dx-texteditor-input {
    min-height: 26px;
    padding-top: 3px;
    padding-bottom: 3px;
}

/* DevExtreme pads the placeholder on its own (7px/8px), so it sat 4px below the text and chip. */
.infinity-upload-dialog .file-uploader-tag-list__label .dx-placeholder::before {
    padding-top: 3px;
    padding-bottom: 3px;
}

.infinity-upload-dialog .file-uploader-tag-list__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
}

.infinity-upload-dialog .file-uploader-tag-list__remove:hover {
    opacity: 1;
    background: rgba(127, 127, 127, 0.15);
}

.infinity-upload-dialog .file-uploader-tag-list__remove .dx-icon {
    margin-right: 0;
}

.infinity-upload-dialog .file-uploader-tag-list__empty {
    padding: 8px 10px;
    font-size: 12px;
    opacity: 0.6;
}

.infinity-upload-dialog .file-uploader-tag-list--empty .file-uploader-tag-list__head,
.infinity-upload-dialog .file-uploader-tag-list:not(.file-uploader-tag-list--empty) .file-uploader-tag-list__empty {
    display: none;
}

/* A required label: a Required badge on the column, an amber box while empty, and a line saying what is left. */
.infinity-upload-dialog .file-uploader-tag-list__required {
    display: none;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: var(--infinity-radius);
    background: var(--infinity-warning-soft);
    color: var(--infinity-warning);
    font-size: 11px;
    font-weight: 600;
}

.infinity-upload-dialog .file-uploader-tag-list--label-required .file-uploader-tag-list__required {
    display: inline-block;
}

.infinity-upload-dialog .file-uploader-tag-list__row--needs-label .dx-texteditor.dx-editor-outlined:not(.dx-state-focused) {
    border-color: var(--infinity-warning-edge);
    background-color: var(--infinity-warning-tint);
}

.infinity-upload-dialog .file-uploader-tag-list__hint {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-top: 1px solid rgba(127, 127, 127, 0.18);
    color: var(--infinity-warning);
    font-size: 12px;
}

.infinity-upload-dialog .file-uploader-tag-list__hint .dx-icon {
    margin-right: 0;
    color: inherit;
}

/* The help: one card per step, each with its own hue, a number, and a small drawing. */
.file-uploader-help {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-uploader-help__card {
    --help-hue: 210;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--infinity-radius);
    background: hsla(var(--help-hue), 70%, 50%, 0.07);
}

.file-uploader-help__card--2 { --help-hue: 170; }
.file-uploader-help__card--3 { --help-hue: 140; }
.file-uploader-help__card--4 { --help-hue: 275; }

.file-uploader-help__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: hsl(var(--help-hue), 60%, 45%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.file-uploader-help__title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.file-uploader-help__title .dx-icon {
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 14px;
    color: hsl(var(--help-hue), 60%, 50%);
}

.file-uploader-help__text {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.8;
}

.file-uploader-help__picture {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
    width: 88px;
    height: 52px;
    padding: 6px;
    border: 1px solid rgba(127, 127, 127, 0.25);
    border-radius: 6px;
    background: rgba(127, 127, 127, 0.07);
}

.file-uploader-help__mini-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.file-uploader-help__mini-chip {
    padding: 1px 5px;
    border-radius: 8px;
    background: hsla(275, 55%, 55%, 0.22);
    font-size: 9px;
    line-height: 12px;
}

.file-uploader-help__mini-row + .file-uploader-help__mini-row .file-uploader-help__mini-chip {
    background: hsla(190, 65%, 45%, 0.22);
}

.file-uploader-help__mini-field {
    flex: 1 1 auto;
    height: 12px;
    border: 1px solid rgba(127, 127, 127, 0.4);
    border-radius: 3px;
}

.file-uploader-help__mini-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    border: 1px dashed rgba(127, 127, 127, 0.6);
    border-radius: 4px;
}

.file-uploader-help__mini-drop .dx-icon {
    width: 11px;
    height: 11px;
    font-size: 11px;
    line-height: 11px;
}

.file-uploader-help__mini-line {
    height: 6px;
    border-radius: 3px;
    background: rgba(127, 127, 127, 0.3);
}

.file-uploader-help__mini-line--short {
    width: 60%;
}

.file-uploader-help__picture--button {
    align-items: center;
}

.file-uploader-help__mini-button {
    padding: 4px 8px;
    border-radius: 4px;
    background: hsl(var(--help-hue), 55%, 40%);
    color: #fff;
    font-size: 10px;
    white-space: nowrap;
}

/*#endregion*/

/* ---------------------------------------------------------------------------
   Upload dialog (C.11)

   The dialog used to grow to its content and let .dx-popup-content scroll, which moved the
   whole thing - tag entry and file buttons included - out from under the user. Here it is a
   column dividing a fixed height, and the file list is the only scrolling region.

   Every rule is scoped to .infinity-upload-dialog: the uploader control is used outside this
   popup too, and site.css is a large enough cascade that an unscoped class would be a coin
   toss. Where a rule has to beat another in this file, it is written one class deeper rather
   than relying on which comes first.
   --------------------------------------------------------------------------- */

/* Otherwise DevExtreme makes this the scroller and the dialog scrolls as a whole. */
.infinity-upload-dialog .dx-popup-content {
    min-height: 0;
    overflow: hidden;
}

.infinity-upload-dialog .infinity-upload {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* The tag form and the tag list keep their own height... */
.infinity-upload-dialog .infinity-upload > * {
    flex: 0 0 auto;
}

/* ...and the files take what is left. One class deeper, so it wins wherever it is placed. */
.infinity-upload-dialog .infinity-upload > .infinity-upload__files {
    flex: 1 1 auto;
    min-height: 0;
}

/* Every level between the dialog and the list has to pass the height along. DevExtreme lays
   two of them out as a table, which does not - hence the display override. */
.infinity-upload-dialog .infinity-upload__files > .file_uploader,
.infinity-upload-dialog .dx-fileuploader,
.infinity-upload-dialog .dx-fileuploader-wrapper,
.infinity-upload-dialog .dx-fileuploader-container,
.infinity-upload-dialog .dx-fileuploader-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

/* The drop zone and the upload buttons stay put... */
.infinity-upload-dialog .dx-fileuploader-content > * {
    flex: 0 0 auto;
}

/* ...and the list alone scrolls. */
.infinity-upload-dialog .dx-fileuploader-content > .dx-fileuploader-files-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* An empty file list still takes the slack, which held the dialog open with a 220px gap under
   the drop zone. While there is nothing queued the drop zone takes it instead, so the space is
   somewhere to drop files rather than a void. DevExtreme maintains both classes itself. */
.infinity-upload-dialog .dx-fileuploader-empty .dx-fileuploader-input-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
}

/* Written four classes deep so it beats the rule that makes the list grow, wherever that
   rule ends up sitting in this file. */
.infinity-upload-dialog .dx-fileuploader-empty .dx-fileuploader-content > .dx-fileuploader-files-container {
    flex: 0 0 auto;
}

/* The document count beside a folder in the directory tree (C.8).

   A pill rather than plain text: the number sits directly after a folder name, and without an
   edge of its own it reads as part of the name. Neutral grey with alpha so the one rule works
   on both themes - it tints whatever it is sitting on rather than fighting it. */
.file-manager-folder-count {
    flex: 0 0 auto;
    min-width: 22px;
    margin-left: 8px;
    padding: 0 7px;
    border: 1px solid rgba(127, 127, 127, 0.5);
    border-radius: 10px;
    background: rgba(127, 127, 127, 0.22);
    color: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 19px;
    text-align: center;
}

/* On the selected folder the text colour changes, so the edge follows it rather than staying
   a grey that no longer matches. */
.dx-treeview-item.dx-filemanager-focused-item .file-manager-folder-count {
    border-color: currentColor;
}

/* ---------------------------------------------------------------------------
   Upload dialog chrome (C.12 step 1)

   Scoped to the dialog, like the C.11 layout block above it, because the uploader control is
   used outside this popup too.
   --------------------------------------------------------------------------- */

.infinity-upload-dialog .infinity-upload__destination {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(127, 127, 127, 0.25);
    border-radius: var(--infinity-radius);
    background: rgba(127, 127, 127, 0.1);
    font-size: 14px;
}

.infinity-upload-dialog .infinity-upload__destination-label {
    opacity: 0.75;
}

.infinity-upload-dialog .infinity-upload__destination-path {
    font-weight: 600;
}

/* A step heading: the number in its own circle, the title beside it, the hint under both. */
.infinity-upload-dialog .infinity-upload__step {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 2px 10px;
    padding: 12px 0 6px;
}

.infinity-upload-dialog .infinity-upload__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--infinity-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.infinity-upload-dialog .infinity-upload__step-title {
    font-size: 14px;
    font-weight: 600;
}

/* The hint sits under the title, in the title's column rather than under the number. */
.infinity-upload-dialog .infinity-upload__step-hint {
    grid-column: 2;
    font-size: 12px;
    opacity: 0.75;
}

/* A step that has been satisfied says so, and stops competing for attention. */
.infinity-upload-dialog .infinity-upload__step--done .infinity-upload__step-number {
    background: var(--infinity-success);
    font-size: 0;
}

.infinity-upload-dialog .infinity-upload__step--done .infinity-upload__step-number::after {
    content: '\2713';
    font-size: 13px;
    line-height: 1;
}

.infinity-upload-dialog .infinity-upload__waiting {
    font-size: 12px;
    opacity: 0.8;
}

.infinity-upload-dialog .infinity-upload__waiting--failed {
    color: var(--infinity-danger);
    font-weight: 600;
    opacity: 1;
}

/* ---------------------------------------------------------------------------
   Upload dialog: our own file area (C.12 steps 3-5)

   These sit inside the control element, which the C.11 chain already makes a flex column
   taking the room left over. DevExtreme draws nothing here any more, but it still owns the
   file dialog, the drag and drop and the chunked upload.
   --------------------------------------------------------------------------- */

.infinity-upload-dialog .infinity-upload__dropzone {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border: 1.5px dashed rgba(127, 127, 127, 0.55);
    border-radius: var(--infinity-radius);
    background: rgba(127, 127, 127, 0.08);
}

/* Locked is a state, not just a disabled button: the words change with it, so it says why. */
.infinity-upload-dialog .infinity-upload__dropzone--locked {
    opacity: 0.6;
}

.infinity-upload-dialog .infinity-upload__dropzone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(127, 127, 127, 0.18);
}

.infinity-upload-dialog .infinity-upload__dropzone-text {
    display: flex;
    flex: 1 1 auto;
    align-items: baseline;
    gap: 6px;
    font-size: 14px;
}

.infinity-upload-dialog .infinity-upload__dropzone-text span {
    opacity: 0.75;
}

.infinity-upload-dialog .infinity-upload__choose {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border: 1px solid rgba(127, 127, 127, 0.45);
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.infinity-upload-dialog .infinity-upload__choose:disabled {
    opacity: 0.5;
    cursor: default;
}

/* The one scrolling region, as C.11 established. */
.infinity-upload-dialog .infinity-upload__rows {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    overflow-y: auto;
    margin-top: 10px;
    padding: 0 14px;
}

/* A file row and a committed tag are the same kind of thing: what you added, then the way to
   undo it. Fixed height, so twenty queued files cost the same chrome as one. */
/* One line: icon, name, size, status, remove. Two lines per file is how a list of five becomes
   a list of one you can see. */
.infinity-upload-dialog .infinity-upload__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    /* The remove button is the tallest thing in a row, and an uploaded row does not have one.
       Without this, a file that landed sits 7px shorter than the ones still waiting. */
    min-height: 39px;
    border: 1px solid rgba(127, 127, 127, 0.3);
    border-radius: 6px;
}

/* A failed file stands out: red edge, red tint, warning icon and a solid Failed badge. */
.infinity-upload-dialog .infinity-upload__row--error {
    border-color: var(--infinity-danger);
    background: var(--infinity-danger-tint);
}

.infinity-upload-dialog .infinity-upload__row--error .infinity-upload__row-icon {
    color: var(--infinity-danger);
    opacity: 1;
}

.infinity-upload-dialog .infinity-upload__row-icon {
    flex: 0 0 auto;
    opacity: 0.8;
}

.infinity-upload-dialog .infinity-upload__row-details {
    display: flex;
    flex: 1 1 auto;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.infinity-upload-dialog .infinity-upload__row-name {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Why a file failed: a full-width line under the name and size. */
.infinity-upload-dialog .infinity-upload__row--error .infinity-upload__row-details {
    flex-wrap: wrap;
    row-gap: 2px;
}

.infinity-upload-dialog .infinity-upload__row-reason {
    flex: 1 0 100%;
    color: var(--infinity-danger);
    font-size: 12px;
    font-weight: 600;
}

/* The size keeps its width whatever the name does, so names truncate rather than sizes. */
.infinity-upload-dialog .infinity-upload__row-meta {
    flex: 0 0 auto;
    font-size: 12px;
    opacity: 0.8;
}

.infinity-upload-dialog .infinity-upload__row-progress {
    position: absolute;
    right: 1px;
    bottom: 1px;
    left: 1px;
    display: block;
    height: 3px;
    border-radius: 0 0 5px 5px;
    background: rgba(127, 127, 127, 0.25);
}

.infinity-upload-dialog .infinity-upload__row-progress-bar {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: var(--infinity-accent);
}

.infinity-upload-dialog .infinity-upload__row-status {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 9px;
    background: rgba(127, 127, 127, 0.18);
    font-size: 12px;
}

.infinity-upload-dialog .infinity-upload__row--uploaded .infinity-upload__row-status {
    background: rgba(46, 139, 87, 0.22);
}

.infinity-upload-dialog .infinity-upload__row--error .infinity-upload__row-status {
    background: var(--infinity-danger);
    color: #fff;
    font-weight: 600;
}

.infinity-upload-dialog .infinity-upload__row-remove {
    flex: 0 0 auto;
    padding: 4px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
}

.infinity-upload-dialog .infinity-upload__row-remove:hover {
    background: rgba(127, 127, 127, 0.2);
    opacity: 1;
}

/* ---------------------------------------------------------------------------
   Upload dialog: alignment and the empty file box (C.12 review)
   --------------------------------------------------------------------------- */

/* One left edge for everything in the dialog. dxForm indents its own items, so the chips and
   the Add another button were each starting somewhere different from the editors above them. */
.infinity-upload-dialog .infinity-upload > .dx-form {
    padding: 0;
}

/* One item, the Tag Keys box, on the same edges as the tag list under it. */
.infinity-upload-dialog .infinity-upload > .dx-form .dx-field-item {
    padding-left: 0;
    padding-right: 0;
}

.infinity-upload-dialog .infinity-upload > .dx-form .dx-form-group-content {
    padding-left: 0;
    padding-right: 0;
}

/* Key chips sit on the same edge as the Tag Keys box above them. */
.infinity-upload-dialog .file-uploader-tag {
    margin-left: 0;
}

/* The box files land in, drawn whether or not any have. */
.infinity-upload-dialog .infinity-upload__rows {
    border: 1px solid rgba(127, 127, 127, 0.3);
    border-radius: var(--infinity-radius);
    margin: 10px 0 0;
    padding: 8px;
}

.infinity-upload-dialog .infinity-upload__rows--empty {
    align-items: center;
    justify-content: center;
    border-style: dashed;
}

.infinity-upload-dialog .infinity-upload__rows-empty-note {
    font-size: 12px;
    opacity: 0.6;
}

/* One type scale for this dialog, settled after measuring rather than chosen a block at a time.
   DevExtreme draws everything it owns here at 14px, so 14 is the body size and every smaller
   number was this stylesheet disagreeing with the widgets beside it.

     14 / 600   titles: the step headings and the drop zone headline
     14 / 400   body: destination, buttons, file names - and what DevExtreme already uses
     12 / 400   supporting: hints, file meta, the empty note, the footer count */
.infinity-upload-dialog .infinity-upload__dropzone-text strong {
    font-weight: 600;
}

/* A key chip in the tag list is as wide as its own text, never its whole column. */
.infinity-upload-dialog .file-uploader-tag {
    max-width: 100%;
}

/* ---------------------------------------------------------------------------
   Once there are files, the chrome steps back (C.12 review)

   The same trade C.11 made: a hint explaining a step you are already doing, and a drop zone
   the size of an invitation, are both height the file list needs more than they do.
   --------------------------------------------------------------------------- */

.infinity-upload-dialog .infinity-upload--has-files .infinity-upload__step-hint,
.infinity-upload-dialog .infinity-upload__step--done .infinity-upload__step-hint {
    display: none;
}

.infinity-upload-dialog .infinity-upload--has-files .infinity-upload__dropzone {
    padding: 7px 14px;
}

.infinity-upload-dialog .infinity-upload--has-files .infinity-upload__dropzone-icon {
    width: 26px;
    height: 26px;
}

/* "or choose them from your computer" is an instruction for someone who has not worked out how
   to add a file. Once a file is added, they have. */
.infinity-upload-dialog .infinity-upload--has-files .infinity-upload__dropzone-text span {
    display: none;
}

/* DevExtreme draws its icons at 18px, which is a size above the text beside them rather than a
   step above it - next to 14px body copy they read as the loudest thing in the dialog. 16 keeps
   the usual relationship: an icon slightly larger than its label, not competing with it.

   The box has to come down with the glyph; dx-icon fixes width, height and line-height too, so
   changing font-size alone would leave a 16px icon in an 18px hole. */
.infinity-upload-dialog .dx-icon {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
}

/* Only where we space the icon ourselves with a flex gap - a DevExtreme button uses this margin
   to hold its icon off its text, and removing it everywhere ran the two together. */
.infinity-upload-dialog .infinity-upload__dropzone-icon .dx-icon,
.infinity-upload-dialog .infinity-upload__choose .dx-icon,
.infinity-upload-dialog .infinity-upload__row-icon .dx-icon,
.infinity-upload-dialog .infinity-upload__row-remove .dx-icon {
    margin-right: 0;
}

/* Help and close are one pair of controls, not two unrelated ones, so they sit together.
   The space between them was the right-hand padding of the first item, not the left-hand padding
   of the second - measured, after trimming the wrong edge and reading no change as no match. */
.infinity-upload-dialog .dx-popup-title .dx-toolbar-after .dx-toolbar-item {
    padding-left: 2px;
    padding-right: 2px;
}
