/* UNOZER0 Mobile PriceBook v0.1.2
   Screen-only responsive layer. It intentionally does not alter print/PDF geometry. */
@media screen and (max-width: 820px){
  /* v0.1.1: viewport is never the horizontal scroller. Only .price-scroll may scroll. */
  html:has(body.uzmp-mobile-ready),
  body.uzmp-mobile-ready{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }
  .uzmp-mobile-ready .public-price-table{
    box-sizing:border-box!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
    contain:inline-size;
  }
  .uzmp-mobile-ready .public-price-table > *,
  .uzmp-mobile-ready .public-price-table .matrix-card,
  .uzmp-mobile-ready .public-price-table .matrix-table-wrap,
  .uzmp-mobile-ready .public-price-table .matrix-table-container{
    box-sizing:border-box!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .uzmp-mobile-ready .public-price-table .price-scroll{
    position:relative!important;
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    scrollbar-width:thin;
    border-radius:10px!important;
    touch-action:pan-x pan-y;
  }
  .uzmp-mobile-ready .public-price-table .matrix-fit-canvas{
    width:max-content!important;
    min-width:100%!important;
    max-width:none!important;
    transform:none!important;
    zoom:1!important;
  }
  .uzmp-mobile-ready .public-price-table table.price-matrix,
  .uzmp-mobile-ready .public-price-table table.matrix{
    table-layout:auto!important;
    width:max-content!important;
    min-width:max(760px, calc((var(--matrix-data-cols, 8) * 92px) + 92px))!important;
    max-width:none!important;
    font-size:13px!important;
    transform:none!important;
    zoom:1!important;
  }
  .uzmp-mobile-ready .public-price-table .price-matrix col.matrix-row-key-col{width:92px!important}
  .uzmp-mobile-ready .public-price-table .price-matrix col.matrix-data-col{width:92px!important}
  .uzmp-mobile-ready .public-price-table .price-matrix th,
  .uzmp-mobile-ready .public-price-table .price-matrix td,
  .uzmp-mobile-ready .public-price-table .matrix th,
  .uzmp-mobile-ready .public-price-table .matrix td{
    box-sizing:border-box!important;
    width:auto!important;
    min-width:92px!important;
    max-width:none!important;
    height:auto!important;
    padding:10px 8px!important;
    font-size:13px!important;
    line-height:1.18!important;
    white-space:nowrap!important;
    overflow:visible!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    text-overflow:clip!important;
    vertical-align:middle!important;
  }
  .uzmp-mobile-ready .public-price-table .price-matrix thead th,
  .uzmp-mobile-ready .public-price-table .matrix thead th{
    position:sticky!important;
    top:0!important;
    z-index:6!important;
    min-width:92px!important;
    font-size:12px!important;
  }
  .uzmp-mobile-ready .public-price-table .price-matrix th:first-child,
  .uzmp-mobile-ready .public-price-table .price-matrix tbody th,
  .uzmp-mobile-ready .public-price-table .matrix th:first-child,
  .uzmp-mobile-ready .public-price-table .matrix tbody th{
    position:sticky!important;
    left:0!important;
    z-index:5!important;
    width:92px!important;
    min-width:92px!important;
    max-width:92px!important;
    background:#f7f8fa!important;
    box-shadow:1px 0 0 #e1e7ee, 7px 0 12px -12px rgba(15,23,42,.8);
  }
  .uzmp-mobile-ready .public-price-table .price-matrix thead th:first-child,
  .uzmp-mobile-ready .public-price-table .matrix thead th:first-child{z-index:8!important}

  /* v0.1.2: only the sticky row-label column may wrap.
     Data/price cells keep the existing single-line mobile behavior. */
  .uzmp-mobile-ready .public-price-table .price-matrix tbody th:first-child,
  .uzmp-mobile-ready .public-price-table .price-matrix tbody td:first-child,
  .uzmp-mobile-ready .public-price-table .matrix tbody th:first-child,
  .uzmp-mobile-ready .public-price-table .matrix tbody td:first-child{
    white-space:normal!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
    hyphens:auto;
    line-height:1.22!important;
    overflow:hidden!important;
  }
  .uzmp-mobile-ready .public-price-table .matrix-public-layers{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:3px!important;
    min-width:max-content!important;
  }
  .uzmp-mobile-ready .public-price-table .matrix-public-layer{
    display:flex!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    gap:4px!important;
    width:max-content!important;
    max-width:none!important;
    white-space:nowrap!important;
  }
  .uzmp-mobile-ready .public-price-table .matrix-public-layer strong,
  .uzmp-mobile-ready .public-price-table .matrix-public-layer .old-price,
  .uzmp-mobile-ready .public-price-table .matrix-layer-label,
  .uzmp-mobile-ready .public-price-table .matrix-layer-badge{
    white-space:nowrap!important;
    word-break:normal!important;
    overflow:visible!important;
    font-size:12px!important;
  }
  .uzmp-mobile-ready .public-price-table .matrix-display-title{font-size:18px!important;line-height:1.18!important}
  .uzmp-mobile-ready .public-price-table .matrix-legends{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  .uzmp-mobile-ready .public-price-table .matrix-legend-group{min-width:0!important;padding:13px 12px!important}
  .uzmp-mobile-ready .public-price-table .matrix-legend-item{font-size:12px!important;line-height:1.3!important}
  .uzmp-mobile-ready .uzmp-scroll-hint{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:8px 0 7px;
    padding:8px 10px;
    border:1px solid #dce4ec;
    border-radius:9px;
    background:#f8fafc;
    color:#526174;
    font:600 11px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    letter-spacing:.01em;
  }
  .uzmp-mobile-ready .uzmp-scroll-hint span:last-child{font-size:16px;letter-spacing:.12em;color:#14b8a6}
  .uzmp-mobile-ready .uzmp-scroll-hint.is-end span:last-child{opacity:.35}
}
@media print{
  .uzmp-scroll-hint{display:none!important}
}
