/* ==========================================================================
   Documents — selection in the document browser (#2048).
   Global rather than DocumentBrowser.razor.css: Radzen renders the <tr>, so a
   scoped rule cannot reach it without ::deep.
   ========================================================================== */

/* A selected row: a primary tint over Radzen's stripe and hover. */
.docbrowser .rz-data-row.docbrowser-row--selected > td {
    background-color: rgba(var(--adv-primary-rgb), 0.12) !important;
}

.docbrowser .rz-data-row.docbrowser-row--selected:hover > td {
    background-color: rgba(var(--adv-primary-rgb), 0.18) !important;
}

/* A drop target while items are dragged over it (documentBrowser.js). A folder row
   takes the tint; anything else (a breadcrumb item) a dashed outline. */
tr.adv-doc-drop--over > td {
    background-color: rgba(var(--adv-primary-rgb), 0.18) !important;
}

tr.adv-doc-drop--over > td:first-child {
    box-shadow: inset 3px 0 0 var(--adv-primary);
}

.adv-doc-drop--over:not(tr) {
    outline: 2px dashed var(--adv-primary);
    outline-offset: 2px;
    border-radius: 6px;
}

/* The drag image of a drag that carries several items: a "12 items" badge. It is
   created under the pointer, behind the page, for the browser's snapshot only. */
.adv-doc-drag-ghost {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: var(--adv-primary);
    color: var(--adv-white);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
