﻿/* Success tick: scale + draw. */
.success-tick {
    width: 48px;
    height: 48px;
    stroke: var(--primary-color);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: scale(.9);
    opacity: 0;
    animation: tick-pop .15s ease-out forwards .05s;
}

.tick-circle {
    stroke: rgba(0,0,0,0.12);
    stroke-width: 3;
}

.tick-path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: tick-draw .4s ease forwards .1s;
}


@keyframes tick-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes tick-pop {
    to {
        transform: scale(1);
        opacity: 1;
    }
}







.error-x {
    width: 48px;
    height: 48px;
    stroke: var(--danger-color, #e53935);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: scale(.9);
    opacity: 0;
    animation: x-pop .15s ease-out forwards .05s;
}

.x-circle {
    stroke: rgba(0,0,0,0.12);
    stroke-width: 3;
}

/* Path math is normalized by pathLength=100 */
.x-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.x-path-a {
    animation: x-draw .28s ease forwards .10s;
}
/* first line */
.x-path-b {
    animation: x-draw .28s ease forwards .42s;
}
/* starts after A finishes */

@keyframes x-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes x-pop {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* GridHoverTooltip only — do not apply to diagram HoverTooltip. */
.usage-scan-cell:has(.grid-hover-tooltip--open) {
    z-index: 4;
}

.e-grid .e-row:has(.grid-hover-tooltip--open),
.e-grid .e-rowcell:has(.grid-hover-tooltip--open),
.dg-table tr:has(.grid-hover-tooltip--open),
.dg-table td:has(.grid-hover-tooltip--open) {
    position: relative;
    z-index: 4;
    overflow: visible;
}

/* Inner ellipsis wrapper also clips KeepInPlace tips — open it with the cell. */
.dg-table td:has(.grid-hover-tooltip--open) .dg-cell-content,
.usage-scan-cell:has(.grid-hover-tooltip--open) {
    overflow: visible;
}

/* Allow-overflow cells (Play) are z-index 5 in the grid's unscoped style.
   While a grid tooltip is open, later rows' Play borders paint over the lift (z-index 4).
   Drop those cells under the open row. The open cell keeps the lift. Play stays at 5 when no tip is open. */
.data-grid-component .dg-table:has(.grid-hover-tooltip--open) td.dg-allow-overflow:not(:has(.grid-hover-tooltip--open)) {
    z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
    .error-x, .x-path {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
        stroke-dashoffset: 0 !important;
    }
}