.operations-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.operations-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.operations-header select {
  max-width: 310px;
}
.operations-content {
  min-height: 0;
  overflow: auto;
  padding: 2px 4px 1rem;
}
.timeline {
  position: relative;
  max-width: 1000px;
}
.timeline:before {
  content: '';
  position: absolute;
  left: 20px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #d6dce1;
}
.timeline-item {
  position: relative;
  padding-left: 55px;
  margin-bottom: 1rem;
}
.timeline-marker {
  position: absolute;
  left: 3px;
  top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--lx-red);
  color: var(--lx-red);
  z-index: 1;
}
.classic-section-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 1rem;
  align-items: start;
}
.section-tree {
  min-width: 0;
}
.tree-node {
  position: relative;
}
.tree-children {
  margin-left: 29px;
  padding-left: 30px;
  border-left: 2px solid #ccd3d9;
}
.tree-children > .tree-node:before {
  content: '';
  position: absolute;
  left: -30px;
  top: 29px;
  width: 28px;
  border-top: 2px solid #ccd3d9;
}
.section-node-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--lx-border);
  border-left: 5px solid var(--section-color);
  border-radius: 0.6rem;
  padding: 0.65rem 0.8rem;
  margin: 0.45rem 0;
  box-shadow: 0 2px 6px #18212a0c;
}
.section-node-card.active {
  box-shadow: 0 0 0 0.18rem rgba(200, 32, 47, 0.14);
  border-color: #c8202f;
}
.tree-toggle {
  border: 0;
  background: #eef5f0;
  color: #198754;
  width: 32px;
  height: 32px;
  border-radius: 0.4rem;
}
.section-node-main {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.section-node-main span {
  font-size: 0.78rem;
  color: #6c757d;
}
.section-resources-toggle {
  cursor: pointer;
}
.section-resources-toggle:disabled {
  cursor: default;
  opacity: 0.65;
}
.section-resource-list {
  flex: 0 0 100%;
  margin: 0.15rem 0 0;
  border-top: 1px solid #e5e8ea;
  padding: 0.25rem 0 0;
}
.section-resource-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.25rem 0;
  padding: 0.35rem 0.5rem;
  border-left: 4px solid var(--status-color, #6c757d);
  border-radius: 0.4rem;
  background: color-mix(in srgb, var(--status-color, #6c757d) 10%, #fff);
  font-size: 0.78rem;
}
.section-resource-item > i {
  font-size: 0.9rem;
  color: var(--status-color, #6c757d);
}
.section-resource-item > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.section-resource-item small {
  font-size: 0.68rem;
  color: #6c757d;
}
.section-resource-status {
  margin-left: auto;
  min-width: 1.65rem;
  height: 1.45rem;
  border-radius: 0.7rem;
  background: var(--status-color, #6c757d);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.72rem;
}
.classic-section-info {
  position: sticky;
  top: 0;
  background: #fff;
  border: 1px solid var(--lx-border);
  border-radius: 0.65rem;
  padding: 1rem;
  min-height: 16rem;
}
.classic-section-info-header {
  border-top: 5px solid var(--section-color);
  padding-top: 0.65rem;
}
.classic-section-info-header h2 {
  font-size: 1.25rem;
  margin: 0.15rem 0;
}
.classic-section-info .detail-list {
  grid-template-columns: 8rem minmax(0, 1fr);
}
.classic-section-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}
.classic-section-metrics span {
  background: #f5f6f7;
  border-radius: 0.4rem;
  padding: 0.45rem;
  display: flex;
  justify-content: space-between;
}
.vehicle-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.6rem;
  background: #c8202f12;
  color: var(--lx-red);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}
.location-card {
  border-left: 5px solid #6c757d;
}
.location-card.priority-acute {
  border-left-color: #dc3545;
}
.location-card.priority-high {
  border-left-color: #ffc107;
}
@media (max-width: 991.98px) {
  .classic-section-layout {
    grid-template-columns: 1fr;
  }
  .classic-section-info {
    position: static;
  }
}
@media (max-width: 767.98px) {
  .operations-header {
    flex-direction: column;
  }
  .operations-header > div:last-child {
    width: 100%;
  }
  .operations-header select {
    max-width: none;
  }
  .tree-children {
    margin-left: 16px;
    padding-left: 18px;
  }
  .tree-children > .tree-node:before {
    left: -18px;
    width: 16px;
  }
}
.resource-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  gap: 0.55rem;
}
.resource-metrics > span {
  background: #fff;
  border: 1px solid var(--lx-border);
  border-radius: 0.6rem;
  padding: 0.55rem 0.7rem;
}
.resource-metrics small {
  display: block;
  color: #6c757d;
  font-size: 0.68rem;
}
.resource-metrics strong {
  font-size: 1.15rem;
}
.vehicle-status-button {
  display: inline-grid;
  grid-template-columns: 1.65rem auto;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--vehicle-status-color);
  border-radius: 0.45rem;
  background: #fff;
  color: #212529;
  padding: 0.2rem 0.4rem;
  min-height: 40px;
  text-align: left;
}
.vehicle-status-button > strong {
  display: grid;
  place-items: center;
  background: var(--vehicle-status-color);
  color: #fff;
  border-radius: 0.3rem;
  height: 1.65rem;
}
.vehicle-status-button > small {
  grid-column: 2;
  color: #6c757d;
  font-size: 0.62rem;
}
.vehicle-status-menu {
  position: fixed;
  z-index: 1100;
  width: min(340px, calc(100vw - 24px));
  max-height: 70vh;
  overflow: auto;
}
.status-choice {
  display: grid;
  grid-template-columns: 2rem 1.2rem 1fr;
  align-items: center;
  gap: 0.55rem;
  border-left: 4px solid var(--vehicle-status-color) !important;
  min-height: 48px;
}
.status-choice.important {
  font-weight: 700;
}
.status-number {
  display: grid;
  place-items: center;
  border-radius: 0.35rem;
  background: var(--vehicle-status-color);
  color: #fff;
  height: 2rem;
}
.speech-request-pulse {
  animation: speechPulse 1.2s infinite;
  border-width: 2px;
}
@keyframes speechPulse {
  50% {
    box-shadow: 0 0 0 5px #dc354533;
  }
}
.resource-workspace {
  min-height: 0;
}
.vehicle-roster-panel {
  position: sticky;
  top: 0;
  max-height: calc(100vh - 220px);
  overflow: hidden;
}
.vehicle-roster-list {
  overflow-y: auto;
  min-height: 0;
}
.roster-vehicle {
  flex-shrink: 0;
}
@media (max-width: 991.98px) {
  .vehicle-roster-panel {
    position: static;
    max-height: 45vh;
  }
  .resource-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}
.timeline-item {
  margin-bottom: 0.65rem;
}
.timeline-item .card-body {
  padding: 0.7rem 0.85rem;
}
.timeline-item h2 {
  margin-top: 0.35rem !important;
}
.timeline-item .etb-entry-content {
  margin: 0.35rem 0 !important;
  line-height: 1.35;
}
.etb-entry-toggle {
  position: relative;
  z-index: 2;
}
@media (max-width: 991.98px) {
  .timeline-item {
    padding-left: 46px;
    margin-bottom: 0.5rem;
  }
  .timeline-marker {
    width: 30px;
    height: 30px;
    left: 4px;
  }
  .timeline:before {
    left: 19px;
  }
  .timeline-item .card-body {
    padding: 0.6rem 0.7rem;
  }
  .timeline-item .etb-entry-details {
    padding-top: 0.25rem;
  }
  .timeline-item time {
    font-size: 0.7rem;
  }
}
