:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --line: #dce5f2;
  --ink: #1f2a37;
  --ink-soft: #5b6877;
  --brand: #0d6efd;
  --success: #198754;
  --warn: #f59e0b;
  --danger: #dc3545;
  --shadow: 0 18px 50px rgba(13, 37, 76, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(13, 110, 253, 0.08), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(25, 135, 84, 0.08), transparent 30%),
    var(--bg);
  color: var(--ink);
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.site-wrap {
  min-height: 100vh;
  padding: 1.2rem;
}

.hero-card {
  background: linear-gradient(130deg, #0f3d87 0%, #0d6efd 48%, #1f6fd6 100%);
  color: #fff;
  border: 0;
  box-shadow: var(--shadow);
}

.hero-title {
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  line-height: 1.12;
  margin-bottom: 0.45rem;
}

.hero-subtitle {
  opacity: 0.95;
  margin: 0;
}

.kpi {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.7rem 0.85rem;
  min-width: 140px;
}

.kpi strong {
  display: block;
  font-size: 1.35rem;
}

.soft-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 1rem;
}

.status-chip {
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
  display: inline-block;
}

.status-chip.info {
  background: #eaf2ff;
  color: #224f8b;
  border-color: #bad3fb;
}

.status-chip.success {
  background: #dff4e8;
  color: #16643d;
  border-color: #a9dabb;
}

.status-chip.warning {
  background: #fff6df;
  color: #8a6100;
  border-color: #efd287;
}

.status-chip.error {
  background: #ffe6e8;
  color: #8c2235;
  border-color: #efb2ba;
}

#map {
  width: 100%;
  height: 450px;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
}

.field-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #2b3a4a;
  margin-bottom: 0.35rem;
}

.mono {
  font-family: "Consolas", "Courier New", monospace;
}

.table thead th {
  white-space: nowrap;
}

.rfid-panel {
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: #f8fbff;
  padding: 0.75rem 0.85rem;
}

.fade-up {
  animation: fade-up 0.5s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  #map {
    height: 360px;
  }

  .site-wrap {
    padding: 0.8rem;
  }
}
