/* Shared Alarm Response styles — panel chrome + live grid.
   Loaded globally so both the live page (/alarm-response) and the customize
   editor (/alarm-response/customize) render panels identically. */

/* ── Live grid ───────────────────────────────────────────────────────────────
   Fixed full-viewport layout: panels are positioned by saved X/Y/W/H on a
   12-column grid, but rows use 1fr so the grid fills the available height
   exactly (unlike the System Overview dashboard, which scrolls). */
.arp-grid {
    flex: 1 1 0;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(var(--arp-rows, 12), 1fr);
    gap: 3px;
    overflow: hidden;
}

.arp-grid-cell {
    min-width: 0;
    min-height: 0;
    display: flex;
}

/* ── Panel chrome ────────────────────────────────────────────────────────── */
.alarm-response-panel {
    box-sizing: border-box;
    width: 100%;
    background: var(--cas-canvas);
    border: 1px solid var(--cas-line);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.alarm-response-panel--cctv {
    background: var(--cas-console);
    border-color: var(--cas-console);
}

.arp-panel-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid var(--cas-line);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cas-navy-700);
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.arp-panel-header--dark {
    background: var(--cas-console);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

.arp-panel-body {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    position: relative;
    background: var(--cas-surface);
}

.alarm-response-panel--cctv .arp-panel-body {
    background: var(--cas-console);
}

.arp-panel-body--scroll {
    overflow-y: auto;
}
