/* HX ADMIN V2 • shop.css — trang "Cửa hàng" (dùng thêm .ls-bar, .nw-kv/.nw-row/.nw-th/.nw-tb/.nw-save, .al-form/.al-sec, .td-set, .chip-t, .sl-two) */
.sh-ord { width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--soft); padding: 12px 0; color: inherit; font: inherit; cursor: pointer; align-items: flex-start; }
.sh-ord:first-of-type { border-top: 0; }
.sh-ord:hover b { text-decoration: underline; }
.sh-ord .grow { min-width: 0; display: block; }
.sh-ord .grow > .sub { display: block; margin-top: 2px; overflow-wrap: anywhere; }
.sh-ord .pill { vertical-align: 2px; }
.sh-sw { display: block; border-radius: 12px; }
.sh-sw.sm { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; }
.sh-items { padding: 14px 16px; display: grid; gap: 6px; font-size: 14px; }
.sh-items > div:not(.sh-sum) { display: flex; justify-content: space-between; gap: 12px; }
.sh-items > div > span { min-width: 0; overflow-wrap: anywhere; }
.sh-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; border-top: 1px solid var(--soft); margin-top: 6px; padding-top: 8px; }
.sh-sum span { color: var(--muted); }
.sh-sum .big2 { font-size: 17px; }
.sh-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-acts .btn { width: auto; }
.sh-log { display: grid; font-size: 13px; }
.sh-log > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--soft); }
.sh-log span { color: var(--muted); }
.sh-log p { margin: 0; overflow-wrap: anywhere; }
.sh-imgs { display: flex; flex-wrap: wrap; gap: 10px; }
.sh-img { position: relative; width: 120px; display: grid; gap: 6px; }
.sh-img img { width: 120px; height: 120px; object-fit: contain; border-radius: 14px; background: var(--raised); border: 1px solid var(--raisedb); }
.sh-img .pill { position: absolute; left: 6px; top: 6px; }
.sh-img .btns { gap: 6px; }
.sh-noimg { font-size: 13px; }
.sh-up { justify-self: start; width: auto; }
.sh-cr { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px 34px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.sh-cr input[type=color] { width: 44px; height: 36px; padding: 2px; border-radius: 10px; border: 1px solid var(--raisedb); background: var(--raised); cursor: pointer; }
.sh-og, .sh-st { padding: 12px; display: grid; gap: 8px; margin-bottom: 10px; min-width: 0; }
.sh-gh { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.sh-gh .field { flex: 1; min-width: 0; }
.sh-vr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 96px auto; gap: 8px; align-items: center; }
.sh-hr { display: grid; grid-template-columns: 80px 64px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.sh-sr { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.sh-cr > *, .sh-vr > *, .sh-hr > *, .sh-sr > * { min-width: 0; }
.sh-og .btn.sm, .sh-st .btn.sm { justify-self: start; width: auto; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.sheet:has(#spImgs) > *, .sheet:has(.sh-items) > *, .sheet:has(#cpCode) > * { flex-shrink: 0; }
@media (max-width: 640px) {
  .sh-vr { grid-template-columns: minmax(0, 1fr) 88px auto; }
  .sh-vr > :nth-child(2) { grid-column: 1 / -1; order: 5; }
  .sh-hr { grid-template-columns: 70px 56px auto; }
  .sh-hr > :nth-child(3) { grid-column: 1 / -1; order: 5; }
  .sh-cr { grid-template-columns: minmax(0, 1fr) 40px 40px auto; }
  .sh-cr .sh-sw { display: none; }
  .sh-log > div { grid-template-columns: 1fr; gap: 2px; }
}
.sh-segw { min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.sh-segw::-webkit-scrollbar { display: none; }
.sh-segw .seg { width: max-content; }
/* hàng số */
.sh-dbox { padding: 14px; display: grid; gap: 10px; }
.sh-dig, .sh-dig-sec { display: none; }
.sh-is-dig .sh-dig, .sh-is-dig .sh-dig-sec { display: grid; }
.sh-is-dig .sh-dig-sec { display: block; }
.sh-is-dig .sh-phys-sec, .sh-is-dig #spOpts, .sh-is-dig #spOptAdd { display: none; }
.sh-is-dig .sh-phys:not(.sh-keep) { display: none; }
.sh-is-dig #spColorAdd { display: none; }
.sh-dg { padding: 12px 14px; display: grid; gap: 10px; }
.sh-dgh { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sh-dgh b { margin-right: auto; }
.sh-codes { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-codes code, .sh-klist code { font: 600 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 5px 9px; border-radius: 8px; background: var(--soft); letter-spacing: .03em; overflow-wrap: anywhere; }
.sh-codes code.full, .sh-klist code.full { background: rgba(52, 227, 176, .14); color: var(--text); user-select: all; }
.sh-dg .btn.sm, .sh-reveal { justify-self: start; width: auto; }
.sh-klist { max-height: 340px; overflow-y: auto; }
.sh-klist .li { gap: 10px; }
.sh-box { padding: 12px 14px; display: grid; gap: 10px; }
.sh-box .btn { justify-self: start; }
.sh-so { display: grid; grid-template-columns: 40px 130px minmax(0, 1.4fr) minmax(0, 1fr) auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.sh-so > * { min-width: 0; }
.sh-sol { width: 40px; height: 40px; border-radius: 12px; background: var(--raised); border: 1px solid var(--raisedb); display: grid; place-items: center; font-weight: 800; overflow: hidden; }
.sh-sol img { width: 100%; height: 100%; object-fit: contain; }
.sh-so .btn.sm { width: auto; }
@media (max-width: 640px) { .sh-so { grid-template-columns: 40px minmax(0, 1fr) auto; } .sh-so > :nth-child(3), .sh-so > :nth-child(4) { grid-column: 1 / -1; } }

.sh-cx{display:grid;gap:6px}.sh-cx textarea{width:100%;border-radius:12px;border:1px solid var(--line,#ddd);padding:10px 12px;font:inherit;resize:vertical;background:transparent;color:inherit}
.sh-pays { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 10px; }
.sh-py { display: grid; gap: 8px; padding: 10px; border-radius: 14px; background: var(--raised); border: 1px solid var(--raisedb); }
.sh-pyl { height: 64px; border-radius: 10px; background: #fff; display: grid; place-items: center; padding: 8px; overflow: hidden; color: #6e6e73; text-align: center; }
.sh-pyl img { max-width: 100%; max-height: 48px; object-fit: contain; }
.sh-pyb { display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.sh-pyb .btn.sm { width: auto; flex: 1; }
.sh-py, .sh-py > * { min-width: 0; }
.sh-py .field { width: 100%; max-width: 100%; }
.sh-py .field input { width: 100%; min-width: 0; }
.sh-pyb { flex-wrap: wrap; }
