body {
  font-family: 'Noto Sans Bengali', Arial, sans-serif;
  background: #f4f6f9;
}

.app-navbar {
  background: linear-gradient(90deg, #1f3864, #2e5395);
}

.app-container {
  max-width: 1300px;
}

.card {
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-radius: 10px;
}

.kpi-card {
  border-radius: 12px;
  color: #fff;
  padding: 18px 20px;
}
.kpi-card h3 { font-size: 1.6rem; margin: 4px 0 0; font-weight: 700; }
.kpi-card span { font-size: 0.85rem; opacity: 0.9; }

.kpi-blue   { background: linear-gradient(135deg,#2e5395,#1f3864); }
.kpi-green  { background: linear-gradient(135deg,#2e8b57,#1c5c39); }
.kpi-red    { background: linear-gradient(135deg,#c0392b,#8e2a20); }
.kpi-orange { background: linear-gradient(135deg,#e08e0b,#a86608); }
.kpi-teal   { background: linear-gradient(135deg,#0f9b8e,#0a685f); }
.kpi-purple { background: linear-gradient(135deg,#6c5ce7,#4834a3); }

.table thead th {
  background: #1f3864;
  color: #fff;
  white-space: nowrap;
  vertical-align: middle;
}
.table td, .table th {
  vertical-align: middle;
}

.row-low-stock {
  background-color: #fdecea !important;
}
.badge-low {
  background-color: #dc3545;
}
.badge-ok {
  background-color: #198754;
}

.login-body {
  background: linear-gradient(135deg,#1f3864,#2e5395);
  min-height: 100vh;
  display: flex;
  align-items: center;
  font-family: 'Noto Sans Bengali', Arial, sans-serif;
  position: relative;
}
.lang-switch-fixed {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
}
.login-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}
.login-card {
  width: 380px;
  border-radius: 14px;
}

.form-label { font-weight: 600; font-size: 0.9rem; }

.net-qty-box {
  background: #eef3fb;
  border: 1px solid #d7e3f4;
  border-radius: 8px;
  padding: 8px 12px;
}
.net-qty-box #netQtyDisplay { color: #1f3864; font-size: 1.1rem; }

.lang-switch .btn { font-weight: 600; }

@media (max-width: 768px) {
  .kpi-card h3 { font-size: 1.3rem; }
}

/* ---- Invoice line items ---- */
.item-row td { vertical-align: middle; }
.item-row .form-select, .item-row .form-control { min-width: 90px; }
.type-badge-sale { background:#198754; }
.type-badge-return { background:#dc3545; }

/* ---- Language switch ---- */
.lang-switch a {
  color: #cfe0ff; text-decoration: none; font-size: .8rem; padding: 2px 6px; border-radius: 4px;
}
.lang-switch a.active { background: rgba(255,255,255,.2); color: #fff; font-weight: 600; }

/* ---- Print invoice ---- */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .app-container { max-width: 100%; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
