.service-command-page {
  display: grid;
  gap: 18px;
}

.service-command-hero,
.service-command-card {
  border: 1px solid rgba(191, 219, 254, 0.72);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.service-command-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 150px;
  padding: 28px 30px;
  background:
    radial-gradient(circle at 90% 0%, rgba(219, 234, 254, 0.9), transparent 36%),
    linear-gradient(135deg, #e8fbff 0%, #f6fffb 54%, #ffffff 100%);
}

.service-command-hero-copy {
  max-width: 780px;
}

.service-command-kicker {
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-command-hero h1,
.service-command-card h2,
.service-command-section-head h2 {
  margin: 0;
  color: #0f172a;
  letter-spacing: 0;
}

.service-command-hero h1 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.02;
}

.service-command-hero p,
.service-command-card p,
.service-command-section-head p {
  margin: 8px 0 0;
  color: #475569;
  line-height: 1.45;
}

.service-command-hero-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 280px;
}

.service-command-pill,
.service-command-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  background: rgba(204, 251, 241, 0.7);
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.service-command-pill.is-soft,
.service-command-badge.is-neutral {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(248, 250, 252, 0.86);
  color: #334155;
}

.service-command-badge.is-danger {
  border-color: rgba(248, 113, 113, 0.34);
  background: #fef2f2;
  color: #b91c1c;
}

.service-command-badge.is-warning {
  border-color: rgba(251, 191, 36, 0.38);
  background: #fffbeb;
  color: #b45309;
}

.service-command-badge.is-info {
  border-color: rgba(59, 130, 246, 0.28);
  background: #eff6ff;
  color: #1d4ed8;
}

.service-command-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-command-kpi {
  min-height: 118px;
  padding: 18px;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.service-command-kpi span {
  display: block;
  color: #526581;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-command-kpi strong {
  display: block;
  margin-top: 10px;
  color: #020617;
  font-size: 34px;
  line-height: 1;
}

.service-command-kpi small {
  display: block;
  margin-top: 10px;
  color: #64748b;
  line-height: 1.35;
}

.service-command-kpi.is-danger {
  border-color: rgba(248, 113, 113, 0.42);
  background: linear-gradient(180deg, #fff, #fff5f5);
}

.service-command-kpi.is-warning {
  border-color: rgba(251, 191, 36, 0.42);
  background: linear-gradient(180deg, #fff, #fffaf0);
}

.service-command-kpi.is-attention {
  border-color: rgba(248, 113, 113, 0.38);
  background: linear-gradient(180deg, #fff, #fff7f7);
}

.service-command-kpi.is-success {
  border-color: rgba(45, 212, 191, 0.32);
  background: linear-gradient(180deg, #fff, #ecfdf5);
}

.service-command-grid {
  display: grid;
  gap: 16px;
}

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

.service-command-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-command-card {
  padding: 20px;
  background: #fff;
}

.service-command-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.service-command-section-head.compact {
  margin-bottom: 12px;
}

.service-command-section-head.compact h2 {
  font-size: 18px;
}

.service-command-section-head--filters {
  align-items: flex-end;
}

.service-command-sla-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-command-sla-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.service-command-sla-form small {
  color: #64748b;
  font-weight: 500;
}

.service-command-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.service-command-status {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.service-command-targets,
.service-command-list,
.service-command-audit-feed {
  display: grid;
  gap: 10px;
}

.service-command-target,
.service-command-list-row,
.service-command-audit-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.service-command-target strong,
.service-command-list-row strong,
.service-command-audit-item strong {
  color: #0f172a;
}

.service-command-target small,
.service-command-list-row small,
.service-command-audit-item small {
  color: #64748b;
}

.service-command-list-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.service-command-list-row .service-command-list-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.service-command-list-row span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.service-command-list-count {
  color: #020617;
  font-size: 28px;
  font-weight: 900;
}

.service-command-filters {
  display: grid;
  grid-template-columns: 170px 180px minmax(260px, 1fr);
  gap: 10px;
  min-width: min(100%, 740px);
}

.service-command-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.service-command-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.service-command-table.compact {
  min-width: 620px;
}

.service-command-table th,
.service-command-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e5edf7;
  vertical-align: top;
  text-align: left;
}

.service-command-table th {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f8fafc;
}

.service-command-table td {
  color: #0f172a;
  font-size: 14px;
}

.service-command-table td small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.service-command-table tr.is-overdue td {
  background: #fff7f7;
}

.service-command-table tr.is-due-today td {
  background: #fffbeb;
}

.service-command-table tr.is-locked td {
  background: #f8fafc;
}

.service-command-cell-main {
  font-weight: 900;
}

.service-command-cell-sub {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.service-command-flag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.service-command-flags,
.service-command-actions {
  min-width: 150px;
}

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

.service-command-actions .btn-sm {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1;
}

.service-command-mini-badge,
.service-command-sla-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.service-command-mini-badge.is-danger,
.service-command-sla-badge.is-danger {
  border-color: rgba(248, 113, 113, 0.36);
  background: #fef2f2;
  color: #b91c1c;
}

.service-command-mini-badge.is-warning,
.service-command-sla-badge.is-warning {
  border-color: rgba(251, 191, 36, 0.4);
  background: #fffbeb;
  color: #b45309;
}

.service-command-mini-badge.is-success,
.service-command-sla-badge.is-success {
  border-color: rgba(45, 212, 191, 0.34);
  background: #ecfdf5;
  color: #047857;
}

.service-command-mini-badge.is-muted,
.service-command-sla-badge.is-muted {
  border-color: rgba(148, 163, 184, 0.24);
  background: #f8fafc;
  color: #475569;
}

.service-command-empty {
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: #64748b;
  background: #f8fafc;
}

.service-command-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.service-command-action-row .btn {
  padding: 8px 10px;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .service-command-kpis,
  .service-command-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-command-grid--two {
    grid-template-columns: 1fr;
  }

  .service-command-section-head--filters {
    align-items: stretch;
    flex-direction: column;
  }

  .service-command-filters {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .service-command-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .service-command-hero-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .service-command-kpis,
  .service-command-grid--three,
  .service-command-sla-form {
    grid-template-columns: 1fr;
  }
}
