:root {
  --trt-bg: #080b12;
  --trt-panel: #111827;
  --trt-panel-2: #151d2f;
  --trt-border: #263247;
  --trt-text: #eef4ff;
  --trt-muted: #9aa7bd;
  --trt-orange: #ff7a1a;
  --trt-blue: #1ea7ff;
  --trt-violet: #7b5cff;
  --trt-danger: #ff3f5f;
  --trt-green: #21d07a;
  --trt-yellow: #ffd166;
  --trt-cyan: #38d6ff;
  --trt-glass: rgba(10, 18, 31, 0.78);
  --trt-glow-green: 0 0 16px rgba(33, 208, 122, 0.42);
  --trt-glow-orange: 0 0 16px rgba(255, 122, 26, 0.34);
  --trt-glow-red: 0 0 20px rgba(255, 63, 95, 0.5);
  --trt-glow-yellow: 0 0 18px rgba(255, 209, 102, 0.36);
  --trt-glow-blue: 0 0 16px rgba(30, 167, 255, 0.34);
}

html {
  font-size: 14px;
  min-height: 100%;
  position: relative;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  background: var(--trt-bg);
  color: var(--trt-text);
  margin-bottom: 56px;
}

a {
  color: #78c6ff;
}

.trt-navbar {
  background: #0c111d;
  border-bottom: 1px solid var(--trt-border);
}

.trt-brand {
  color: var(--trt-orange) !important;
  font-weight: 800;
  letter-spacing: 0;
}

.navbar .nav-link {
  color: #d7e3ff;
}

.navbar .nav-link:hover {
  color: var(--trt-orange);
}

.app-shell {
  width: min(100%, 1920px);
  margin: 0 auto;
}

.footer {
  background: #080b12;
  border-top: 1px solid var(--trt-border);
  bottom: 0;
  height: 56px;
  line-height: 56px;
  position: absolute;
  width: 100%;
}

.btn-trt {
  background: var(--trt-orange);
  border: 0;
  color: #1b0f07;
  font-weight: 700;
}

.btn-trt:hover {
  background: #ff9447;
  color: #130903;
}

.dispatch-dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 112px);
}

.dispatch-sidebar {
  background: #0b101b;
  border-right: 1px solid var(--trt-border);
  padding: 24px 18px;
}

.sidebar-title span {
  color: var(--trt-orange);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
}

.sidebar-title strong {
  display: block;
  font-size: 1.35rem;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.sidebar-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--trt-text);
  padding: 10px 12px;
  text-decoration: none;
}

.sidebar-nav a:hover {
  background: var(--trt-panel);
  border-color: var(--trt-border);
}

.sidebar-status {
  align-items: center;
  color: var(--trt-muted);
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.status-dot {
  background: #586174;
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.status-dot.online {
  background: var(--trt-green);
  box-shadow: 0 0 16px rgba(33, 208, 122, 0.7);
}

.dispatch-main {
  padding: 24px;
}

.dashboard-header,
.page-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-header p,
.page-toolbar p {
  color: var(--trt-muted);
  margin: 0;
}

h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
}

.live-clock {
  background: var(--trt-panel);
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  color: var(--trt-muted);
  padding: 10px 14px;
}

.stats-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.stat-tile {
  background: var(--trt-panel);
  border: 1px solid var(--trt-border);
  border-left: 4px solid var(--trt-orange);
  border-radius: 8px;
  padding: 16px;
}

.stat-tile span {
  color: var(--trt-muted);
  display: block;
}

.stat-tile strong {
  display: block;
  font-size: 2rem;
  line-height: 1.2;
}

.stat-tile.emergency {
  border-left-color: var(--trt-danger);
}

.stat-tile.hospital {
  border-left-color: var(--trt-blue);
}

.map-workspace {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 580px;
}

.map-panel {
  background: #0f1726;
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

#dispatchMap {
  height: 100%;
  min-height: 580px;
  width: 100%;
}

.radio-telemetry-map-page {
  padding-bottom: 24px;
}

.radio-telemetry-map-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.radio-map-low-battery {
  border-left-color: var(--trt-yellow);
}

.radio-telemetry-map-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 640px;
}

.radio-telemetry-map-panel {
  background: #0f1726;
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  min-height: 640px;
  overflow: hidden;
  position: relative;
}

#radioTelemetryMap {
  height: 100%;
  min-height: 640px;
  width: 100%;
}

.radio-telemetry-map-side {
  background: var(--trt-panel);
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.radio-telemetry-map-side h2 {
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.radio-telemetry-map-list {
  display: grid;
  gap: 10px;
  max-height: 580px;
  overflow: auto;
  padding-right: 2px;
}

.radio-telemetry-map-row {
  background: var(--trt-panel-2);
  border: 1px solid var(--trt-border);
  border-left: 4px solid var(--trt-blue);
  border-radius: 8px;
  color: var(--trt-text);
  cursor: pointer;
  display: block;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.radio-telemetry-map-row:hover {
  border-color: rgba(30, 167, 255, 0.68);
  box-shadow: var(--trt-glow-blue);
}

.radio-telemetry-map-row strong,
.radio-telemetry-map-row span,
.radio-telemetry-map-row small {
  display: block;
}

.radio-telemetry-map-row span {
  color: var(--trt-muted);
}

.radio-telemetry-map-row small {
  color: #7f8ca5;
}

.radio-telemetry-popup {
  min-width: 220px;
}

.dmr-monitor-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dmr-talkgroup-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dmr-talkgroup-card {
  border-left-color: var(--trt-blue);
}

.dmr-talkgroup-card strong {
  color: #f5f9ff;
  font-size: 1.05rem;
}

.dmr-talkgroup-live {
  border-left-color: var(--trt-orange);
  box-shadow: var(--trt-glow-orange);
}

.dmr-routing-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.dmr-routing-form label {
  color: var(--trt-muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 6px;
}

.dmr-routing-form .form-select {
  background-color: #0d1422;
  border-color: var(--trt-border);
  color: var(--trt-text);
}

.dmr-route-overview {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dmr-route-card {
  background: var(--trt-panel);
  border: 1px solid var(--trt-border);
  border-left: 4px solid var(--trt-blue);
  border-radius: 8px;
  padding: 14px;
}

.dmr-route-card h3 {
  color: #f6fbff;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.dmr-route-card dl {
  display: grid;
  gap: 7px 12px;
  grid-template-columns: 110px minmax(0, 1fr);
  margin: 0;
}

.dmr-route-card dt {
  color: var(--trt-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.dmr-route-card dd {
  color: var(--trt-text);
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dmr-route-row-allowed {
  box-shadow: inset 3px 0 0 rgba(33, 208, 122, 0.88);
}

.dmr-inbound-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dmr-inbound-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dmr-inbound-card,
.dmr-inbound-telemetry {
  background: var(--trt-panel);
  border: 1px solid var(--trt-border);
  border-left: 4px solid var(--trt-blue);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.dmr-inbound-card h3,
.dmr-inbound-telemetry h3 {
  color: #f6fbff;
  font-size: 0.9rem;
  font-weight: 900;
  margin: 0;
}

.dmr-inbound-card label,
.dmr-inbound-telemetry label {
  color: var(--trt-muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 6px;
}

.dmr-inbound-card .form-select,
.dmr-inbound-telemetry .form-select,
.dmr-inbound-telemetry .form-control {
  background-color: #0d1422;
  border-color: var(--trt-border);
  color: var(--trt-text);
}

.dmr-inbound-telemetry {
  align-items: end;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
}

.dmr-inbound-telemetry-header {
  align-items: center;
  display: flex;
  gap: 10px;
  grid-column: 1 / -1;
  justify-content: space-between;
}

@media (max-width: 992px) {
  .dmr-routing-form,
  .dmr-route-overview,
  .dmr-inbound-grid,
  .dmr-inbound-telemetry,
  .dmr-inbound-summary {
    grid-template-columns: 1fr;
  }
}

.map-control-panel {
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid rgba(38, 50, 71, 0.92);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
  display: flex;
  gap: 6px;
  margin: 10px;
  padding: 6px;
}

.map-control-panel button {
  background: #0d1320;
  border: 1px solid var(--trt-border);
  border-radius: 6px;
  color: var(--trt-text);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 9px;
}

.map-control-panel button:hover,
.map-control-panel button.active {
  background: var(--trt-orange);
  border-color: var(--trt-orange);
  color: #1b0f07;
}

.map-hospital-card {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(9, 17, 30, 0.96), rgba(13, 31, 52, 0.9));
  border: 1px solid rgba(30, 167, 255, 0.42);
  border-left: 3px solid #1ea7ff;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34), 0 0 22px rgba(30, 167, 255, 0.18);
  color: #eef6ff;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1.2fr) minmax(0, 2fr) auto;
  left: 14px;
  max-width: calc(100% - 28px);
  padding: 10px 12px;
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 4;
}

.map-hospital-card[hidden] {
  display: none;
}

.map-hospital-card-main strong,
.map-hospital-card-main span,
.map-hospital-card-stats small,
.map-hospital-card-stats b {
  display: block;
}

.map-hospital-card-main strong {
  color: #f6fbff;
  font-size: 0.98rem;
  font-weight: 900;
}

.map-hospital-card-main span,
.map-hospital-card-stats small {
  color: var(--trt-muted);
  font-size: 0.74rem;
}

.map-hospital-card-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.map-hospital-card-stats span {
  background: rgba(5, 12, 22, 0.6);
  border: 1px solid rgba(159, 215, 255, 0.16);
  border-radius: 7px;
  padding: 6px 8px;
}

.map-hospital-card-stats b {
  color: #9fd7ff;
  font-size: 0.85rem;
  font-weight: 900;
}

.map-hospital-card-close {
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.58);
  border-radius: 7px;
  color: #ffd8bf;
  font-size: 0.74rem;
  font-weight: 800;
  min-height: 30px;
  padding: 5px 10px;
}

.case-location-picker,
.dispatch-location-summary {
  background:
    linear-gradient(180deg, rgba(13, 20, 34, 0.96), rgba(8, 15, 26, 0.94));
  border: 1px solid rgba(38, 50, 71, 0.9);
  border-radius: 8px;
  padding: 10px;
}

.emergency-create-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.emergency-create-card {
  background: rgba(9, 17, 30, 0.72);
  border: 1px solid rgba(38, 50, 71, 0.95);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.emergency-create-card h2 {
  color: #9fd7ff;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 2px;
  text-transform: uppercase;
}

.emergency-create-card.span-2 {
  grid-column: span 2;
}

.emergency-location-summary {
  margin-top: 2px;
}

.emergency-map-panel {
  margin-top: 12px;
}

.case-location-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.case-location-header strong,
.dispatch-location-summary strong {
  color: #eef6ff;
  display: block;
  font-weight: 900;
}

.case-location-header span,
.case-location-header small,
.dispatch-location-summary span {
  color: var(--trt-muted);
  display: block;
  font-size: 0.82rem;
}

.case-location-header small.location-error,
#dispatchLocationSummary.location-error,
#emergencyLocationSummary.location-error {
  color: var(--trt-danger);
  font-weight: 900;
}

#emergencyCaseMap {
  border: 1px solid rgba(38, 50, 71, 0.95);
  border-radius: 8px;
  height: 420px;
  min-height: 320px;
  overflow: hidden;
  width: 100%;
}

.call-center-map {
  border: 1px solid rgba(38, 50, 71, 0.95);
  border-radius: 8px;
  height: 460px;
  min-height: 320px;
  overflow: hidden;
  width: 100%;
}

.map-config-warning {
  align-items: center;
  background: #111827;
  color: var(--trt-muted);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: absolute;
  text-align: center;
}

.unit-panel,
.edit-shell,
.details-shell,
.delete-shell {
  background: var(--trt-panel);
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  padding: 18px;
}

.unit-panel h2 {
  font-size: 1.1rem;
  margin: 18px 0 12px;
}

.unit-panel h2:first-child {
  margin-top: 0;
}

.panel-title-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.unit-list {
  display: grid;
  gap: 10px;
}

.unit-row {
  background: var(--trt-panel-2);
  border: 1px solid var(--trt-border);
  border-left: 4px solid var(--trt-orange);
  border-radius: 8px;
  padding: 10px;
}

.unit-row strong,
.unit-row span {
  display: block;
}

.unit-row span {
  color: var(--trt-muted);
}

.unit-row small {
  color: #7f8ca5;
  display: block;
}

.event-stream {
  display: grid;
  gap: 8px;
}

.compact-event-stream {
  max-height: 178px;
  overflow: hidden;
}

.event-row {
  align-items: center;
  background: rgba(13, 20, 34, 0.82);
  border: 1px solid rgba(38, 50, 71, 0.9);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: 42px 104px minmax(0, 1fr);
  max-height: 48px;
  min-height: 34px;
  opacity: 1;
  padding: 6px 8px;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease, max-height 0.55s ease, padding 0.55s ease, border-width 0.55s ease;
}

.event-row-info {
  border-left: 3px solid var(--trt-blue);
}

.event-row-success {
  border-left: 3px solid var(--trt-green);
}

.event-row-warning {
  border-left: 3px solid var(--trt-yellow);
}

.event-row-danger,
.event-row-sos {
  border-left: 3px solid var(--trt-danger);
}

.event-row-ptt {
  border-left: 3px solid var(--trt-orange);
}

.event-row-sms {
  border-left: 3px solid var(--trt-cyan);
}

.event-row-private {
  border-left: 3px solid var(--trt-violet);
}

.event-row-sos {
  animation: sosPulse 1s ease-in-out infinite;
  background: rgba(36, 8, 17, 0.82);
}

.event-row-enter {
  animation: eventRowIn 0.2s ease-out;
}

.event-row-stale {
  opacity: 0.68;
}

.event-row-fading {
  border-width: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-bottom: 0;
  padding-top: 0;
  transform: translateY(8px);
}

.event-row time,
.event-row strong,
.event-row span,
.event-row small {
  display: block;
  line-height: 1.12;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-row time {
  color: #aecaeb;
  font-size: 0.67rem;
  font-weight: 850;
}

.event-row strong {
  color: #eaf4ff;
  font-size: 0.7rem;
  font-weight: 950;
}

.event-row span,
.event-row small {
  color: var(--trt-muted);
  font-size: 0.66rem;
}

.event-panel-title {
  margin-top: 18px;
}

.event-panel-title h2 {
  margin: 0;
}

.event-panel-title a {
  color: #78c6ff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.event-panel-title a:hover {
  color: var(--trt-orange);
}

@keyframes eventRowIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comms-panel {
  background: #0d1422;
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.comms-panel strong {
  color: var(--trt-blue);
}

.voice-panel {
  gap: 10px;
}

.voice-channel-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 92px minmax(0, 1fr);
}

.voice-channel-row .form-label {
  color: #eef6ff;
  font-size: 0.82rem;
  font-weight: 850;
  margin: 0;
  white-space: nowrap;
}

.voice-channel-row .form-select {
  min-width: 0;
}

.roip-status-strip {
  align-items: center;
  background: rgba(6, 16, 30, 0.72);
  border: 1px solid rgba(30, 167, 255, 0.26);
  border-radius: 8px;
  color: #9ec9ed;
  display: grid;
  font-size: 0.72rem;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 6px 8px;
}

.roip-status-strip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roip-status-strip strong {
  color: #1ea7ff;
}

.roip-owner-status {
  background: rgba(6, 16, 30, 0.78);
  border: 1px solid rgba(33, 208, 122, 0.28);
  border-radius: 8px;
  color: #cfe4fb;
  display: grid;
  font-size: 0.7rem;
  gap: 5px 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 7px 8px;
}

.roip-owner-status strong {
  color: #54f2a8;
  font-size: 0.76rem;
  grid-column: 1 / -1;
  text-transform: uppercase;
}

.roip-owner-status span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roip-owner-status.roip-owner-busy {
  border-color: rgba(255, 75, 92, 0.62);
  box-shadow: 0 0 14px rgba(255, 75, 92, 0.16);
}

.roip-owner-status.roip-owner-busy strong {
  color: #ff8aa0;
}

.roip-rx-badge {
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 999px;
  color: #aebbd0 !important;
  display: inline-flex;
  font-size: 0.64rem;
  justify-content: center;
  min-width: 48px;
  padding: 3px 7px;
}

.roip-rx-badge.rx-active {
  border-color: rgba(30, 167, 255, 0.8);
  box-shadow: 0 0 14px rgba(30, 167, 255, 0.28);
  color: #8bd9ff !important;
}

.roip-control-panel {
  background: rgba(7, 13, 23, 0.72);
  border: 1px solid rgba(38, 50, 71, 0.92);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 8px;
}

.roip-volume-control {
  align-items: center;
  color: #9ec9ed;
  display: grid;
  font-size: 0.72rem;
  gap: 7px;
  grid-template-columns: 74px minmax(0, 1fr) 44px;
  margin: 0;
}

.roip-volume-control input {
  accent-color: var(--trt-orange);
  min-width: 0;
}

.roip-volume-control strong {
  color: #ffb36d;
  font-size: 0.68rem;
  text-align: right;
}

.roip-meter-row {
  align-items: center;
  color: #9ec9ed;
  display: grid;
  font-size: 0.68rem;
  gap: 8px;
  grid-template-columns: 74px minmax(0, 1fr);
}

.roip-meter {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.roip-meter i {
  background: linear-gradient(90deg, #1ea7ff, #21d07a, #ffb347);
  display: block;
  height: 100%;
  transition: width 90ms linear;
  width: 0%;
}

.roip-event-log {
  display: grid;
  gap: 4px;
  max-height: 88px;
  overflow-y: auto;
}

.roip-event-row {
  align-items: center;
  background: rgba(13, 24, 40, 0.82);
  border: 1px solid rgba(38, 50, 71, 0.82);
  border-radius: 6px;
  color: #cfe4fb;
  display: grid;
  font-size: 0.68rem;
  gap: 6px;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 4px 6px;
}

.roip-event-row time {
  color: #ffb36d;
  font-weight: 800;
}

.roip-event-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.voice-control-row {
  display: grid;
  gap: 8px;
  grid-template-columns: auto auto minmax(0, 1fr);
}

#voiceMicActivateButton,
.mic-activate-hidden,
.legacy-private-call-panel,
.legacy-notification-list,
.voice-status-hidden {
  display: none !important;
}

.voice-control-row #voiceConnectButton {
  border-color: rgba(30, 167, 255, 0.5);
  border-radius: 999px;
  color: #79d6ff;
  font-size: 0.68rem;
  font-weight: 900;
  min-width: 86px;
  padding: 5px 10px;
}

.voice-control-row .private-call-panel {
  align-self: stretch;
  min-width: 0;
}

.voice-channel-state {
  border: 1px solid var(--trt-border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 76px;
  padding: 4px 9px;
  text-align: center;
}

.voice-channel-state.channel-free {
  background: rgba(33, 208, 122, 0.14);
  border-color: rgba(33, 208, 122, 0.55);
  color: var(--trt-green);
}

.voice-channel-state.channel-busy {
  background: rgba(255, 75, 92, 0.14);
  border-color: rgba(255, 75, 92, 0.6);
  color: #ff6b7a;
}

.voice-channel-state.channel-tx {
  background: rgba(255, 122, 26, 0.16);
  border-color: rgba(255, 122, 26, 0.7);
  color: var(--trt-orange);
}

.voice-channel-state.channel-rx {
  background: rgba(30, 167, 255, 0.15);
  border-color: rgba(30, 167, 255, 0.6);
  color: var(--trt-blue);
}

.voice-panel.voice-tx {
  border-color: var(--trt-orange);
  box-shadow: 0 0 22px rgba(255, 122, 26, 0.25);
}

.voice-panel.voice-rx {
  border-color: var(--trt-blue);
  box-shadow: 0 0 22px rgba(30, 167, 255, 0.22);
}

.voice-panel.voice-busy {
  border-color: #ff4b5c;
  box-shadow: 0 0 22px rgba(255, 75, 92, 0.22);
}

.voice-status-grid {
  display: grid;
  gap: 5px 10px;
  grid-template-columns: 105px 1fr;
}

.voice-status-grid span,
.voice-panel small {
  color: var(--trt-muted);
}

.voice-users-list {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.voice-user-row {
  background: #121c2f;
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  color: var(--trt-text);
  padding: 7px 9px;
}

.voice-user-row strong,
.voice-user-row span,
.voice-user-row small {
  display: block;
}

.voice-user-row span,
.voice-user-row small {
  color: var(--trt-muted);
}

.voice-user-row.voice-user-tx {
  border-color: var(--trt-orange);
  animation: txPulse 1s ease-in-out infinite;
}

.voice-user-row.voice-user-self {
  border-color: rgba(30, 167, 255, 0.55);
}

.voice-user-actions,
.voice-emergency-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.voice-user-action {
  background: rgba(255, 122, 26, 0.14);
  border: 1px solid rgba(255, 122, 26, 0.55);
  border-radius: 6px;
  color: #ffd1ad;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 8px;
}

.voice-user-action:disabled {
  border-color: #3f4a5d;
  color: #79869a;
  opacity: 0.7;
}

.voice-emergency-panel {
  background: rgba(255, 75, 92, 0.09);
  border: 1px solid rgba(255, 75, 92, 0.58);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.voice-emergency-panel[hidden] {
  display: none;
}

.voice-emergency-title {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.voice-emergency-title strong {
  color: #ff6b7a;
  letter-spacing: 0.04em;
}

.voice-emergency-title span {
  color: var(--trt-muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.voice-emergency-alerts {
  display: grid;
  gap: 7px;
}

.voice-emergency-alert {
  background: #1b121a;
  border: 1px solid rgba(255, 75, 92, 0.6);
  border-left: 4px solid #ff4b5c;
  border-radius: 8px;
  color: var(--trt-text);
  padding: 8px 9px;
}

.voice-emergency-alert strong,
.voice-emergency-alert span,
.voice-emergency-alert small {
  display: block;
}

.voice-emergency-alert span,
.voice-emergency-alert small {
  color: #d9a8ae;
}

.voice-emergency-alert.voice-emergency-ack {
  background: #111827;
  border-color: rgba(33, 208, 122, 0.5);
  border-left-color: var(--trt-green);
  opacity: 0.82;
}

.private-call-panel {
  align-items: center;
  background: rgba(30, 167, 255, 0.1);
  border: 1px solid rgba(30, 167, 255, 0.58);
  border-radius: 999px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 5px 7px;
}

.private-call-panel[hidden] {
  display: none;
}

.private-call-panel strong,
.private-call-panel span {
  display: block;
}

.private-call-panel strong {
  color: #9bd8ff;
  font-size: 0.68rem;
  line-height: 1.05;
}

.private-call-panel span {
  color: var(--trt-muted);
  font-size: 0.6rem;
  line-height: 1.05;
}

.voice-control-row .private-call-panel strong + span + span {
  display: none;
}

.voice-control-row .private-call-actions {
  flex-wrap: nowrap;
  gap: 4px;
}

.voice-control-row .private-call-actions .voice-user-action {
  border-radius: 999px;
  font-size: 0.62rem;
  padding: 4px 7px;
  white-space: nowrap;
}

@keyframes txPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(255, 122, 26, 0);
  }
  50% {
    box-shadow: 0 0 18px rgba(255, 122, 26, 0.45);
  }
}

.voice-log {
  background: #080d17;
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  max-height: 190px;
  overflow: auto;
  padding: 8px;
}

.voice-log-row {
  color: #a8b5ce;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.76rem;
  line-height: 1.25;
}

.trt-notification-stack {
  display: grid;
  gap: 10px;
  position: fixed;
  right: 18px;
  top: 78px;
  width: min(360px, calc(100vw - 36px));
  z-index: 1080;
}

.trt-notification {
  background: #111827;
  border: 1px solid var(--trt-border);
  border-left: 4px solid var(--trt-orange);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  padding: 12px;
}

.trt-notification strong,
.trt-notification span {
  display: block;
}

.trt-notification span {
  color: var(--trt-muted);
}

.ptt-button {
  aspect-ratio: 1;
  background: #172338;
  border: 2px solid var(--trt-orange);
  border-radius: 50%;
  color: var(--trt-orange);
  font-weight: 900;
  width: 58px;
}

.ptt-button.transmitting {
  background: var(--trt-orange);
  color: #1b0f07;
  box-shadow: 0 0 22px rgba(255, 122, 26, 0.65);
}

.ptt-button:disabled {
  border-color: #586174;
  color: #7b879d;
  cursor: not-allowed;
  opacity: 0.62;
}

.mobile-test-shell {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 620px;
  min-height: 100vh;
  padding: 16px;
}

.mobile-ptt-body {
  background: #050812;
  margin: 0;
}

.mobile-test-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.mobile-test-header h1 {
  font-size: 1.28rem;
}

.mobile-test-header span,
.mobile-status-grid span {
  color: var(--trt-muted);
  display: block;
  font-size: 0.82rem;
}

.mobile-status-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-status-grid div,
.mobile-voice-card {
  background: var(--trt-panel);
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  padding: 12px;
}

.mobile-status-grid strong {
  color: var(--trt-blue);
  display: block;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.mobile-voice-card {
  display: grid;
  gap: 14px;
}

.mobile-actions {
  justify-content: space-between;
}

.mobile-ptt-button {
  font-size: 1.35rem;
  justify-self: center;
  width: min(58vw, 220px);
}

.mobile-voice-log {
  max-height: 260px;
}

.map-popup {
  color: #111827;
  display: grid;
  gap: 3px;
  min-width: 190px;
}

.map-popup strong,
.map-popup span {
  display: block;
}

.dispatch-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.trt-create-panel {
  background: rgba(9, 17, 30, 0.72);
  border: 1px solid rgba(38, 50, 71, 0.95);
  border-radius: 8px;
  padding: 10px;
}

.trt-create-panel[hidden] {
  display: none !important;
}

.dispatch-table {
  background: var(--trt-panel);
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  overflow: hidden;
}

.table-dark {
  --bs-table-bg: var(--trt-panel);
  --bs-table-border-color: var(--trt-border);
}

.form-control,
.form-select {
  background-color: #0d1320;
  border-color: var(--trt-border);
  color: var(--trt-text);
}

.form-control:focus,
.form-select:focus {
  background-color: #0d1320;
  border-color: var(--trt-blue);
  box-shadow: 0 0 0 0.2rem rgba(30, 167, 255, 0.2);
  color: var(--trt-text);
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span-2 {
  grid-column: span 2;
}

.form-check {
  align-self: end;
}

.role-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.role-check {
  align-items: center;
  background: #0d1320;
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  display: flex;
  gap: 9px;
  padding: 10px 12px;
}

.role-check input {
  accent-color: var(--trt-orange);
}

.role-chip {
  background: rgba(30, 167, 255, 0.14);
  border: 1px solid rgba(30, 167, 255, 0.42);
  border-radius: 999px;
  color: #9bd8ff;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 2px;
  padding: 4px 9px;
}

.entity-title {
  align-items: center;
  display: flex;
  gap: 10px;
}

.entity-icon {
  flex: 0 0 auto;
  height: 34px;
  object-fit: contain;
  width: 34px;
}

.entity-icon-lg {
  height: 48px;
  width: 48px;
}

.icon-preview-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.icon-picker-toggle {
  width: 100%;
}

.icon-picker-panel {
  background: #0d1422;
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  padding: 12px;
}

.icon-picker-panel[hidden] {
  display: none;
}

.icon-option-button {
  align-items: center;
  background: #0d1320;
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  color: var(--trt-text);
  display: flex;
  gap: 10px;
  min-height: 54px;
  padding: 9px;
  text-align: left;
}

.icon-option-button:hover,
.icon-option-button.selected {
  border-color: var(--trt-orange);
  box-shadow: 0 0 0 2px rgba(255, 122, 26, 0.16);
}

.icon-option-button img {
  height: 38px;
  object-fit: contain;
  width: 38px;
}

.frap-summary,
.hospital-recommendations {
  background: #0d1422;
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
}

.frap-summary strong,
.frap-summary span,
.frap-summary small {
  display: block;
}

.frap-summary small,
.hospital-recommendation-row small,
.hospital-recommendation-row span {
  color: var(--trt-muted);
}

.hospital-recommendation-row {
  align-items: center;
  background: #121c2f;
  border: 1px solid var(--trt-border);
  border-left: 4px solid var(--trt-blue);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px;
}

.hospital-recommendation-row strong,
.hospital-recommendation-row span,
.hospital-recommendation-row small {
  display: block;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.settings-guidance {
  background: #0d1422;
  border: 1px solid var(--trt-border);
  border-left: 4px solid var(--trt-blue);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 12px;
}

.settings-guidance span {
  color: var(--trt-muted);
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 9px;
}

.status-ok {
  background: rgba(33, 208, 122, 0.16);
  color: #8ff0bd;
}

.status-off {
  background: rgba(154, 167, 189, 0.16);
  color: #c3cada;
}

.status-warn {
  background: rgba(255, 176, 32, 0.16);
  color: #ffd18a;
}

.status-danger {
  background: rgba(255, 82, 82, 0.16);
  color: #ff9c9c;
}

.status-info {
  background: rgba(30, 167, 255, 0.16);
  color: #9fd7ff;
}

.dispatch-details {
  display: grid;
  gap: 10px 16px;
  grid-template-columns: 180px 1fr;
  margin: 0;
}

.details-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.details-grid div {
  background: rgba(7, 18, 34, 0.74);
  border: 1px solid rgba(82, 120, 164, 0.32);
  border-radius: 8px;
  padding: 10px 12px;
}

.details-grid dt {
  color: #8fa3bf;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.details-grid dd {
  color: #f5f9ff;
  font-weight: 750;
  margin: 0;
  overflow-wrap: anywhere;
}

.grid-span-2 {
  grid-column: 1 / -1;
}

.dispatch-details dt {
  color: var(--trt-muted);
}

.case-detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
}

.case-map {
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
}

.case-map-shell {
  min-height: 360px;
  position: relative;
}

.medical-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-stats .stat-tile strong {
  font-size: 1.35rem;
}

.panel-heading {
  font-size: 1.1rem;
  margin: 22px 0 12px;
}

.dispatch-console {
  display: grid;
  gap: 16px;
  grid-template-columns: 390px minmax(0, 1fr) 360px;
  min-height: calc(100vh - 132px);
  padding: 24px;
}

.dispatch-create-panel,
.dispatch-map-panel,
.dispatch-ops-panel {
  background: var(--trt-panel);
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  padding: 18px;
}

.cad-intake-panel {
  background: var(--trt-panel);
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 14px;
}

.cad-intake-header,
.cad-intake-source-strip,
.cad-intake-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.cad-intake-header h2 {
  font-size: 1.05rem;
  margin: 0;
}

.cad-intake-header span,
.cad-intake-source-strip,
.cad-intake-table small {
  color: var(--trt-muted);
}

.cad-intake-stats,
.cad-intake-source-strip span {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.cad-intake-stats strong,
.cad-intake-source-strip strong {
  color: var(--trt-text);
}

.cad-intake-urgent {
  color: #ff6868 !important;
}

.cad-intake-filters {
  justify-content: flex-start;
}

.cad-intake-filters .form-select,
.cad-intake-filters .form-control {
  max-width: 180px;
}

.cad-intake-table-wrap {
  max-height: 360px;
  overflow: auto;
}

.cad-intake-table {
  margin-bottom: 0;
}

.cad-intake-table th {
  color: var(--trt-muted);
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cad-priority-pill {
  border: 1px solid var(--trt-border);
  border-radius: 999px;
  display: inline-flex;
  font-size: .75rem;
  padding: 2px 8px;
}

.intake-priority-high .cad-priority-pill {
  background: rgba(255, 104, 104, .14);
  border-color: rgba(255, 104, 104, .45);
  color: #ffb4b4;
}

.intake-priority-mid .cad-priority-pill {
  background: rgba(255, 209, 102, .12);
  border-color: rgba(255, 209, 102, .38);
  color: #ffe0a3;
}

.intake-priority-low .cad-priority-pill {
  background: rgba(33, 208, 122, .1);
  border-color: rgba(33, 208, 122, .34);
  color: #9df3c4;
}

.cad-intake-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.cad-intake-actions form {
  margin: 0;
}

.cad-intake-note-form {
  display: inline-grid;
  gap: 4px;
  grid-template-columns: minmax(80px, 140px) auto;
}

.dispatch-map-panel {
  padding: 0;
  overflow: hidden;
  position: relative;
}

#dispatchCreateMap {
  height: 100%;
  min-height: 720px;
  width: 100%;
}

.dispatch-ops-panel h2 {
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.ops-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.ops-card {
  background: #0d1422;
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.ops-card span,
.ops-card small {
  color: var(--trt-muted);
}

.compact-form {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.address-search-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.events-page {
  padding: 24px;
}

.events-filter-bar {
  align-items: center;
  background: var(--trt-panel);
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px;
}

.event-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-filter-tab {
  background: #0d1422;
  border: 1px solid var(--trt-border);
  border-radius: 999px;
  color: var(--trt-text);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 12px;
  text-decoration: none;
}

.event-filter-tab.active,
.event-filter-tab:hover {
  background: var(--trt-orange);
  border-color: var(--trt-orange);
  color: #1b0f07;
}

.event-limit-form {
  align-items: center;
  color: var(--trt-muted);
  display: flex;
  gap: 8px;
  min-width: 170px;
}

.event-search-form {
  align-items: center;
  display: flex;
  flex: 1 1 320px;
  gap: 8px;
  justify-content: flex-end;
  min-width: 240px;
}

.event-search-form .form-control {
  max-width: 360px;
}

.events-list {
  display: grid;
  gap: 10px;
}

.event-card {
  align-items: center;
  background: var(--trt-panel);
  border: 1px solid var(--trt-border);
  border-left: 4px solid var(--trt-orange);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  padding: 12px;
}

.event-card-time strong,
.event-card-time span,
.event-card-title strong,
.event-card-title span,
.event-card-body small {
  display: block;
}

.event-card-time span,
.event-card-title span,
.event-card-body p,
.event-card-body small {
  color: var(--trt-muted);
}

.event-card-body p {
  margin: 5px 0;
}

.event-card-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-card-title strong,
.event-card-title span {
  display: inline;
}

.event-badge {
  background: rgba(30, 167, 255, 0.14);
  border: 1px solid rgba(30, 167, 255, 0.42);
  border-radius: 999px;
  color: #9bd8ff !important;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 8px;
}

.empty-state {
  background: var(--trt-panel);
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  color: var(--trt-muted);
  padding: 18px;
}

.live-side-panel {
  max-height: calc(100vh - 224px);
  overflow-y: auto;
}

/* CAD/AVL compact operator layout */
body {
  overflow-x: hidden;
}

.trt-navbar {
  min-height: 44px;
}

.trt-navbar .container-fluid {
  flex-wrap: nowrap;
  gap: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

.trt-navbar .navbar-brand {
  font-size: 0.92rem;
  margin-right: 8px;
  white-space: nowrap;
}

.trt-navbar .navbar-nav {
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.trt-navbar .nav-link {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 7px 8px;
  white-space: nowrap;
}

.dispatch-dashboard {
  grid-template-columns: 1fr;
  min-height: calc(100vh - 88px);
}

.dispatch-sidebar {
  display: none;
}

.dispatch-main {
  padding: 12px;
}

.dashboard-header {
  margin-bottom: 10px;
}

.dashboard-header h1 {
  font-size: 1.22rem;
}

.stats-grid {
  gap: 8px;
  grid-template-columns: repeat(8, minmax(110px, 1fr));
  margin-bottom: 10px;
}

.stat-tile {
  padding: 9px 10px;
}

.stat-tile span {
  font-size: 0.72rem;
  white-space: nowrap;
}

.stat-tile strong {
  font-size: 1.18rem;
}

.map-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  min-height: calc(100vh - 190px);
}

.dispatch-map-stack {
  display: grid;
  gap: 10px;
  grid-template-rows: minmax(360px, auto) auto;
  min-width: 0;
}

#dispatchMap {
  height: clamp(360px, calc(100vh - 392px), 620px);
  min-height: 360px;
}

.dashboard-bottom-panels {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  min-width: 0;
}

.ops-feed-panel {
  background:
    linear-gradient(180deg, rgba(14, 24, 39, 0.96), rgba(8, 15, 26, 0.94)),
    radial-gradient(circle at top left, rgba(30, 167, 255, 0.12), transparent 34%);
  border: 1px solid rgba(38, 50, 71, 0.9);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  min-width: 0;
  padding: 10px;
}

.ops-feed-panel .event-panel-title {
  margin: 0 0 8px;
}

.ops-feed-panel h2 {
  color: #dbe9fb;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 0;
  text-transform: uppercase;
}

.ops-feed-panel a {
  color: #8ed6ff;
  font-size: 0.68rem;
  font-weight: 850;
  text-decoration: none;
}

.ops-feed-list,
.ops-event-stream {
  display: grid;
  gap: 6px;
  max-height: 226px;
  overflow: hidden;
}

.ops-emergency-row {
  align-items: center;
  background: rgba(13, 20, 34, 0.82);
  border: 1px solid rgba(38, 50, 71, 0.9);
  border-left: 3px solid var(--trt-yellow);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: 28px minmax(72px, 0.42fr) minmax(0, 1fr) 42px;
  min-height: 42px;
  padding: 6px 8px;
}

.ops-emergency-row.priority-high {
  border-left-color: var(--trt-danger);
}

.ops-emergency-row.priority-mid {
  border-left-color: var(--trt-orange);
}

.ops-emergency-row.priority-low {
  border-left-color: var(--trt-green);
}

.ops-priority-dot {
  align-items: center;
  background: var(--trt-orange);
  border-radius: 999px;
  color: #160c05;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  height: 24px;
  justify-content: center;
  line-height: 1;
  width: 24px;
}

.priority-high .ops-priority-dot {
  background: var(--trt-danger);
  color: #fff;
  box-shadow: var(--trt-glow-red);
}

.priority-low .ops-priority-dot {
  background: var(--trt-green);
  color: #04150d;
  box-shadow: var(--trt-glow-green);
}

.ops-emergency-code,
.ops-emergency-detail {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.ops-emergency-code strong,
.ops-emergency-detail span {
  color: #eef6ff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-emergency-code small,
.ops-emergency-detail small {
  color: var(--trt-muted);
  font-size: 0.62rem;
  font-weight: 750;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-emergency-row time {
  color: #b6c8df;
  font-size: 0.66rem;
  font-weight: 850;
  text-align: right;
}

.dashboard-hidden-lists,
.live-side-panel > h2 {
  display: none;
}

.live-side-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 190px);
  overflow: hidden;
  padding: 10px;
}

.voice-panel {
  order: -20;
  position: sticky;
  top: 0;
  z-index: 5;
}

.radio-list-panel {
  background:
    linear-gradient(180deg, rgba(13, 20, 34, 0.95), rgba(7, 13, 23, 0.94));
  border: 1px solid rgba(38, 50, 71, 0.9);
  border-radius: 8px;
  display: grid;
  flex: 1 1 auto;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
}

.radio-list-panel > div:first-child {
  min-height: 0;
}

.voice-actions .btn {
  font-size: 0.72rem;
  padding: 4px 7px;
}

.ptt-button {
  aspect-ratio: auto;
  align-self: stretch;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 122, 26, 0.34), transparent 35%),
    linear-gradient(180deg, #263754, #132138);
  border: 2px solid var(--trt-orange);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 16px rgba(255, 122, 26, 0.22);
  color: var(--trt-orange);
  font-size: 1.62rem;
  font-weight: 950;
  letter-spacing: 0;
  min-height: 118px;
  width: 100%;
}

.ptt-button.transmitting {
  animation: pttRectPulse 0.82s ease-in-out infinite;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 209, 102, 0.4), transparent 38%),
    linear-gradient(180deg, #ff7a1a, #d94a08);
  color: #1b0f07;
}

@keyframes pttRectPulse {
  0%, 100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 rgba(255, 122, 26, 0);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 26px rgba(255, 122, 26, 0.72), 0 0 0 3px rgba(255, 122, 26, 0.18);
  }
}

.voice-status-grid {
  font-size: 0.78rem;
  grid-template-columns: 78px 1fr;
}

.private-call-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.voice-notification-list {
  display: grid;
  gap: 6px;
}

.ops-notification-list {
  margin-bottom: 6px;
}

.voice-notification {
  background: #0d1828;
  border: 1px solid rgba(30, 167, 255, 0.45);
  border-left: 4px solid var(--trt-blue);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25), var(--trt-glow-blue);
  padding: 7px 9px;
  transition: opacity 0.8s ease, transform 0.8s ease, max-height 0.8s ease, padding 0.8s ease, margin 0.8s ease;
}

.voice-notification strong,
.voice-notification span,
.voice-notification small {
  display: block;
}

.voice-notification span,
.voice-notification small {
  color: var(--trt-muted);
}

.voice-notification-sos {
  animation: sosPulse 0.9s ease-in-out infinite;
  background: #240811;
  border-color: rgba(255, 63, 95, 0.9);
  border-left-color: var(--trt-danger);
}

.voice-notification-fading {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-bottom: 0;
  padding-top: 0;
  transform: translateY(8px);
}

.voice-emergency-alert {
  animation: sosPulse 1s ease-in-out infinite;
  box-shadow: 0 0 22px rgba(255, 63, 95, 0.28);
}

.voice-emergency-alert.voice-emergency-ack {
  animation: none;
}

@keyframes sosPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(255, 63, 95, 0);
  }
  50% {
    box-shadow: 0 0 22px rgba(255, 63, 95, 0.58);
  }
}

.radio-card-tactical {
  background:
    linear-gradient(135deg, rgba(18, 29, 48, 0.96), rgba(9, 16, 29, 0.92)),
    radial-gradient(circle at top right, rgba(30, 167, 255, 0.13), transparent 34%);
  border: 1px solid rgba(88, 97, 116, 0.62);
  border-left: 4px solid #586174;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  padding: 8px;
  position: relative;
}

.radio-card-tactical::before {
  background: linear-gradient(90deg, transparent, rgba(255, 122, 26, 0.38), transparent);
  content: "";
  height: 1px;
  left: 10px;
  opacity: 0.52;
  position: absolute;
  right: 10px;
  top: 0;
}

.radio-card-tactical.radio-status-online {
  border-color: rgba(33, 208, 122, 0.72);
  box-shadow: var(--trt-glow-green), inset 0 0 0 1px rgba(33, 208, 122, 0.12);
}

.radio-card-tactical.radio-status-offline {
  border-color: rgba(114, 126, 146, 0.48);
  filter: saturate(0.72);
  opacity: 0.7;
}

.radio-card-tactical.radio-status-tx {
  animation: txPulse 0.82s ease-in-out infinite;
  border-color: rgba(255, 63, 95, 0.92);
  box-shadow: var(--trt-glow-red), inset 0 0 0 1px rgba(255, 63, 95, 0.16);
}

.radio-card-tactical.radio-status-rx,
.radio-card-tactical.radio-busy {
  border-color: rgba(255, 209, 102, 0.9);
  box-shadow: var(--trt-glow-yellow), inset 0 0 0 1px rgba(255, 209, 102, 0.12);
}

.radio-card-tactical.radio-status-sos,
.radio-card-tactical.radio-sos {
  animation: sosPulse 0.72s ease-in-out infinite;
  border-color: rgba(255, 63, 95, 1);
  box-shadow: var(--trt-glow-red), 0 0 32px rgba(255, 63, 95, 0.24);
}

.radio-card-tactical.radio-direct-tx {
  animation: txPulse 0.82s ease-in-out infinite;
  border-color: rgba(255, 122, 26, 0.95);
  box-shadow: var(--trt-glow-orange), 0 0 22px rgba(123, 92, 255, 0.22);
}

.radio-card-header {
  align-items: start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.radio-title-wrap {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
}

.radio-unit-name {
  color: #f6fbff;
  display: block;
  font-size: 1.02rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 12px rgba(30, 167, 255, 0.16);
  text-transform: uppercase;
  white-space: nowrap;
}

.radio-self-badge {
  background: rgba(30, 167, 255, 0.14);
  border: 1px solid rgba(30, 167, 255, 0.48);
  border-radius: 999px;
  color: #a9e0ff;
  flex: 0 0 auto;
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
  padding: 3px 5px;
}

.radio-status-pill {
  border: 1px solid currentColor;
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 5px 7px;
  text-transform: uppercase;
}

.radio-status-pill-online {
  color: var(--trt-green);
  box-shadow: var(--trt-glow-green);
}

.radio-status-pill-offline {
  color: #8a96aa;
}

.radio-status-pill-tx {
  color: var(--trt-danger);
  box-shadow: var(--trt-glow-red);
}

.radio-status-pill-rx {
  color: var(--trt-yellow);
  box-shadow: var(--trt-glow-yellow);
}

.radio-status-pill-sos {
  color: #ff7b8f;
  box-shadow: var(--trt-glow-red);
}

.radio-card-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.radio-card-secondary {
  color: #dce8f8;
  display: flex;
  font-size: 0.76rem;
  font-weight: 850;
  gap: 6px;
  line-height: 1.2;
  min-width: 0;
}

.radio-card-secondary span:not(.radio-card-separator) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-card-separator {
  color: rgba(255, 122, 26, 0.76);
  flex: 0 0 auto;
}

.radio-card-line {
  align-items: center;
  color: var(--trt-muted);
  display: flex;
  font-size: 0.72rem;
  gap: 6px;
  line-height: 1.25;
  min-width: 0;
}

.radio-card-info-line {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.radio-card-info-stack {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.radio-card-line span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-line-icon {
  background: rgba(30, 167, 255, 0.09);
  border: 1px solid rgba(30, 167, 255, 0.22);
  border-radius: 4px;
  color: #8ed6ff;
  flex: 0 0 auto;
  font-size: 0.56rem;
  font-weight: 950;
  line-height: 1;
  min-width: 25px;
  padding: 3px 4px;
  text-align: center;
}

.map-dark-toggle {
  align-items: center;
  background: rgba(7, 13, 23, 0.88);
  border: 1px solid rgba(30, 167, 255, 0.34);
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  margin: 10px;
  padding: 6px 8px;
}

.map-dark-toggle input {
  accent-color: var(--trt-blue);
  height: 13px;
  margin: 0;
  width: 13px;
}

.map-dark-toggle-icon {
  color: #c9ddff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: var(--trt-glow-blue);
}

.radio-card-metrics {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.radio-battery-vertical {
  flex-direction: column;
  gap: 3px;
  justify-self: end;
}

.radio-battery-vertical .radio-battery-shell {
  align-items: end;
  height: 26px;
  justify-content: stretch;
  width: 13px;
}

.radio-battery-vertical .radio-battery-shell::after {
  border-radius: 2px 2px 0 0;
  height: 3px;
  left: 3px;
  right: auto;
  top: -5px;
  width: 7px;
}

.radio-battery-vertical .radio-battery-fill {
  align-self: end;
  width: 100%;
}

.radio-battery-gauge {
  align-items: center;
  color: var(--trt-muted);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  font-weight: 950;
}

.radio-battery-shell {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid currentColor;
  border-radius: 3px;
  display: inline-flex;
  height: 13px;
  padding: 2px;
  position: relative;
  width: 31px;
}

.radio-battery-shell::after {
  background: currentColor;
  border-radius: 0 2px 2px 0;
  content: "";
  height: 7px;
  position: absolute;
  right: -4px;
  top: 2px;
  width: 3px;
}

.radio-battery-fill {
  background: currentColor;
  border-radius: 2px;
  display: block;
  min-width: 0;
  transition: width 0.2s ease;
}

.radio-battery-text,
.radio-duration {
  font-size: 0.72rem;
  line-height: 1;
}

.radio-duration {
  color: #ffb894;
  font-weight: 900;
}

.battery-ok {
  color: var(--trt-green) !important;
}

.battery-mid {
  color: var(--trt-yellow) !important;
}

.battery-low {
  color: var(--trt-danger) !important;
}

.battery-unknown {
  color: #8793a6 !important;
}

.radio-card-actions {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 2px;
}

.radio-action-button,
.voice-user-action.radio-action-button {
  align-items: center;
  background: linear-gradient(180deg, rgba(20, 32, 52, 0.96), rgba(9, 15, 27, 0.96));
  border: 1px solid rgba(30, 167, 255, 0.42);
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 rgba(30, 167, 255, 0);
  color: #d9efff;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  font-size: 0.58rem;
  font-weight: 950;
  gap: 0;
  justify-content: center;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
  min-height: 31px;
  min-width: 0;
  padding: 5px 4px;
  text-align: center;
  text-transform: uppercase;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.radio-action-button:hover,
.voice-user-action.radio-action-button:hover {
  border-color: rgba(255, 122, 26, 0.74);
  box-shadow: var(--trt-glow-orange);
  color: #ffd8bc;
  transform: translateY(-1px);
}

.radio-action-button:disabled,
.voice-user-action.radio-action-button:disabled {
  border-color: rgba(89, 100, 121, 0.46);
  box-shadow: none;
  color: #6f7c91;
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.radio-action-icon {
  color: var(--trt-cyan);
  display: block;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.radio-action-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.radio-action-call {
  border-color: rgba(255, 122, 26, 0.58);
}

.radio-action-call .radio-action-icon {
  color: #ffb36f;
}

.radio-action-sms .radio-action-icon {
  color: #8ed6ff;
}

.radio-action-locate .radio-action-icon {
  color: #b9a8ff;
}

.radio-action-ptt {
  border-color: rgba(255, 122, 26, 0.78);
  color: #ffd1ad;
}

.radio-action-ptt:not(:disabled):active {
  box-shadow: var(--trt-glow-orange), 0 0 0 2px rgba(255, 122, 26, 0.2);
}

.radio-action-ptt.direct-transmitting {
  background: linear-gradient(180deg, #ff7a1a, #b92e09);
  border-color: rgba(255, 209, 102, 0.9);
  box-shadow: var(--trt-glow-orange), 0 0 0 2px rgba(255, 122, 26, 0.18);
  color: #180d05;
}

.radio-map-toggle {
  position: relative;
}

.radio-map-toggle input {
  appearance: none;
  border: 1px solid rgba(33, 208, 122, 0.58);
  border-radius: 3px;
  flex: 0 0 auto;
  height: 13px;
  margin: 0;
  width: 13px;
}

.radio-map-toggle input:checked {
  background: var(--trt-green);
  box-shadow: var(--trt-glow-green);
}

.radio-map-toggle input:focus-visible,
.radio-action-button:focus-visible,
.voice-user-action.radio-action-button:focus-visible {
  outline: 2px solid rgba(30, 167, 255, 0.75);
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .radio-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .radio-unit-name {
    font-size: 0.94rem;
  }
}

.private-message-modal {
  align-items: center;
  background: rgba(2, 6, 12, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 1090;
}

.private-message-modal[hidden] {
  display: none;
}

.private-message-dialog {
  background: var(--trt-panel);
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  max-width: 460px;
  padding: 14px;
  width: min(100%, 460px);
}

.private-message-header,
.private-message-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.private-message-header strong,
.private-message-header span,
.private-message-row strong,
.private-message-row span,
.private-message-row small {
  display: block;
}

.private-message-header span,
.private-message-row small {
  color: var(--trt-muted);
}

.private-message-history {
  display: grid;
  gap: 6px;
  max-height: 160px;
  overflow: auto;
}

.private-message-row {
  background: #0d1422;
  border: 1px solid var(--trt-border);
  border-radius: 8px;
  padding: 7px;
}

.dispatch-console {
  gap: 12px;
  grid-template-columns: minmax(330px, 380px) minmax(0, 1fr) minmax(300px, 340px);
  min-height: calc(100vh - 82px);
  padding: 12px;
}

#dispatchCreateMap {
  min-height: calc(100vh - 106px);
}

@media (max-width: 1100px) {
  .dispatch-dashboard,
  .map-workspace,
  .radio-telemetry-map-layout,
  .dispatch-console,
  .case-detail-grid {
    grid-template-columns: 1fr;
  }

  .dispatch-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--trt-border);
  }

  .live-side-panel {
    max-height: none;
  }

  .dashboard-bottom-panels {
    grid-template-columns: 1fr;
  }

  #dispatchMap {
    height: 430px;
  }

  .radio-telemetry-map-panel,
  #radioTelemetryMap {
    min-height: 480px;
  }

  .radio-telemetry-map-list {
    max-height: none;
  }

  .dmr-talkgroup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .dashboard-header,
  .page-toolbar,
  .dispatch-filter,
  .events-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-grid,
  .dmr-talkgroup-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }
}

/* TRT compact operations polish */
body {
  margin-bottom: 36px;
}

.app-shell > main.pb-3 {
  padding-bottom: 0.5rem !important;
}

.footer {
  font-size: 0.75rem;
  height: 36px;
  line-height: 36px;
}

.trt-navbar .nav-link {
  border: 1px solid transparent;
  border-radius: 6px;
  color: #dceaff;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.trt-navbar .nav-link:hover,
.trt-navbar .nav-link:focus {
  background: rgba(255, 122, 26, 0.12);
  border-color: rgba(255, 122, 26, 0.5);
  box-shadow: 0 0 14px rgba(255, 122, 26, 0.18);
  color: #ff9a45 !important;
}

.trt-navbar .nav-link.active,
.trt-navbar .nav-link[aria-current="page"],
.trt-navbar .nav-link.active-menu-item {
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.24), rgba(30, 167, 255, 0.08));
  border-color: rgba(255, 122, 26, 0.72);
  box-shadow: inset 0 -2px 0 var(--trt-orange), 0 0 14px rgba(255, 122, 26, 0.22);
  color: #ffd166 !important;
}

.dashboard-header,
.page-toolbar {
  background:
    linear-gradient(180deg, rgba(8, 11, 18, 0.96), rgba(8, 11, 18, 0.88)),
    radial-gradient(circle at top left, rgba(30, 167, 255, 0.12), transparent 36%);
  border-bottom: 1px solid rgba(38, 50, 71, 0.7);
  margin-bottom: 10px;
  padding: 8px 0 10px;
  position: sticky;
  top: 44px;
  z-index: 25;
}

.dashboard-header h1,
.page-toolbar h1,
.edit-shell > h1,
.dispatch-create-panel > h1 {
  color: #f6fbff;
  font-size: clamp(1.24rem, 1.5vw, 1.7rem);
  letter-spacing: 0;
  line-height: 1.08;
  text-shadow: 0 0 18px rgba(30, 167, 255, 0.18);
  transition: color 0.16s ease, text-shadow 0.16s ease;
}

.dashboard-header p,
.page-toolbar p {
  color: #9fd7ff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 3px;
}

.dashboard-header:hover h1,
.page-toolbar:hover h1,
.edit-shell:hover > h1,
.dispatch-create-panel:hover > h1 {
  color: #ff9a45;
  text-shadow: 0 0 18px rgba(255, 122, 26, 0.28);
}

.page-toolbar > .btn,
.page-toolbar > a.btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 34px;
  min-width: 136px;
}

.page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.page-actions .btn {
  min-width: 136px;
}

.table-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.table-actions form {
  display: inline-flex;
  margin: 0;
}

.table-actions .btn {
  min-width: 78px;
}

.btn-trt,
.btn-outline-light,
.btn-outline-info,
.btn-outline-warning,
.btn-outline-danger,
.btn-outline-primary {
  border-radius: 6px;
  font-weight: 800;
}

.dispatch-filter {
  gap: 8px;
  margin-bottom: 10px;
}

.dispatch-filter .form-control,
.dispatch-filter .form-select,
.dispatch-filter .btn {
  min-height: 34px;
  padding-bottom: 0.35rem;
  padding-top: 0.35rem;
}

.form-label {
  color: #dceaff;
  font-size: 0.82rem;
  font-weight: 750;
  margin-bottom: 4px;
}

.form-grid {
  gap: 10px 14px;
}

.form-control,
.form-select {
  min-height: 36px;
}

.dispatch-table {
  max-height: calc(100vh - 174px);
  overflow: auto;
}

.dispatch-table table {
  margin-bottom: 0;
}

.dispatch-table thead th {
  background: #101827;
  box-shadow: inset 0 -1px 0 var(--trt-border);
  position: sticky;
  top: 0;
  z-index: 4;
}

.dispatch-table td,
.dispatch-table th {
  padding-bottom: 0.55rem;
  padding-top: 0.55rem;
}

section.dispatch-main {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 80px);
  min-height: 0;
  overflow: hidden;
  padding: 12px;
}

section.dispatch-main .dispatch-table {
  min-height: 0;
}

.events-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 80px);
  min-height: 0;
  overflow: hidden;
  padding: 12px 18px;
}

.events-filter-bar {
  flex: 0 0 auto;
  margin-bottom: 10px;
  padding: 8px 10px;
}

.events-list {
  min-height: 0;
  overflow-y: auto;
  padding-right: 3px;
}

.event-card {
  padding: 9px 12px;
}

.stat-tile {
  min-height: 58px;
  padding: 7px 9px;
}

.stat-tile span {
  font-size: 0.68rem;
}

.stat-tile strong {
  font-size: 1.05rem;
}

.form-actions {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.98) 18%);
  border-top: 1px solid rgba(38, 50, 71, 0.82);
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 12px;
}

.form-actions .btn {
  min-width: 112px;
}

.edit-shell,
.details-shell,
.delete-shell {
  margin: 12px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding: 14px;
}

/* Refinamiento solicitado: activo elegante, sin recuadros fijos */
.trt-navbar .nav-link {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.trt-navbar .nav-link:hover,
.trt-navbar .nav-link:focus {
  color: #ff9a45 !important;
  text-shadow: 0 0 12px rgba(255, 122, 26, 0.58);
}

.trt-navbar .nav-link.active,
.trt-navbar .nav-link[aria-current="page"],
.trt-navbar .nav-link.active-menu-item {
  color: #ffd166 !important;
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.72);
}

.dashboard-header,
.page-toolbar {
  background: transparent;
  border-bottom: 0;
  position: static;
  z-index: auto;
}

.dashboard-header:hover h1,
.page-toolbar:hover h1,
.edit-shell:hover > h1,
.dispatch-create-panel:hover > h1 {
  color: #f6fbff;
  text-shadow: 0 0 18px rgba(30, 167, 255, 0.18);
}

.dispatch-table {
  max-height: none;
  overflow: visible;
}

.dispatch-table thead th {
  position: static;
}

section.dispatch-main,
.events-page {
  height: auto;
  overflow: visible;
}

.events-list {
  overflow-y: visible;
}

.voice-users-list {
  isolation: isolate;
  position: relative;
  z-index: 2;
}

.radio-card-tactical {
  background:
    linear-gradient(180deg, #111d30 0%, #081321 100%) !important;
  isolation: isolate;
  position: relative;
  z-index: 1;
}

.voice-log-container {
  display: none;
}

/* TRT UI Framework v1: cabeceras y acciones uniformes */
.trt-page,
section.trt-page,
section.dispatch-main.trt-page,
.events-page.trt-page {
  display: block;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 12px;
}

.trt-page-header,
.dashboard-header,
.page-toolbar {
  align-items: center;
  background: transparent;
  border: 0;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 0 10px;
  min-height: 46px;
  padding: 0;
  position: static;
  z-index: auto;
}

.trt-page-header > div:first-child,
.dashboard-header > div:first-child,
.page-toolbar > div:first-child {
  min-width: 0;
}

.trt-page-title,
.trt-page-header h1,
.dashboard-header h1,
.page-toolbar h1,
.edit-shell > h1,
.dispatch-create-panel > h1 {
  color: #f6fbff;
  font-size: clamp(1.24rem, 1.5vw, 1.7rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
  text-shadow: 0 0 18px rgba(30, 167, 255, 0.18);
}

.trt-page-subtitle,
.trt-page-header p,
.dashboard-header p,
.page-toolbar p {
  color: #9fd7ff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 3px 0 0;
}

.trt-page-header:hover h1,
.dashboard-header:hover h1,
.page-toolbar:hover h1 {
  color: #f6fbff;
  text-shadow: 0 0 18px rgba(30, 167, 255, 0.18);
}

.trt-page-actions,
.page-actions,
.dashboard-header > .trt-page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-left: auto;
}

.trt-page-actions .btn,
.page-actions .btn,
.trt-action-button,
.trt-back-button,
.page-toolbar > .btn,
.page-toolbar > a.btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 34px;
  min-width: 136px;
  white-space: nowrap;
}

.trt-action-button {
  background: var(--trt-orange);
  border-color: rgba(255, 122, 26, 0.82);
  color: #1b0f07;
  font-weight: 800;
}

.trt-back-button {
  border-color: rgba(159, 215, 255, 0.52);
  color: #d8ecff;
}

.trt-page-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.trt-page-content {
  min-width: 0;
}

.trt-live-clock,
.live-clock {
  align-items: center;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid rgba(159, 215, 255, 0.26);
  border-radius: 8px;
  color: #bfe2ff;
  display: inline-flex;
  font-variant-numeric: tabular-nums;
  justify-content: center;
  min-height: 34px;
  min-width: 174px;
  padding: 7px 12px;
  white-space: nowrap;
}

.trt-page .dispatch-filter,
.dispatch-main .dispatch-filter,
.events-page .events-filter-bar {
  margin-top: 0;
}

.trt-page .dispatch-table,
.dispatch-main .dispatch-table {
  margin-top: 0;
}

@media (max-width: 768px) {
  .emergency-create-grid {
    grid-template-columns: 1fr;
  }

  .emergency-create-card.span-2 {
    grid-column: auto;
  }

  .trt-page,
  section.trt-page,
  section.dispatch-main.trt-page,
  .events-page.trt-page {
    padding: 10px;
  }

  .trt-page-header,
  .dashboard-header,
  .page-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-hospital-card {
    grid-template-columns: 1fr;
  }

  .map-hospital-card-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trt-page-actions,
  .page-actions,
  .dashboard-header > .trt-page-actions {
    justify-content: flex-start;
    margin-left: 0;
    width: 100%;
  }

  .trt-page-actions .btn,
  .page-actions .btn,
  .trt-action-button,
  .trt-back-button,
  .page-toolbar > .btn,
  .page-toolbar > a.btn {
    min-width: 0;
  }
}

.map-pulse-marker {
  height: 58px;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translate(-50%, -50%);
  width: 58px;
  z-index: 1;
}

.map-pulse-marker::before,
.map-pulse-marker::after {
  border-radius: 999px;
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: scale(0.28);
}

.map-pulse-marker::after {
  animation-delay: 0.82s;
}

.map-pulse-emergency::before,
.map-pulse-emergency::after {
  animation: trtMapPulseRed 1.65s ease-out infinite;
  border: 2px solid rgba(255, 48, 84, 0.95);
  box-shadow:
    0 0 12px rgba(255, 48, 84, 0.95),
    0 0 28px rgba(255, 48, 84, 0.6),
    inset 0 0 14px rgba(255, 48, 84, 0.55);
}

.map-pulse-avl-emergency {
  height: 48px;
  width: 48px;
}

.map-pulse-avl-emergency::before,
.map-pulse-avl-emergency::after {
  animation: trtMapPulseBlue 1.75s ease-out infinite;
  border: 2px solid rgba(34, 190, 255, 0.92);
  box-shadow:
    0 0 10px rgba(34, 190, 255, 0.9),
    0 0 24px rgba(34, 190, 255, 0.52),
    inset 0 0 12px rgba(34, 190, 255, 0.42);
}

.map-pulse-avl-fire-emergency {
  height: 50px;
  width: 50px;
}

.map-pulse-avl-fire-emergency::before,
.map-pulse-avl-fire-emergency::after {
  animation: trtMapPulseOrange 1.7s ease-out infinite;
  border: 2px solid rgba(255, 122, 26, 0.96);
  box-shadow:
    0 0 10px rgba(255, 122, 26, 0.95),
    0 0 26px rgba(255, 122, 26, 0.58),
    inset 0 0 13px rgba(255, 122, 26, 0.46);
}

@keyframes trtMapPulseRed {
  0% {
    opacity: 0.98;
    transform: scale(0.26);
  }

  72% {
    opacity: 0.5;
  }

  100% {
    opacity: 0;
    transform: scale(1.85);
  }
}

@keyframes trtMapPulseBlue {
  0% {
    opacity: 0.92;
    transform: scale(0.32);
  }

  70% {
    opacity: 0.44;
  }

  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes trtMapPulseOrange {
  0% {
    opacity: 0.95;
    transform: scale(0.3);
  }

  70% {
    opacity: 0.5;
  }

  100% {
    opacity: 0;
    transform: scale(1.78);
  }
}

.global-sos-widget {
  margin: 0 8px;
  position: relative;
  z-index: 1050;
}

.global-sos-button {
  align-items: center;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid rgba(255, 122, 26, 0.48);
  border-radius: 8px;
  color: #ffd4ad;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  gap: 6px;
  min-height: 32px;
  padding: 5px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.global-sos-active .global-sos-button {
  border-color: rgba(255, 122, 26, 0.96);
  box-shadow: 0 0 16px rgba(255, 122, 26, 0.38);
  color: #fff3e8;
}

.global-sos-new .global-sos-button {
  animation: trtSosBell 0.86s ease-in-out infinite;
}

.global-sos-icon {
  color: #ff7a1a;
  letter-spacing: 0.04em;
}

.global-sos-count {
  align-items: center;
  background: #ff7a1a;
  border-radius: 999px;
  color: #1a0d03;
  display: inline-flex;
  font-size: 0.68rem;
  justify-content: center;
  min-width: 20px;
  padding: 1px 6px;
}

.global-sos-dropdown {
  background: rgba(8, 13, 24, 0.98);
  border: 1px solid rgba(255, 122, 26, 0.5);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.46), 0 0 24px rgba(255, 122, 26, 0.18);
  color: #eef4ff;
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(440px, 92vw);
}

.global-sos-header {
  align-items: center;
  border-bottom: 1px solid rgba(255, 122, 26, 0.2);
  display: flex;
  justify-content: space-between;
  padding: 2px 2px 8px;
}

.global-sos-header strong {
  color: #ffb36d;
}

.global-sos-header span,
.global-sos-empty {
  color: #9fb2cc;
  font-size: 0.78rem;
}

.global-sos-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.global-sos-item {
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.14), rgba(17, 24, 39, 0.96));
  border: 1px solid rgba(255, 122, 26, 0.4);
  border-left: 4px solid #ff7a1a;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 9px;
}

.global-sos-status-new {
  box-shadow: inset 0 0 18px rgba(255, 122, 26, 0.1);
}

.global-sos-item strong,
.global-sos-item span,
.global-sos-item small {
  display: block;
}

.global-sos-item strong {
  color: #fff3e8;
  font-size: 0.85rem;
}

.global-sos-item span {
  color: #dceaff;
  font-size: 0.78rem;
}

.global-sos-item small {
  color: #9fb2cc;
  font-size: 0.7rem;
}

.global-sos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.global-sos-actions button {
  background: rgba(8, 13, 24, 0.88);
  border: 1px solid rgba(159, 215, 255, 0.32);
  border-radius: 6px;
  color: #dceaff;
  font-size: 0.68rem;
  font-weight: 800;
  min-height: 28px;
  padding: 4px 7px;
  text-transform: uppercase;
}

.global-sos-actions button[data-global-sos-action="convert"] {
  border-color: rgba(255, 122, 26, 0.8);
  color: #ffb36d;
}

.global-sos-actions button[data-global-sos-action="close"] {
  border-color: rgba(255, 63, 95, 0.58);
  color: #ff9bad;
}

.trt-global-notification-stack {
  display: grid;
  gap: 8px;
  position: fixed;
  right: 16px;
  top: 58px;
  width: min(380px, calc(100vw - 32px));
  z-index: 2200;
}

.trt-global-notification {
  background: rgba(8, 13, 24, 0.96);
  border: 1px solid rgba(30, 167, 255, 0.4);
  border-left: 4px solid var(--trt-blue);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
  color: #eef4ff;
  padding: 10px 12px;
}

.trt-global-notification-sos {
  animation: trtSosBell 0.9s ease-in-out infinite;
  border-color: rgba(255, 122, 26, 0.78);
  border-left-color: #ff7a1a;
  box-shadow: 0 0 24px rgba(255, 122, 26, 0.28), 0 16px 40px rgba(0, 0, 0, 0.42);
}

.trt-global-notification strong,
.trt-global-notification span {
  display: block;
}

.trt-global-notification strong {
  color: #fff3e8;
  font-size: 0.86rem;
}

.trt-global-notification span {
  color: #c7d8ee;
  font-size: 0.78rem;
}

.map-pulse-sos-pending {
  height: 64px;
  width: 64px;
}

.map-pulse-sos-pending::before,
.map-pulse-sos-pending::after {
  animation: trtMapPulseSos 0.96s ease-out infinite;
  border: 2px solid rgba(255, 122, 26, 0.98);
  box-shadow:
    0 0 12px rgba(255, 122, 26, 0.95),
    0 0 30px rgba(255, 122, 26, 0.72),
    inset 0 0 16px rgba(255, 122, 26, 0.58);
}

@keyframes trtSosBell {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 122, 26, 0.18);
    transform: translateY(0);
  }

  50% {
    box-shadow: 0 0 24px rgba(255, 122, 26, 0.58);
    transform: translateY(-1px);
  }
}

@keyframes trtMapPulseSos {
  0% {
    opacity: 1;
    transform: scale(0.22);
  }

  68% {
    opacity: 0.48;
  }

  100% {
    opacity: 0;
    transform: scale(2.05);
  }
}

.roip-stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.roip-command-grid {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.45fr);
  margin-bottom: 14px;
}

.roip-stats-grid-compact {
  margin-bottom: 0;
}

.roip-stat-card {
  border-left: 3px solid var(--trt-orange);
}

.roip-current-channel {
  background: linear-gradient(180deg, rgba(11, 25, 45, 0.96), rgba(5, 14, 28, 0.98));
  border: 1px solid rgba(82, 120, 164, 0.5);
  border-left: 4px solid rgba(0, 255, 144, 0.74);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  min-height: 100%;
  padding: 16px;
}

.roip-current-channel.is-busy {
  border-left-color: rgba(255, 63, 95, 0.92);
  box-shadow: 0 0 22px rgba(255, 63, 95, 0.16), 0 18px 38px rgba(0, 0, 0, 0.22);
}

.roip-current-header {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.roip-current-header span:first-child {
  color: #90a7c4;
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.roip-current-header strong {
  color: #f8fbff;
  display: block;
  font-size: 1.35rem;
  line-height: 1.15;
  margin-top: 2px;
}

.roip-owner-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.roip-owner-grid div {
  background: rgba(7, 18, 34, 0.74);
  border: 1px solid rgba(82, 120, 164, 0.32);
  border-radius: 8px;
  min-width: 0;
  padding: 9px 10px;
}

.roip-owner-grid dt {
  color: #8fa3bf;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.roip-owner-grid dd {
  color: #f5f9ff;
  font-size: 0.92rem;
  font-weight: 850;
  margin: 0;
  overflow-wrap: anywhere;
}

.roip-tx-active-card.is-active {
  border-color: rgba(255, 122, 26, 0.82);
  box-shadow: 0 0 18px rgba(255, 122, 26, 0.18);
}

.roip-table {
  overflow-x: auto;
}

.roip-table table {
  min-width: 1320px;
}

.roip-row-online {
  box-shadow: inset 3px 0 0 rgba(0, 255, 144, 0.75);
}

.roip-row-offline {
  opacity: 0.72;
  box-shadow: inset 3px 0 0 rgba(113, 128, 150, 0.75);
}

.roip-row-tx {
  box-shadow: inset 3px 0 0 rgba(255, 63, 95, 0.9), 0 0 18px rgba(255, 63, 95, 0.12);
}

.roip-badge {
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  color: #dceaff;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  min-width: 46px;
  justify-content: center;
  padding: 5px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.roip-badge-online,
.roip-badge-good {
  border-color: rgba(0, 255, 144, 0.72);
  color: #51ffb1;
  box-shadow: 0 0 12px rgba(0, 255, 144, 0.16);
}

.roip-badge-neutral {
  border-color: rgba(148, 163, 184, 0.36);
  color: #aebbd0;
}

.roip-badge-offline {
  border-color: rgba(255, 63, 95, 0.82);
  color: #ff8aa0;
  box-shadow: 0 0 12px rgba(255, 63, 95, 0.18);
}

.roip-badge-cor,
.roip-badge-regular {
  border-color: rgba(255, 122, 26, 0.78);
  color: #ffb36d;
  box-shadow: 0 0 12px rgba(255, 122, 26, 0.16);
}

.roip-badge-channel {
  border-color: rgba(30, 167, 255, 0.68);
  color: #9fd7ff;
  box-shadow: 0 0 12px rgba(30, 167, 255, 0.14);
}

.roip-badge-link-good {
  border-color: rgba(30, 167, 255, 0.72);
  color: #7fcfff;
  box-shadow: 0 0 12px rgba(30, 167, 255, 0.16);
}

.roip-badge-ptt,
.roip-badge-bad,
.roip-badge-busy,
.roip-badge-error {
  border-color: rgba(255, 63, 95, 0.8);
  color: #ff8aa0;
  box-shadow: 0 0 12px rgba(255, 63, 95, 0.18);
}

.roip-badge-warning {
  border-color: rgba(255, 176, 32, 0.76);
  color: #ffd18a;
  box-shadow: 0 0 12px rgba(255, 176, 32, 0.16);
}

.roip-badge-info {
  border-color: rgba(30, 167, 255, 0.58);
  color: #9fd7ff;
}

.roip-profile-summary {
  display: grid;
  gap: 4px;
  min-width: 170px;
}

.roip-profile-summary strong,
.roip-table td > strong {
  color: #f8fbff;
  display: block;
  font-size: 0.86rem;
  line-height: 1.18;
}

.roip-profile-summary small,
.roip-table td > small,
.roip-tx-source {
  color: #91a6c2;
  display: block;
  font-size: 0.72rem;
  line-height: 1.22;
  margin-top: 2px;
}

.roip-quality-cell {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-width: 145px;
}

.roip-quality-bar {
  background: rgba(9, 20, 37, 0.92);
  border: 1px solid rgba(82, 120, 164, 0.38);
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
  width: 54px;
}

.roip-quality-fill {
  display: block;
  height: 100%;
}

.roip-quality-good {
  background: linear-gradient(90deg, #18e58b, #42c7ff);
  box-shadow: 0 0 10px rgba(24, 229, 139, 0.4);
}

.roip-quality-regular {
  background: linear-gradient(90deg, #ffb020, #ff7a1a);
  box-shadow: 0 0 10px rgba(255, 176, 32, 0.36);
}

.roip-quality-bad {
  background: linear-gradient(90deg, #ff385c, #ff7a1a);
  box-shadow: 0 0 10px rgba(255, 56, 92, 0.38);
}

.roip-quality-neutral {
  background: rgba(148, 163, 184, 0.45);
}

.roip-history-panel {
  margin-top: 16px;
}

.roip-split-panels {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

.roip-history-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.roip-history-header h2 {
  color: #f8fbff;
  font-size: 1rem;
  font-weight: 850;
  margin: 0;
}

.roip-history-header p {
  color: #94a8c6;
  font-size: 0.78rem;
  margin: 2px 0 0;
}

.roip-history-table table {
  min-width: 820px;
}

.roip-recordings-panel {
  margin-top: 16px;
}

.roip-recordings-table table {
  min-width: 1180px;
}

.roip-recording-audio audio {
  display: block;
  height: 32px;
  max-width: 240px;
  width: 220px;
}

.roip-events-panel {
  margin-top: 16px;
}

.roip-event-console {
  background: rgba(5, 14, 28, 0.95);
  border: 1px solid rgba(82, 120, 164, 0.42);
  border-radius: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
}

.roip-event-empty {
  color: #91a6c2;
  font-size: 0.82rem;
  padding: 18px 10px;
  text-align: center;
}

.roip-event-row {
  align-items: center;
  border-bottom: 1px solid rgba(82, 120, 164, 0.2);
  display: grid;
  gap: 8px;
  grid-template-columns: 70px 116px minmax(0, 1fr);
  padding: 7px 4px;
}

.roip-event-row:last-child {
  border-bottom: 0;
}

.roip-event-row time {
  color: #9fb4d0;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
}

.roip-event-row span:not(.roip-badge) {
  color: #edf5ff;
  font-size: 0.8rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.roip-event-row small {
  color: #8096b4;
  font-size: 0.68rem;
  grid-column: 3;
  margin-top: -4px;
}

@media (max-width: 980px) {
  .roip-command-grid,
  .roip-split-panels {
    grid-template-columns: 1fr;
  }

  .roip-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roip-owner-grid {
    grid-template-columns: 1fr;
  }

  .roip-event-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .roip-event-row span:not(.roip-badge),
  .roip-event-row small {
    grid-column: 1 / -1;
  }
}
