body.xr-services-route .main .container-fluid {
  padding-top: 14px;
}

body.xr-services-route app-system-services {
  display: block;
  max-width: 980px;
  margin: 0 auto 24px;
}

body.xr-services-route app-system-services .card {
  border: 1px solid rgba(38, 50, 56, 0.10);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(38, 50, 56, 0.08);
  overflow: hidden;
}

body.xr-services-route app-system-services .xr-services-card-header-hidden {
  display: none !important;
}

body.xr-services-route .xr-services-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(240, 164, 94, 0.16) 0%, rgba(240, 164, 94, 0) 60%),
    linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  border-bottom: 1px solid rgba(240, 164, 94, 0.18);
}

body.xr-services-route .xr-services-hero-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0a45e 0%, #d57c2c 100%);
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(213, 124, 44, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.xr-services-route .xr-services-hero-text {
  flex: 1;
  min-width: 0;
}

body.xr-services-route .xr-services-hero-text h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a2328;
  letter-spacing: -0.01em;
}

body.xr-services-route .xr-services-hero-text p {
  margin: 0;
  font-size: 0.825rem;
  color: #5d6b73;
  font-weight: 500;
}

body.xr-services-route app-system-services .card-body {
  padding: 18px 18px 22px;
}

body.xr-services-route .services-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  border: 0 !important;
}

body.xr-services-route .services-table tr {
  background: #ffffff;
  transition: background 160ms ease, box-shadow 200ms ease, transform 120ms ease;
  border: 1px solid #e5e9ee;
  border-radius: 10px;
}

body.xr-services-route .services-table tr:hover {
  background: #fcfaf6;
  box-shadow: 0 6px 16px rgba(38, 50, 56, 0.06);
}

body.xr-services-route .services-table td {
  padding: 14px 14px;
  border: 0 !important;
  vertical-align: middle;
  background: transparent;
}

body.xr-services-route .services-table td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  border-left: 4px solid rgba(240, 164, 94, 0.6);
}

body.xr-services-route .services-table td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

body.xr-services-route .service-name {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
}

[dir="rtl"] body.xr-services-route .service-name {
  flex-direction: row-reverse;
}

body.xr-services-route .xr-service-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #c2410c;
  font-size: 13px;
  border: 1px solid rgba(240, 164, 94, 0.22);
  margin-top: 1px;
}

body.xr-services-route .service-name span:not(.xr-service-icon),
body.xr-services-route .service-name .xr-service-desc {
  display: block;
  font-weight: 500;
  font-size: 0.795rem;
  color: #6b7783;
  margin-top: 4px;
  line-height: 1.4;
}

body.xr-services-route .service-name br {
  display: none;
}

body.xr-services-route .service-status {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

body.xr-services-route .service-status.bg-success,
body.xr-services-route .service-status.text-success,
body.xr-services-route td.service-status[ng-reflect-ng-class*="true"],
body.xr-services-route .service-status.success,
body.xr-services-route .service-status .text-success {
  color: #15803d;
}

body.xr-services-route .service-status > span,
body.xr-services-route .service-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-variant: small-caps;
}

body.xr-services-route td.service-status {
  text-align: center;
}

body.xr-services-route td.service-status > span {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

body.xr-services-route td.service-status > span:has(i.fa-circle-check),
body.xr-services-route td.service-status > span:first-child:not(:empty) {
  /* Default neutral; specific online/offline color applied below via classes */
}

body.xr-services-route td.service-status .text-success,
body.xr-services-route td.service-status > .text-success {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

body.xr-services-route td.service-status .text-danger,
body.xr-services-route td.service-status > .text-danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

body.xr-services-route .buttons {
  text-align: end;
  white-space: nowrap;
}

body.xr-services-route .service-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(135deg, #f0a45e 0%, #d57c2c 100%);
  color: #ffffff;
  border: 0;
  box-shadow: 0 4px 10px rgba(213, 124, 44, 0.22);
  transition: transform 120ms ease, box-shadow 200ms ease, filter 120ms ease;
}

body.xr-services-route .service-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(213, 124, 44, 0.32);
  filter: brightness(1.04);
}

body.xr-services-route .service-action:active {
  transform: translateY(0);
}

body.xr-services-route .service-action i {
  font-size: 11px;
}

body.xr-services-route .service-action a {
  color: #ffffff !important;
  text-decoration: none;
}

body.xr-services-route .service-action:has(i.fa-stop) {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.22);
}

body.xr-services-route .service-action:has(i.fa-play) {
  background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.22);
}

body.xr-services-route .service-action:has(i.fa-sync-alt) {
  background: linear-gradient(135deg, #f0a45e 0%, #d57c2c 100%);
}

@media (max-width: 720px) {
  body.xr-services-route .services-table,
  body.xr-services-route .services-table tr,
  body.xr-services-route .services-table td {
    display: block;
    width: 100% !important;
  }

  body.xr-services-route .services-table tr {
    margin-bottom: 12px;
    padding: 4px;
    border-left: 4px solid rgba(240, 164, 94, 0.6);
    border-radius: 10px;
  }

  body.xr-services-route .services-table td:first-child {
    border-left: 0;
  }

  body.xr-services-route .buttons {
    text-align: start;
  }
}
