/* ==========================================================================
   URVASHI COMPUTERS / STOCKHUB INVENTORY - COMPLETE NEUMORPHISM (SOFT UI) THEME
   ========================================================================== */

:root {
  /* Neumorphic Palette Base */
  --nm-bg: #e6edf5;
  --nm-surface: #e6edf5;
  --nm-surface-light: #f0f5fb;
  --nm-surface-dim: #dde5ef;

  /* Neumorphic Shadow Calculations */
  --nm-shadow-flat: 8px 8px 18px #c2cde0, -8px -8px 18px #ffffff;
  --nm-shadow-hover: 12px 12px 24px #b8c4d8, -12px -12px 24px #ffffff;
  --nm-shadow-sm: 4px 4px 10px #c4cee0, -4px -4px 10px #ffffff;
  --nm-shadow-xs: 2px 2px 6px #c7d2e4, -2px -2px 6px #ffffff;
  --nm-shadow-pressed: inset 3px 3px 7px #c0cbde, inset -3px -3px 7px #ffffff;
  --nm-shadow-input: inset 3px 3px 6px #c4cfdf, inset -3px -3px 6px #ffffff;
  --nm-shadow-deep: 16px 16px 36px #bcc8dc, -16px -16px 36px #ffffff;

  /* Accents & Brand */
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-dark: #1e40af;
  --blue-light: #eff6ff;
  --blue-glow: rgba(37, 99, 235, 0.35);

  --lime: #2563eb;
  --lime2: #1d4ed8;

  --green: #10b981;
  --green-bg: #eefaf4;
  --green-text: #065f46;
  --green-border: #a7f3d0;

  --red: #ef4444;
  --red-bg: #fdf2f2;
  --red-text: #991b1b;
  --red-border: #fecaca;

  --amber: #f59e0b;
  --amber-bg: #fefce8;
  --amber-text: #92400e;
  --amber-border: #fde68a;

  /* Typography & Borders */
  --text: #1e293b;
  --heading: #0f172a;
  --muted: #64748b;
  --line: rgba(194, 205, 224, 0.7);
  --line-highlight: rgba(255, 255, 255, 0.85);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 9999px;

  --shadow: var(--nm-shadow-flat);
  --shadow-hover: var(--nm-shadow-hover);
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
}

html {
  background: var(--nm-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--nm-bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13.5px;
  outline: none;
}

/* Custom Neumorphic Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--nm-bg);
  box-shadow: inset 2px 2px 4px #c2cde0, inset -2px -2px 4px #ffffff;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-pill);
  box-shadow: 2px 2px 5px #b8c4d6, -2px -2px 5px #ffffff;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   SIDEBAR & BRAND LOGO
   ========================================================================== */
.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 256px;
  background: var(--nm-bg);
  border-right: 1px solid var(--line-highlight);
  box-shadow: 6px 0 20px rgba(194, 205, 224, 0.7);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  margin: 0 4px 24px;
  background: var(--nm-bg);
  border-radius: 16px;
  border: 1px solid var(--line-highlight);
  box-shadow: var(--nm-shadow-flat);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--nm-shadow-hover);
}

.brand-logo-link:active {
  transform: translateY(0);
  box-shadow: var(--nm-shadow-pressed);
}

.brand-logo-img {
  width: 100%;
  max-width: 180px;
  height: auto;
  max-height: 48px;
  display: block;
  object-fit: contain;
}

.side-label,
.eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
}

.side-label {
  padding: 0 12px 12px;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  color: #475569;
  font-size: 13.5px;
  font-weight: 650;
  background: var(--nm-bg);
  box-shadow: 0 0 0 transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--blue);
  box-shadow: var(--nm-shadow-xs);
  transform: translateX(3px);
}

.nav-link.active {
  background: var(--nm-bg);
  color: var(--blue);
  font-weight: 800;
  box-shadow: var(--nm-shadow-pressed);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform: none;
}

.nav-icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.sidebar-bottom {
  margin-top: auto;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--nm-bg);
  box-shadow: var(--nm-shadow-pressed);
  border: 1px solid rgba(255, 255, 255, 0.6);
  margin-top: 16px;
}

.user-chip b {
  display: block;
  font-size: 13px;
  color: var(--heading);
}

.user-chip small {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: .08em;
  font-weight: 700;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--nm-bg);
  color: var(--blue);
  font-weight: 800;
  box-shadow: var(--nm-shadow-xs);
  border: 1px solid var(--line-highlight);
}

.logout {
  margin-top: 10px;
}

/* ==========================================================================
   APP SHELL & TOPBAR
   ========================================================================== */
.app-shell {
  margin-left: 256px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 80px;
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nm-bg);
  border-bottom: 1px solid var(--line-highlight);
  box-shadow: 0 8px 18px rgba(194, 205, 224, 0.4);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-title-block h2 {
  margin: 3px 0 0;
  font-size: 20px;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--heading);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Neumorphic Topbar Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  background: var(--nm-bg);
  border: 1px solid var(--line-highlight);
  box-shadow: var(--nm-shadow-xs);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--nm-shadow-sm);
}

.badge-pill:active {
  transform: translateY(1px);
  box-shadow: var(--nm-shadow-pressed);
}

.role-pill {
  color: #1d4ed8;
}

.role-pill b {
  color: var(--blue-dark);
  font-weight: 800;
}

.btn-pill {
  color: #334155;
}

.btn-pill:hover {
  color: var(--blue);
}

.connected-pill {
  color: var(--green-text);
}

.logout-pill {
  color: var(--red-text);
}

.logout-pill:hover {
  color: #b91c1c;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

.content {
  padding: 32px 36px 48px;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  flex: 1;
}

.footer {
  padding: 18px 36px;
  border-top: 1px solid var(--line-highlight);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--nm-bg);
  box-shadow: 0 -4px 12px rgba(194, 205, 224, 0.25);
}

.footer span {
  color: var(--blue);
  padding: 0 5px;
}

.footer-right {
  float: right;
}

.mobile-menu {
  display: none;
}

/* ==========================================================================
   HERO REGISTRY BANNER
   ========================================================================== */
.hero-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 32px 36px;
  border: 1px solid var(--line-highlight);
  border-radius: 24px;
  background: var(--nm-bg);
  box-shadow: var(--nm-shadow-flat);
  margin-bottom: 28px;
  transition: all 0.25s ease;
}

.hero-panel:hover {
  box-shadow: var(--nm-shadow-hover);
}

.hero-panel h1 {
  margin: 8px 0;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
  font-weight: 850;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.hero-panel h1 span {
  color: var(--blue);
}

.hero-panel p:not(.eyebrow) {
  max-width: 620px;
  color: #475569;
  font-size: 14px;
  margin: 6px 0 16px;
}

.hero-stamp {
  position: relative;
  z-index: 1;
  min-width: 170px;
  padding: 18px;
  border: 1px solid var(--line-highlight);
  border-radius: 18px;
  background: var(--nm-bg);
  box-shadow: var(--nm-shadow-flat);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.hero-stamp span {
  align-self: flex-start;
  background: var(--nm-bg);
  color: #047857;
  border: 1px solid rgba(167, 243, 208, 0.8);
  box-shadow: inset 1.5px 1.5px 3px #c4d4c8, inset -1.5px -1.5px 3px #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
}

.hero-stamp b {
  font-size: 18px;
  line-height: 1.15;
  color: var(--heading);
  overflow-wrap: anywhere;
}

.hero-stamp small {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: .08em;
  font-weight: 700;
}

/* ==========================================================================
   QUICK ACTION TOOLBAR & ACTION PILLS
   ========================================================================== */
.action-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  background: var(--nm-bg);
  color: #334155;
  border: 1px solid var(--line-highlight);
  box-shadow: var(--nm-shadow-xs);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-pill:hover {
  transform: translateY(-2px);
  color: var(--blue);
  box-shadow: var(--nm-shadow-sm);
}

.action-pill:active {
  transform: translateY(1px);
  box-shadow: var(--nm-shadow-pressed);
}

.action-pill.primary {
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 4px 4px 12px rgba(37, 99, 235, 0.35), -4px -4px 10px #ffffff;
}

.action-pill.primary:hover {
  background: linear-gradient(145deg, #2563eb, #1e40af);
  box-shadow: 6px 6px 16px rgba(37, 99, 235, 0.45), -6px -6px 14px #ffffff;
}

.action-pill.primary:active {
  box-shadow: inset 3px 3px 6px #1e40af, inset -3px -3px 6px #60a5fa;
}

.action-pill.amber {
  background: var(--nm-bg);
  color: var(--amber-text);
  border: 1px solid var(--line-highlight);
  box-shadow: var(--nm-shadow-pressed);
}

/* ==========================================================================
   STATS CARDS (NEUMORPHIC 3D TILES)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}

.stat-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line-highlight);
  border-radius: 20px;
  background: var(--nm-bg);
  box-shadow: var(--nm-shadow-flat);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--nm-shadow-hover);
}

.stat-card.lime {
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 8px 8px 20px rgba(37, 99, 235, 0.35), -8px -8px 20px #ffffff;
}

.stat-card.lime:hover {
  box-shadow: 12px 12px 28px rgba(37, 99, 235, 0.45), -12px -12px 28px #ffffff;
  transform: translateY(-4px);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-card.lime .stat-label,
.stat-card.lime .stat-foot {
  color: rgba(255, 255, 255, 0.85);
}

.stat-card strong {
  display: block;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 850;
  letter-spacing: -.03em;
  margin: 10px 0 6px;
  overflow-wrap: anywhere;
  color: var(--heading);
}

.stat-card.lime strong {
  color: #ffffff;
}

.stat-foot {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

.location-stat {
  font-size: 18px !important;
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 18px;
}

.section-head h2 {
  font-size: 20px;
  font-weight: 850;
  margin: 3px 0;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.section-head p:not(.eyebrow) {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--nm-bg);
  color: var(--blue);
  box-shadow: var(--nm-shadow-pressed);
  border: 1px solid var(--line-highlight);
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

/* ==========================================================================
   BUTTONS (RAISED & INSET 3D EFFECT)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-highlight);
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 12.5px;
  letter-spacing: .03em;
  font-weight: 750;
  cursor: pointer;
  background: var(--nm-bg);
  color: #334155;
  box-shadow: var(--nm-shadow-xs);
  transition: transform .18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .18s cubic-bezier(0.16, 1, 0.3, 1), background-color .15s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--nm-shadow-sm);
  color: var(--heading);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: var(--nm-shadow-pressed);
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Primary Button */
.btn.primary {
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 4px 4px 12px rgba(37, 99, 235, 0.35), -4px -4px 10px #ffffff;
}

.btn.primary:hover:not(:disabled) {
  background: linear-gradient(145deg, #2563eb, #1e40af);
  box-shadow: 6px 6px 18px rgba(37, 99, 235, 0.45), -6px -6px 14px #ffffff;
}

.btn.primary:active:not(:disabled) {
  box-shadow: inset 3px 3px 6px #1e40af, inset -3px -3px 6px #60a5fa;
}

/* Secondary Button */
.btn.secondary {
  background: var(--nm-bg);
  border: 1px solid var(--line-highlight);
  color: #1e293b;
  box-shadow: var(--nm-shadow-xs);
}

.btn.secondary:hover {
  box-shadow: var(--nm-shadow-sm);
}

.btn.light-outline {
  background: var(--nm-bg);
  border: 1px solid var(--line-highlight);
  color: var(--blue);
  box-shadow: var(--nm-shadow-xs);
}

.btn.light-outline:hover {
  box-shadow: var(--nm-shadow-sm);
}

.btn.mini {
  padding: 8px 16px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   TABLES & DATAGRIDS
   ========================================================================== */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line-highlight);
  border-radius: 20px;
  background: var(--nm-bg);
  box-shadow: var(--nm-shadow-flat);
  padding: 6px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
}

th {
  padding: 16px 20px;
  background: var(--nm-bg);
  color: #475569;
  text-align: left;
  font-size: 11px;
  letter-spacing: .07em;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 2px solid rgba(194, 205, 224, 0.8);
}

td {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(194, 205, 224, 0.4);
  font-size: 13.5px;
  color: #334155;
  vertical-align: middle;
}

tbody tr {
  transition: all 0.15s ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.45);
}

td b {
  font-size: 13.5px;
  color: var(--heading);
  font-weight: 750;
}

.table-sub {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.arrow {
  color: var(--blue);
  padding: 0 4px;
  font-weight: bold;
}

.qty-pill {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--line-highlight);
  background: var(--nm-bg);
  color: #1d4ed8;
  border-radius: var(--radius-pill);
  box-shadow: var(--nm-shadow-xs);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  letter-spacing: .05em;
  font-weight: 800;
}

.status.good {
  color: #047857;
  background: var(--nm-bg);
  border: 1px solid rgba(167, 243, 208, 0.8);
  box-shadow: inset 1.5px 1.5px 3px #c4d4c8, inset -1.5px -1.5px 3px #ffffff;
}

.status.off {
  color: #64748b;
  background: var(--nm-bg);
  border: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow: inset 1.5px 1.5px 3px #c2cde0, inset -1.5px -1.5px 3px #ffffff;
}

.empty-state {
  text-align: center !important;
  padding: 48px !important;
  color: var(--muted) !important;
}

/* ==========================================================================
   PANELS & CARDS
   ========================================================================== */
.panel {
  background: var(--nm-bg);
  border: 1px solid var(--line-highlight);
  border-radius: 20px;
  padding: 26px;
  min-width: 0;
  box-shadow: var(--nm-shadow-flat);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel:hover {
  box-shadow: var(--nm-shadow-hover);
}

.panel h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 850;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.tag {
  font-size: 10px;
  letter-spacing: .06em;
  font-weight: 800;
  color: #1d4ed8;
  border: 1px solid var(--line-highlight);
  background: var(--nm-bg);
  box-shadow: var(--nm-shadow-xs);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 24px;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .7fr);
  gap: 24px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.span-2 {
  grid-column: span 2;
}

label {
  display: grid;
  gap: 8px;
  color: #1e293b;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.label-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-mandatory {
  background: var(--nm-bg);
  color: #b91c1c;
  border: 1px solid rgba(254, 202, 202, 0.8);
  box-shadow: inset 1px 1px 2px #d4c2c2, inset -1px -1px 2px #ffffff;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   FORM INPUTS, SELECTS & TEXTAREAS (INSET NEUMORPHISM)
   ========================================================================== */
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  background: var(--nm-bg);
  color: var(--text);
  padding: 0 16px;
  font-size: 14px;
  outline: none;
  box-shadow: var(--nm-shadow-input);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}

textarea {
  height: auto;
  min-height: 90px;
  padding: 14px 16px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: inset 4px 4px 8px #bac6d8, inset -4px -4px 8px #ffffff, 0 0 0 3px rgba(37, 99, 235, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

/* Dashed Add Box / Infibyte Helper */
.extra-field,
.dashed-box {
  margin-top: 12px;
  padding: 18px 20px;
  background: var(--nm-bg);
  border: 1.5px dashed #93c5fd;
  border-radius: 16px;
  box-shadow: var(--nm-shadow-pressed);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInDown 0.2s ease-out;
}

.extra-field input {
  background: var(--nm-bg) !important;
  box-shadow: var(--nm-shadow-input) !important;
}

.extra-field .btn {
  background: linear-gradient(145deg, #3b82f6, #1d4ed8) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  font-weight: 750 !important;
  box-shadow: 4px 4px 10px rgba(37, 99, 235, 0.35), -4px -4px 10px #ffffff !important;
}

.extra-field .btn:hover {
  background: linear-gradient(145deg, #2563eb, #1e40af) !important;
}

.checkbox-row {
  display: grid;
  gap: 12px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 650;
  color: #1e293b;
  cursor: pointer;
  text-transform: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
  border-radius: 5px;
}

.hidden {
  display: none !important;
}

.side-note {
  position: sticky;
  top: 100px;
}

.feature-list {
  padding-left: 20px;
  color: #475569;
  font-size: 13.5px;
  display: grid;
  gap: 14px;
  margin: 8px 0;
}

.feature-list li::marker {
  color: var(--blue);
}

.mini-stock-list>div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(194, 205, 224, 0.6);
  font-size: 13px;
}

.mini-stock-list b {
  color: var(--blue);
  font-size: 14px;
}

.mini-stock-list small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}

/* ==========================================================================
   FILTER BAR
   ========================================================================== */
.filter-bar {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--line-highlight);
  border-radius: 18px;
  background: var(--nm-bg);
  box-shadow: var(--nm-shadow-flat);
}

.filter-bar label {
  min-width: 160px;
}

.filter-bar .btn {
  height: 46px;
}

.positive {
  color: #047857 !important;
}

.negative {
  color: #b91c1c !important;
}

/* ==========================================================================
   ALERTS
   ========================================================================== */
.alert {
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--line-highlight);
  font-size: 13.5px;
  margin: 0 0 24px;
  box-shadow: var(--nm-shadow-flat);
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert.success {
  background: var(--nm-bg);
  border: 1px solid rgba(167, 243, 208, 0.8);
  color: #065f46;
  box-shadow: inset 2px 2px 5px #c4d4c8, inset -2px -2px 5px #ffffff;
}

.alert.danger {
  background: var(--nm-bg);
  border: 1px solid rgba(254, 202, 202, 0.8);
  color: #991b1b;
  box-shadow: inset 2px 2px 5px #d4c2c2, inset -2px -2px 5px #ffffff;
}

.alert.info {
  background: var(--nm-bg);
  border: 1px solid rgba(191, 219, 254, 0.8);
  color: #1e40af;
  box-shadow: inset 2px 2px 5px #c0cddf, inset -2px -2px 5px #ffffff;
}

/* ==========================================================================
   LOGIN PAGE (NEUMORPHIC IMMERSIVE VIEW)
   ========================================================================== */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background: radial-gradient(circle at 50% 20%, #f0f6fd 0%, var(--nm-bg) 80%);
}

.login-card {
  width: min(100%, 460px);
  padding: 44px 40px;
  border: 1px solid var(--line-highlight);
  border-radius: 26px;
  background: var(--nm-bg);
  box-shadow: var(--nm-shadow-deep);
}

.login-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  margin-bottom: 26px;
  background: var(--nm-bg);
  border: 1px solid var(--line-highlight);
  border-radius: 18px;
  box-shadow: var(--nm-shadow-sm);
}

.login-logo-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  max-height: 60px;
  display: block;
  object-fit: contain;
}

.login-card h1 {
  font-size: 30px;
  letter-spacing: -.02em;
  font-weight: 850;
  margin: 4px 0;
  color: var(--heading);
}

.login-card h1 span {
  color: var(--blue);
}

.login-card>p:not(.eyebrow) {
  font-size: 13.5px;
  margin: 5px 0 26px;
  color: var(--muted);
}

/* ==========================================================================
   STOCK ACTIONS & ADJUSTMENT MODAL
   ========================================================================== */
.btn-stock-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  background: var(--nm-bg);
  border: 1px solid var(--line-highlight);
  box-shadow: var(--nm-shadow-xs);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 5px;
}

.btn-stock-action .action-icon {
  font-size: 13px;
  line-height: 1;
}

.btn-stock-action.add {
  color: #1d4ed8;
}

.btn-stock-action.add:hover {
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 4px 4px 12px rgba(37, 99, 235, 0.35), -4px -4px 10px #ffffff;
  transform: translateY(-1px);
}

.btn-stock-action.delete {
  color: #dc2626;
}

.btn-stock-action.delete:hover:not(:disabled) {
  background: linear-gradient(145deg, #ef4444, #dc2626);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 4px 4px 12px rgba(220, 38, 38, 0.35), -4px -4px 10px #ffffff;
  transform: translateY(-1px);
}

.qty-pill.good {
  color: #047857;
  border-color: rgba(167, 243, 208, 0.8);
  box-shadow: inset 1.5px 1.5px 3px #c4d4c8, inset -1.5px -1.5px 3px #ffffff;
  font-weight: 850;
}

.qty-pill.zero {
  color: #b91c1c;
  border-color: rgba(254, 202, 202, 0.8);
  box-shadow: inset 1.5px 1.5px 3px #d4c2c2, inset -1.5px -1.5px 3px #ffffff;
  font-weight: 850;
}

@keyframes highlightFlash {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.4);
  }

  100% {
    transform: scale(1);
  }
}

.highlight-flash {
  animation: highlightFlash 1.2s ease-out;
}

/* Modal Dialog */
.infibyte-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: fadeInDown 0.15s ease-out;
}

.infibyte-modal-backdrop.hidden {
  display: none !important;
}

.infibyte-modal-dialog {
  background: var(--nm-bg);
  border: 1px solid var(--line-highlight);
  border-radius: 24px;
  box-shadow: var(--nm-shadow-deep);
  width: 100%;
  max-width: 530px;
  padding: 28px;
  position: relative;
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% {
    transform: scale(0.94) translateY(12px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(194, 205, 224, 0.7);
}

.modal-eyebrow {
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .12em;
  color: var(--blue);
  text-transform: uppercase;
  margin: 0 0 4px;
}

.modal-header h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 850;
  color: var(--heading);
}

.modal-close-btn {
  background: var(--nm-bg);
  border: 1px solid var(--line-highlight);
  box-shadow: var(--nm-shadow-xs);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 750;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.modal-close-btn:hover {
  color: var(--heading);
  box-shadow: var(--nm-shadow-sm);
}

.modal-close-btn:active {
  box-shadow: var(--nm-shadow-pressed);
}

.modal-product-summary {
  background: var(--nm-bg);
  border: 1px solid var(--line-highlight);
  border-radius: 16px;
  box-shadow: var(--nm-shadow-pressed);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.modal-summary-item {
  display: flex;
  flex-direction: column;
}

.modal-summary-item .label {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .08em;
  margin-bottom: 3px;
}

.modal-summary-item .val {
  font-size: 13px;
  font-weight: 750;
  color: var(--heading);
  word-break: break-word;
}

.modal-summary-item .val.badge {
  color: var(--blue);
  font-size: 15px;
  font-weight: 850;
}

.modal-mode-tabs {
  display: flex;
  gap: 8px;
  background: var(--nm-bg);
  padding: 6px;
  border-radius: 14px;
  box-shadow: var(--nm-shadow-pressed);
  margin-bottom: 16px;
}

.modal-tab {
  flex: 1;
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 750;
  color: #475569;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.modal-tab:hover {
  color: var(--heading);
}

.modal-tab.active {
  background: var(--nm-bg);
  color: var(--blue);
  border-color: var(--line-highlight);
  box-shadow: var(--nm-shadow-xs);
}

.input-with-presets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qty-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-btn {
  background: var(--nm-bg);
  border: 1px solid var(--line-highlight);
  color: #334155;
  padding: 6px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: var(--nm-shadow-xs);
  transition: all 0.15s;
}

.preset-btn:hover {
  color: var(--blue);
  box-shadow: var(--nm-shadow-sm);
}

.preset-btn:active {
  box-shadow: var(--nm-shadow-pressed);
}

.modal-preview-box {
  background: var(--nm-bg);
  border: 1.5px dashed #86efac;
  border-radius: 14px;
  box-shadow: var(--nm-shadow-pressed);
  padding: 12px 18px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-preview-box .preview-label {
  font-size: 13px;
  font-weight: 700;
  color: #166534;
}

.modal-preview-box .preview-val {
  font-size: 17px;
  font-weight: 850;
  color: #15803d;
}

/* ==========================================================================
   LIVE SOURCE STOCK CHECKER
   ========================================================================== */
.source-stock-checker-box {
  grid-column: span 2;
  margin: 6px 0 12px;
}

.stock-live-badge {
  border-radius: 16px;
  padding: 16px 18px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--nm-shadow-flat);
  border: 1px solid var(--line-highlight);
}

.stock-live-badge.neutral {
  background: var(--nm-bg);
  border: 1.5px dashed #cbd5e1;
  color: #64748b;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stock-live-badge.good {
  background: var(--nm-bg);
  border: 1px solid rgba(167, 243, 208, 0.9);
  color: #166534;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.stock-live-badge.zero {
  background: var(--nm-bg);
  border: 1px solid rgba(254, 205, 211, 0.9);
  color: #9f1239;
}

.badge-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}

.live-dot.green {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
}

.live-dot.red {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

.live-label {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.live-count {
  font-size: 16px;
  font-weight: 850;
  margin-left: auto;
}

.live-loc-tag {
  font-size: 12px;
  font-weight: 750;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--nm-bg);
  border: 1px solid var(--line-highlight);
  box-shadow: var(--nm-shadow-xs);
}

.live-desc {
  margin: 6px 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #881337;
}

/* Quick Checker Widget in Sidebar */
.quick-checker-widget {
  background: var(--nm-bg);
  border: 1px solid var(--line-highlight);
  border-radius: 16px;
  box-shadow: var(--nm-shadow-pressed);
  padding: 18px;
  margin-top: 18px;
}

.quick-checker-widget h4 {
  margin: 0 0 14px;
  font-size: 13.5px;
  font-weight: 850;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-checker-widget label {
  font-size: 11.5px;
  font-weight: 750;
  color: #475569;
  display: block;
  margin-bottom: 5px;
}

.quick-checker-widget select {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  border-radius: 10px;
}

.quick-checker-result {
  background: var(--nm-bg);
  border: 1.5px dashed #93c5fd;
  border-radius: 12px;
  box-shadow: var(--nm-shadow-xs);
  padding: 12px 16px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 850;
  color: var(--blue);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {

  .two-col,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-note {
    position: static;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .app-shell {
    margin-left: 0;
  }

  .mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--nm-bg);
    border: 1px solid var(--line-highlight);
    box-shadow: var(--nm-shadow-xs);
    font-size: 18px;
    cursor: pointer;
  }

  .mobile-menu:active {
    box-shadow: var(--nm-shadow-pressed);
  }

  .topbar {
    padding: 14px 20px;
  }

  .content {
    padding: 22px 18px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================================================
   NEUMORPHIC UTILITIES & COMPONENT EXTENSIONS
   ========================================================================== */

/* Full-width buttons */
.btn.full {
  width: 100%;
}

/* Danger outline button */
.btn.danger-outline {
  background: var(--nm-bg);
  border: 1px solid rgba(254, 202, 202, 0.9);
  color: var(--red);
  box-shadow: var(--nm-shadow-xs);
}

.btn.danger-outline:hover {
  background: linear-gradient(145deg, #ef4444, #dc2626);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 4px 4px 12px rgba(239, 68, 68, 0.35), -4px -4px 10px #ffffff;
}

/* Typography Helpers */
.tiny {
  font-size: 11px;
}

.muted {
  color: var(--muted);
}

code {
  font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
  font-size: 12px;
  color: var(--blue);
  background: var(--nm-bg);
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid var(--line-highlight);
  box-shadow: inset 1.5px 1.5px 3px #c4cfdf, inset -1.5px -1.5px 3px #ffffff;
}

/* Inline forms in tables */
.inline-form {
  display: inline-block;
  margin: 0;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Reset password dropdown/details in staff table */
.reset-details {
  position: relative;
  display: inline-block;
}

.reset-details summary {
  list-style: none;
}

.reset-details summary::-webkit-details-marker {
  display: none;
}

.reset-box {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--nm-bg);
  border: 1px solid var(--line-highlight);
  box-shadow: var(--nm-shadow-flat);
  border-radius: 16px;
  padding: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 290px;
  animation: fadeInDown 0.18s ease-out;
}

.reset-box input {
  height: 38px;
  font-size: 12.5px;
}

/* Status Warning */
.status.warn {
  color: var(--amber-text);
  background: var(--nm-bg);
  border: 1px solid rgba(253, 230, 138, 0.9);
  box-shadow: inset 1.5px 1.5px 3px #ded2b4, inset -1.5px -1.5px 3px #ffffff;
}

/* Narrow panel for profile / settings */
.panel.narrow {
  max-width: 560px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}


/* ==========================================================================
   STOCK LOG MODULE - CLEAN WHITE / NEUMORPHIC LIGHT THEME
   ========================================================================== */
.stocklog-container {
  background: var(--nm-bg);
  color: var(--text);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--nm-shadow-flat);
  border: 1px solid var(--line-highlight);
  margin-bottom: 30px;
}

.stocklog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.stocklog-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 12px;
}

.stocklog-title .neon-badge {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.stocklog-tabs {
  display: flex;
  gap: 8px;
  background: var(--nm-bg);
  padding: 6px;
  border-radius: 14px;
  box-shadow: var(--nm-shadow-input);
  border: 1px solid var(--line-highlight);
}

.stocklog-tab-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stocklog-tab-btn:hover {
  color: var(--heading);
}

.stocklog-tab-btn.active.tab-in {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.stocklog-tab-btn.active.tab-out {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* Sequential Filter Bar */
.stocklog-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: var(--nm-bg);
  padding: 22px;
  border-radius: 18px;
  box-shadow: var(--nm-shadow-flat);
  border: 1px solid var(--line-highlight);
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .stocklog-filters {
    grid-template-columns: 1fr;
  }
}

.stocklog-filter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stocklog-filter-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stocklog-filter-label .step-num {
  background: #e2e8f0;
  color: #475569;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.stocklog-filter-item.active-step .step-num {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.stocklog-select {
  background: var(--nm-bg);
  color: var(--text);
  border: 1px solid rgba(194, 205, 224, 0.7);
  box-shadow: var(--nm-shadow-input);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.stocklog-select:focus:not(:disabled) {
  border-color: #2563eb;
  box-shadow: var(--nm-shadow-input), 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.stocklog-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #dde5ef;
  border-color: rgba(194, 205, 224, 0.4);
}

/* KPI Summary Bar */
.stocklog-kpi-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stocklog-kpi-card {
  background: var(--nm-bg);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--nm-shadow-flat);
  border: 1px solid var(--line-highlight);
  position: relative;
  overflow: hidden;
}

.stocklog-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #10b981;
}

.stocklog-kpi-card.blue::before {
  background: #2563eb;
}

.stocklog-kpi-card .kpi-lbl {
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.stocklog-kpi-card .kpi-val {
  font-size: 26px;
  font-weight: 900;
  color: var(--heading);
}

.stocklog-kpi-card .kpi-val.neon-green {
  color: #059669;
}

/* Tables in Neumorphic Light Theme */
.stocklog-table-wrap {
  background: var(--nm-bg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--nm-shadow-flat);
  border: 1px solid var(--line-highlight);
  margin-bottom: 20px;
}

.stocklog-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.stocklog-table th {
  background: rgba(222, 230, 241, 0.55);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.stocklog-table td {
  padding: 16px 20px;
  color: var(--text);
  font-size: 13.5px;
  border-bottom: 1px solid rgba(194, 205, 224, 0.4);
}

.stocklog-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.55);
}

.stocklog-table tbody tr:last-child td {
  border-bottom: none;
}

/* Action Buttons */
.btn-neon-action {
  background: #10b981;
  color: #ffffff;
  border: none;
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.btn-neon-action:hover {
  background: #059669;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.btn-neon-export {
  background: var(--nm-bg);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: var(--nm-shadow-xs);
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-neon-export:hover {
  background: #ecfdf5;
  color: #047857;
  border-color: #10b981;
}

/* Empty / Prompt States */
.stocklog-prompt-box {
  background: var(--nm-bg);
  box-shadow: var(--nm-shadow-input);
  border: 2px dashed rgba(194, 205, 224, 0.85);
  border-radius: 18px;
  padding: 44px 24px;
  text-align: center;
  color: var(--muted);
}

.stocklog-prompt-box .icon {
  font-size: 38px;
  margin-bottom: 12px;
  display: block;
}

.stocklog-prompt-box h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: var(--heading);
}

.stocklog-prompt-box p {
  margin: 0;
  font-size: 13.5px;
}

/* Detail Modal */
.stocklog-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.stocklog-modal-backdrop.hidden {
  display: none;
}

.stocklog-modal-dialog {
  background: var(--nm-bg);
  color: var(--text);
  border-radius: 20px;
  width: 100%;
  max-width: 580px; /* Portrait layout */
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--nm-shadow-deep);
  border: 1px solid var(--line-highlight);
  overflow: hidden;
  animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.stocklog-modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(222, 230, 241, 0.45);
}

.stocklog-modal-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--heading);
}

.stocklog-modal-close {
  background: var(--nm-bg);
  border: 1px solid var(--line);
  box-shadow: var(--nm-shadow-xs);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.stocklog-modal-close:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.stocklog-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
}

.stocklog-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(222, 230, 241, 0.3);
}

/* Portrait Stock Log Transaction Cards */
.stocklog-tx-card {
  background: var(--nm-bg);
  border: 1px solid var(--line-highlight);
  box-shadow: var(--nm-shadow-sm);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stocklog-tx-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--nm-shadow-md);
}

.stocklog-tx-card:last-child {
  margin-bottom: 0;
}

/* Header: Left Badge vs Top-Right Date & Time */
.tx-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.tx-card-header-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.tx-id-badge {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-weight: 800;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
}

.tx-badge-type {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.tx-badge-type.in {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.tx-badge-type.out {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.tx-badge-qty {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
}

.tx-badge-qty.in {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.tx-badge-qty.out {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

/* TOP-RIGHT DATE & TIME COMPONENT */
.tx-card-datetime-topright {
  text-align: right;
  flex-shrink: 0;
}

.tx-card-date {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.tx-card-time {
  font-size: 11.5px;
  font-weight: 600;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 7px;
  border-radius: 5px;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Product Info */
.tx-card-product {
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tx-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.tx-card-prodname {
  font-size: 14px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.35;
}

/* Route Display (From ➔ To) */
.tx-card-route {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(222, 230, 241, 0.45);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.route-box {
  flex: 1;
}

.route-box small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
  letter-spacing: 0.4px;
}

.route-box strong {
  display: block;
  font-size: 13px;
  color: var(--heading);
  word-break: break-word;
}

.route-arrow {
  font-size: 14px;
  color: #059669;
  font-weight: 800;
  padding: 0 4px;
}

/* Personnel Grid */
.tx-card-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.meta-cell small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.meta-cell strong {
  display: block;
  font-size: 12px;
  color: var(--heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Notes / Remarks */
.tx-card-remarks {
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(222, 230, 241, 0.3);
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 3px solid #059669;
}