
/* Utility classes */

.w-100 {
    width: 100%;
}

.white-space-pre-wrap {
    white-space: pre-wrap;
}

.bold {
    font-weight: bold;
}

.fill-space {
    height: 100%;
    width: 100%;
}

.custom-row {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .custom-row:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }

/* MudBlazor overrides */
.mud-table-container {
    overflow-y: unset !important;
}

.mud-breadcrumbs {
    padding: 0px 0px 8px 0px !important;
}

.mud-toggle-item .mud-typography-body1 {
    font-size: 0.7rem !important;
}


:root {
    --mud-appbar-height: 50px !important;
    --mud-internal-toolbar-height: 50px !important;
}

    :root .mud-toolbar-gutters {
        padding-left: 16px;
        padding-right: 16px;
    }

/* Facet drag-and-drop styles */
.facet-drop-container {
    width: 100%;
}

.facet-drop-zone {
    min-height: 20px;
    width: 100%;
}

.drag-handle {
    cursor: grab;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.drag-handle:hover {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

.draggable-facet {
    cursor: grab;
    position: relative;
    transition: background-color 0.15s ease;
}

.draggable-facet:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.draggable-facet:active {
    cursor: grabbing;
}


/* MudBlazor drag-drop visual feedback */

/* Style for the item being dragged */
.mud-drop-item-dragging {
    opacity: 0.6;
    background-color: rgba(25, 118, 210, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

/* Style for the drop zone when dragging is active */
.mud-drop-zone-drag-block {
    background-color: rgba(25, 118, 210, 0.05) !important;
}

/* Insert indicator - shows a blue line where the item will be dropped */
.facet-drop-zone .mud-dropitem-placeholder {
    position: relative;
    min-height: 1px;
    margin: 0;
    background-color: transparent;
}

.facet-drop-zone .mud-dropitem-placeholder::before {
    content: '';
    position: absolute;
    left: 40px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 1px;
    background-color: #1976d2;
    border-radius: 1px;
    box-shadow: 0 0 2px rgba(25, 118, 210, 0.5);
}

/* Circle indicator at the start of the insert line */
.facet-drop-zone .mud-dropitem-placeholder::after {
    content: '';
    position: absolute;
    left: 34px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 2px;
    background-color: #1976d2;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(25, 118, 210, 0.5);
}

/* Tree node actions container - ensures consistent alignment */
.tree-node-actions {
    min-width: 420px;
    justify-content: flex-end;
}

/* Coverage text alignment in tree view */
.coverage-text {
    font-variant-numeric: tabular-nums;
    min-width: 280px;
    text-align: right;
    display: inline-block;
    color: #757575;
    font-size: 0.85em;
}

