.ops-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 92vw;
  z-index: 940;
  display: flex;
  flex-direction: column;
  background: rgba(10, 15, 30, 0.98);
  border-left: 1px solid #1e2d45;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.48);
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

.ops-panel.open {
  transform: translateX(0);
}

.ops-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid #1e2d45;
}

.ops-eyebrow {
  color: #2589c7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ops-header h2 {
  margin: 5px 0 0;
  color: #e2e8f0;
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ops-subtitle {
  margin-top: 5px;
  color: #94a3b8;
  line-height: 1.4;
}

.ops-close,
.ops-record-select,
.ops-tab {
  border: 1px solid #1e2d45;
  background: #111827;
  color: #e2e8f0;
  font: inherit;
}

.ops-close {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  cursor: pointer;
}

.ops-record-select {
  margin: 12px 18px 0;
  padding: 9px;
  border-radius: 8px;
  max-width: calc(100% - 36px);
}

.ops-kpis {
  display: block;
  padding: 6px 18px 10px;
}

.ops-kpi,
.ops-card {
  padding: 11px;
  border: 1px solid #1e2d45;
  border-radius: 10px;
  background: #111827;
}

.ops-kpi-label {
  color: #94a3b8;
  font-size: 10px;
  text-transform: uppercase;
}

.ops-kpi-value {
  margin-top: 5px;
  color: #e2e8f0;
  font-size: 16px;
  font-weight: 700;
}

.ops-util {
  padding: 0 18px 14px;
  color: #94a3b8;
}

.ops-util strong {
  float: right;
  color: #e2e8f0;
}

.ops-util-track {
  clear: both;
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #1e293b;
}

.ops-util-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #2563eb;
}

.ops-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ops-tab {
  padding: 11px;
  cursor: pointer;
}

.ops-tab.active {
  background: rgba(29, 111, 164, 0.22);
  border-bottom: 2px solid #2589c7;
}

.ops-body {
  flex: 1;
  overflow: auto;
  padding: 16px 18px 24px;
}

.ops-section {
  display: none;
}

.ops-section.active {
  display: block;
}

.ops-section-title {
  margin-bottom: 10px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

.ops-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #1e2d45;
  align-items: baseline;
}

.ops-key {
  color: #94a3b8;
}

.ops-value {
  color: #e2e8f0;
  text-align: right;
  white-space: nowrap;
}

.ops-card {
  margin-bottom: 10px;
}

.ops-card-title {
  color: #e2e8f0;
  font-weight: 700;
  line-height: 1.4;
}

.ops-card-meta {
  margin-top: 6px;
  color: #94a3b8;
  line-height: 1.45;
}

.ops-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.ops-review {
  color: #fde68a;
  background: rgba(184, 134, 11, 0.18);
}

.ops-high {
  color: #fecaca;
  background: rgba(192, 57, 43, 0.22);
}

.ops-available {
  color: #bbf7d0;
  background: rgba(26, 107, 60, 0.25);
}

.ops-cycle {
  display: grid;
  grid-template-columns: 45px 1fr 1fr;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid #1e2d45;
}

.ops-cycle-name {
  color: #2589c7;
  font-weight: 700;
}

.ops-cycle-value {
  color: #e2e8f0;
  text-align: right;
}

.ops-empty {
  padding: 16px;
  color: #94a3b8;
  line-height: 1.5;
  text-align: center;
  border: 1px dashed #1e2d45;
  border-radius: 10px;
}

@media (max-width: 760px) {
  .ops-panel {
    top: auto;
    width: 100%;
    height: 72%;
    transform: translateY(100%);
  }

  .ops-panel.open {
    transform: translateY(0);
  }
}
