:root { --yss: #b5121b; --yss-dark: #8c0d14; }
body { background: #f4f5f7; font-size: .95rem; }
.bg-yss { background: linear-gradient(90deg, var(--yss-dark), var(--yss)); }
.navbar .nav-link.active { background: rgba(255,255,255,.15); border-radius: .35rem; }
.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card-header { background: #fff; font-weight: 600; }
.stat-card .stat-value { font-size: 1.5rem; font-weight: 700; }
.stat-card .stat-icon { font-size: 2rem; opacity: .25; }
.table thead th { white-space: nowrap; background: #f8f9fa; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.text-yss { color: var(--yss); }
.btn-yss { background: var(--yss); color: #fff; }
.btn-yss:hover { background: var(--yss-dark); color: #fff; }

/* Ô tìm hàng hóa trong phiếu */
.search-wrap { position: relative; }
.search-results { position: absolute; z-index: 1050; left: 0; right: 0; top: 100%; max-height: 360px; overflow-y: auto;
  background: #fff; border: 1px solid #dee2e6; border-radius: 0 0 .375rem .375rem; box-shadow: 0 6px 16px rgba(0,0,0,.12); display: none; }
.search-results .item { padding: .45rem .75rem; cursor: pointer; border-bottom: 1px solid #f1f1f1; }
.search-results .item:hover, .search-results .item.active { background: #fff3f3; }
.search-results .item .sku { font-weight: 600; color: var(--yss); }
#itemsTable input.form-control-sm { min-width: 80px; }
#itemsTable .col-name { min-width: 260px; }

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1d1d1f 0%, var(--yss-dark) 100%); }
.login-card { width: 100%; max-width: 400px; }

/* In phiếu */
.print-area { background: #fff; padding: 24px; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; font-size: 12px; }
  main { padding: 0 !important; }
  .print-area { padding: 0; box-shadow: none; }
  .card { box-shadow: none; }
}
