.wsp-image-card,
.wsp-designer {
    box-sizing: border-box;
}

.wsp-floorplan-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    background: #f6f7f7;
    overflow: hidden;
}

.wsp-floorplan-preview img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wsp-empty-preview,
.wsp-designer-empty {
    padding: 28px;
    color: #646970;
    text-align: center;
}

.wsp-designer-empty {
    border: 1px dashed #c3c4c7;
    border-radius: 8px;
    background: #fbfbfc;
}

.wsp-floorplan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.wsp-floorplan-file-info {
    color: #646970;
    font-size: 12px;
}

.wsp-admin-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #f6f7f7;
}

.wsp-designer-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
}

.wsp-toolbar-group,
.wsp-toolbar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.wsp-designer-status {
    color: #646970;
    font-size: 12px;
}

.wsp-table-count {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #dcdcde;
    border-radius: 999px;
    background: #f6f7f7;
    color: #1d2327;
    font-size: 12px;
    font-weight: 600;
}

.wsp-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 14px;
    align-items: start;
}

.wsp-stage-wrap {
    max-width: 100%;
    overflow: auto;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    background: #f6f7f7;
}

.wsp-stage {
    position: relative;
    display: inline-block;
    max-width: 100%;
    min-width: 320px;
    line-height: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

.wsp-stage img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

.wsp-object-layer {
    position: absolute;
    inset: 0;
    line-height: normal;
}

.wsp-layout-object {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 28px;
    box-sizing: border-box;
    border: 2px solid #1d2327;
    border-radius: 10px;
    background: #f0c33c;
    color: #1d2327;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    cursor: grab;
    user-select: none;
    touch-action: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    transition: box-shadow 0.12s ease, outline-color 0.12s ease;
}

.wsp-layout-object span {
    pointer-events: none;
}

.wsp-layout-object.is-dragging {
    cursor: grabbing;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.wsp-layout-object.is-selected,
.wsp-layout-object:focus {
    outline: 3px solid #2271b1;
    outline-offset: 2px;
}

.wsp-inspector {
    position: sticky;
    top: 36px;
    display: grid;
    gap: 12px;
}

.wsp-inspector-section {
    padding: 12px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
}

.wsp-inspector-section h3 {
    margin: 0 0 10px;
    font-size: 13px;
}

.wsp-selected-title {
    margin: 0 0 8px;
    font-weight: 600;
}

.wsp-selected-details {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 4px 8px;
    margin: 0;
}

.wsp-selected-details dt {
    color: #646970;
    font-size: 12px;
}

.wsp-selected-details dd {
    margin: 0;
    color: #1d2327;
    font-size: 12px;
    font-weight: 600;
    word-break: break-word;
}

.wsp-object-list {
    display: grid;
    gap: 6px;
    max-height: 280px;
    overflow: auto;
}

.wsp-object-list-item {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 7px 9px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #f6f7f7;
    color: #1d2327;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.wsp-object-list-item:hover,
.wsp-object-list-item:focus,
.wsp-object-list-item.is-selected {
    border-color: #2271b1;
    outline: none;
    background: #eef6fc;
}

.wsp-muted {
    margin: 0;
    color: #646970;
    font-size: 12px;
}

.wsp-floorplan-viewer {
    max-width: 100%;
    overflow: auto;
}

@media (max-width: 1100px) {
    .wsp-workspace {
        grid-template-columns: 1fr;
    }

    .wsp-inspector {
        position: static;
    }
}


/* Step 11: επαγγελματικά αντικείμενα κατόψεων */
.wsp-toolbar-group--objects {
    flex-wrap: wrap;
    gap: 6px;
}

.wsp-layout-object {
    flex-direction: column;
    gap: 2px;
    padding: 4px;
    line-height: 1.15;
}

.wsp-layout-object em {
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    opacity: 0.78;
}

.wsp-layout-object--shape-round {
    border-radius: 999px;
}

.wsp-layout-object--bridal-table {
    background: #ffe7ef;
    border-color: #9f1239;
    color: #4c0519;
}

.wsp-layout-object--dance-floor {
    background: rgba(219, 234, 254, 0.9);
    border-style: dashed;
    border-color: #1d4ed8;
    color: #1e3a8a;
}

.wsp-layout-object--band {
    background: #ede9fe;
    border-color: #6d28d9;
    color: #3b0764;
}

.wsp-layout-object--buffet {
    background: #dcfce7;
    border-color: #15803d;
    color: #052e16;
}

.wsp-layout-object--service-corridor {
    background: rgba(254, 243, 199, 0.72);
    border-style: dashed;
    border-color: #b45309;
    color: #78350f;
}

.wsp-layout-object--stand {
    background: #f1f5f9;
    border-color: #475569;
    color: #0f172a;
}

.wsp-layout-object.is-locked {
    cursor: not-allowed;
    box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.2), 0 2px 8px rgba(0, 0, 0, 0.22);
}

.wsp-layout-object.is-locked::after {
    content: "🔒";
    position: absolute;
    top: -9px;
    right: -9px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 11px;
}

.wsp-inspector-form label {
    display: grid;
    gap: 5px;
    margin: 0 0 10px;
}

.wsp-inspector-form label span {
    font-size: 12px;
    font-weight: 700;
    color: #344054;
}

.wsp-inspector-field {
    width: 100%;
    min-height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 8px;
    background: #fff;
}

.wsp-inspector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wsp-lock-control {
    display: flex !important;
    grid-template-columns: none;
    grid-auto-flow: column;
    align-items: center;
    justify-content: start;
    gap: 8px !important;
}

.wsp-lock-control input {
    margin: 0;
}

.wsp-object-list-item {
    display: grid;
    gap: 2px;
    text-align: left;
}

.wsp-object-list-item small {
    font-size: 10px;
    font-weight: 700;
    color: #b45309;
}
