/* Shared floor-plan visuals (used by the admin Tables pane and the waiter
   table picker) plus the waiter fullscreen table-picker overlay. */

.floor-grid {
    stroke: #e0e0e0;
    stroke-width: 0.02;
}

.floor-boundary {
    fill: none;
    stroke: #bbb;
    stroke-width: 0.04;
}

g.table-node {
    cursor: pointer;
}

g.table-node text {
    fill: #333;
    font-weight: bold;
    pointer-events: none;
}

g.table-node.is-current rect {
    stroke: #1e88e5;
    stroke-width: 0.06;
}

/* ── Table picker overlay ── */

.table-picker-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.table-picker-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: min(92vw, 720px);
    height: min(88vh, 720px);
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.table-picker-content h3 {
    margin: 0 0 8px;
    text-align: center;
}

.table-picker-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.table-picker-floor {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #fafafa;
    border-radius: 8px;
}

.table-picker-floor svg.floor-svg {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
}

.table-picker-empty {
    text-align: center;
    color: #888;
    margin: auto;
}
