﻿
.directionalGrid {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.directionalGrid .grid-wrap {
    position: relative;
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
}

.directionalGrid .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, minmax(200px, 1fr));
    gap: clamp(8px, 1vw, 16px);
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
    box-sizing: border-box;
}

.directionalGrid .cell {
    background: #ffffff;
    border: 1px solid #e6e8ee;
    border-radius: 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 26px;
    min-height: 200px;
    box-sizing: border-box;
}

    .directionalGrid .cell.center {
        background: #fbfcff;
        border-style: dashed;
        padding-top: 0;
    }

.directionalGrid .dir-label {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    color: #6b7280;
    background: rgba(255,255,255,0.85);
    padding: 2px 6px;
    border-radius: 6px;
    pointer-events: none;
    text-transform: uppercase;
}

.directionalGrid .stack-container {
    display: flex;
    gap: 30px;
}

.directionalGrid .stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.directionalGrid .stack-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .directionalGrid .stack-row label {
        width: 44px;
        text-align: right;
        font-size: 12px;
        color: #374151;
    }

.directionalGrid .stack input[type="number"] {
    width: 50px;
    padding: 4px 2px;
    text-align: center;
}

