/* Price history (price-trends.js): graphs, the table under them, reports, one item opened. Shared by the store page and admin. */
.pt-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; } .pt-hd h2 { margin: 0 auto 0 0; font-size: 18px; }
.pt-hd select, .pt-bar select { font: inherit; font-size: 14px; border: 1px solid var(--line, #e4e4ea); border-radius: 8px; padding: 6px 8px; background: #fff; color: inherit; max-width: 100%; }
.pt-hint { color: var(--muted, #6b6577); font-size: 13.5px; margin: 6px 0 10px; }
.pt-mute { color: var(--muted, #6b6577); font-weight: 400; } .pt-up { color: #b42318; font-weight: 700; white-space: nowrap; } .pt-down { color: #1a7f37; font-weight: 700; white-space: nowrap; }
.pt-flag { display: inline-block; font-size: 11.5px; font-weight: 700; line-height: 1; padding: 3px 7px; border-radius: 999px; background: #fff1d6; color: #8a4b00; border: 1px solid #f0c36d; white-space: nowrap; }
.pt-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; background: var(--bg, #f6f6f8); border: 1px solid var(--line, #e4e4ea); border-radius: 10px; padding: 3px; }
.pt-seg button { border: 0; background: none; border-radius: 7px; padding: 5px 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted, #6b6577); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.pt-seg button.on { background: #fff; color: var(--ink, #1a1523); box-shadow: 0 1px 2px rgba(26,21,35,.14); } .pt-seg .n { font-size: 11.5px; background: #fff; border-radius: 999px; padding: 0 6px; } .pt-seg button.on .n { background: #fde8f3; color: #c01477; }
.pt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0 0 18px; }
.pt-tile { position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: inherit; border: 1px solid var(--line, #e4e4ea); border-radius: 12px; padding: 8px 10px; background: #fff; cursor: pointer; min-width: 0; }
.pt-tile:hover, .pt-tile:focus-visible { border-color: #e0218a; outline: none; box-shadow: 0 0 0 2px rgba(224,33,138,.15); } .pt-tile.flag { border-color: #f0c36d; }
.pt-tname { font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pt-tile.flag .pt-tname { padding-right: 62px; } .pt-tile > .pt-tname .pt-flag { position: absolute; top: 8px; right: 8px; } .pt-tnum { font-size: 18px; white-space: nowrap; } .pt-tnum .pt-up, .pt-tnum .pt-down { font-size: 13px; }
svg.pt-spark { width: 100%; height: 56px; display: block; } svg.pt-big { width: 100%; height: auto; max-height: 240px; display: block; margin: 4px 0 10px; }
.pt-tft { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted, #6b6577); }
.pt-sub { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 6px; } .pt-sub h3, .pt-sub h4 { margin: 0; font-size: 15px; } .pt-sub h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #6b6577); }
.pt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; } .pt-sp { flex: 1; }
.pt-search { font: inherit; font-size: 14px; border: 1px solid var(--line, #e4e4ea); border-radius: 8px; padding: 6px 9px; width: 170px; max-width: 100%; }
.pt-btn { font: inherit; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line, #e4e4ea); background: #fff; color: inherit; border-radius: 8px; padding: 6px 12px; cursor: pointer; min-height: 32px; } .pt-btn:hover { border-color: #e0218a; }
.pt-link { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: #c01477; cursor: pointer; text-decoration: underline; }
.pt-flagbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13.5px; margin: 0 0 10px; padding: 8px 10px; background: var(--bg, #f6f6f8); border-radius: 10px; } .pt-flagbar label { white-space: nowrap; font-weight: 600; }
.pt-pct { width: 62px; font: inherit; font-size: 14px; font-weight: 700; text-align: right; border: 1px solid var(--line, #e4e4ea); border-radius: 8px; padding: 4px 6px; margin: 0 2px; background: #fff; }
.pt-wrap { overflow-x: auto; border: 1px solid var(--line, #e4e4ea); border-radius: 12px; background: #fff; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pt-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted, #6b6577); padding: 8px 8px; border-bottom: 1px solid var(--line, #e4e4ea); white-space: nowrap; background: #fafafc; }
.pt-table td { padding: 8px 8px; border-bottom: 1px solid var(--line, #e4e4ea); } .pt-table tr:last-child td { border-bottom: 0; }
.pt-table .num { text-align: right; white-space: nowrap; } .pt-table td.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; } .pt-table th:first-child, .pt-table td:first-child { padding-left: 12px; }
.pt-th { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; font-weight: 700; }
.pt-row { cursor: pointer; } .pt-row:hover td, .pt-row:focus-visible td { background: #fff4f9; } .pt-row:focus-visible { outline: none; } .pt-table tr.flag td:first-child { box-shadow: inset 3px 0 0 #f0c36d; }
.pt-back { display: inline-block; margin: 0 0 8px; } .pt-dname { margin: 0 0 4px; font-size: 18px; }
.pt-flagnote { font-size: 13.5px; background: #fff8e8; border-radius: 10px; padding: 8px 10px; margin: 0 0 8px; }
.pt-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; margin: 0 0 14px; } .pt-kv > div { border: 1px solid var(--line, #e4e4ea); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.pt-kv dt { color: var(--muted, #6b6577); font-size: 12px; } .pt-kv dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-sect { border-top: 1px solid var(--line, #e4e4ea); padding-top: 12px; margin-top: 12px; } .pt-sect > h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #6b6577); }
.pt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pt-how { margin: 0 0 10px; font-size: 13.5px; color: var(--muted, #6b6577); } .pt-how summary { cursor: pointer; font-weight: 600; color: #c01477; width: fit-content; } .pt-how ul { margin: 6px 0 0; padding-left: 18px; } .pt-how li { margin: 2px 0; }
/* the phone list (Jeff, Nov 26): name left, latest price and its change right; shown in place of the wide table */
.pt-list { display: none; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line, #e4e4ea); border-radius: 12px; background: #fff; overflow: hidden; } .pt-sortsel { display: none; }
.pt-li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; min-height: 56px; border-bottom: 1px solid var(--line, #e4e4ea); cursor: pointer; } .pt-li:last-child { border-bottom: 0; }
.pt-li.flag { box-shadow: inset 3px 0 0 #f0c36d; } .pt-li:active, .pt-li:focus-visible { background: #fff4f9; outline: none; }
.pt-li-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .pt-li-l b { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; } .pt-li-l .pt-mute { font-size: 12.5px; }
.pt-li-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; font-variant-numeric: tabular-nums; } .pt-li-r b { font-size: 15px; } .pt-li-r > span { font-size: 13px; white-space: nowrap; }
@media (max-width: 640px) { .pt-table td.one { max-width: 150px; }
  /* graphs: one row you swipe, so the list is one thumb-scroll away */
  .pt-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; margin-bottom: 14px; } .pt-tile { flex: 0 0 74%; scroll-snap-align: start; }
  .pt-wide { display: none; } .pt-list { display: block; } .pt-sortsel { display: block; }
  .pt-bar .pt-seg { width: 100%; flex-wrap: nowrap; } .pt-bar .pt-seg button { flex: 1 1 auto; justify-content: center; padding: 5px 4px; font-size: 12.5px; gap: 4px; white-space: nowrap; min-width: 0; } .pt-search { width: 100%; } .pt-bar select { flex: 1 1 0; min-width: 0; } .pt-sp { display: none; } }
