/* Hall floor-plan designer — tall board, small square seats, grid, stage, labels */
.gf-form-card:has(.hall-designer-page) .card-body {
    padding: 0.85rem 1rem 1.15rem;
}

.hall-designer-page {
    margin: 0;
}

.hall-designer__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.65rem 0.8rem;
    background: #f4f7fa;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
}

.hall-designer__tools,
.hall-designer__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.hall-designer__split {
    width: 1px;
    height: 1.6rem;
    background: #d5dde6;
    margin: 0 0.2rem;
}

.hall-designer__type { width: 7rem; }
.hall-designer__count { width: 4.4rem; }
.hall-designer__label-input { width: 3.4rem; text-align: center; font-weight: 700; }

.hall-designer__bg-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.28rem 0.65rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background: #fff;
    font-size: 0.8125rem;
    cursor: pointer;
    color: #334155;
}
.hall-designer__bg-btn input {
    width: 1.6rem;
    height: 1.35rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.hall-designer__stamp-hint {
    padding: 0.45rem 0.75rem;
    background: #e7f5ff;
    border: 1px solid #a5d8ff;
    border-radius: 6px;
    color: #0b4f7a;
    font-size: 0.85rem;
}

.hall-designer__editbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.85rem;
    margin-bottom: 0;
    padding: 0.45rem 0.7rem;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}
.hall-designer__editbar-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}
.hall-designer__editbar-sep {
    width: 1px;
    height: 1.25rem;
    background: #dde3ea;
}

.hall-designer__canvas-wrap {
    position: relative;
    overflow: auto;
    height: 92vh;
    min-height: 960px;
    border: 1px solid #c5ced8;
    border-radius: 0 0 8px 8px;
    background-color: var(--hall-bg, #1a1f26);
}

.hall-designer__canvas {
    position: relative;
    transform-origin: top left;
    width: 100%;
    min-width: 100%;
    min-height: 92vh;
    background-color: var(--hall-bg, #1a1f26);
}

.hall-designer__floor {
    display: none;
    max-width: none;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

.hall-designer__floor.is-on {
    display: block;
}

.hall-designer__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
}

.hall-designer__decor,
.hall-designer__seats {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hall-designer__seats { z-index: 3; }

.hall-designer__empty {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #c9d1d9;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    pointer-events: none;
}

.hall-designer__empty.is-visible {
    display: flex;
}

/* Small square seats */
.hall-designer__seat {
    position: absolute;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 1px solid #0b5ed7;
    border-radius: 2px;
    background: #0d6efd;
    color: #fff;
    font-size: 0;
    display: block;
    cursor: grab;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
    z-index: 3;
    padding: 0;
    pointer-events: auto;
    background: var(--seat-type-Normal, #0d6efd);
    border-color: color-mix(in srgb, var(--seat-type-Normal, #0d6efd) 70%, #000);
}

.hall-designer__seat-label {
    display: none;
}

.hall-designer__seat.is-selected {
    border-color: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.7);
    z-index: 6;
}

.hall-designer__seat[data-type="VIP"] {
    background: var(--seat-type-VIP, #ffc107);
    border-color: color-mix(in srgb, var(--seat-type-VIP, #ffc107) 70%, #000);
}

.hall-designer__seat[data-type="Luxury"] {
    background: var(--seat-type-Luxury, #6f42c1);
    border-color: color-mix(in srgb, var(--seat-type-Luxury, #6f42c1) 70%, #000);
}

.hall-designer__seat[data-type="DisabledPeople"] {
    background: var(--seat-type-DisabledPeople, #0dcaf0);
    border-color: color-mix(in srgb, var(--seat-type-DisabledPeople, #0dcaf0) 70%, #000);
}

.hall-designer__stage {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #f8fafc;
    background: rgba(248, 250, 252, 0.16);
    color: #f8fafc;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: grab;
    z-index: 2;
    user-select: none;
    pointer-events: auto;
}
.hall-designer__stage.is-selected {
    border-color: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.45);
}

.hall-designer__row-label {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    cursor: grab;
    z-index: 4;
    user-select: none;
    pointer-events: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
    white-space: nowrap;
}
.hall-designer__row-label.is-selected {
    color: #ffc107;
    text-shadow: 0 0 6px rgba(255, 193, 7, 0.55), 0 1px 3px rgba(0, 0, 0, 0.85);
}

.hall-designer__stage-preview {
    position: fixed;
    border: 2px dashed #fff;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
    z-index: 9998;
    display: none;
}
.hall-designer__stage-preview.is-visible { display: block; }

.hall-designer__canvas.tool-place,
.hall-designer__canvas.tool-stamp,
.hall-designer__canvas.tool-stage,
.hall-designer__canvas.tool-label {
    cursor: crosshair;
}

.hall-designer__canvas.tool-select {
    cursor: default;
}

.hall-designer__marquee {
    position: fixed;
    border: 1px dashed #21c0c0;
    background: rgba(33, 192, 192, 0.12);
    pointer-events: none;
    z-index: 9999;
    display: none;
}

.hall-designer__marquee.is-visible {
    display: block;
}

.hall-designer__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.1rem;
    align-items: center;
    margin-top: 0.55rem;
    font-size: 0.8rem;
    color: #475569;
}
.hall-designer__swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 0.3rem;
    border-radius: 2px;
    vertical-align: -1px;
    border: 1px solid rgba(0,0,0,0.2);
}
.hall-designer__swatch[data-type="Normal"] { background: var(--seat-type-Normal, #0d6efd); }
.hall-designer__swatch[data-type="VIP"] { background: var(--seat-type-VIP, #ffc107); }
.hall-designer__swatch[data-type="Luxury"] { background: var(--seat-type-Luxury, #6f42c1); }
.hall-designer__swatch[data-type="DisabledPeople"] { background: var(--seat-type-DisabledPeople, #0dcaf0); }

.hall-designer__type-color {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.8rem;
    color: #334155;
}
.hall-designer__type-color input[type="color"] {
    width: 1.55rem;
    height: 1.35rem;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    background: none;
    cursor: pointer;
}

/* Public / compact maps keep readable squares */
.hall-designer--public .hall-designer__canvas-wrap {
    height: auto;
    min-height: 260px;
}
.hall-designer--public .hall-designer__canvas {
    min-height: 260px;
}
.hall-designer--public .hall-designer__grid {
    display: none;
}
.hall-designer--public:not(.hall-designer--live) .hall-designer__seat {
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    font-size: 0.5rem;
    border-radius: 3px;
    cursor: pointer;
}
.hall-designer--public .hall-designer__seat-label {
    display: none;
}
.hall-designer--public .hall-designer__stage,
.hall-designer--public .hall-designer__row-label {
    cursor: default;
    pointer-events: none;
}
