/* Lightbox and Link Scheme */
.dfs-lightbox-link {
    color: #0073aa;
    text-decoration: none;
    border-bottom: 1px dashed #0073aa;
    cursor: zoom-in;
    font-weight: 500;
}

.dfs-lightbox-link:hover {
    color: #005a87;
    border-bottom-style: solid;
}

.dfs-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dfs-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dfs-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border: 5px solid #fff;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.dfs-lightbox-close {
    position: absolute;
    top: -45px;
    right: -10px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
}

.dfs-lightbox-close:hover {
    color: #ccc;
}

/* Row Highlighting */
tr[data-doc-id] {
    scroll-margin-top: 150px;
}

/* Apply highlight to all nested cells to override any theme styles */
.dfs-doc-container tr.highlighted td,
tr.highlighted td {
    background-color: #fff9c4 !important; /* Soft yellow highlight */
    border-top: 1px solid #ffeb3b !important;
    border-bottom: 1px solid #ffeb3b !important;
    transition: background-color 0.5s ease;
}

.dfs-doc-container tr.highlighted td:first-child,
tr.highlighted td:first-child {
    border-left: 4px solid #ffeb3b !important;
}

tr.highlighted {
    outline: none !important;
}
