html, body {
    height: 100%;
}

/* Column headers must never wrap to multiple lines: keep the caption on one line and truncate with an
   ellipsis when the column is narrower than its caption (the header structure is a flex
   dxbl-grid-header-content with the caption span next to the filter button, hence min-width: 0). */
.dxbl-grid .dxbl-grid-header-content > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}


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;
}

/* Toolbar action reordering (see wwwroot/js/sam-toolbar-reorder.js).
   Feedback only while a drag is in progress - toolbar buttons must still look/behave like buttons
   when they are simply being clicked. */

.sam-tb-dragging {
    opacity: 0.45;
}

body.sam-tb-drag-active,
body.sam-tb-drag-active * {
    cursor: grabbing !important;
    user-select: none !important;
}

/* Floating label that follows the pointer while an action is dragged OUT of the "..." overflow
   menu (position is set inline by the script). */
.sam-tb-menu-ghost {
    position: fixed;
    z-index: 30000;
    pointer-events: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    background-color: var(--dxbl-panel-bg, #fff);
    border: 1px solid var(--dxbl-border-color, #ced4da);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    opacity: 0.9;
}

/* Insertion indicator on the visible toolbar button a menu-drag would drop next to. */
.sam-tb-insert-before {
    box-shadow: -3px 0 0 0 #0d6efd !important;
}

.sam-tb-insert-after {
    box-shadow: 3px 0 0 0 #0d6efd !important;
}

/* MultiView splitters (see wwwroot/js/sam-multiview-splitter.js).
   Position/size (top/left/width/height) are set inline by the script; these rules give the overlay handles a
   persistent, obviously-draggable look: a faint track, a divider line, and centre grip dots. Hover/active
   highlights in the theme accent. */

/* Vertical splitter (list | detail) */
.sam-splitter-handle {
    background-color: rgba(120, 120, 120, 0.12);
    color: #6c757d;
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* Full-height divider line so the boundary stays visible at any scroll position. */
.sam-splitter-handle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    transform: translateX(-50%);
    background-color: var(--dxbl-border-color, #ced4da);
}

/* Centre grip: three vertically-stacked dots - the "you can drag this" affordance. */
.sam-splitter-handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background-color: currentColor;
    box-shadow: 0 -6px currentColor, 0 6px currentColor;
}

.sam-splitter-handle:hover,
body.sam-splitter-dragging .sam-splitter-handle {
    background-color: rgba(13, 110, 253, 0.30);
    color: #0d6efd;
}

body.sam-splitter-dragging {
    cursor: col-resize !important;
    user-select: none !important;
}

/* Horizontal splitter (top list|detail block / bottom nested-lists block) */
.sam-splitter-handle-h {
    background-color: rgba(120, 120, 120, 0.12);
    color: #6c757d;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sam-splitter-handle-h::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    transform: translateY(-50%);
    background-color: var(--dxbl-border-color, #ced4da);
}

/* Centre grip: three horizontally-arranged dots. */
.sam-splitter-handle-h::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background-color: currentColor;
    box-shadow: -6px 0 currentColor, 6px 0 currentColor;
}

.sam-splitter-handle-h:hover,
body.sam-splitter-dragging-h .sam-splitter-handle-h {
    background-color: rgba(13, 110, 253, 0.30);
    color: #0d6efd;
}

body.sam-splitter-dragging-h {
    cursor: row-resize !important;
    user-select: none !important;
}

/* Tabbed MDI (the application-level tab strip): size the content panel by flex, not by XAF's formula.
   XAF's styles.css sets .xaf-tabbed-mdi .dxbl-tabs-content-panel.dxbl-loaded to
   `calc(100% - tab padding*2 - title text height - 0.625rem)` - an ESTIMATE of the tab strip's height.
   Any theme that changes the strip's real height (sam-design-tokens.css pads it 6px on top) makes the
   estimate wrong, the panel overshoots the page scroller by that amount, and every view gets a
   page-level scrollbar with a few px of travel on top of its own. Flex sizing follows the strip's
   actual height, whatever a theme does to it. !important: XAF's rule is more specific. */
.xaf-tabbed-mdi {
    display: flex !important;
    flex-direction: column !important;
}

.xaf-tabbed-mdi > .dxbl-tabs-tablist {
    flex: none !important;
}

.xaf-tabbed-mdi > .dxbl-tabs-content-panel {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

/* MultiView master list: make the nested grid fill the (height-bounded) list column so the grid
   scrolls its rows internally with the header + pager/page-size selector pinned, instead of the whole
   top block scrolling. The list column is tagged with .sam-mv-listcol by sam-multiview-splitter.js. */
/* !important throughout - these override DevExpress's own flex/display rules on the wrappers. */
.sam-mv-listcol {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0;
    overflow: hidden;
}

.sam-mv-listcol > .dxbl-fl-ctrl,
.sam-mv-listcol .nested-frame,
.sam-mv-listcol .nested-content {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.sam-mv-listcol .grid-content {
    flex: 1 1 0 !important;
    min-height: 0 !important;
}

/* This inline wrapper would otherwise break the height chain between grid-content and the grid. */
.sam-mv-listcol .xaf-contextmenu-click-helper {
    display: contents !important;
}

.sam-mv-listcol .dxbl-grid {
    height: 100% !important;
    min-height: 0 !important;
}

/* MultiView bottom block (the nested-lists tab panel): the tab strip and each tab's toolbar stay
   pinned while the list scrolls internally (grid header + pager stay visible). The block is tagged
   with .sam-mv-bottomblock by sam-multiview-splitter.js, which also sets its overflow to hidden.
   Same technique as .sam-mv-listcol above, with the tab layers added to the flex chain. */
.sam-mv-bottomblock {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0;
}

.sam-mv-bottomblock > .dxbl-tabs {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.sam-mv-bottomblock > .dxbl-tabs > .dxbl-tabs-tablist {
    flex: none;
}

.sam-mv-bottomblock > .dxbl-tabs > .dxbl-tabs-content-panel {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: hidden;
}

.sam-mv-bottomblock .dxbl-tabs-content-panel > .dxbl-tabs-content {
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
}

.sam-mv-bottomblock .dxbl-tabs-content > .dxbl-fl-tab-content {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.sam-mv-bottomblock .dxbl-fl-tab-content > .dxbl-row {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: hidden;
}

.sam-mv-bottomblock .dxbl-fl-tab-content > .dxbl-row > .dxbl-fl-item {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
}

/* Nested TabbedGroup inside a bottom-block tab (e.g. History -> Accomplishments | Allocations | Extended
   History on the Aircraft/Component/Task Definition/Work Order/Quote MultiViews). DevExpress renders the
   inner TabbedGroup as a .dxbl-fl-gt column holding a second .dxbl-tabs; the chain above only covers
   .dxbl-fl-item columns, so without these rules the inner tabs shrink to their tab strip and the grid
   inside collapses to ~0px. Continue the flex chain through the group column and the inner tabs. */
.sam-mv-bottomblock .dxbl-fl-tab-content > .dxbl-row > .dxbl-fl-gt {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
}

.sam-mv-bottomblock .dxbl-fl-gt > .dxbl-tabs {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.sam-mv-bottomblock .dxbl-fl-gt > .dxbl-tabs > .dxbl-tabs-tablist {
    flex: none;
}

.sam-mv-bottomblock .dxbl-fl-gt > .dxbl-tabs > .dxbl-tabs-content-panel {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: hidden;
}

.sam-mv-bottomblock .dxbl-fl-item > .dxbl-fl-ctrl,
.sam-mv-bottomblock .nested-frame {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.sam-mv-bottomblock .nested-frame > .nested-toolbar {
    flex: none !important;
}

/* overflow:auto is the fallback scrollbar for tab content that is not a grid (e.g. Model Tree). */
.sam-mv-bottomblock .nested-content {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: auto;
}

.sam-mv-bottomblock .grid-content {
    flex: 1 1 0 !important;
    min-height: 0 !important;
}

.sam-mv-bottomblock .xaf-contextmenu-click-helper {
    display: contents !important;
}

.sam-mv-bottomblock .dxbl-grid {
    height: 100% !important;
    min-height: 0 !important;
}

/* Dynamic aircraft counter display (see SAM.Module.Blazor/Editors/AircraftCounterDisplay.razor).
   Read-only labeled values, one per counter, stacked like the surrounding detail-form fields. */
.sam-counter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sam-counter-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sam-counter-caption {
    font-size: 0.75rem;
    color: var(--dxbl-text-color-muted, #6c757d);
}

.sam-counter-value {
    padding: 4px 8px;
    min-height: 1.6em;
    border: 1px solid var(--dxbl-border-color, #ced4da);
    border-radius: var(--dxbl-border-radius, 4px);
    background-color: var(--dxbl-paper-bg, #f5f5f5);
}

/* Editable dynamic counters on the Maintenance View parameter popup
   (see SAM.Module.Blazor/Editors/MaintenanceViewCounterEditor.razor). Same caption-above-value shape
   as the read-only panels above, but laid out side by side like the WinForms editor (3 per row). */
.sam-mvcounter-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sam-mvcounter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.sam-mvcounter-item {
    flex: 0 1 200px;
    min-width: 140px;
}

.sam-mvcounter-add {
    position: relative;
    align-self: flex-start;
}

.sam-mvcounter-menu {
    position: absolute;
    z-index: 1050;
    top: calc(100% + 2px);
    left: 0;
    display: flex;
    flex-direction: column;
    min-width: 180px;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--dxbl-border-color, #ced4da);
    border-radius: var(--dxbl-border-radius, 4px);
    background-color: var(--dxbl-dropdown-bg, #fff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sam-mvcounter-menu-item {
    padding: 6px 12px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.sam-mvcounter-menu-item:hover {
    background-color: var(--dxbl-list-item-hover-bg, rgba(0, 0, 0, 0.05));
}

/* ---------------------------------------------------------------------------------------------
   Maintenance View chart (see SAM.Module.Blazor/Editors/MaintenanceViewGantt.razor).
   One scroll container: the tree columns are sticky-left, the timescale header is sticky-top, and
   the chart itself is absolutely positioned bars inside a per-row track. Row heights and the left
   column width are shared with the component (LeftWidth) - keep them in sync.
   --------------------------------------------------------------------------------------------- */
.sam-gantt-root {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Colour legend above the chart - port of the WinForms ribbon legend groups: per group the items
   stack vertically and wrap into columns of three (the ribbon's layout), the group caption sits
   centered underneath, and a divider separates the groups. */
.sam-gantt-legend {
    flex: none;
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    padding: 2px 4px;
    border-bottom: 1px solid var(--dxbl-border-color, #dee2e6);
    background-color: var(--dxbl-table-head-bg, #f3f4f6);
    font-size: 0.75rem;
}

.sam-gantt-legend-group {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 14px;
}

.sam-gantt-legend-group:not(:last-child) {
    border-right: 1px solid var(--dxbl-border-color, #dee2e6);
}

/* Column flow needs a bound height: 2 rows of 18px, so a 4-item group renders as two
   side-by-side pairs (2x2). */
.sam-gantt-legend-items {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    height: 36px;
    column-gap: 18px;
}

.sam-gantt-legend-caption {
    margin-top: 2px;
    text-align: center;
    color: var(--dxbl-text-color-muted, #6c757d);
    font-weight: 600;
}

.sam-gantt-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 18px;
    white-space: nowrap;
}

.sam-gantt-legend-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.sam-gantt-wrapper {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}

.sam-gantt {
    --sam-gantt-left: 410px;
    --sam-gantt-row: 24px;
    --sam-gantt-head: 44px;
    --sam-gantt-day: 26px;
    --sam-gantt-line: var(--dxbl-border-color, #dee2e6);
    --sam-gantt-bg: var(--dxbl-panel-bg, #fff);
    height: 100%;
    min-height: 340px;
    overflow: auto;
    background-color: var(--sam-gantt-bg);
    font-size: 0.8125rem;
}

.sam-gantt-body {
    position: relative;
    min-width: 100%;
}

.sam-gantt-row {
    display: flex;
    height: var(--sam-gantt-row);
    align-items: stretch;
    border-bottom: 1px solid var(--sam-gantt-line);
}

.sam-gantt-row:hover {
    background-color: var(--dxbl-list-item-hover-bg, rgba(0, 0, 0, 0.035));
}

.sam-gantt-row-selected,
.sam-gantt-row-selected:hover {
    background-color: var(--dxbl-list-item-selected-bg, rgba(13, 110, 253, 0.12));
}

.sam-gantt-left {
    position: sticky;
    left: 0;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    width: var(--sam-gantt-left);
    background-color: inherit;
    border-right: 1px solid var(--sam-gantt-line);
}

/* The rows themselves are transparent, so the pinned columns need the page colour under them. */
.sam-gantt-row .sam-gantt-left {
    background-color: var(--sam-gantt-bg);
}

.sam-gantt-row:hover .sam-gantt-left {
    background-color: var(--dxbl-list-item-hover-bg, #f5f6f7);
}

.sam-gantt-row-selected .sam-gantt-left,
.sam-gantt-row-selected:hover .sam-gantt-left {
    background-color: var(--dxbl-list-item-selected-bg, #dbe9fb);
}

.sam-gantt-cell {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-right: 1px solid var(--sam-gantt-line);
}

.sam-gantt-cell:last-child {
    border-right: 0;
}

.sam-gantt-cell-info {
    flex: 1 1 auto;
    min-width: 0;
}

.sam-gantt-infotext {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sam-gantt-cell-status {
    flex: 0 0 90px;
    width: 90px;
}

.sam-gantt-cell-end {
    flex: 0 0 90px;
    width: 90px;
    justify-content: flex-end;
}

.sam-gantt-expander,
.sam-gantt-treebtn {
    flex: 0 0 auto;
    width: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dxbl-text-color-muted, #6c757d);
    font-size: 0.625rem;
    line-height: 1;
    cursor: pointer;
}

.sam-gantt-expander:hover,
.sam-gantt-treebtn:hover {
    color: var(--dxbl-text-color, #212529);
}

.sam-gantt-expander-spacer {
    flex: 0 0 auto;
    width: 16px;
}

/* Status column: 13px filled circle, centred - matches the WinForms CustomDrawNodeCell circles. */
.sam-gantt-cell-status {
    justify-content: center;
}

/* Status circles in DxGrid cells (task lists on Aircraft/Components etc. -
   see BlazorTriggerableStatusController). Same 13px circle as the Gantt's status column,
   centred in the cell like the WinForms custom draw. */
.sam-status-dot {
    display: block;
    margin: 0 auto;
    width: 13px;
    height: 13px;
    border-radius: 50%;
}

.sam-gantt-status-dot {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    border-radius: 50%;
}

/* ---- header ---- */
.sam-gantt-head {
    position: sticky;
    top: 0;
    z-index: 3;
    height: var(--sam-gantt-head);
    background-color: var(--dxbl-table-head-bg, #f3f4f6);
    font-weight: 600;
}

.sam-gantt-head .sam-gantt-left {
    z-index: 4;
    background-color: var(--dxbl-table-head-bg, #f3f4f6);
    align-items: center;
}

.sam-gantt-head .sam-gantt-cell {
    height: 100%;
}

.sam-gantt-headtext {
    margin-left: 4px;
}

.sam-gantt-scale {
    position: relative;
    flex: 0 0 auto;
}

.sam-gantt-month {
    position: absolute;
    top: 0;
    height: 22px;
    display: flex;
    align-items: center;
    padding-left: 6px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 1px solid var(--sam-gantt-line);
    border-bottom: 1px solid var(--sam-gantt-line);
}

.sam-gantt-day {
    position: absolute;
    top: 22px;
    height: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.625rem;
    font-weight: 400;
    border-right: 1px solid var(--sam-gantt-line);
}

.sam-gantt-day-dow {
    color: var(--dxbl-text-color-muted, #6c757d);
    font-size: 0.5625rem;
}

.sam-gantt-day-weekend {
    background-color: rgba(120, 130, 145, 0.12);
}

.sam-gantt-day-today {
    color: #e74856;
    font-weight: 700;
}

/* ---- chart area ---- */
.sam-gantt-track {
    position: relative;
    flex: 0 0 auto;
    /* One faint line per day, so a bar can be read back to its date. */
    background-image: repeating-linear-gradient(to right, var(--sam-gantt-line) 0 1px, transparent 1px var(--sam-gantt-day));
}

.sam-gantt-bar {
    position: absolute;
    top: 3px;
    bottom: 3px;
    border-radius: 2px;
}

.sam-gantt-bar-summary {
    top: 8px;
    bottom: 8px;
    border-radius: 1px;
}

.sam-gantt-labelwrap {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
}

/* Sticky inside its wrapper: the label keeps its place next to the blocks until the chart is
   scrolled past it, then it stops just right of the pinned columns instead of disappearing
   underneath them (WinForms clamps the same way in DrawClampedText). */
.sam-gantt-label {
    position: sticky;
    left: calc(var(--sam-gantt-left) + 12px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    white-space: nowrap;
    color: var(--dxbl-text-color, #212529);
}

/* Points off the left edge of the chart: the row is due before the visible range (WinForms draws
   the same triangle when it clamps a label). */
.sam-gantt-offchart {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 6px solid #e74856;
}

.sam-gantt-todayline {
    position: absolute;
    top: var(--sam-gantt-head);
    bottom: 0;
    z-index: 1;
    width: 2px;
    background-color: rgba(231, 72, 86, 0.55);
    pointer-events: none;
}

.sam-gantt-empty {
    position: sticky;
    left: 0;
    width: max-content;
    padding: 16px;
    color: var(--dxbl-text-color-muted, #6c757d);
}

/* Overdue scroll annotations. A browser will not let a page paint inside its own scrollbar, so the
   marks sit in a thin strip immediately left of it - same purpose as the WinForms Gantt's
   OptionsScrollAnnotations: find the overdue rows without scrolling through everything. */
/* height is set inline: the content height, capped at the viewport (see the component). */
.sam-gantt-annotations {
    position: absolute;
    top: 0;
    right: 15px;
    z-index: 5;
    width: 6px;
    pointer-events: none;
}

.sam-gantt-annotation {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    transform: translateY(-50%);
    border-radius: 1px;
    background-color: #e74856;
    pointer-events: auto;
}

/* Progress overlay while the generator runs on its background thread. The line under the spinner is
   the generator's own status ("Creating View 3/40"), polled by the component. */
.sam-gantt-progress {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.65);
}

.sam-gantt-progress-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    padding: 20px 28px;
    border: 1px solid var(--dxbl-border-color, #ced4da);
    border-radius: var(--dxbl-border-radius, 4px);
    background-color: var(--dxbl-panel-bg, #fff);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.sam-gantt-progress-text {
    color: var(--dxbl-text-color, #212529);
    text-align: center;
}

.sam-gantt-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--dxbl-border-color, #dee2e6);
    border-top-color: var(--dxbl-primary, #0d6efd);
    border-radius: 50%;
    animation: sam-gantt-spin 0.9s linear infinite;
}

@keyframes sam-gantt-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Right-click menu (WinForms: the tree list's Expand/Collapse [Recursively] items). */
.sam-gantt-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
}

.sam-gantt-menu {
    position: fixed;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    min-width: 180px;
    padding: 4px 0;
    border: 1px solid var(--dxbl-border-color, #ced4da);
    border-radius: var(--dxbl-border-radius, 4px);
    background-color: var(--dxbl-dropdown-bg, #fff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.8125rem;
}

.sam-gantt-menu-item {
    padding: 6px 14px;
    border: 0;
    background: transparent;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.sam-gantt-menu-item:hover {
    background-color: var(--dxbl-list-item-hover-bg, rgba(0, 0, 0, 0.05));
}

.sam-gantt-menu-separator {
    margin: 4px 0;
    border-top: 1px solid var(--sam-gantt-line, #dee2e6);
}

/* Message from the last generation run (failure reason / integration warning) - the on-screen
   channel, since the platform message service only writes to the trace log on Blazor. */
.sam-gantt-msgbar {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: min(680px, 90%);
    padding: 10px 14px;
    border: 1px solid #e74856;
    border-radius: var(--dxbl-border-radius, 4px);
    background-color: #fdeaec;
    color: #58151c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.8125rem;
}

.sam-gantt-msgbar-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* Generator messages contain line breaks. */
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.sam-gantt-msgbar-close {
    flex: 0 0 auto;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 0.875rem;
    line-height: 1.4;
    cursor: pointer;
}
