﻿:root {
  --black: #07080a;
  --dark: #111318;
  --panel: #181b22;
  --panel-2: #20242d;
  --line: rgba(255, 255, 255, .1);
  --text: #f7f7f8;
  --muted: #a5adba;
  --red: #d71920;
  --red-dark: #a80f15;
  --white: #ffffff;
}

* { letter-spacing: 0; }

body {
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { text-decoration: none; }

.app-shell {
  background:
    linear-gradient(135deg, rgba(215, 25, 32, .12), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 255, 255, .05), transparent 28%),
    var(--black);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 270px;
  flex-direction: column;
  gap: 22px;
  padding: 22px 18px;
  background: linear-gradient(180deg, #101216, #08090b);
  border-right: 1px solid var(--line);
  z-index: 1030;
  overflow-y: auto;
  overflow-x: hidden;
}

.brand-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  color: var(--white);
  font-weight: 800;
  line-height: 1.1;
  min-height: 104px;
  overflow: visible;
}

.brand-logo {
  width: 106px;
  height: 106px;
  flex: 0 0 106px;
  object-fit: contain;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  padding: 0;
  transform: scale(1.28);
  transform-origin: center;
}

.navbar-logo,
.mobile-navbar-logo,
.dashboard-logo,
.login-logo,
.settings-logo,
.receipt-logo {
  object-fit: contain;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  padding: 0;
}

.navbar-logo {
  width: 46px;
  height: 46px;
}

.mobile-navbar-logo {
  width: 40px;
  height: 40px;
}

.dashboard-logo {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
}

.login-logo {
  width: 150px;
  height: 150px;
  max-width: 45vw;
}

.settings-logo {
  width: 180px;
  height: 180px;
  max-width: 70%;
}

.settings-qr {
  width: 210px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.gcash-qr-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gcash-qr-img {
  width: 340px;
  max-width: 52vw;
  height: auto;
  padding: 12px;
  background: var(--white);
  border-radius: 8px;
}

.account-manage-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.product-margin-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.product-margin-row small {
  color: var(--muted);
  font-weight: 800;
}

.product-margin-row.profit-alert {
  border-color: rgba(255, 193, 7, .55);
  background: rgba(255, 193, 7, .12);
}

.profit-price-form {
  display: grid;
  gap: 5px;
}

.profit-price-form .input-group {
  min-width: 220px;
}

.transaction-table {
  min-width: 920px;
}

details summary.btn {
  width: fit-content;
  list-style: none;
}

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

.logo-fallback {
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
}

.brand-logo-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  padding: 0;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  padding-bottom: 20px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--white);
  background: rgba(215, 25, 32, .16);
  border-color: rgba(215, 25, 32, .35);
}

.sidebar-nav i {
  color: var(--red);
  font-size: 1.12rem;
}

.main-panel {
  min-height: 100vh;
  padding-left: 270px;
}

.top-navbar,
.mobile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(17, 19, 24, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.top-navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: 108px;
  padding: 15px 26px;
}

.top-navbar h1 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
}

.top-system-title {
  font-size: clamp(1.35rem, 2.1vw, 2rem) !important;
  line-height: 1.05;
  font-weight: 950 !important;
  text-transform: uppercase;
  white-space: nowrap;
}

.eyebrow {
  color: var(--red);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.top-brand small {
  display: block;
  color: var(--muted);
}

.top-clock {
  color: var(--white);
  font-weight: 900;
  white-space: nowrap;
}

.account-badge,
.mobile-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .28);
  box-shadow: inset 0 0 18px rgba(30, 123, 255, .08);
}

.account-badge {
  min-width: 160px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 8px;
}

.account-badge i,
.mobile-user-badge i {
  color: var(--blue);
  font-size: 1.15rem;
}

.account-badge strong {
  display: block;
  max-width: 142px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9rem;
  line-height: 1.1;
}

.account-badge small {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.mobile-user-badge {
  max-width: 34vw;
  padding: 7px 9px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-wrap {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 24px;
}

.mobile-topbar {
  min-height: 62px;
  padding: 10px 14px;
  position: sticky;
  top: 0;
  z-index: 1040;
}

.mobile-title {
  font-weight: 900;
  color: var(--white);
}

.mobile-menu {
  background: #0d0f13;
  color: var(--white);
}

.btn-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border: 1px solid var(--line);
}

.logout-btn {
  min-width: 104px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logout-icon {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.start-scan-btn {
  min-height: 54px;
  padding: 12px 22px;
  font-size: 1.05rem;
  font-weight: 950;
}

.start-scan-btn i {
  font-size: 1.25rem;
}

.card,
.tactical-card {
  background: linear-gradient(180deg, rgba(32, 36, 45, .96), rgba(20, 22, 28, .96));
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, .22);
}

.stat-card {
  min-height: 130px;
  overflow: hidden;
  position: relative;
}

.stat-card:after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 92px;
  height: 92px;
  border: 16px solid rgba(215, 25, 32, .18);
  transform: rotate(20deg);
}

.stat-card small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.stat-card h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  margin: .35rem 0 0;
  font-weight: 900;
}

.stat-card-link {
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.stat-card-link:hover,
.stat-card-link:focus {
  color: inherit;
  border-color: rgba(215, 25, 32, .55);
  box-shadow: 0 20px 38px rgba(0, 0, 0, .28);
  transform: translateY(-2px);
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover td {
  background: rgba(255, 255, 255, .06);
}

.table-link {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.table-link:hover {
  color: var(--red);
}

.stat-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--red);
  border-radius: 8px;
}

.table {
  color: var(--text);
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--line);
  min-width: 560px;
}

.table th {
  color: var(--muted);
  text-transform: uppercase;
  font-size: .76rem;
}

.form-control,
.form-select {
  background: #0f1116;
  border-color: rgba(255, 255, 255, .14);
  color: var(--white);
  border-radius: 6px;
}

.form-control:focus,
.form-select:focus {
  background: #0f1116;
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 0 0 .2rem rgba(215, 25, 32, .18);
}

.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
  background-color: #151820;
  border-color: rgba(255, 255, 255, .14);
  color: var(--muted);
  opacity: 1;
}

.form-control::file-selector-button {
  background: var(--panel-2);
  color: var(--white);
}

label,
.form-label { color: var(--muted); font-weight: 700; }

.btn {
  border-radius: 6px;
  font-weight: 800;
}

.btn-dark,
.btn-primary,
.btn-success {
  background: var(--red);
  border-color: var(--red);
}

.btn-dark:hover,
.btn-primary:hover,
.btn-success:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-outline-dark,
.btn-secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, .24);
}

.btn-outline-dark:hover,
.btn-secondary:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .34);
}

.product-img {
  width: 100%;
  max-width: 180px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  background: #2b303b;
}

.scan-input {
  font-size: 28px;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0;
}

.camera-scanner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050609;
  min-height: 180px;
  aspect-ratio: 16 / 9;
}

.camera-scanner video {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.camera-scanner::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  z-index: 2;
  height: 72px;
  transform: translateY(-50%);
  border-top: 1px solid rgba(255, 255, 255, .46);
  border-bottom: 1px solid rgba(255, 255, 255, .46);
  background: rgba(255, 255, 255, .025);
  pointer-events: none;
}

.camera-scanner::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: calc(50% - 36px);
  z-index: 3;
  height: 72px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  animation: scanSweep 1.8s ease-in-out infinite;
  pointer-events: none;
}

.scanner-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  z-index: 4;
  height: 1px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 0 10px rgba(255, 255, 255, .35);
  animation: scanPulse 1.8s ease-in-out infinite;
}

.camera-scanner.scan-captured::before {
  border-color: rgba(25, 135, 84, .75);
  background: rgba(25, 135, 84, .08);
}

.camera-scanner.scan-captured::after,
.camera-scanner.scan-captured .scanner-line {
  background: rgba(25, 135, 84, .9);
  box-shadow: 0 0 12px rgba(25, 135, 84, .55);
  animation-duration: .9s;
}

@keyframes scanSweep {
  0%, 100% { transform: translateX(-24%); opacity: .18; }
  50% { transform: translateX(24%); opacity: .65; }
}

@keyframes scanPulse {
  0%, 100% { opacity: .45; transform: scaleX(.92); }
  50% { opacity: .95; transform: scaleX(1); }
}

.barcode-svg {
  display: block;
  width: 100%;
  height: 46px;
  fill: #000;
}

.label-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50mm, 1fr));
  gap: 12px;
}

.label-category-section {
  margin-bottom: 24px;
}

.label-count {
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 12px;
}

.print-report-header {
  margin-bottom: 16px;
}

.print-report-header h2 {
  margin: 0;
  font-weight: 900;
}

.print-report-header p {
  color: var(--muted);
  margin: 4px 0 0;
}

.report-summary small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.report-summary h3 {
  margin: 4px 0 0;
  font-weight: 900;
}

.label-category-section h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
}

.barcode-label {
  color: #000;
  background: #fff;
  border: 1px dashed #222;
  border-radius: 4px;
  box-sizing: border-box;
  padding: 2mm;
  width: 50mm;
  height: 25mm;
  page-break-inside: avoid;
}

.barcode-label-nimbot {
  width: 40mm;
  height: 30mm;
  padding: 2mm;
}

.barcode-label-small {
  width: 40mm;
  height: 20mm;
  padding: 1.5mm;
}

.barcode-label-large {
  width: 60mm;
  height: 30mm;
  padding: 2.5mm;
}

.label-name,
.label-desc,
.label-sku,
.label-price,
.label-category {
  display: block;
}

.label-category {
  float: right;
  max-width: 16mm;
  padding: .2mm 1mm;
  border: 1px solid #111;
  font-size: 5.5px;
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.label-name {
  font-size: 9px;
  line-height: 1.15;
  min-height: 5mm;
  max-height: 7mm;
  overflow: hidden;
}

.label-desc {
  height: 5mm;
  font-size: 7px;
  line-height: 1.2;
  overflow: hidden;
}

.label-price {
  margin: .15mm 0 .2mm;
  font-size: 8px;
  font-weight: 900;
}

.label-sku {
  margin: .05mm 0 0;
  font-size: 8.4px;
  font-weight: 800;
  text-align: left;
  letter-spacing: 0;
}

.barcode-label-small .barcode-svg { height: 7mm; }
.barcode-label-nimbot .barcode-svg { height: 12mm; }
.barcode-label-standard .barcode-svg { height: 8mm; }
.barcode-label-large .barcode-svg { height: 10mm; }

.barcode-label-small .label-desc { height: 4mm; }
.barcode-label-nimbot .label-desc { height: 2.6mm; }
.barcode-label-large .label-desc { height: 10mm; }

.badge-stock { font-size: 14px; }

.product-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-filter-bar .btn {
  min-width: 112px;
}

.category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.category-heading h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 900;
}

.category-count {
  color: var(--white);
  background: rgba(215, 25, 32, .16);
  border: 1px solid rgba(215, 25, 32, .4);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

.product-card {
  overflow: hidden;
}

.product-card-media {
  position: relative;
  height: 240px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-image-zoom {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-image-zoom span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--white);
  background: rgba(0, 0, 0, .72);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: .72rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(4px);
  transition: .18s ease;
}

.product-image-zoom:hover span,
.product-image-zoom:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.product-image-modal .modal-content {
  background: #0f1116;
  border: 1px solid rgba(255, 255, 255, .16);
}

.product-image-modal .modal-header {
  border-bottom-color: rgba(255, 255, 255, .14);
}

.product-image-modal .modal-title {
  color: var(--white);
  font-weight: 900;
}

.product-image-modal .modal-body {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 16px;
  background: #fff;
}

.product-image-modal img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}

.product-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.product-card-placeholder i {
  color: var(--red);
  font-size: 2rem;
}

.category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  color: var(--white);
  background: var(--red);
  border-radius: 6px;
  padding: 6px 9px;
  font-size: .72rem;
  font-weight: 900;
}

.product-card-body {
  padding: 16px;
}

.product-card-body h4 {
  min-height: 2.5rem;
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 900;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  min-width: 0;
  font-weight: 700;
}

.product-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta i {
  color: var(--red);
}

.product-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.product-card-stats div {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.product-card-stats small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card-stats strong {
  display: block;
  margin-top: 2px;
  color: var(--white);
}

.empty-category {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.empty-category i {
  color: var(--red);
  font-size: 1.45rem;
}

.delivery-lines {
  display: grid;
  gap: 12px;
}

.delivery-line {
  padding: 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.delivery-line .col-lg-3 {
  position: relative;
}

.delivery-product-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 25;
  display: grid;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  background: #0d0f13;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
}

.delivery-product-suggestion {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px;
  color: var(--white);
  text-align: left;
  background: rgba(255, 255, 255, .04);
  border: 1px solid transparent;
  border-radius: 8px;
}

.delivery-product-suggestion:hover,
.delivery-product-suggestion:focus {
  border-color: rgba(215, 25, 32, .55);
  background: rgba(215, 25, 32, .14);
}

.delivery-product-suggestion strong,
.delivery-product-preview strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .92rem;
}

.delivery-product-suggestion small,
.delivery-product-preview span,
.delivery-product-preview small,
.delivery-product-suggestion-empty {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.delivery-product-suggestion-empty {
  padding: 10px;
}

.delivery-product-thumb {
  width: 54px;
  height: 44px;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 6px;
}

.delivery-product-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--red);
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
}

.delivery-product-preview {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 8px 0 4px;
  padding: 10px;
  background: rgba(0, 0, 0, .24);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
}

.delivery-product-preview .delivery-product-thumb {
  width: 82px;
  height: 64px;
}

.delivery-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.delivery-summary div {
  padding: 14px;
  background: rgba(215, 25, 32, .12);
  border: 1px solid rgba(215, 25, 32, .35);
  border-radius: 8px;
}

.delivery-summary small {
  display: block;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.delivery-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-size: 1.1rem;
}

.delivery-line-computed {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}

.delivery-line-computed span {
  color: var(--muted);
  background: rgba(0, 0, 0, .2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .88rem;
  font-weight: 800;
}

.delivery-line-computed strong {
  color: var(--white);
}

.delivery-detail-table {
  min-width: 760px;
}

.page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.page-title h2 {
  margin: 0;
  font-weight: 900;
}

.text-muted { color: var(--muted) !important; }
.alert { border-radius: 8px; border: 0; }
.chart-box { min-height: 300px; }

.dashboard-chart-box {
  min-height: 240px;
  height: 260px;
}

.dashboard-chart-box canvas {
  max-height: 190px;
}

.report-chart-box {
  min-height: 320px;
  height: 360px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(215, 25, 32, .18), transparent 36%),
    var(--black);
}

.login-card {
  width: min(100%, 460px);
  text-align: center;
}

.receipt-logo {
  width: 90px;
  height: 90px;
}

.pull-refresh-indicator {
  position: fixed;
  top: -54px;
  left: 50%;
  z-index: 2100;
  transform: translate(-50%, 0);
  background: linear-gradient(135deg, var(--red), #111318 65%);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  color: var(--white);
  font-size: .82rem;
  font-weight: 900;
  opacity: 0;
  padding: 10px 16px;
  pointer-events: none;
  text-transform: uppercase;
  transition: opacity .16s ease, transform .16s ease;
  white-space: nowrap;
}

.pull-refresh-indicator.is-visible {
  opacity: 1;
}

.pull-refresh-indicator.is-ready {
  background: linear-gradient(135deg, #0d6efd, var(--red));
}

@media (max-width: 991.98px) {
  .main-panel {
    padding-left: 0;
  }

  .top-navbar {
    display: none;
  }

  .content-wrap {
    padding: 18px 12px 28px;
  }
}

@media (max-width: 575.98px) {
  .card { padding: 1rem !important; }
  .scan-input { font-size: 20px; }
  .product-img { max-width: 100%; height: 180px; margin-bottom: 1rem; }
  .gcash-qr-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .gcash-qr-img {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
  .product-filter-bar .btn { min-width: 0; flex: 1 1 calc(50% - 10px); }
  .category-heading { align-items: start; flex-direction: column; }
  .delivery-summary { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .d-flex.gap-2 { flex-direction: column; width: 100%; }
}

@media print {
  @page {
    size: A4;
    margin: 8mm;
  }

  body { background: #fff; color: #000; }
  .sidebar,
  .top-navbar,
  .mobile-topbar,
  .no-print { display: none !important; }
  .main-panel { padding-left: 0; min-height: auto; }
  .content-wrap { padding: 0; width: auto; max-width: none; margin: 0; }
  .card { box-shadow: none; border: 0; color: #000; background: #fff; }
  .table { color: #000; --bs-table-color: #000; --bs-table-border-color: #ddd; }
  .print-report-header p,
  .report-summary small {
    color: #333 !important;
  }
  .report-summary .card {
    border: 1px solid #ddd;
    margin-bottom: 8px;
  }
  .label-sheet {
    display: grid;
    gap: 2mm;
    justify-content: start;
  }
  .label-sheet-small {
    grid-template-columns: repeat(4, 40mm);
  }
  .label-sheet-nimbot {
    grid-template-columns: repeat(1, 40mm);
  }
  .label-sheet-standard {
    grid-template-columns: repeat(3, 50mm);
  }
  .label-sheet-large {
    grid-template-columns: repeat(3, 60mm);
  }
  .barcode-label {
    border: 1px solid #999;
    border-radius: 0;
  }
  .label-category-section {
    break-inside: auto;
    margin-bottom: 4mm;
  }
  .label-category-section h3 {
    display: none;
  }
}

/* JB LOGO MATCH THEME START */
:root {
  --black: #020304;
  --dark: #0b0d11;
  --panel: #151922;
  --panel-2: #202632;
  --line: rgba(223, 227, 232, .13);
  --text: #f6f8fb;
  --muted: #aab4c2;
  --red: #ff1f1f;
  --red-dark: #a80710;
  --blue: #1683ff;
  --bronze: #c0934f;
  --gold: #f1c06c;
  --silver: #dfe3e8;
}

body,
.app-shell {
  background:
    radial-gradient(circle at 9% 12%, rgba(255, 31, 31, .22), transparent 24%),
    radial-gradient(circle at 91% 10%, rgba(22, 131, 255, .22), transparent 24%),
    linear-gradient(135deg, rgba(255, 31, 31, .08) 0 14%, transparent 14% 46%, rgba(22, 131, 255, .08) 46% 58%, transparent 58% 100%),
    linear-gradient(180deg, #000 0%, #07090d 52%, #000 100%) !important;
  color: var(--text);
}

.app-shell::before,
.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .38;
  background:
    linear-gradient(30deg, rgba(255,255,255,.026) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.026) 87.5%),
    linear-gradient(150deg, rgba(255,255,255,.026) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.026) 87.5%),
    linear-gradient(90deg, rgba(255, 31, 31, .16), transparent 40%, rgba(22, 131, 255, .16));
  background-size: 44px 78px, 44px 78px, auto;
}

.sidebar,
.mobile-menu,
.top-navbar,
.mobile-topbar {
  background:
    linear-gradient(145deg, rgba(255, 31, 31, .14), transparent 36%, rgba(22, 131, 255, .13)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, #10131a, #030405) !important;
  border-color: transparent !important;
  border-image: linear-gradient(180deg, var(--red), var(--bronze), var(--blue)) 1 !important;
  box-shadow: 0 0 28px rgba(0,0,0,.58), inset -1px 0 0 rgba(22, 131, 255, .28);
}

.top-navbar,
.mobile-topbar {
  border-bottom: 1px solid rgba(22, 131, 255, .45) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.42), inset 0 -1px 0 rgba(255, 31, 31, .34);
}

.brand-logo,
.navbar-logo,
.mobile-navbar-logo,
.dashboard-logo,
.login-logo,
.settings-logo,
.receipt-logo {
  filter: drop-shadow(0 0 13px rgba(255, 31, 31, .55)) drop-shadow(0 0 15px rgba(22, 131, 255, .38)) drop-shadow(0 8px 18px rgba(0,0,0,.75));
}

.top-system-title,
.page-title h2,
.card h1,
.card h2,
.card h3,
.login-card h1,
.category-heading h3 {
  color: var(--silver) !important;
  font-weight: 950;
  text-shadow: 0 0 10px rgba(255, 31, 31, .28), 0 0 14px rgba(22, 131, 255, .22);
}

.sidebar-nav a {
  background: linear-gradient(90deg, rgba(255, 31, 31, .07), rgba(15, 18, 24, .9) 48%, rgba(22, 131, 255, .07));
  border: 1px solid rgba(223, 227, 232, .1);
  color: var(--silver);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: linear-gradient(90deg, rgba(255, 31, 31, .2), rgba(12, 14, 20, .96) 50%, rgba(22, 131, 255, .2));
  border-color: rgba(22, 131, 255, .54);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 31, 31, .2), 0 0 18px rgba(22, 131, 255, .18), inset 3px 0 0 var(--red), inset -3px 0 0 var(--blue);
}

.sidebar-nav i,
.stat-icon,
.account-badge i,
.mobile-user-badge i {
  color: var(--gold) !important;
}

.main-panel,
.content-wrap {
  background: transparent !important;
}

.card,
.login-card,
.stat-card,
.dashboard-chart-box,
.report-chart-box,
.account-manage-panel,
.delivery-line,
.delivery-line-selected,
.product-card,
.product-card-body,
.table-responsive,
.modal-content {
  background:
    linear-gradient(145deg, rgba(255, 31, 31, .075), transparent 30%, rgba(22, 131, 255, .075)),
    linear-gradient(180deg, rgba(31, 37, 48, .96), rgba(10, 12, 18, .98)) !important;
  border: 1px solid rgba(223, 227, 232, .13) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 42px rgba(0,0,0,.42) !important;
  color: var(--text) !important;
}

.card:hover,
.stat-card-link:hover,
.product-card:hover {
  border-color: rgba(22, 131, 255, .58) !important;
  box-shadow: 0 0 18px rgba(255, 31, 31, .2), 0 0 24px rgba(22, 131, 255, .18), 0 22px 46px rgba(0,0,0,.54) !important;
}

.form-control,
.form-select,
.input-group-text,
textarea,
select,
input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="search"] {
  background: #07090e !important;
  border-color: rgba(223, 227, 232, .16) !important;
  color: #fff !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
input:focus,
select:focus {
  border-color: rgba(22, 131, 255, .86) !important;
  box-shadow: 0 0 0 .18rem rgba(22, 131, 255, .2), 0 0 16px rgba(22, 131, 255, .24) !important;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: rgba(223, 227, 232, .12);
  color: var(--text) !important;
}

.table thead th,
.table th {
  color: var(--silver) !important;
  background: rgba(22, 131, 255, .08) !important;
  border-bottom-color: rgba(255, 31, 31, .32) !important;
}

.btn-dark,
.btn-danger,
.start-scan-btn {
  background: linear-gradient(180deg, #ff3c3c, #ad0710) !important;
  border-color: rgba(255, 31, 31, .82) !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(255, 31, 31, .38), inset 0 1px 0 rgba(255,255,255,.18) !important;
}

.btn-outline-dark,
.btn-secondary,
.btn-success,
.btn-primary {
  background: linear-gradient(180deg, rgba(22, 131, 255, .22), #07111f) !important;
  border-color: rgba(22, 131, 255, .78) !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(22, 131, 255, .28), inset 0 1px 0 rgba(255,255,255,.12) !important;
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.badge,
.delivery-line-computed span,
.product-margin-row,
.account-badge,
.mobile-user-badge {
  background: rgba(192, 147, 79, .13) !important;
  border: 1px solid rgba(241, 192, 108, .38) !important;
  color: var(--silver) !important;
}

.text-muted,
small,
.form-text {
  color: var(--muted) !important;
}

.alert {
  background: linear-gradient(90deg, rgba(255,31,31,.12), rgba(22,131,255,.08)) !important;
  border: 1px solid rgba(255, 31, 31, .3) !important;
  color: #fff !important;
}

.product-img,
.product-thumb,
.delivery-selected-product img,
.selected-product-card img {
  background: #f8f8f8 !important;
  border: 1px solid rgba(223, 227, 232, .16) !important;
  box-shadow: 0 0 12px rgba(0,0,0,.35);
}

.logout-btn {
  min-height: 42px;
  padding: 9px 16px !important;
}

/* Logo clarity pass: keep every POS logo crisp on dark/neon backgrounds. */
.brand-block {
  min-height: 120px !important;
}

.brand-logo,
.navbar-logo,
.mobile-navbar-logo,
.dashboard-logo,
.login-logo,
.settings-logo,
.receipt-logo,
.logo-fallback {
  aspect-ratio: 1 / 1;
  backface-visibility: hidden;
  background: radial-gradient(circle at center, rgba(0, 0, 0, .97) 0 58%, rgba(0, 0, 0, .72) 66%, transparent 76%) !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  display: block;
  filter: drop-shadow(0 0 5px rgba(255, 31, 31, .42)) drop-shadow(0 0 6px rgba(22, 131, 255, .34)) drop-shadow(0 7px 14px rgba(0,0,0,.84)) !important;
  image-rendering: -webkit-optimize-contrast;
  object-fit: contain !important;
  opacity: 1 !important;
  outline: none !important;
  padding: 3px !important;
  transform: translateZ(0) !important;
  transform-origin: center !important;
}

.brand-logo {
  flex: 0 0 118px !important;
  height: 118px !important;
  width: 118px !important;
}

.navbar-logo {
  height: 54px !important;
  width: 54px !important;
}

.mobile-navbar-logo {
  height: 46px !important;
  width: 46px !important;
}

.dashboard-logo {
  flex-basis: 74px !important;
  height: 74px !important;
  width: 74px !important;
}

.login-logo {
  height: 168px !important;
  max-width: 52vw !important;
  width: 168px !important;
}

.settings-logo {
  height: 190px !important;
  max-width: 76% !important;
  width: 190px !important;
}

.receipt-logo {
  height: 96px !important;
  width: 96px !important;
}
/* JB LOGO MATCH THEME END */



/* Keeps the edited product visible after returning from Update Product. */
.product-item {
  scroll-margin-top: 120px;
}

.product-item.product-updated .product-card {
  border-color: #1e7bff;
  box-shadow: 0 0 0 2px rgba(30, 123, 255, 0.45), 0 0 28px rgba(255, 30, 30, 0.28);
  animation: productUpdatedPulse 1.8s ease;
}

@keyframes productUpdatedPulse {
  0% { transform: translateY(-4px); box-shadow: 0 0 0 3px rgba(255, 30, 30, 0.65), 0 0 34px rgba(30, 123, 255, 0.38); }
  100% { transform: translateY(0); }
}



