/* Room page plan: SVG sketch of a room type's fit-out and its constraint editor. */
.rp {
    margin: 12px 0 16px;
}
.rp-svg {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    max-height: 60vh;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
}
.rp-room {
    fill: var(--white);
    stroke: var(--gray-700);
    stroke-width: 2px;
    vector-effect: non-scaling-stroke;
}
.rp-box {
    fill: var(--blue-dbe8f7);
    stroke: var(--blue-4a73a6);
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
}
.rp-box.rp-openings {
    fill: var(--amber-f6e7b8);
    stroke: var(--amber-a98417);
}
.rp-box.is-overflow {
    stroke: var(--red-c0392b);
    stroke-dasharray: 3 2;
}
.rp-clearance {
    fill: rgba(var(--steel-rgb), 0.14);
    stroke: none;
}
.rp-label,
.rp-rule-label {
    font-size: 0.12px;
    fill: var(--gray-700);
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
}
.rp-dim-label {
    font-size: 0.12px;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    fill: var(--gray-500);
}
.rp-dim-label.is-side {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
.rp-dim-line,
.rp-tick {
    fill: none;
    stroke: var(--gray-500);
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
}
.rp-rule {
    fill: none;
    stroke-width: 1.5px;
    vector-effect: non-scaling-stroke;
}
.rp-rule.is-required {
    stroke: var(--red-c0392b);
}
.rp-rule.is-preferred {
    stroke: var(--green-2c7a4b);
}
.rp-rule.is-met {
    stroke: var(--green-2c7a4b);
}
.rp-rule.is-fail {
    stroke: var(--red-c0392b);
}
.rp-rule[data-rp-kind="elevation"] {
    stroke-width: 2px;
}
.rp-rule[data-rp-kind="dimension"] + .rp-tick,
.rp-room-dim .rp-tick {
    stroke: var(--gray-600);
}
.rp-arrow {
    fill: var(--neutral-555555);
}
.rp-edge {
    fill: transparent;
    touch-action: none;
}
.rp-edge:hover {
    fill: rgba(var(--steel-rgb), 0.35);
}
.rp-edge.is-east,
.rp-edge.is-west {
    cursor: ew-resize;
}
.rp-edge.is-north,
.rp-edge.is-south {
    cursor: ns-resize;
}
.rp-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 10px 0;
}
.rp-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}
.rp-field input {
    width: 96px;
}
.rp-values {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 10px 0;
}
.rp-values dt {
    font-size: 11px;
    color: var(--gray-500);
}
.rp-values dd {
    margin: 0;
}
.rp-heading {
    margin: 12px 0 4px;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--gray-500);
}
.rp-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rp-item,
.rp-rule-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 3px 0;
    border-bottom: 1px solid var(--gray-100);
}
.rp-rule-row.is-required {
    border-left: 3px solid var(--red-c0392b);
    padding-left: 6px;
}
.rp-rule-row.is-preferred {
    border-left: 3px dashed var(--green-2c7a4b);
    padding-left: 6px;
}
.rp-item-name {
    flex: 1 1 160px;
}
.rp-qty {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.rp-mini {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
}
.rp-mini input,
.rp-rule-row input[type="number"],
.rp-qty input[type="number"] {
    width: 64px;
}
.rp-add {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
}
.rp-view-toggle {
    display: inline-flex;
    gap: 0;
    margin: 0 0 10px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
}
.rp-view-btn {
    margin: 0;
    padding: 4px 12px;
    border: 0;
    background: var(--white);
    color: var(--gray-700);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.rp-view-btn + .rp-view-btn {
    border-left: 1px solid var(--gray-200);
}
.rp-view-btn.is-active {
    background: var(--gray-100);
    color: var(--gray-900);
    font-weight: 600;
}
.rp-graph-svg {
    display: block;
    width: 100%;
    height: auto;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
}
.rp-graph-node circle {
    fill: var(--blue-dbe8f7);
    stroke: var(--blue-4a73a6);
    stroke-width: 0.6px;
}
.rp-graph-node.is-openings circle {
    fill: var(--amber-f6e7b8);
    stroke: var(--amber-a98417);
}
.rp-graph-node.is-edge circle,
.rp-graph-node.is-floor circle {
    fill: var(--white);
    stroke: var(--gray-500);
}
.rp-graph-node.is-source circle,
.rp-graph-node.is-target circle {
    stroke: var(--gray-700);
    stroke-width: 1.4px;
}
.rp-graph-label {
    font-size: 3.2px;
    fill: var(--gray-700);
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
}
.rp-graph-label.is-side {
    text-anchor: end;
}
.rp-graph-stroke {
    fill: none;
    stroke: var(--gray-500);
    stroke-width: 0.7px;
}
.rp-graph-stroke.is-met {
    stroke: var(--green-2c7a4b);
}
.rp-graph-stroke.is-fail {
    stroke: var(--red-c0392b);
}
.rp-graph-hit {
    fill: none;
    stroke: transparent;
    stroke-width: 4px;
}
.rp-graph-add,
.rp-graph-inspector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
/* Phones: the plan scales; walls are resized in the fields instead of by dragging. */
@media (max-width: 767px) {
    .rp-edge {
        display: none;
    }
    .rp-svg {
        max-height: 45vh;
    }
}
