/* Production mobile catalog fix; desktop cells retain their original layout. */
.catalog-mobile-stock { display: none; }

@media (max-width: 760px) {
  :root { --mobile-nav-height: 62px; }

  .app-shell > .sidebar {
    padding: 4px 5px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 14px 14px 0 0 !important;
  }

  .app-shell > .sidebar > .nav {
    gap: 3px !important;
    padding-bottom: 2px !important;
  }

  .app-shell > .sidebar .nav-btn {
    flex: 0 0 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    min-height: 46px !important;
    padding: 3px 2px !important;
    grid-template-rows: 19px auto !important;
    gap: 1px !important;
    border-radius: 10px !important;
    font-size: 9px !important;
  }

  .app-shell > .sidebar .nav-icon,
  .app-shell > .sidebar .nav-icon svg {
    width: 19px !important;
    height: 19px !important;
  }

  .app-shell > .sidebar .nav-btn span:last-child { max-width: 64px; }

  .mobile-nav-scroll-btn {
    top: 6px;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    font-size: 24px;
  }

  #catalogView .table-wrap > table {
    width: 100%;
    min-width: 0;
  }

  #itemsTable .catalog-mobile-stock {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
    padding: 8px 10px;
    border: 1px solid #b9e7df;
    border-radius: 10px;
    background: #edfbf7;
    color: #075e54;
  }

  #itemsTable .catalog-mobile-stock > span {
    font-size: 11px;
    font-weight: 800;
  }

  #itemsTable .catalog-mobile-stock strong {
    font-size: 16px;
    font-weight: 900;
    text-align: right;
    overflow-wrap: anywhere;
  }

  #itemsTable .catalog-stock-cell { display: none !important; }
}
