body {
  min-height: 100vh;
  background: radial-gradient(circle at 85% 5%, rgba(67, 217, 204, 0.16), transparent 28rem), linear-gradient(135deg, #071016 0%, #132228 54%, #101918 100%);
  color: #eef7f3;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  border-right: 1px solid rgba(180, 221, 223, 0.16);
  background: rgba(7, 16, 22, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
  color: #eef7f3;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(67, 217, 204, 0.46);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(67, 217, 204, 0.22), rgba(117, 209, 126, 0.12));
  color: #43d9cc;
  font-size: 0.78rem;
  font-weight: 800;
}

.brand small,
.eyebrow,
.metric-card span,
.metric-card small,
.stack-list small {
  color: #8ba5a4;
}

.nav-link {
  padding: 12px 14px;
  border-radius: 8px;
  color: #bed1ce;
}

.nav-link:hover {
  background: rgba(67, 217, 204, 0.12);
  color: #eef7f3;
}

.content {
  padding: 30px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.refresh-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(180, 221, 223, 0.16);
  border-radius: 8px;
  background: rgba(15, 26, 34, 0.86);
  color: #43d9cc;
  font-weight: 800;
  text-decoration: none;
}

.range-toggle {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(180, 221, 223, 0.16);
  border-radius: 8px;
  background: rgba(15, 26, 34, 0.86);
}

.range-toggle a {
  min-width: 76px;
  padding: 11px 13px;
  color: #abc1bd;
  text-align: center;
  text-decoration: none;
}

.range-toggle .active {
  background: #43d9cc;
  color: #071016;
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.95;
}

h2 {
  font-size: 1rem;
}

.eyebrow {
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-pill,
.panel,
.metric-card {
  border: 1px solid rgba(180, 221, 223, 0.16);
  border-radius: 8px;
  background: rgba(15, 26, 34, 0.86);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.status-pill {
  padding: 8px 12px;
  color: #43d9cc;
}

.kpi-grid,
.dashboard-grid {
  display: grid;
  gap: 16px;
}

.kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 16px;
}

.inventory-home {
  margin-bottom: 16px;
}

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

.inventory-action-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(180, 221, 223, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #eef7f3;
  cursor: pointer;
  text-decoration: none;
}

.inventory-action-card:hover {
  border-color: rgba(67, 217, 204, 0.5);
  background: rgba(67, 217, 204, 0.08);
}

.inventory-action-card span {
  color: #43d9cc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inventory-action-card strong {
  font-size: 1.18rem;
  line-height: 1.2;
}

.inventory-action-card small {
  color: #9fb8b4;
  line-height: 1.45;
}

.inventory-action-card.accent {
  border-color: rgba(117, 209, 126, 0.35);
}

.inventory-action-card.accent span {
  color: #75d17e;
}

.inventory-action-card.warning {
  border-color: rgba(232, 180, 74, 0.42);
}

.inventory-action-card.warning span {
  color: #e8b44a;
}

.inventory-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.inventory-secondary-actions a {
  padding: 7px 10px;
  border: 1px solid rgba(180, 221, 223, 0.16);
  border-radius: 8px;
  color: #bed1ce;
  font-size: 0.82rem;
  text-decoration: none;
}

.inventory-secondary-actions a:hover {
  border-color: rgba(67, 217, 204, 0.42);
  color: #43d9cc;
}

.metric-card,
.panel {
  padding: 20px;
}

.metric-card {
  display: grid;
  gap: 10px;
  min-height: 136px;
}

.metric-card strong {
  font-size: 2rem;
}

.metric-card.accent strong {
  color: #e8b44a;
}

.small-text {
  font-size: 1rem !important;
}

.dashboard-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.workspace {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 16px;
  align-items: stretch;
}

.wide {
  grid-column: span 2;
}

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

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.pill,
.pill-link {
  align-self: flex-start;
  padding: 6px 10px;
  border: 1px solid rgba(67, 217, 204, 0.42);
  border-radius: 999px;
  color: #43d9cc;
  font-size: 0.78rem;
  text-decoration: none;
}

.order-delivery-group {
  padding: 16px 0;
  border-top: 1px solid rgba(180, 221, 223, 0.14);
}

.order-delivery-group:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.order-delivery-header,
.order-delivery-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.order-delivery-header {
  justify-content: space-between;
  margin-bottom: 14px;
}

.order-delivery-header h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.order-delivery-status {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.order-process-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-process-form select {
  min-width: 150px;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  height: 230px;
  align-items: end;
}

.bar-wrap {
  display: grid;
  height: 100%;
  align-items: end;
  gap: 10px;
  color: #8ba5a4;
  font-size: 0.8rem;
}

.bar {
  display: block;
  min-height: 8px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #43d9cc, rgba(117, 209, 126, 0.42));
}

.line-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 12px;
  height: 190px;
  padding-top: 8px;
  border-bottom: 1px solid rgba(180, 221, 223, 0.16);
}

.bar-link {
  display: block;
  width: 100%;
  height: var(--height);
  min-height: 8%;
  align-self: end;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #43d9cc, rgba(117, 209, 126, 0.36));
  transition: filter 160ms ease, transform 160ms ease;
}

.bar-link:hover {
  filter: brightness(1.25);
  transform: translateY(-3px);
}

.chart-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  padding-top: 12px;
  color: #8ba5a4;
  font-size: 0.78rem;
}

.donut {
  display: grid;
  width: min(210px, 72vw);
  aspect-ratio: 1;
  place-items: center;
  margin: 10px auto 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #111d25 0 56%, transparent 57%), conic-gradient(#43d9cc 0 var(--readiness, 0%), rgba(232, 180, 74, 0.82) var(--readiness, 0%) 94%, rgba(239, 114, 111, 0.8) 94%);
}

.donut span {
  font-size: 2.25rem;
  font-weight: 850;
}

.legend,
.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legend li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #c6d8d4;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: auto;
}

.green {
  background: #75d17e;
}

.amber {
  background: #e8b44a;
}

.red {
  background: #ef726f;
}

.muted {
  color: #8ba5a4;
}

.chart-canvas-wrap {
  position: relative;
  height: 320px;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.stack-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(180, 221, 223, 0.16);
}

.stack-list i {
  grid-column: 1 / -1;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #43d9cc 0 var(--width), rgba(255, 255, 255, 0.08) var(--width));
}

.calendar-controls {
  display: grid;
  grid-template-columns: 36px 1fr 0.9fr 36px;
  gap: 8px;
  margin-bottom: 14px;
}

.calendar-form {
  display: contents;
}

.calendar-controls select,
.calendar-controls .icon-button {
  min-width: 0;
  height: 36px;
  border: 1px solid rgba(180, 221, 223, 0.16);
  border-radius: 8px;
  background: #111d25;
  color: #eef7f3;
  padding: 0 10px;
  text-decoration: none;
}

.calendar-controls .icon-button {
  display: grid;
  place-items: center;
  padding: 0;
}

.customer-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  margin-bottom: 14px;
}

.customer-filter-form input {
  border-color: rgba(180, 221, 223, 0.16);
  background-color: #111d25;
  color: #eef7f3;
}

.log-filter-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(220px, 1fr) auto auto;
  gap: 10px;
}

.log-filter-form input,
.log-filter-form select {
  border-color: rgba(180, 221, 223, 0.16);
  background-color: #111d25;
  color: #eef7f3;
}

.report-filter-form {
  display: grid;
  grid-template-columns: minmax(130px, 0.3fr) minmax(130px, 0.3fr) minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.report-filter-form label {
  display: grid;
  gap: 4px;
  color: #8ba5a4;
  font-size: 0.78rem;
}

.report-filter-form input {
  border-color: rgba(180, 221, 223, 0.16);
  background-color: #111d25;
  color: #eef7f3;
}

.manychat-filter-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.3fr) minmax(160px, 0.3fr) auto;
  gap: 10px;
  align-items: end;
}

.manychat-filter-form label {
  display: grid;
  gap: 4px;
  color: #8ba5a4;
  font-size: 0.78rem;
}

.manychat-filter-form input {
  border-color: rgba(180, 221, 223, 0.16);
  background-color: #111d25;
  color: #eef7f3;
}

.compact-action-form {
  display: grid;
  gap: 6px;
}

.compact-action-form textarea,
.compact-action-form select {
  border-color: rgba(180, 221, 223, 0.16);
  background-color: #111d25;
  color: #eef7f3;
}

.customer-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.customer-summary span {
  padding: 7px 10px;
  border: 1px solid rgba(180, 221, 223, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #8ba5a4;
}

.customer-summary strong {
  color: #eef7f3;
}

.detail-link {
  color: #43d9cc;
  font-weight: 700;
  text-decoration: none;
}

.detail-link:hover {
  color: #75d17e;
  text-decoration: underline;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekday,
.calendar-empty,
.calendar-grid a {
  min-height: 46px;
}

.calendar-weekday {
  display: grid;
  place-items: center;
  color: #8ba5a4;
  font-size: 0.72rem;
  font-weight: 800;
}

.calendar-grid a {
  display: grid;
  gap: 3px;
  align-content: center;
  padding: 6px;
  border: 1px solid rgba(180, 221, 223, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #eef7f3;
  text-align: left;
  text-decoration: none;
}

.calendar-grid a span {
  overflow: hidden;
  color: #8ba5a4;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-grid a:hover,
.calendar-grid .selected-date {
  border-color: rgba(67, 217, 204, 0.7);
  background: rgba(67, 217, 204, 0.13);
}

.timeline li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(180, 221, 223, 0.16);
}

.timeline.compact li {
  grid-template-columns: 48px 1fr;
  padding: 10px 0;
  font-size: 0.9rem;
}

.stacked-form {
  display: grid;
  gap: 12px;
}

.stacked-form p {
  display: grid;
  gap: 6px;
  margin: 0;
}

.stacked-form label,
.inventory-table small {
  color: #8ba5a4;
  font-size: 0.82rem;
}

.stacked-form input,
.stacked-form select,
.stacked-form textarea {
  border-color: rgba(180, 221, 223, 0.16);
  background-color: #111d25;
  color: #eef7f3;
}

.stacked-form .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
}

.inventory-table td:first-child {
  display: grid;
  gap: 2px;
}

.inventory-table th,
.inventory-table td {
  min-width: 96px;
}

.sku-map-form {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 76px auto;
  gap: 8px;
}

.sku-map-form select,
.sku-map-form input {
  border-color: rgba(180, 221, 223, 0.16);
  background-color: #111d25;
  color: #eef7f3;
}

.manual-sku-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 0.8fr) 84px auto;
  gap: 8px;
  margin-bottom: 16px;
}

.manual-sku-form input,
.manual-sku-form select {
  border-color: rgba(180, 221, 223, 0.16);
  background-color: #111d25;
  color: #eef7f3;
}

.threshold-form {
  display: grid;
  grid-template-columns: 96px auto;
  gap: 8px;
  align-items: center;
}

.threshold-form input {
  border-color: rgba(180, 221, 223, 0.16);
  background-color: #111d25;
  color: #eef7f3;
}

.component-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.component-map-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0.24rem 0.32rem 0.24rem 0.5rem;
  border-radius: 999px;
  background: #198754;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.component-map-pill button {
  border: 0;
  border-radius: 999px;
  padding: 0.16rem 0.38rem;
  background: rgba(9, 20, 28, 0.24);
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  line-height: 1.1;
}

.tool-tabs {
  display: grid;
  gap: 14px;
}

.tool-tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-toggle {
  display: grid;
  grid-template-columns: repeat(var(--tab-count, 2), 1fr);
  overflow: hidden;
  border: 1px solid rgba(180, 221, 223, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.tab-toggle label {
  display: grid;
  min-height: 38px;
  place-items: center;
  color: #abc1bd;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
}

.tab-panel {
  display: none;
}

#movement-tab-add:checked ~ .tab-toggle label[for=movement-tab-add],
#movement-tab-manage:checked ~ .tab-toggle label[for=movement-tab-manage],
#component-tab-add:checked ~ .tab-toggle label[for=component-tab-add],
#component-tab-manage:checked ~ .tab-toggle label[for=component-tab-manage],
#location-tab-add:checked ~ .tab-toggle label[for=location-tab-add],
#location-tab-manage:checked ~ .tab-toggle label[for=location-tab-manage],
#inventory-tab-overview:checked ~ .tab-toggle label[for=inventory-tab-overview],
#inventory-tab-find:checked ~ .tab-toggle label[for=inventory-tab-find],
#inventory-tab-move:checked ~ .tab-toggle label[for=inventory-tab-move],
#inventory-tab-storage:checked ~ .tab-toggle label[for=inventory-tab-storage],
#inventory-tab-qr:checked ~ .tab-toggle label[for=inventory-tab-qr] {
  background: #43d9cc;
  color: #071016;
}

#movement-tab-add:checked ~ .movement-add-panel,
#movement-tab-manage:checked ~ .movement-manage-panel,
#component-tab-add:checked ~ .component-add-panel,
#component-tab-manage:checked ~ .component-manage-panel,
#location-tab-add:checked ~ .location-add-panel,
#location-tab-manage:checked ~ .location-manage-panel,
#inventory-tab-overview:checked ~ .inventory-overview-panel,
#inventory-tab-find:checked ~ .inventory-find-panel,
#inventory-tab-move:checked ~ .inventory-move-panel,
#inventory-tab-storage:checked ~ .inventory-storage-panel,
#inventory-tab-qr:checked ~ .inventory-qr-panel {
  display: block;
}

.storage-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.bulk-tool {
  padding: 14px;
  border: 1px solid rgba(67, 217, 204, 0.22);
  border-radius: 8px;
  background: rgba(67, 217, 204, 0.045);
}

.bulk-tool h3 {
  margin: 0;
  font-size: 1rem;
}

.bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-divider {
  border-color: rgba(180, 221, 223, 0.14);
  margin: 18px 0;
}

.stock-position {
  display: grid;
  gap: 4px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.table-actions form {
  margin: 0;
}

.location-list {
  display: grid;
  gap: 10px;
}

.location-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(180, 221, 223, 0.16);
}

.location-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.location-row small,
.location-row .empty-note {
  color: #8ba5a4;
}

.empty-note {
  margin: 0;
  color: #8ba5a4;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(180, 221, 223, 0.12);
}

.rank-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rank-list strong {
  color: #46d6cb;
}

.bracelet-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.bracelet-guide-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(180, 221, 223, 0.14);
  border-radius: 8px;
  background: rgba(70, 214, 203, 0.06);
}

.bracelet-guide-grid strong {
  color: #f4ffff;
}

.bracelet-guide-grid span {
  color: #b4dddf;
}

.bracelet-filter-form {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.import-form {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.advanced-fields {
  color: #8ba5a4;
}

.advanced-fields summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
}

.advanced-fields label {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.auth-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.auth-card {
  width: min(420px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid rgba(180, 221, 223, 0.16);
  border-radius: 8px;
  background: rgba(15, 26, 34, 0.86);
}

.qr-public-body {
  min-height: 100vh;
  margin: 0;
  color: #f4ffff;
  background:
    radial-gradient(circle at top left, rgba(70, 214, 203, 0.18), transparent 34rem),
    linear-gradient(135deg, #071216 0%, #10272d 55%, #182326 100%);
}

.qr-main {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 22px 16px 36px;
}

.qr-main-header,
.qr-detail-header {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.qr-main-header h1,
.qr-detail-header h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 4rem);
  line-height: 1;
}

.qr-main-header p,
.qr-detail-header p {
  margin: 0;
  color: #b4dddf;
}

.qr-search {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 0 16px;
  background: linear-gradient(180deg, rgba(7, 18, 22, 0.98), rgba(7, 18, 22, 0.72));
  backdrop-filter: blur(12px);
}

.qr-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}

.qr-product-card,
.qr-location-card,
.qr-empty {
  border: 1px solid rgba(180, 221, 223, 0.18);
  border-radius: 8px;
  background: rgba(10, 29, 35, 0.9);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.qr-product-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  min-height: 238px;
  padding: 10px;
  color: #f4ffff;
  text-decoration: none;
  overflow: hidden;
}

.qr-product-card:hover {
  border-color: rgba(70, 214, 203, 0.68);
  color: #f4ffff;
}

.qr-product-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.15 / 1;
  min-height: 118px;
  max-height: 156px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #46d6cb, #174f61);
}

.qr-product-image.large {
  width: 128px;
  min-height: 128px;
  max-height: none;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
}

.qr-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-product-initials {
  position: relative;
  z-index: 0;
  font-size: 2.4rem;
  font-weight: 800;
  color: #071216;
  letter-spacing: 0;
}

.qr-product-image.has-image .qr-product-initials {
  display: none;
}

.qr-product-image.image-missing .qr-product-initials {
  display: block;
}

.qr-product-copy {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 3px;
  min-width: 0;
}

.qr-product-copy strong {
  display: -webkit-box;
  min-height: 2.3em;
  overflow: hidden;
  line-height: 1.15;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.qr-product-copy small,
.qr-stock-line,
.qr-location-card p {
  color: #b4dddf;
  overflow-wrap: anywhere;
}

.qr-stock-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
  font-size: 0.85rem;
}

.qr-product-copy em {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  color: #281800;
  background: #ffd166;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.qr-back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: #46d6cb;
  text-decoration: none;
}

.qr-detail-header {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-width: 0;
}

.qr-detail-header > div {
  min-width: 0;
}

.qr-detail-header h1 {
  overflow-wrap: anywhere;
}

.qr-location-list {
  display: grid;
  gap: 12px;
}

.qr-location-card,
.qr-empty {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.qr-location-card h2,
.qr-empty h2 {
  margin: 0;
}

.qr-location-stock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: end;
}

.qr-location-stock strong {
  font-size: 2.4rem;
  line-height: 1;
  color: #46d6cb;
}

.qr-location-stock span {
  color: #b4dddf;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
  }
  .kpi-grid,
  .dashboard-grid,
  .inventory-action-grid,
  .workspace {
    grid-template-columns: 1fr;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .panel-wide,
  .wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .qr-main {
    padding: 14px 10px 28px;
  }
  .qr-main-header h1,
  .qr-detail-header h1 {
    font-size: 2.4rem;
  }
  .qr-search {
    grid-template-columns: 1fr;
  }
  .qr-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .qr-product-card {
    min-height: 224px;
    padding: 8px;
  }
  .qr-product-image {
    min-height: 104px;
  }
  .qr-product-copy strong {
    font-size: 0.9rem;
  }
  .qr-detail-header {
    grid-template-columns: 1fr;
  }
}
.inventory-page, .inventory-tools, .inventory-page .tool-tabs { min-width: 0; }
.inventory-page .tool-tabs { grid-template-columns: minmax(0, 1fr); }
.inventory-page .tab-panel { min-width: 0; }
body:has(.inventory-page) .content { min-width: 0; }
.inventory-mobile-menu { display: none; }
.inventory-page .page-header { margin-bottom: 18px; }
.inventory-page .panel-header, .inventory-page .header-actions, .inventory-page .bulk-actions { flex-wrap: wrap; }
.inventory-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid #2d4147; margin-bottom: 18px; padding: 16px 0; }
.inventory-summary > div { display: flex; flex-direction: column; gap: 4px; padding: 0 20px; border-left: 1px solid #2d4147; }
.inventory-summary > div:first-child { padding-left: 0; border: 0; }
.inventory-summary span { color: #aec2c5; font-size: 0.85rem; }
.inventory-summary strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.inventory-summary .inventory-warning { color: #f1c35a; }
.inventory-nav { display: flex; gap: 24px; border-bottom: 1px solid #2d4147; overflow-x: auto; scrollbar-width: none; }
.inventory-nav::-webkit-scrollbar { display: none; }
.inventory-page .table-responsive { scrollbar-width: thin; scrollbar-color: #48616a transparent; }
.inventory-nav button, .inventory-nav a { flex: 0 0 auto; padding: 12px 0; background: transparent; color: #aec2c5; font: inherit; font-size: 0.9rem; font-weight: 600; border: 0; border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap; }
.inventory-nav [aria-current=page] { color: #54ded1; border-bottom-color: #54ded1; }
.inventory-nav button:hover, .inventory-nav a:hover { color: #fff; }
.inventory-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0 20px; }
.inventory-search { flex: 1 1 220px; }
.inventory-toolbar > select { width: 180px; }
.inventory-low-filter { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; white-space: nowrap; }
.inventory-table-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.inventory-table-heading h2, .inventory-page h2 { font-size: 1.15rem; margin: 0; }
.inventory-table-heading span { font-size: 0.8rem; }
.inventory-page .inventory-table { font-size: 0.86rem; }
.inventory-page .inventory-table th { color: #b8cbd0; font-size: 0.78rem; white-space: nowrap; }
.inventory-page .inventory-table td { padding-block: 12px; font-variant-numeric: tabular-nums; }
.inventory-page .inventory-table td:first-child { min-width: 210px; max-width: 300px; }
.inventory-page .inventory-table th:first-child, .inventory-page .inventory-table td:first-child { position: sticky; left: 0; z-index: 1; background: #142329; }
.inventory-product-detail summary { cursor: pointer; white-space: normal; }
.inventory-product-detail > div { display: grid; gap: 8px; padding: 12px 0; font-size: 0.8rem; white-space: normal; }
.inventory-product-detail > div > div { display: flex; justify-content: space-between; gap: 12px; }
.inventory-menu { position: relative; }
.inventory-menu > summary { list-style: none; }
.inventory-menu > summary::-webkit-details-marker { display: none; }
.inventory-menu > div { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; z-index: 10; display: grid; padding: 6px; background: #192d34; border: 1px solid #40565d; border-radius: 6px; box-shadow: 0 8px 24px #0006; }
.inventory-menu button, .inventory-menu a { text-align: left; color: #eef6f7; border: 0; background: transparent; padding: 10px; text-decoration: none; font-size: 0.85rem; }
.inventory-menu button:hover, .inventory-menu a:hover { background: #29434a; }
.inventory-disclosure { padding-block: 14px; border-bottom: 1px solid #2d4147; }
.inventory-disclosure > summary { font-size: 0.95rem; font-weight: 600; cursor: pointer; padding-block: 8px; }
.inventory-disclosure[open] > summary { margin-bottom: 18px; }
.inventory-page .panel, .inventory-page .bulk-tool { background: transparent; box-shadow: none; border: 0; border-radius: 0; padding: 0; }
.inventory-page .storage-form-grid { margin-block: 18px; gap: 28px; }
.inventory-page .storage-form-grid form { min-width: 0; }
.inventory-page .inventory-admin { display: none; }
.inventory-page[data-section=storage] .inventory-admin { display: block; }
#inventory-tab-storage:checked ~ .inventory-qr-panel { display: block; }
.inventory-qr-panel { border-top: 1px solid #2d4147; padding-top: 16px; }
.inventory-empty { padding: 28px 8px; text-align: center; color: #aec2c5; }
.inventory-stock-dialog { width: min(860px, calc(100% - 24px)); max-height: calc(100dvh - 32px); background: #102128; color: #eef6f7; border: 1px solid #48616a; border-radius: 8px; padding: 24px; overflow: auto; }
.inventory-stock-dialog::backdrop { background: #030a0dc4; }
.inventory-dialog-header, .inventory-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.inventory-dialog-header { margin-bottom: 20px; }
.inventory-dialog-header h2 { font-size: 1.25rem; margin: 0; }
.inventory-dialog-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.inventory-stock-dialog label { display: block; font-size: 0.85rem; margin-bottom: 6px; }
.inventory-entry-table { table-layout: fixed; }
.inventory-entry-table th:nth-child(1) { width: 37%; }
.inventory-entry-table th:nth-child(2) { width: 35%; }
.inventory-entry-table th:nth-child(3) { width: 20%; }
.inventory-entry-table th:nth-child(4) { width: 8%; }
.inventory-entry-table .form-control, .inventory-entry-table .form-select { width: 100%; min-width: 0; font-size: 0.85rem; }
.stock-row-balance { display: block; margin-top: 6px; color: #aec2c5; font-size: 0.73rem; overflow-wrap: anywhere; }
.stock-row-shortage { color: #ff9c9c; }
#quick-stock-review { margin-top: 20px; padding-top: 16px; border-top: 1px solid #48616a; }
#quick-stock-review h3 { font-size: 1rem; }
#quick-stock-review td { overflow-wrap: anywhere; }
.inventory-icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: #bdd0d5; font-size: 1.5rem; border-radius: 4px; }
.inventory-icon-button:hover { color: #fff; background: #ffffff12; }
.inventory-dialog-note { margin-top: 20px; }
.inventory-dialog-footer { padding-top: 18px; margin-top: 18px; border-top: 1px solid #2d4147; font-size: 0.85rem; }
.inventory-page button:focus-visible, .inventory-page summary:focus-visible, .inventory-page a:focus-visible { outline: 2px solid #54ded1; outline-offset: 3px; }
@media (max-width: 650px) {
  body:has(.inventory-page) .sidebar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px; }
  body:has(.inventory-page) .sidebar .brand { flex: 1; margin: 0; }
  body:has(.inventory-page) .sidebar nav { display: none !important; flex-basis: 100%; max-height: 55vh; overflow-y: auto; }
  body.inventory-nav-open:has(.inventory-page) .sidebar nav { display: flex !important; }
  .inventory-mobile-menu { display: block; }
  body:has(.inventory-page) .content { padding: 20px 16px; }
  .inventory-page .page-header { flex-wrap: wrap; }
  .inventory-page .page-header .header-actions { justify-content: flex-start; }
  .inventory-page .manual-sku-form, .inventory-page .sku-map-form { grid-template-columns: minmax(0, 1fr); }
  .inventory-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .inventory-summary > div:nth-child(3) { border: 0; padding-left: 0; }
  .inventory-nav { gap: 20px; }
  .inventory-toolbar > select { flex: 1 1 150px; width: auto; }
  .inventory-search { flex-basis: 100%; }
  .inventory-toolbar .inventory-menu { margin-left: auto; }
  .inventory-stock-dialog { padding: 16px; }
  .inventory-dialog-fields { grid-template-columns: 1fr; gap: 0; }
  .inventory-entry-table { display: block; }
  .inventory-entry-table thead { display: none; }
  .inventory-entry-table tbody { display: grid; gap: 12px; }
  .inventory-entry-table tr { display: grid; grid-template-columns: minmax(0, 1fr) 90px 32px; grid-template-areas: "component component remove" "batch quantity quantity"; gap: 8px; padding: 10px 0; border-bottom: 1px solid #2d4147; }
  .inventory-entry-table td { display: block; padding: 0; border: 0; box-shadow: none; background: transparent; min-width: 0; }
  .inventory-entry-table td:nth-child(1) { grid-area: component; }
  .inventory-entry-table td:nth-child(2) { grid-area: batch; }
  .inventory-entry-table td:nth-child(3) { grid-area: quantity; }
  .inventory-entry-table td:nth-child(4) { grid-area: remove; align-self: end; }
  .inventory-entry-table td:nth-child(1)::before { content: "Component"; }
  .inventory-entry-table td:nth-child(2)::before { content: "Batch"; }
  .inventory-entry-table td:nth-child(3)::before { content: "Quantity"; }
  .inventory-entry-table td::before { display: block; font-size: 0.78rem; color: #aec2c5; margin-bottom: 4px; }
  .inventory-dialog-footer { align-items: flex-start; flex-direction: column; }
  .inventory-dialog-footer .header-actions { width: 100%; justify-content: flex-end; }
}
