/* ====================================================================
   Prime Control - Final Plastics mockup
   Designsysteem: donkerblauw primair, oranje accent
   ==================================================================== */

:root {
    --primary: #1A2A6B;
    --primary-light: #2A3F8F;
    --primary-dark: #121E4F;
    --accent: #F0783C;
    --accent-dark: #D8631F;

    --bg: #F4F5F8;
    --surface: #FFFFFF;
    --surface-alt: #F9FAFB;

    --text: #1F2937;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;

    --border: #E5E7EB;
    --border-dark: #D1D5DB;

    --success: #16A34A;
    --success-bg: #DCFCE7;
    --warning: #F59E0B;
    --warning-bg: #FEF3C7;
    --danger: #DC2626;
    --danger-bg: #FEE2E2;
    --info: #2563EB;
    --info-bg: #DBEAFE;
    --purple: #7C3AED;
    --purple-bg: #EDE9FE;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);

    --radius: 8px;
    --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ====================================================================
   LAYOUT
   ==================================================================== */
.layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 1.25rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-brand h1 {
    font-size: 1.05rem;
    margin: 0 0 0.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.sidebar-brand small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar-nav {
    list-style: none;
    padding: 0.75rem 0;
    margin: 0;
    flex: 1;
}
.sidebar-nav-section {
    padding: 1.25rem 1.5rem 0.4rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
}
.sidebar-nav a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}
.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--accent);
    color: white;
    font-weight: 500;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}
.topbar-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}
.topbar-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.topbar-clock {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.content {
    padding: 1.75rem 2rem;
    flex: 1;
    overflow-y: auto;
}

/* ====================================================================
   KPI STATS BAR
   ==================================================================== */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.kpi {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}
.kpi-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.kpi-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}
.kpi-sub.up { color: var(--success); }
.kpi-sub.down { color: var(--danger); }

/* ====================================================================
   MACHINE TILES
   ==================================================================== */
.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.25rem;
}

.tile {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--border);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.tile.status-running { border-top-color: var(--success); }
.tile.status-idle    { border-top-color: var(--info); }
.tile.status-stopped { border-top-color: var(--text-muted); }
.tile.status-alarm   { border-top-color: var(--danger); }
.tile.status-setup   { border-top-color: var(--accent); }
.tile.status-maintenance { border-top-color: var(--purple); }

.tile-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    gap: 0.5rem;
}
.tile-code {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}
.tile-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.tile-metric {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}
.tile-metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.tile-metric-unit {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.tile-metric-target {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

.tile-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}
.tile-meta-label {
    color: var(--text-light);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tile-meta-value {
    color: var(--text);
    font-weight: 500;
}

.tile-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

/* ====================================================================
   STATUS PILLS
   ==================================================================== */
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
}
.status-running    { background: var(--success-bg); color: var(--success); }
.status-idle       { background: var(--info-bg);    color: var(--info); }
.status-stopped    { background: #F3F4F6;           color: var(--text-muted); }
.status-alarm      { background: var(--danger-bg);  color: var(--danger); }
.status-setup      { background: #FED7AA;           color: var(--accent-dark); }
.status-maintenance{ background: var(--purple-bg);  color: var(--purple); }

.tile-status-pulse.status-running::before { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ====================================================================
   PROGRESS BAR
   ==================================================================== */
.progress {
    height: 6px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
}
.progress-bar.accent { background: var(--accent); }
.progress-bar.success { background: var(--success); }

/* ====================================================================
   CARDS / PANELS
   ==================================================================== */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

/* ====================================================================
   TABLES
   ==================================================================== */
.table-wrapper {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th {
    text-align: left;
    padding: 0.75rem 1.1rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}
.table td {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--surface-alt); }
.table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.table .muted { color: var(--text-muted); }

/* ====================================================================
   BUTTONS
   ==================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary {
    background: white;
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-alt); }
.btn-accent {
    background: var(--accent);
    color: white;
}
.btn-accent:hover { background: var(--accent-dark); }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
.btn-danger { background: var(--danger); color: white; }

/* ====================================================================
   TABS
   ==================================================================== */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}
.tab {
    padding: 0.7rem 1.1rem;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

/* ====================================================================
   MACHINE DETAIL - LAYOUT
   ==================================================================== */
.detail-header {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
}
.detail-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}
.detail-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.detail-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}
.detail-meta-item {
    display: flex;
    flex-direction: column;
}
.detail-meta-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.15rem;
}
.detail-meta-item .value {
    font-weight: 500;
    color: var(--text);
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* Sensor blocks */
.sensors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}
.sensor {
    background: var(--surface-alt);
    border-radius: var(--radius);
    padding: 0.85rem;
    text-align: center;
}
.sensor-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.sensor-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.sensor-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Alarms list */
.alarm-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.alarm-item:last-child { border-bottom: none; }
.alarm-severity {
    width: 4px;
    height: 36px;
    border-radius: 999px;
    background: var(--warning);
}
.alarm-severity.critical { background: var(--danger); }
.alarm-severity.info { background: var(--info); }
.alarm-title {
    font-weight: 500;
    font-size: 0.9rem;
}
.alarm-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Empty states */
.empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* OEE heatmap cell */
.oee-cell {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 56px;
    text-align: center;
}
.oee-excellent { background: #BBF7D0; color: #14532D; }
.oee-good { background: #FEF3C7; color: #92400E; }
.oee-poor { background: #FECACA; color: #7F1D1D; }

/* Severity badges */
.severity {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.severity-info     { background: var(--info-bg);    color: var(--info); }
.severity-warning  { background: var(--warning-bg); color: #92400E; }
.severity-critical { background: var(--danger-bg);  color: var(--danger); }

/* Inline form */
.inline-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.select, .input {
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--text);
}
.select:focus, .input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Live indicator */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 999px;
    margin-right: 0.4rem;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Banner */
.banner {
    background: var(--warning-bg);
    border: 1px solid var(--warning);
    border-left-width: 4px;
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #78350F;
}

@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .detail-grid { grid-template-columns: 1fr; }
}

/* ====================================================================
   FLOORPLAN / Plattegrond
   ==================================================================== */
.floorplan-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.hall-tabs {
    display: flex;
    gap: 0.25rem;
    background: var(--surface);
    padding: 0.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.hall-tab {
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: none;
    background: transparent;
}
.hall-tab.active {
    background: var(--primary);
    color: white;
}
.hall-tab .edit-pencil {
    opacity: 0;
    transition: opacity 0.15s;
    font-size: 0.85rem;
}
.editing .hall-tab .edit-pencil { opacity: 0.7; }
.hall-tab .edit-pencil:hover { opacity: 1; }

.hall-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.hall {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    background-image:
        linear-gradient(to right, #EEF0F4 1px, transparent 1px),
        linear-gradient(to bottom, #EEF0F4 1px, transparent 1px);
    background-size: 20px 20px;
    transform-origin: top left;
}

.hall-machine {
    position: absolute;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 0.75rem;
    box-shadow: var(--shadow);
    user-select: none;
    transition: box-shadow 0.15s, border-color 0.15s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.hall-machine .hall-machine-bottom { margin-top: auto; }
.hall-machine.status-running { border-color: var(--success); }
.hall-machine.status-idle    { border-color: var(--info); }
.hall-machine.status-stopped { border-color: var(--text-muted); }
.hall-machine.status-alarm   { border-color: var(--danger); }
.hall-machine.status-setup   { border-color: var(--accent); }
.hall-machine.status-maintenance { border-color: var(--purple); }

.hall-machine-code {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}
.hall-machine-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    justify-content: space-between;
}
.hall-machine-name .machine-name-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hall-machine .edit-pencil {
    opacity: 0;
    cursor: pointer;
    font-size: 0.85rem;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.editing .hall-machine .edit-pencil { opacity: 0.5; }
.editing .hall-machine .edit-pencil:hover { opacity: 1; }

.hall-machine .rotate-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
    user-select: none;
    color: var(--text-muted);
    z-index: 2;
}
body.editing:not(.wallmode) .hall-machine .rotate-icon { opacity: 0.7; }
body.editing:not(.wallmode) .hall-machine .rotate-icon:hover {
    opacity: 1;
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
body.editing:not(.wallmode) .hall-machine .rotate-icon:active { cursor: grabbing; }

.hall-machine .resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    cursor: nwse-resize;
    opacity: 0;
    transition: opacity 0.15s;
    background:
        linear-gradient(135deg,
            transparent 0%, transparent 55%,
            var(--text-muted) 55%, var(--text-muted) 65%,
            transparent 65%, transparent 75%,
            var(--text-muted) 75%, var(--text-muted) 85%,
            transparent 85%);
    border-bottom-right-radius: var(--radius);
    z-index: 2;
}
body.editing:not(.wallmode) .hall-machine .resize-handle { opacity: 0.55; }
body.editing:not(.wallmode) .hall-machine .resize-handle:hover { opacity: 1; }
.hall-machine-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hall-machine-metric {
    font-size: 0.95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.hall-machine-metric small {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 0.15rem;
}
.hall-machine-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}
.hall-machine-status-dot.status-running { background: var(--success); }
.hall-machine-status-dot.status-idle    { background: var(--info); }
.hall-machine-status-dot.status-stopped { background: var(--text-muted); }
.hall-machine-status-dot.status-alarm   { background: var(--danger); }
.hall-machine-status-dot.status-setup   { background: var(--accent); }
.hall-machine-status-dot.status-maintenance { background: var(--purple); }

.editing .hall-machine {
    cursor: grab;
    box-shadow: 0 0 0 2px rgba(240, 120, 60, 0.15), var(--shadow);
}
.editing .hall-machine:active,
.hall-machine.dragging {
    cursor: grabbing;
    box-shadow: var(--shadow-md);
    z-index: 10;
}
.editing .hall { background-color: #FAFBFD; }

.hall-mode-indicator {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    pointer-events: none;
}

.legend {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.inline-name-edit {
    background: transparent;
    border: none;
    border-bottom: 1px dashed currentColor;
    color: inherit;
    font: inherit;
    padding: 0;
    outline: none;
    min-width: 60px;
}

/* Muren */
.walls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}
.wall {
    stroke: #374151;
    stroke-width: 6;
    stroke-linecap: round;
    fill: none;
    transition: stroke 0.15s, stroke-width 0.15s;
}
.wall.selected {
    stroke: var(--accent);
    stroke-width: 8;
}
.wall-preview {
    stroke: var(--accent);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 10 6;
    fill: none;
    pointer-events: none;
}

/* Muur-tekenmodus */
body.editing.wallmode .hall { cursor: crosshair; }
body.editing.wallmode .walls-overlay { pointer-events: all; }
body.editing.wallmode .walls-overlay .wall { pointer-events: stroke; cursor: pointer; }
body.editing.wallmode .hall-machine { pointer-events: none; opacity: 0.55; }
body.editing.wallmode .hall-machine .edit-pencil { display: none; }

/* Mode toggle (Machines / Muren knoppen) */
.mode-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--surface);
    padding: 0.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-right: 0.5rem;
}
