* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: #eef2f7; color: #0f172a; }
.topbar { background: linear-gradient(90deg, #102a73, #1d328f); color: white; padding: 16px 20px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.eyebrow { margin: 0; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
h1 { margin: 2px 0 0; font-size: 22px; }
nav { display: flex; gap: 8px; }
.tab, button { border: 0; border-radius: 6px; padding: 8px 12px; background: #1e40af; color: white; cursor: pointer; }
.tab.active { background: white; color: #1e3a8a; }
main { padding: 14px; }
.panel { display: none; }
.panel.active { display: block; }
.layout-two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
input, select { width: 100%; border: 1px solid #cbd5e1; border-radius: 6px; padding: 8px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.product { background: white; border: 1px solid #dbe4ee; border-radius: 8px; overflow: hidden; cursor: pointer; }
.product img { width: 100%; height: 120px; object-fit: cover; }
.product .meta { padding: 8px; font-size: 12px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.cart-item { background: white; border: 1px solid #dbe4ee; border-radius: 8px; padding: 8px; }
.cart-row { display: grid; grid-template-columns: 1.2fr .9fr .9fr .9fr auto; gap: 8px; align-items: end; }
.form-grid { display: grid; gap: 8px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
label { font-size: 12px; color: #334155; display: block; }
.summary { margin-top: 8px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 8px; font-size: 13px; }
.actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
button.secondary { background: #e2e8f0; color: #334155; }
.hidden { display: none; }
.table-wrap { overflow: auto; background: white; border-radius: 8px; border: 1px solid #dbe4ee; }
table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 760px; }
th, td { padding: 8px; border-bottom: 1px solid #edf2f7; text-align: left; }
thead { background: #f1f5f9; }
.listing-head { margin: 14px 0 8px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.kpi { background: white; border: 1px solid #dbe4ee; border-radius: 8px; padding: 10px; }
.label-box { border: 1px solid #cbd5e1; border-radius: 8px; background: white; padding: 8px; }
.barcode-svg { width: 100%; height: 42px; }
.inline { display: flex; gap: 8px; }

@media (max-width: 1100px) {
  .layout-two { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
