/* ========================================================
   HỆ THỐNG QUẢN LÝ VŨ KHÍ & KHO SÚNG QUÂN SỰ
   Bảng màu thống nhất: XANH LÁ + TRẮNG RÕ RÀNG, RÀNH MẠCH
   Font chữ duy nhất: Be Vietnam Pro
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
  --color-brand: #15803d;
  --color-brand-dark: #14532d;
  --color-brand-light: #f0fdf4;
  --color-brand-border: #bbf7d0;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
}

* {
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
}

body {
  background-color: #f8fafc;
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Number / Code font: vẫn giữ Be Vietnam Pro với weight 700 để thống nhất 100% 1 font */
.font-mono, .font-code {
  font-family: 'Be Vietnam Pro', sans-serif !important;
  letter-spacing: 0.04em;
}

/* Thanh cuộn tối giản */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hiệu ứng tia quét laser trong camera QR */
.scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #22c55e, #86efac, #22c55e, transparent);
  box-shadow: 0 0 12px #22c55e;
  animation: scanLaser 2s infinite ease-in-out;
}

@keyframes scanLaser {
  0% { top: 8%; opacity: 0.7; }
  50% { top: 92%; opacity: 1; }
  100% { top: 8%; opacity: 0.7; }
}

/* Tab điều hướng đang chọn */
.nav-tab-active {
  background-color: #15803d !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25) !important;
}

/* Mobile Nav Tab Active */
.mobile-tab-active {
  color: #15803d !important;
  font-weight: 700 !important;
}

/* Thẻ Badge nhỏ gọn, dễ nhìn */
.badge-clean {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

/* Toast thông báo */
#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  border-radius: 0.875rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInTop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.25s ease;
}

@keyframes slideInTop {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Backdrop mờ nền modal */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

/* ========================================================
   PRINT STYLES: In Tem QR & Phiếu Xuất Kho
   ======================================================== */
@media print {
  body * {
    visibility: hidden;
  }
  #print-area, #print-area * {
    visibility: visible;
  }
  #print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 10mm;
    background: #fff;
  }
  .no-print {
    display: none !important;
  }
}
