﻿.entity-move-dialog {
    width: min(94vw, 720px);
    max-width: 720px;
}

.entity-move-modal .modal-content {
    border: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 1.25rem 3.75rem rgba(15, 23, 42, 0.18);
}

.entity-move-header {
    align-items: flex-start;
    gap: 1rem;
    padding: 1.3rem 1.4rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.entity-move-heading .sv-eyebrow {
    margin-bottom: .25rem;
}

.entity-move-heading h2 {
    margin: 0;
    color: #0f172a;
    font-family: "Montserrat", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.entity-move-body {
    padding: 1.1rem 1.4rem 1.2rem;
    background: #fff;
}

.entity-move-context-card {
    padding: 1rem 1rem .9rem;
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    background: linear-gradient(145deg, #f8fbff 0%, #eff6ff 100%);
}

.entity-move-context-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: .85rem;
}

.entity-move-label {
    display: block;
    color: #64748b;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.entity-move-context-row strong {
    color: #0f172a;
    font-size: 1rem;
}

.entity-move-kind {
    padding: .18rem .48rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: .74rem;
    font-weight: 700;
}

.entity-move-path-row + .entity-move-path-row {
    margin-top: .62rem;
}

.entity-move-path-row p {
    margin: .18rem 0 0;
    color: #1e293b;
    font-size: .92rem;
    font-weight: 600;
    word-break: break-word;
}

.entity-move-new-location p {
    color: #1d4ed8;
}

.entity-move-note {
    margin: .8rem 0 0;
    padding-top: .72rem;
    border-top: 1px dashed #bfdbfe;
    color: #475569;
    font-size: .85rem;
}

.entity-move-tree-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.15rem 0 .68rem;
}

    .entity-move-tree-heading h3 {
        margin: 0;
        color: #0f172a;
        font-family: "Montserrat", sans-serif;
        font-size: .95rem;
        font-weight: 700;
    }

    .entity-move-tree-heading span {
        color: #64748b;
        font-size: .78rem;
        font-weight: 600;
    }

.entity-move-tree {
    min-height: 180px;
    max-height: min(42vh, 360px);
    overflow-y: auto;
    padding: .45rem;
    border: 1px solid #e2e8f0;
    border-radius: .9rem;
    background: #fff;
}

.entity-move-loading,
.entity-move-empty-branch {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: .28rem 0;
    padding: .65rem .75rem;
    color: #64748b;
    font-size: .86rem;
}

.entity-move-spinner {
    width: .95rem;
    height: .95rem;
    border: 2px solid #bfdbfe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: entity-move-spin .75s linear infinite;
}

@keyframes entity-move-spin {
    to {
        transform: rotate(360deg);
    }
}

.entity-move-node {
    margin: .18rem 0;
}

.entity-move-node-row {
    display: flex;
    align-items: center;
    gap: .38rem;
    min-height: 2.8rem;
    border-radius: .7rem;
}

.entity-move-toggle {
    display: inline-grid;
    place-items: center;
    flex: 0 0 1.85rem;
    width: 1.85rem;
    height: 1.85rem;
    border: 0;
    border-radius: .45rem;
    background: transparent;
    color: #64748b;
}

    .entity-move-toggle:hover:not(:disabled) {
        background: #eff6ff;
        color: #2563eb;
    }

    .entity-move-toggle.is-expanded svg {
        transform: rotate(90deg);
    }

.entity-move-toggle-spacer {
    flex: 0 0 1.85rem;
    width: 1.85rem;
}

.entity-move-select {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: .62rem;
    min-height: 2.7rem;
    padding: .45rem .6rem;
    border: 1px solid transparent;
    border-radius: .65rem;
    background: transparent;
    color: #0f172a;
    text-align: left;
}

    .entity-move-select:hover:not(:disabled) {
        border-color: #dbeafe;
        background: #f8fbff;
    }

    .entity-move-select.is-selected {
        border-color: #60a5fa;
        background: #eff6ff;
        color: #1d4ed8;
    }

    .entity-move-select:disabled {
        cursor: not-allowed;
        color: #64748b;
        background: #f8fafc;
    }

.entity-move-folder-icon,
.entity-move-root-icon {
    display: inline-grid;
    place-items: center;
    width: 1.45rem;
    color: #2563eb;
    font-size: 1rem;
}

.entity-move-select:disabled .entity-move-folder-icon,
.entity-move-select:disabled .entity-move-root-icon {
    color: #94a3b8;
}

.entity-move-node-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.entity-move-node-status {
    padding: .17rem .45rem;
    border-radius: 999px;
    color: #64748b;
    background: #e2e8f0;
    font-size: .7rem;
    font-weight: 700;
    white-space: nowrap;
}

.entity-move-check {
    color: #2563eb;
    font-size: .95rem;
    font-weight: 700;
}

.entity-move-children {
    margin-left: 1.3rem;
    padding-left: .48rem;
    border-left: 1px dashed #dbeafe;
}

.entity-move-error {
    margin: .8rem 0 0;
    padding: .72rem .8rem;
    border: 1px solid #fecaca;
    border-radius: .7rem;
    background: #fef2f2;
    color: #991b1b;
    font-size: .88rem;
}

.entity-move-confirm-panel {
    padding: 1rem .4rem .5rem;
    text-align: center;
}

.entity-move-confirm-icon {
    display: inline-grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    margin-bottom: .85rem;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 1.45rem;
    font-weight: 700;
}

.entity-move-confirm-panel h3 {
    margin: 0 0 .55rem;
    color: #0f172a;
    font-family: "Montserrat", sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
}

.entity-move-confirm-panel p {
    max-width: 31rem;
    margin: 0 auto;
    color: #475569;
    line-height: 1.55;
}

.entity-move-footer {
    gap: .7rem;
    padding: 1rem 1.4rem 1.2rem;
    border-top: 1px solid #e5e7eb;
}

    .entity-move-footer .btn {
        min-width: 7.5rem;
    }

@media (max-width: 575.98px) {
    .entity-move-dialog {
        width: auto;
        margin: .65rem;
    }

    .entity-move-body {
        padding: .95rem;
    }

    .entity-move-tree {
        max-height: 38vh;
    }

    .entity-move-footer {
        flex-wrap: nowrap;
    }

        .entity-move-footer .btn {
            flex: 1 1 50%;
            min-width: 0;
        }
}