/**
 * gridstack-mini.css
 * Minimal stylesheet for gridstack-mini.js — no external dependencies.
 */

.grid-stack {
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.grid-stack-item {
    position: absolute;
    box-sizing: border-box;
    touch-action: none;
    user-select: none;
}

.grid-stack-item-content {
    position: absolute;
    inset: 4px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Drag placeholder */
.grid-stack-placeholder > .placeholder-content {
    position: absolute;
    inset: 4px;
    border-radius: 12px;
    background: rgba(94, 234, 212, 0.05);
    border: 2px dashed rgba(94, 234, 212, 0.35);
    box-sizing: border-box;
}

/* Resize handle (south-east corner) */
.gs-mini-resize {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 18px;
    height: 18px;
    cursor: se-resize;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.2s;
    /* Arrow glyph */
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--s-text-muted, #9ca3af);
    font-size: 14px;
    line-height: 1;
}
.gs-mini-resize::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-radius: 0 0 2px 0;
}

/* Show resize handle in editing mode */
.dash-gs-editing .gs-mini-resize {
    opacity: 1;
}
