/* =================================================================
   WF Portal — Entity Builder Page Layout
   ================================================================= */

.wf-builder-page {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ── Palette column ───────────────────────────────────────────────── */

.wf-builder-palette {
    width: 280px;
    min-width: 280px;
    background-color: var(--theme-background-subtle);
    border-right: 1px solid var(--theme-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Canvas column ────────────────────────────────────────────────── */

.wf-builder-canvas {
    flex: 1;
    padding: 1rem 1.25rem;
    overflow-y: auto;
}

/* ── Empty state ──────────────────────────────────────────────────── */

.wf-builder-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60%;
    color: var(--theme-text-muted);
    text-align: center;
}
.wf-builder-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}
.wf-builder-empty-text {
    font-size: var(--theme-font-size-base);
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.wf-builder-empty-hint {
    font-size: var(--theme-font-size-sm);
}

/* =================================================================
   Responsive — Tablet
   ================================================================= */

@media (max-width: 991.98px) {
    .wf-builder-palette {
        width: 240px;
        min-width: 240px;
    }
}

/* =================================================================
   Responsive — Mobile
   ================================================================= */

@media (max-width: 767.98px) {
    .wf-builder-page {
        flex-direction: column;
        flex: none;
    }
    .wf-builder-palette {
        width: 100%;
        min-width: unset;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid var(--theme-border);
    }
    .wf-builder-canvas {
        min-height: 60vh;
    }
    .wf-canvas-columns {
        flex-direction: column;
    }
}
