﻿



/* Container */
.ry-wrap {
    --ry-gap: 14px;
    --ry-radius: 14px;
    --ry-shadow: 0 6px 14px rgba(0,0,0,.06);
    --ry-shadow-soft: 0 2px 8px rgba(0,0,0,.06);
    --ry-border: 1px solid rgba(0,0,0,.06);
}

/* Toolbar */
.ry-toolbar {
    position: sticky;
    top: 64px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: var(--ry-border);
    border-radius: var(--ry-radius);
    padding: 10px 14px;
    margin-bottom: var(--ry-gap);
    box-shadow: var(--ry-shadow-soft);
}

.ry-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .ry-title h2 {
        font-size: 18px;
        margin: 0;
        font-weight: 700;
    }

.ry-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}

.ry-count {
    font-size: 12px;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

.ry-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: .15s;
}

    .ry-btn i {
        font-size: 14px;
    }

    .ry-btn span {
        font-size: 14px;
    }

    .ry-btn:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

.ry-btn-ghost {
    background: #fff;
    border-color: rgba(0,0,0,.08);
}

    .ry-btn-ghost:hover {
        box-shadow: var(--ry-shadow);
    }

.ry-btn-primary {
    background: #4f46e5;
    color: #fff;
}

    .ry-btn-primary:hover {
        filter: brightness(1.05);
        box-shadow: 0 8px 18px rgba(79,70,229,.25);
    }

/* Grid */
.ry-grid {
    display: grid;
    gap: var(--ry-gap);
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Card */
.ry-card {
    position: relative;
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: var(--ry-radius);
    background: #fff;
    border: var(--ry-border);
    box-shadow: var(--ry-shadow-soft);
}

    .ry-card:hover {
        box-shadow: var(--ry-shadow);
        transform: translateY(-1px);
        transition: .15s;
    }

/* Drag grip */
.ry-grip {
    position: absolute;
    left: 10px;
    top: 8px;
    font-weight: 700;
    color: #9ca3af;
    cursor: grab;
    user-select: none;
}

.ry-card:active .ry-grip {
    cursor: grabbing;
}

/* Badge (order number) */
.ry-badge {
    position: absolute;
    right: 10px;
    top: -8px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(17,24,39,.2);
}

/* Image */
.ry-img {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    background: #f3f4f6;
    overflow: hidden;
    border: var(--ry-border);
}

    .ry-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Info */
.ry-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 8px;
}

.ry-name {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
    line-height: 1.25;
    max-height: 2.5em;
    overflow: hidden;
}

.ry-meta {
    font-size: 12px;
    color: #6b7280;
}

/* External link */
.ry-link {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #374151;
    background: #f9fafb;
    border: var(--ry-border);
}

    .ry-link:hover {
        background: #eef2ff;
        color: #4338ca;
    }

/* Empty */
.ry-empty {
    padding: 48px 0;
    text-align: center;
    color: #6b7280;
    border: var(--ry-border);
    border-radius: var(--ry-radius);
    background: #fff;
}

    .ry-empty i {
        font-size: 36px;
        color: #d1d5db;
        margin-bottom: 10px;
        display: inline-block;
    }

/* Skeletons */
.ry-skel {
    animation: ryPulse 1.2s ease-in-out infinite;
}

    .ry-skel .ry-img {
        background: #eef2f7;
    }

.ry-line {
    height: 10px;
    background: #eef2f7;
    border-radius: 8px;
}

.w60 {
    width: 60%;
}

.w40 {
    width: 40%;
}

@keyframes ryPulse {
    0% {
        opacity: .85
    }

    50% {
        opacity: 1
    }

    100% {
        opacity: .85
    }
}

/* Radzen zone reset */
.ry-grid .rz-dropzone {
    display: contents;
}
