:root {
  --ntk-navy: #0b2a4a;
  --ntk-blue: #1d4ed8;
  --ntk-bg: #f1f5f9;
  --ntk-card: #ffffff;
  --ntk-border: #e2e8f0;
  --ntk-muted: #64748b;
  --ntk-text: #0f172a;
  --ntk-ok: #059669;
  --ntk-err: #dc2626;
  --ntk-teal: #0d9488;
  --ntk-radius: 0;
}

* { box-sizing: border-box; }
body.ntk {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--ntk-bg);
  color: var(--ntk-text);
  min-height: 100vh;
}

.ntk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.25rem;
  background: var(--ntk-navy);
  color: #fff;
}
.ntk-top__brand { font-weight: 700; letter-spacing: .02em; font-size: .95rem; }
.ntk-top__right { display: flex; align-items: center; gap: .75rem; }
.ntk-top__user { font-size: .875rem; display: inline-flex; align-items: center; gap: .4rem; }
.ntk-dot {
  width: .55rem; height: .55rem; border-radius: 999px;
  background: #22c55e;
}

.ntk-hub {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding: 1rem 1.25rem .25rem;
}
.ntk-hub__item {
  display: inline-flex; align-items: center;
  padding: .55rem 1rem;
  background: #fff;
  border: 1px solid var(--ntk-border);
  border-radius: var(--ntk-radius);
  text-decoration: none;
  color: var(--ntk-text);
  font-weight: 600;
  font-size: .875rem;
}
.ntk-hub__item:hover { border-color: #cbd5e1; background: #f8fafc; }
.ntk-hub__item.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: var(--ntk-blue);
}

.ntk-wrap { padding: 1rem 1.25rem 2.5rem; width: 100%; }
.ntk-card {
  background: var(--ntk-card);
  border: 1px solid var(--ntk-border);
  border-radius: var(--ntk-radius);
  padding: 1.15rem 1.25rem;
}
.ntk-lead { margin: 0 0 1rem; color: var(--ntk-muted); font-size: .9375rem; line-height: 1.45; }

.ntk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .5rem .9rem;
  border-radius: var(--ntk-radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .8125rem;
  text-decoration: none;
  cursor: pointer;
  background: #e2e8f0;
  color: var(--ntk-text);
}
.ntk-btn:hover { filter: brightness(.97); }
.ntk-btn--primary { background: var(--ntk-blue); color: #fff; }
.ntk-btn--primary:hover { background: #1e40af; filter: none; }
.ntk-btn--ghost {
  background: transparent; border-color: rgba(255,255,255,.35); color: #fff;
}
.ntk-btn--ghost:hover { background: rgba(255,255,255,.1); filter: none; }
.ntk-btn--secondary { background: #fff; border-color: var(--ntk-border); }
.ntk-btn--secondary:hover { background: #f8fafc; filter: none; }
.ntk-btn--danger { background: #fee2e2; color: var(--ntk-err); border-color: #fecaca; }
.ntk-btn--danger:hover { background: #fecaca; filter: none; }
.ntk-btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }

.ntk-alert {
  margin: 0 0 1rem;
  padding: .7rem .9rem;
  border-radius: var(--ntk-radius);
  font-size: .875rem;
}
.ntk-alert--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ntk-alert--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.ntk-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.ntk-tabs__item {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .75rem;
  border: 1px solid var(--ntk-border);
  border-radius: var(--ntk-radius);
  background: #fff;
  color: var(--ntk-text);
  text-decoration: none;
  font-size: .8125rem;
  font-weight: 600;
}
.ntk-tabs__item:hover { background: #f8fafc; }
.ntk-tabs__item.is-active {
  border-color: var(--ntk-teal);
  background: #f0fdfa;
  color: #0f766e;
}
.ntk-tabs__badge {
  font-size: .6875rem; font-weight: 600;
  padding: .1rem .35rem; border-radius: var(--ntk-radius);
  background: #f1f5f9; color: #475569;
}
.ntk-tabs__item.is-active .ntk-tabs__badge { background: #ccfbf1; color: #0f766e; }

.ntk-table-wrap { overflow: auto; border: 1px solid var(--ntk-border); border-radius: var(--ntk-radius); }
.ntk-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.ntk-table th, .ntk-table td {
  padding: .7rem .9rem; border-bottom: 1px solid var(--ntk-border);
  text-align: left; vertical-align: middle;
}
.ntk-table th {
  background: #f8fafc; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--ntk-muted);
}
.ntk-table tr:last-child td { border-bottom: 0; }
.ntk-table tbody tr:hover td { background: #f8fafc; }
.ntk-table__name { font-weight: 600; white-space: nowrap; }

.ntk-color { display: inline-flex; align-items: center; gap: .5rem; }
.ntk-color__picker {
  width: 2rem; height: 2rem; padding: 0;
  border: 1px solid #cbd5e1; border-radius: var(--ntk-radius); cursor: pointer;
}
.ntk-color__hex {
  width: 7.5rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
.ntk-color__swatch {
  width: 1.25rem; height: 1.25rem; border-radius: 999px;
  border: 1px solid rgba(15,23,42,.18);
}

.ntk-ikon { display: inline-flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.ntk-ikon__preview {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border: 1px dashed #cbd5e1; border-radius: var(--ntk-radius); background: #f8fafc; overflow: hidden;
}
.ntk-ikon__preview:not(.is-empty) { border-style: solid; background: #fff; }
.ntk-ikon__preview img { width: 28px; height: 28px; object-fit: contain; }
.ntk-ikon__ph { font-size: .6875rem; color: #94a3b8; }
.ntk-ikon__file { max-width: 14rem; font-size: .75rem; }
.ntk-ikon__remove {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .75rem; color: var(--ntk-muted); cursor: pointer;
}

.ntk-input, .ntk-select, textarea.ntk-input {
  width: 100%;
  padding: .5rem .65rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--ntk-radius);
  font: inherit;
  background: #fff;
}
.ntk-input:focus, .ntk-select:focus, textarea.ntk-input:focus {
  outline: 2px solid #bfdbfe; border-color: #60a5fa;
}
.ntk-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.ntk-toolbar {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  margin-bottom: 1rem;
}
.ntk-toolbar__search { flex: 1 1 220px; }
.ntk-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.ntk-chip {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .35rem .65rem; border-radius: var(--ntk-radius);
  border: 1px solid var(--ntk-border); background: #fff;
  text-decoration: none; color: var(--ntk-text); font-size: .75rem; font-weight: 600;
}
.ntk-chip:hover { background: #f8fafc; }
.ntk-chip.is-active { background: #eff6ff; border-color: #93c5fd; color: var(--ntk-blue); }

.ntk-prod-title { font-weight: 700; margin: 0 0 .35rem; }
.ntk-badges { display: flex; flex-wrap: wrap; gap: .15rem .65rem; align-items: center; }
.ntk-badge {
  display: inline; padding: 0;
  border-radius: 0;
  background: none; color: var(--ntk-muted); font-size: .75rem; font-weight: 500;
}
.ntk-badge + .ntk-badge::before {
  content: "·";
  margin-right: .65rem;
  color: #cbd5e1;
}
.ntk-thumb {
  width: 76px; height: 48px; object-fit: contain;
  background: #f8fafc; border-radius: var(--ntk-radius); border: 1px solid var(--ntk-border);
}
.ntk-thumb--empty {
  display: inline-flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: .65rem;
}

.ntk-prod-list {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--ntk-border);
}
.ntk-prod-empty { margin: 0; color: var(--ntk-muted); font-size: .875rem; padding: 1rem; }
.ntk-prod-card {
  display: grid;
  grid-template-columns: auto 96px minmax(0, 1fr) auto;
  gap: .75rem 1rem;
  align-items: center;
  padding: .75rem 1rem;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--ntk-border);
  border-radius: 0;
}
.ntk-prod-card:last-child { border-bottom: 0; }
.ntk-prod-card:hover { background: #f8fafc; }
.ntk-prod-card__check {
  display: flex; align-items: center; cursor: pointer;
}
.ntk-prod-card__check input { width: 1rem; height: 1rem; cursor: pointer; }
.ntk-prod-card__media {
  width: 96px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--ntk-border); border-radius: 0;
  overflow: hidden;
}
.ntk-prod-card__media img {
  width: 100%; height: 100%; object-fit: contain;
}
.ntk-prod-card__noimg {
  font-size: .65rem; color: #94a3b8; font-weight: 600;
}
.ntk-prod-card__main { min-width: 0; }
.ntk-prod-card__head {
  display: block;
  margin-bottom: .2rem;
}
.ntk-prod-card__title {
  margin: 0; font-size: .9375rem; font-weight: 600; line-height: 1.35;
  color: var(--ntk-text);
}
.ntk-prod-card__actions {
  display: flex; flex-wrap: wrap; gap: .4rem; flex-shrink: 0;
  align-self: start;
}
.ntk-prod-card__none {
  margin: .35rem 0 0; font-size: .8125rem; color: #94a3b8;
}
.ntk-prod-attrs {
  display: flex; flex-wrap: wrap; gap: .15rem .85rem;
  margin: .35rem 0 0;
}
.ntk-prod-attrs__row {
  display: inline;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: .8125rem;
  line-height: 1.4;
}
.ntk-prod-attrs__row dt {
  display: inline; margin: 0; font-size: inherit; font-weight: 500;
  text-transform: none; letter-spacing: 0; color: var(--ntk-muted);
}
.ntk-prod-attrs__row dt::after { content: ": "; }
.ntk-prod-attrs__row dd {
  display: inline; margin: 0; font-size: inherit; font-weight: 600; color: var(--ntk-text);
  word-break: break-word;
}
@media (max-width: 720px) {
  .ntk-prod-card {
    grid-template-columns: auto 72px minmax(0, 1fr);
  }
  .ntk-prod-card__media {
    width: 72px; height: 56px;
  }
  .ntk-prod-card__actions {
    grid-column: 1 / -1;
  }
}
.ntk-pager { display: none; }
.ntk-infinite {
  display: flex; justify-content: center; align-items: center;
  padding: 1.25rem 0 .5rem; min-height: 2.5rem;
}
.ntk-infinite[hidden] { display: none !important; }
.ntk-infinite__loading,
.ntk-infinite__done,
.ntk-infinite__err {
  font-size: .8125rem; font-weight: 600; color: var(--ntk-muted);
}
.ntk-infinite__err { color: var(--ntk-err); }
.ntk-infinite__loading::before {
  content: '';
  display: inline-block; width: .7rem; height: .7rem; margin-right: .45rem;
  border: 2px solid #cbd5e1; border-top-color: var(--ntk-blue);
  border-radius: 50%; vertical-align: -1px;
  animation: ntk-spin .7s linear infinite;
}
@keyframes ntk-spin {
  to { transform: rotate(360deg); }
}

.ntk-login {
  min-height: 100vh; display: grid; place-items: center;
  background: linear-gradient(160deg, #0b2a4a 0%, #1e3a5f 45%, #f1f5f9 45%);
}
.ntk-login__card {
  width: min(400px, 92vw);
  background: #fff; border: 1px solid var(--ntk-border);
  border-radius: var(--ntk-radius); padding: 1.75rem;
}
.ntk-login__card h1 { margin: 0 0 .35rem; font-size: 1.25rem; }
.ntk-login__card p { margin: 0 0 1.25rem; color: var(--ntk-muted); font-size: .875rem; }
.ntk-field { margin-bottom: .9rem; }
.ntk-field label { display: block; font-size: .75rem; font-weight: 600; margin-bottom: .3rem; color: #475569; }
.ntk-form-grid { display: grid; gap: .85rem; }
@media (min-width: 720px) {
  .ntk-form-grid--2 { grid-template-columns: 1fr 1fr; }
}
.ntk-modal {
  position: fixed; inset: 0; background: rgba(15,23,42,.45);
  display: none; align-items: center; justify-content: center; padding: 1rem; z-index: 50;
}
.ntk-modal.is-open { display: flex; }
.ntk-modal__panel {
  width: min(520px, 100%); background: #fff; border-radius: var(--ntk-radius);
  border: 1px solid var(--ntk-border);
  padding: 1.25rem; max-height: 90vh; overflow: auto;
}
.ntk-modal__panel--wide { width: min(720px, 100%); }
.ntk-modal__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.ntk-modal__head h2 { margin: 0; font-size: 1.05rem; }
.ntk-input--pin {
  letter-spacing: 0.28em;
  font-variant-numeric: tabular-nums;
}
.ntk-check-list { display: flex; flex-wrap: wrap; gap: .35rem .75rem; }
.ntk-check-list label { font-size: .8125rem; display: inline-flex; gap: .3rem; align-items: center; }

.ntk-opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.75rem, 1fr));
  gap: .5rem;
}
.ntk-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .45rem;
  min-height: 5.25rem;
  padding: .65rem .4rem .55rem;
  border: 1px solid var(--ntk-border);
  border-radius: var(--ntk-radius);
  background: #fff;
  color: var(--ntk-text);
  cursor: pointer;
  text-align: center;
  transition: border-color .12s ease, background .12s ease, color .12s ease, box-shadow .12s ease;
}
.ntk-opt:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.ntk-opt:focus-within {
  outline: 2px solid #bfdbfe;
  outline-offset: 1px;
}
.ntk-opt:has(input:checked) {
  border-color: #93c5fd;
  background: #eff6ff;
  color: var(--ntk-blue);
  box-shadow: inset 0 0 0 1px #93c5fd;
}
.ntk-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.ntk-opt__visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}
.ntk-opt__swatch {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.ntk-opt__img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.ntk-opt__svg {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  color: #475569;
}
.ntk-opt:has(input:checked) .ntk-opt__svg { color: var(--ntk-blue); }
.ntk-opt__svg svg { width: 100%; height: 100%; display: block; }
.ntk-opt__label {
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}

.ntk-progress { margin: .85rem 0 .25rem; }
.ntk-progress[hidden] { display: none !important; }
.ntk-progress__track {
  height: .4rem; border-radius: 0; background: #e2e8f0; overflow: hidden;
}
.ntk-progress__fill {
  display: block; height: 100%; width: 0%;
  background: var(--ntk-blue);
  border-radius: 0;
  transition: width .15s ease-out;
}
.ntk-progress.is-busy .ntk-progress__fill {
  width: 40% !important;
  background: linear-gradient(90deg, #1d4ed8, #38bdf8, #0d9488, #1d4ed8);
  background-size: 200% 100%;
  animation: ntk-progress-indeterminate 1.1s linear infinite;
  transition: none;
}
.ntk-progress__meta {
  display: flex; justify-content: space-between; gap: .75rem;
  margin-top: .4rem; font-size: .75rem; font-weight: 600; color: #475569;
}
.ntk-progress.is-error .ntk-progress__fill { background: var(--ntk-err); }
.ntk-progress.is-error .ntk-progress__meta { color: var(--ntk-err); }
@keyframes ntk-progress-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

.ntk-bulkbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .65rem;
  margin: 0 0 .85rem;
}
.ntk-bulkbar__all {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8125rem; font-weight: 600; color: #475569; cursor: pointer;
}
.ntk-bulkbar__count { font-size: .75rem; font-weight: 600; color: var(--ntk-muted); }
.ntk-table__check { width: 2.25rem; text-align: center; vertical-align: middle; }
.ntk-table__check input { width: 1rem; height: 1rem; cursor: pointer; }
.ntk-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
