/* FR-742 SHP-03a/b: the partners' Shop in cs-admin. Only the panel's own tokens (style.css) — no new colours, fonts or
   sizes; the helpers below are layout only: the «changed» dot of a catalog tab, the sticky bar of the selected rows, the
   price column, and the tables on a phone. */

.shop-subtabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.shop-subtabs .subtab-btn { flex: none; white-space: nowrap; }

.shop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.shop-head-main { min-width: 0; }
.shop-title { margin: 0 0 2px; }
.shop-dot { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--accent); vertical-align: middle; }

.shop-catalog-tabs { margin-bottom: 10px; }

/* the bar of the selected rows stays at the top of the window while one is ticked, wherever in the list the person is */
.shop-bulk { position: sticky; top: 0; z-index: 5; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; flex-wrap: wrap; align-items: flex-end; }
.shop-bulk-count { font-weight: 600; }
.shop-price { width: 110px; }
.shop-num { white-space: nowrap; }

.shop-switch { display: inline-flex; align-items: center; gap: 6px; }
.shop-switch-row { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; font-weight: normal; }
.shop-warn { color: #8a5a00; }

.shop-section { margin-bottom: 22px; }
.shop-section h3 { margin: 0 0 6px; font-size: 15px; }
.shop-changes { display: flex; flex-direction: column; gap: 2px; }
.shop-change { font-size: 13px; }

.shop-assign-results { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 6px; }
.shop-preview-product { border-top: 1px solid var(--border); padding: 6px 0; }
.shop-preview-name { font-weight: 600; }
.shop-compare-wrap { max-height: 50vh; }

/* the editor and the comparison on a phone: the table scrolls inside its own box, the first column stays readable */
@media (max-width: 760px) {
  .shop-compare { min-width: 640px; }
  .shop-promo { min-width: 760px; } /* FR-848: Promo codes, the same scrolling box */
  .shop-bulk { align-items: stretch; }
  .shop-bulk .btn { flex: 1 1 45%; }
  .shop-head { align-items: stretch; }
  .shop-head > .btn { flex: 1 1 100%; }
}

/* FR-1241 (CON-89): Catalogs & prices as in Dan's prototype (csadmin-shop-prices): the kit's tabs / ticks and the csadmin.css
   price rules, copied as they are and scoped under .sr (the tokens are site-requests.css's). The few .shop-* rules after them
   are layout only, for the tools the prototype has no place for (bulk bar, the wide windows). */
.sr{--home:#1f7a3a;--mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"Roboto Mono",monospace}
.sr .mono{font-family:var(--mono);font-variant-numeric:tabular-nums;letter-spacing:.02em;color:var(--ink);overflow-wrap:anywhere}
.sr .csa-draft .t{flex:1 1 280px}
.sr .csa-draft .t b{font-weight:500}
.sr .csa-was[hidden]{display:none}
.sr .csa-price input{padding:1px 2px;border-radius:0}
.sr .mt-8{margin-top:8px}
.sr .tabs{display:flex;gap:4px;border-bottom:1px solid var(--line-2);overflow-x:auto;scrollbar-width:none}
.sr .tab{position:relative;display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 16px;border:0;background:none;font:500 15px/1 var(--font);color:var(--muted);white-space:nowrap;text-decoration:none;cursor:pointer}
.sr .tab:hover{color:var(--ink)}
.sr .tab[aria-selected=true],.sr .tab[aria-current]{color:var(--ink)}
.sr .tab[aria-selected=true]::after,.sr .tab[aria-current]::after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:var(--blue)}
.sr .tab .n{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--canvas);font:500 12px/1 var(--font);color:var(--head)}
.sr .tab[aria-selected=true] .n{background:var(--blue-soft);color:var(--blue-text)}
.sr .ticks{display:grid;gap:10px;list-style:none;padding:0}
.sr .ticks li{display:flex;gap:10px;align-items:flex-start;color:var(--head)}
.sr .ticks .ic{margin-top:3px;color:var(--home);stroke-width:2.4;width:18px;height:18px}
.sr .csa-pr tr.csa-grp td{background:#f8f9fa;font-weight:500}
.sr .csa-pr .ph-s{width:40px;height:40px;object-fit:contain;border:1px solid var(--csa-line);border-radius:6px;background:#fff;vertical-align:middle}
.sr .csa-pr span.ph-s{display:inline-block}
.sr .csa-pr tr.is-hidden .ph-s{opacity:.5}
.sr .shop-tools .csa-bar{margin:12px 0 0}
.sr .acts{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.sr .csa-h .acts{margin-left:auto}
.sr .csa-tbl td.num,.sr .csa-tbl th.num{text-align:right;font-variant-numeric:tabular-nums}
.sr .shop-bulk{position:sticky;top:0;z-index:5;padding:8px 10px;border:1px solid var(--csa-line);border-radius:8px;background:#fff}
.sr .shop-bulk-field{display:inline-flex;align-items:center;gap:8px}
.sr .shop-bulk .inp{width:110px;min-height:34px;padding:0 10px;font-size:14px}
.sr .shop-bulk .inp input{height:32px;font-size:14px}
.sr .shop-bulk .sel select{min-width:160px}
.sr .modal-wide .modal-box{max-width:960px}
.sr .shop-preview-product{border-top:1px solid var(--csa-line);padding:6px 0}
.sr .shop-preview-name{font-weight:500}
@media (max-width:719px){
  .sr .tab{padding:0 12px}
  .sr .shop-bulk .btn{flex:1 1 45%}
}
