html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}

.header-logo {
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url('../images/Logo.svg');
    mask: url('../images/Logo.svg');
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 28px;
    height: 24px;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

.pres-ccy 
{
    width: 90px !important;
}

.pres-ccy .dxbl-textbox
{
    width: 90px !important;
}

/* Project Cost report trees: grow with their rows (footer sits right after the last row) */
.pcr-tree {
    height: auto !important;
    max-height: none !important;
}

/* SalesOrder Lines grid: grow with its rows instead of an internal scrollbar */
.sol-lines-grid {
    height: auto !important;
    max-height: none !important;
}

.sol-lines-grid .dxbl-grid-scroll-container,
.sol-lines-grid .dxbl-scroll-viewer,
.sol-lines-grid .dxbl-grid-table-container {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Top header band: collapse to a thin strip, expand on hover to reclaim page space */
.header {
    max-height: 1px !important;
    min-height: 0 !important;
    height: 10px !important;
    overflow: hidden !important;
    transition: max-height 0.25s ease, height 0.25s ease;
}

.header:hover {
    max-height: 140px !important;
    height: auto !important;
}

/* Left navigation: collapse to a thin strip, expand on hover to reclaim page width */
.xaf-sidebar {
    width: 14px !important;
    min-width: 14px !important;
    overflow: hidden !important;
    transition: width 0.2s ease, min-width 0.2s ease;
}

.xaf-sidebar:hover {
    width: 250px !important;
    min-width: 250px !important;
    overflow: visible !important;
}

/* Genesis branded background (texture + watermark + light strip) */
html, body {
    background: #141414 url("../images/background.jpg") center center / cover no-repeat fixed !important;
}

/* let the texture show through the main content/tab panel and its view host */
.dxbl-tabs-content-panel,
.dxbl-tabs-content-panel > div {
    background-color: transparent !important;
}

/* tree list views: don't enforce a content min-width, so the splitter can shrink the pane */
.dxbl-grid-table[role="treegrid"] {
    min-width: 0 !important;
    width: 100% !important;
}

/* batch-edit modified cells: DevExpress paints a light-blue highlight but keeps light (white) text
   in the dark theme, so the value disappears. Scoped to batch-edit grids, force dark text on any
   "modified" cell (and its inner text/input) so it stays readable on the light highlight. */
.xaf-grid-batchedit-mode [class*="modified"],
.xaf-grid-batchedit-mode [class*="modified"] * {
    color: #101010 !important;
}

/* Lines grid: keep the selection (checkbox) column narrow under proportional widths */
.sol-lines-grid .dxbl-grid-selection-cell,
.sol-lines-grid .dxbl-grid-selection-column,
.sol-lines-grid [class*="selection"] {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
}

/* collapse the empty filler cell so real columns fill the width (grids and trees) */
.dxbl-grid-table .dxbl-grid-empty-cell {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}