:root { --gamma-primary: #0b3d6b; --gamma-accent: #17a2b8; }
.gamma-nav { background: linear-gradient(90deg, #072a4a, var(--gamma-primary)); }
.gamma-nav .nav-link.active { font-weight: 600; border-bottom: 2px solid var(--gamma-accent); }
.login-bg { background: radial-gradient(circle at 30% 20%, #0b3d6b, #04121f); }
.login-card { width: 100%; max-width: 380px; }

.kpi-card { border-left: 5px solid var(--gamma-accent); }
.kpi-card .kpi-value { font-size: 2.2rem; font-weight: 700; line-height: 1; }
.chart-box { position: relative; height: 300px; }

.weight-display {
  font-family: 'Consolas', 'Courier New', monospace; font-size: 4rem; font-weight: 700; text-align: center;
  background: #0a1a0a; color: #39ff14; border-radius: .5rem; padding: .5rem 1rem; letter-spacing: 2px;
  border: 3px solid #1c3b1c;
}
.weight-display small { font-size: 1.5rem; color: #8fd88f; }
.weight-display.stale { color: #777; }

.hw-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #6c757d; margin-right: 6px; }
.hw-dot.on { background: #198754; box-shadow: 0 0 6px #198754; }
.hw-dot.err { background: #dc3545; }

.status-banner { font-size: 1.8rem; font-weight: 700; text-align: center; padding: 1rem; border-radius: .5rem; }
.status-run { background: #198754; color: #fff; }
.status-stop { background: #dc3545; color: #fff; animation: flash 0.7s infinite; }
@keyframes flash { 50% { background: #7a0f1a; } }
body.alarm-active { animation: bodyflash 0.8s infinite; }
@keyframes bodyflash { 50% { box-shadow: inset 0 0 0 8px #dc3545; } }

.compare-table td, .compare-table th { font-size: 1.05rem; }
.cmp-bad { background: rgba(220, 53, 69, .25) !important; font-weight: 700; }
.cmp-ok { background: rgba(25, 135, 84, .2) !important; }
.result-badge { font-size: 1.6rem; }
.log-box { max-height: 260px; overflow: auto; font-size: .85rem; }

/* Thermal label 100 x 50 mm */
#labelSheet {
  width: 100mm; height: 50mm; background: #fff; color: #000; display: flex; gap: 3mm; padding: 3mm;
  align-items: center; border: 1px dashed #999; margin: 0 auto; font-family: Arial, sans-serif; overflow: hidden;
}
#labelSheet .qr { width: 38mm; height: 38mm; flex: 0 0 38mm; }
#labelSheet .qr img, #labelSheet .qr canvas { width: 38mm !important; height: 38mm !important; }
#labelSheet .info { flex: 1; font-size: 3.6mm; line-height: 1.35; }
#labelSheet .info .big { font-size: 5mm; font-weight: 700; }

@media print {
  .no-print, nav, .modal-footer, .modal-header { display: none !important; }
  body.printing-label * { visibility: hidden !important; }
  body.printing-label #labelSheet, body.printing-label #labelSheet * { visibility: visible !important; }
  body.printing-label #labelSheet { position: fixed; left: 0; top: 0; border: 0; margin: 0; }
  body.printing-label { background: #fff !important; }
  body.printing-label .modal-backdrop { display: none !important; }
  .card { border: 0 !important; }
}
