﻿.dxbl-accordion-item-indent {
    padding-left: 1em;
}

.bg-low-priority {
    background-color: #65A637 !important;
}

.user-name-container, .user-name,
.theme-settings.show-dropdown .settings-bar {
    color: var(--dx-color-text) !important;
    height: auto;
    padding-bottom: 5px;
}

.dxbl-accordion-group-header::before {
    background-color: #252626 !important;
}

/* Remove Fluent theme gap between header and sidebar */
.dxbl-theme-fluent .app .sidebar {
    margin-top: 0 !important;
    border-top: none !important;
    border-top-right-radius: 0 !important;
}

/* Application header: company colour and a slimmer bar. */
.dxbl-theme-fluent .app .header {
    border-bottom: none !important;
    background: #8FBD3D;
    min-height: 2.6rem;
}

/* The header toolbar (notifications, Tasks) and the Settings button carry the theme's
   own surface colour, which boxes them against the header. The account avatar is left
   alone so it keeps its circle. */
.app .header .dxbl-toolbar,
.app .header .dxbl-toolbar-item,
.app .header .dxbl-btn:not(.account-button) {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* White only on the bar's own content, never on the whole subtree: the settings and
   account dropdowns render inside the header and would inherit it. */
.app .header .view-caption-root,
.app .header .btn-hamburger,
.app .header .theme-button,
.app .header .dxbl-toolbar,
.app .header .dxbl-toolbar .dxbl-btn {
    color: #fff !important;
}

.app .header .header-logo {
    background-image: url('../images/Logo-White.svg');
}

.app .header .dxbl-btn:not(.account-button):hover {
    background-color: rgba(0, 0, 0, .08) !important;
}

/* Override when active */
.dxbl-active .dxbl-accordion-item-text-container {
    background-color: revert !important;
    color: var(--dx-color-primary) !important;
}

.dxbl-accordion-item-text-container:hover {
    background: inherit !important;
}

.dxbl-accordion-group-header, .dxbl-accordion-item {
    border: none !important;
}

.dxbl-accordion-filter {
    border: none !important;
}

.dxbl-accordion .dxbl-accordion-filter .dxbl-navigation-filter.dxbl-text-edit {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
    --dxbl-text-edit-bg: rgba(255, 255, 255, 0.05);
    --dxbl-text-edit-border-color: rgba(255, 255, 255, 0.15);
    --dxbl-text-edit-border-hovered-color: rgba(255, 255, 255, 0.25);
    --dxbl-text-edit-underline-color: transparent;
    --dxbl-text-edit-underline-focused-color: var(--dx-color-primary);
    --dxbl-text-edit-underline-hovered-color: transparent;
}

.dxbl-accordion .dxbl-accordion-filter .dxbl-navigation-filter.dxbl-text-edit {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
    --dxbl-text-edit-underline-color: var(--dxbl-text-edit-border-color) !important;
    --dxbl-text-edit-underline-hovered-color: var(--dxbl-text-edit-border-hovered-color) !important;
}

.dxbl-accordion {
    --dxbl-accordion-group-header-border-radius: 0px !important;
}

.sidebar .nav-pills .nav-link:hover, .sidebar .nav-pills .nav-link::selection, .nav-pills .nav-item:not(.show) > .nav-link:not(.active):focus {
    background-color: var(--dx-color-primary) !important;
}

.dxbs-grid-group-row {
    font-weight: bold;
    font-size: 0.90em;
    opacity: 0.5;
}

div.sidebar div.xaf-flex-auto {
    padding-bottom: 10px;
}

.xaf-nav-link {
    text-decoration: none !important;
}

.dxbl-navigation-filter .dxbl-text-edit-input {
    color: rgb(200,200,200) !important;
}

#logon-template-component > div.logon-template-header.card.card-header {
    background-color: #252626 !important;
    color: white !important;
}

    #logon-template-component > div.logon-template-header.card.card-header > div {
        margin-left: 30px;
    }
/*End Forced Grey*/


.bg-low-priority {
    background-color: #65A637 !important;
}


.dxbl-toolbar-item-tmpl .dxbl-text-edit .dxbl-text-edit-template .xaf-combobox-item {
    width: 95px !important;
    height: 100% !important;
}

.xaf-combobox-item .dxbl-text-edit-input {
    width: 95px !important;
    height: 100% !important;
}

.xaf-tab-header-button .d-flex {
    max-width: 180px !important;
    overflow: hidden;
}

.dxbl-accordion-item .dxbl-active {
    background-color: rgba(128, 128, 128, 0.18) !important;
}

button[data-action-name="Select Pin"] {
    background-color: var(--dx-grid-header-color);
    border: none;
}

    button[data-action-name="Select Pin"] svg {
        fill: white !important;
    }

    button[data-action-name="Select Pin"]:hover svg, button[data-action-name="Select Pin"]:active svg {
        fill: black !important;
    }

/* Push Clear Filter to the right edge of the list view toolbar. */
div.dxbl-toolbar-group:has(button[data-action-name="Clear Filter"]) {
    order: 999;
}

/* In split (ListViewAndDetailView) layouts the far-right position reads as
   belonging to the detail pane, so leave the button in place. */
:has(.xaf-masterdetail-detailview-holder) div.dxbl-toolbar-group:has(button[data-action-name="Clear Filter"]) {
    order: initial;
}

.issue-grid-no-wrap {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.issue-grid-limit-lines {
    overflow: hidden;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.badge {
    padding: 3px 5px 3px 5px !important;
    border-radius: 0.33em;
    font-weight: 700;
    font-size: 0.8em;
    min-width: 50px !important;
    display: inline-block;
    text-align: center;
}

.badge-mcp {
    display: inline-block;
    padding: 2px 3px 2px 3px;
    border-radius: 3px;
    font-size: 0.55em;
    font-weight: 700;
    background-color: #6f42c1;
    color: white;
    vertical-align: super;
    margin-left: 2px;
    line-height: 1;
    letter-spacing: 0.5px;
    box-shadow: 0 0 6px 2px rgba(111, 66, 193, 0.3);
}

.action-render-primary {
    background-color: var(--dx-color-primary) !important;
    border-radius: 4px !important;
    padding: 6px !important;
}

    .action-render-primary .dxbl-image {
        filter: invert(100%) sepia(17%) saturate(7493%) hue-rotate(268deg) brightness(129%) contrast(114%);
    }

.xaf-action-fulltextsearch {
    width: 160px !important;
}

/*Issue Notes Layout*/
.IssueNote-SystemNote {
    padding-top: 1px;
    padding-bottom: 1px;
    font-size: xx-small;
    font-weight: bold;
    padding-left: 20px;
}

.IssueNote-UserNote {
}

.IssueNote-Header {
    border-bottom: solid 1px var(--dx-color-primary);
    width: 100%;
}

.IssueNote-CreationInfo {
    padding-left: 10px;
    padding-bottom: 4px;
}

.IssueNote-CreatedBy {
    font-weight: bold;
}

.IssueNote-CreatedOn {
    font-size: x-small;
}

.IssueNote-NoteText {
    padding: 10px 5px 3px 5px;
    margin-bottom: 3px;
    white-space: pre-line;
}

.IssueNote-AttachmentContainer {
    padding-top: 5px;
    padding-left: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.IssueNote-Profile-Pic {
    border-radius: 12px;
}


/* End Issue Note Layout */

.feed-grid {
    border: none !important;
}


.dxbl-grid-indent-cell, .dxbl-grid-expand-button-cell {
    border-left: 0px !important;
    border-top: 0px !important;
}


/* Issue Grid Line Customization */

.issue-grid-nolines,
.issue-grid-nolines dxbl-virtual-scroll-viewer table td,
.issue-grid-nolines dxbl-virtual-scroll-viewer table th {
    border: none !important;
}

/* End Issue Grid Line Customization */


/* Icon Property Editor Customization */

.icoedit {
    vertical-align: middle;
}

    .icoedit img {
        vertical-align: middle;
        margin-right: 3px;
        height: 16px;
        width: 16px;
    }

/* End Icon Property Editor Customization */

.account-button {
    min-width: 36px !important;
    min-height: 36px !important;
    width: auto !important;
    color: var(--dx-color-text) !important;
    opacity: 1 !important;
}

.account-button .dxbl-image,
.account-button svg {
    color: var(--dx-color-text) !important;
    fill: currentColor !important;
}

.dxbl-text-edit:not(:focus-within) {
    --dxbl-text-edit-underline-color: var(--dxbl-text-edit-border-color) !important;
    --dxbl-text-edit-underline-hovered-color: var(--dxbl-text-edit-border-hovered-color) !important;
}

/* Hide XAF's view caption only where the Llamachant RecordHeader replaces it.
   Detail views carry .xaf-object-caption; list views carry only .xaf-view-caption-lg.
   Two scopes: the app header bar, and modals that actually contain a record header -
   non-persistent popups (e.g. Invoice Quote) have none, so they keep their title. */
.header-right-side .view-caption-root:has(.xaf-object-caption),
.dxbl-modal-content:has(.record-header) .view-caption-root:has(.xaf-object-caption) {
    display: none !important;
}

