:root {
  --blue:#102B4E;
  --blue2:#173B67;
  --green:#46B24A;
  --red:#D80E15;
  --off:#CBD5E1;
  --yellow:#E9A72F;
  --bg:#F5F7FA;
  --text:#1F2937;
  --muted:#6B7280;
  --border:#E6EAF0;
  --sidebar:280px}
* {
  box-sizing:border-box}
body {
  margin:0;
  background:var(--bg);
  font-family:Arial,Helvetica,sans-serif;
  color:var(--text)}
.app {
  display:flex;
  min-height:100vh}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:var(--sidebar);
  background:linear-gradient(180deg,var(--blue),#071828);
  color:white;
  display:flex;
  flex-direction:column;
  box-shadow:8px 0 25px rgba(0,0,0,.18)}
.brand {
  padding:24px 22px 18px;
  display:flex;
  gap:12px;
  align-items:center;
  border-bottom:1px solid rgba(255,255,255,.12)}
.brand img {
  width:42px;
  height:42px;
  object-fit:contain;
  background:white;
  border-radius:12px;
  padding:6px}
.brand-title {
  font-size:21px;
  font-weight:800}
.brand-subtitle {
  font-size:12px;
  color:rgba(255,255,255,.65);
  margin-top:2px}
.nav {
  padding:16px 14px;
  overflow:auto;
  flex:1}
.nav-section {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(255,255,255,.45);
  font-weight:700;
  margin:18px 12px 8px}
.nav a {
  display:flex;
  gap:11px;
  align-items:center;
  text-decoration:none;
  color:rgba(255,255,255,.82);
  padding:11px 12px;
  border-radius:12px;
  font-weight:700;
  margin-bottom:3px}
.nav a span {
  width:22px;
  color:var(--green);
  text-align:center}
.nav a:hover,.nav a.active {
  background:rgba(70,178,74,.18);
  color:white}
.sidebar-footer {
  padding:16px 20px;
  border-top:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.58);
  font-size:12px}
.main {
  margin-left:var(--sidebar);
  width:calc(100% - var(--sidebar));
  min-height:100vh}
.topbar {
  height:76px;
  background:white;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 28px;
  position:sticky;
  top:0;
  z-index:5}
.page-title {
  font-size:23px;
  font-weight:800;
  color:var(--blue)}
.breadcrumb {
  font-size:13px;
  color:var(--muted);
  margin-top:4px}
.topbar-actions {
  display:flex;
  align-items:center;
  gap:10px}
.select-pill,.user-pill {
  border:1px solid var(--border);
  border-radius:999px;
  padding:9px 13px;
  background:#fff;
  color:var(--blue);
  font-weight:700}
.user-pill {
  background:#F1F5F9}
.content {
  padding:28px}
.hero {
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  color:white;
  border-radius:24px;
  padding:30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:22px;
  box-shadow:0 12px 35px rgba(16,43,78,.22)}
.hero h1 {
  font-size:31px;
  margin:0 0 8px}
.hero p {
  margin:0;
  color:rgba(255,255,255,.75)}
.hero-card {
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  border-radius:18px;
  padding:16px 20px}
.grid {
  display:grid;
  gap:18px}
.metrics {
  grid-template-columns:repeat(4,minmax(0,1fr))}
.card {
  background:white;
  border:1px solid var(--border);
  border-radius:20px;
  padding:21px;
  box-shadow:0 8px 24px rgba(16,43,78,.06)}
.card-title {
  font-size:12px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:12px}
.metric {
  display:flex;
  justify-content:space-between;
  align-items:flex-end}
.num {
  font-size:36px;
  line-height:1;
  font-weight:900;
  color:var(--blue)}
.label {
  font-size:13px;
  color:var(--muted);
  margin-top:8px}
.dot {
  width:44px;
  height:44px;
  border-radius:15px;
  display:grid;
  place-items:center;
  font-size:22px}
.ok {
  background:rgba(70,178,74,.14);
  color:var(--green)}
.warn {
  background:rgba(233,167,47,.16);
  color:#A66A00}
.bad {
  background:rgba(216,14,21,.11);
  color:var(--red)}
.info {
  background:rgba(16,43,78,.10);
  color:var(--blue)}
.section-title {
  color:var(--blue);
  font-size:20px;
  margin:28px 0 14px}
.quick {
  grid-template-columns:repeat(4,minmax(0,1fr))}
.quick a {
  background:white;
  text-decoration:none;
  border:1px solid var(--border);
  border-radius:18px;
  padding:20px;
  display:flex;
  gap:14px;
  align-items:center;
  color:var(--text);
  transition:.15s}
.quick a:hover {
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(16,43,78,.10)}
.quick .icon {
  font-size:24px;
  color:var(--green)}
.quick strong {
  color:var(--blue)}
.table-wrap {
  overflow:auto;
  background:white;
  border:1px solid var(--border);
  border-radius:20px}
.table {
  width:100%;
  border-collapse:collapse}
.table th,.table td {
  padding:15px 16px;
  border-bottom:1px solid var(--border);
  text-align:left}
.table th {
  background:#F8FAFC;
  color:var(--blue);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.05em}
.status {
  display:inline-flex;
  align-items:center;
  gap:7px;
  border-radius:999px;
  padding:6px 10px;
  font-weight:800;
  font-size:13px}
.green {
  background:rgba(70,178,74,.13);
  color:#2F8F35}
.red {
  background:rgba(216,14,21,.10);
  color:var(--red)}
.yellow {
  background:rgba(233,167,47,.15);
  color:#A66A00}
.placeholder {
  min-height:360px;
  background:white;
  border:1px dashed #CAD5E2;
  border-radius:22px;
  display:grid;
  place-items:center;
  text-align:center;
  color:var(--muted);
  padding:35px}
.placeholder h2 {
  color:var(--blue);
  margin:0 0 10px}
.placeholder .big {
  font-size:46px;
  color:var(--green);
  margin-bottom:14px}
.btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  border:0;
  border-radius:12px;
  padding:11px 15px;
  font-weight:800;
  cursor:pointer}
.btn-primary {
  background:var(--blue);
  color:white}
.btn-success {
  background:var(--green);
  color:white}
.btn-light {
  background:#EEF2F7;
  color:var(--blue)}
.login {
  min-height:100vh;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--blue),#06121F);
  padding:24px}
.login-card {
  width:100%;
  max-width:430px;
  background:white;
  border-radius:26px;
  padding:34px;
  text-align:center;
  box-shadow:0 22px 60px rgba(0,0,0,.28)}
.login-card img {
  max-width:185px;
  margin-bottom:18px}
.login-card h1 {
  margin:0;
  color:var(--blue)}
.login-card p {
  color:var(--muted)}
.login-card input {
  width:100%;
  padding:13px;
  border:1px solid var(--border);
  border-radius:12px;
  margin-bottom:12px;
  font-size:15px}
.login-card .btn {
  width:100%;
  justify-content:center}
.product-toolbar {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
  flex-wrap:wrap}
.preview-box {
  display:flex;
  gap:10px;
  align-items:center;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px}
.preview-box label {
  font-weight:800;
  color:var(--blue)}
.message {
  background:rgba(70,178,74,.12);
  border-left:5px solid var(--green);
  padding:12px 14px;
  border-radius:12px;
  margin-bottom:16px}
.product-help {
  background:#FFF8E8;
  border-left:5px solid var(--yellow);
  padding:12px 14px;
  border-radius:12px;
  margin-bottom:18px;
  color:#6B4A00}
.category-block {
  background:white;
  border:1px solid var(--border);
  border-radius:20px;
  margin-bottom:18px;
  overflow:hidden}
.category-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#F8FAFC;
  border-bottom:1px solid var(--border);
  padding:14px 16px}
.category-title {
  font-size:20px;
  font-weight:900;
  color:var(--blue);
  border:0;
  background:transparent;
  border-bottom:1px solid #C9D6E3;
  padding:6px 2px;
  min-width:360px}
.category-body {
  padding:14px}
.product-grid,.product-header {
  display:grid;
  grid-template-columns:40px minmax(230px,2.2fr) 105px 130px 120px repeat(var(--display-count),58px) 45px;
  gap:8px;
  align-items:center}
.product-header {
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--muted);
  font-weight:900;
  padding-bottom:8px;
  border-bottom:1px solid var(--border);
  margin-bottom:10px}
.product-row {
  margin-bottom:8px}
.product-row.dragging {
  opacity:.45}
.drag {
  background:#E8EEF5;
  color:var(--blue);
  border-radius:9px;
  text-align:center;
  padding:10px;
  cursor:grab;
  font-weight:900}
.product-row input,.product-row select {
  width:100%;
  border:1px solid #CCD4DD;
  border-radius:10px;
  padding:10px;
  font-size:14px}
.price {
  text-align:right;
  font-weight:800}
.promo-price {
  text-align:right;
  font-weight:800}
.promo-price.hidden {
  visibility:hidden}
.display-head {
  text-align:center;
  color:var(--blue)}
.display-code {
  font-size:12px;
  font-weight:900;
  margin-bottom:4px}
.display-toggle,.vis-btn {
  width:27px;
  height:27px;
  border-radius:8px;
  border:0;
  cursor:pointer}
.display-toggle.on,.vis-btn.on {
  background:var(--green)}
.display-toggle.off,.vis-btn.off {
  background:var(--off);
  border:1px solid #AAB6C6}
.display-toggle.mix {
  background:var(--yellow)}
.vis-cell {
  display:flex;
  justify-content:center}
.delete {
  background:var(--red);
  color:white;
  border:0;
  border-radius:10px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:900}
.add {
  background:var(--green);
  color:white;
  border:0;
  border-radius:12px;
  padding:11px 15px;
  font-weight:900;
  cursor:pointer}
.save-bar {
  position:sticky;
  bottom:0;
  background:rgba(245,247,250,.92);
  backdrop-filter:blur(8px);
  padding:16px 0;
  margin-top:18px}
.save-card {
  background:white;
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between}
.key-input {
  max-width:220px;
  border:1px solid var(--border);
  border-radius:12px;
  padding:11px}

@media(max-width:1200px) {
  .product-grid,.product-header {
  grid-template-columns:40px 260px 105px 130px 120px repeat(var(--display-count),58px) 45px}
.category-body {
  overflow-x:auto}
}

@media(max-width:1050px) {
  .metrics,.quick {
  grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:760px) {
  .sidebar {
  display:none}
.main {
  margin-left:0;
  width:100%}
.topbar {
  height:auto;
  min-height:76px;
  padding:14px;
  display:block}
.topbar-actions {
  margin-top:12px;
  flex-wrap:wrap}
.content {
  padding:18px}
.hero {
  display:block}
.hero-card {
  margin-top:18px}
.metrics,.quick {
  grid-template-columns:1fr}
}
