/* ============================================================
   HX ADMIN V2 • shopacc.css — trang "Shop Acc" (11/2026)
   ============================================================ */
.sa-hbtn { display: flex; gap: 8px; flex-wrap: wrap; }
.sa-warn { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 197, 61, 0.09); border: 1px dashed rgba(255, 197, 61, 0.45); color: var(--goldt); font-size: 13px; line-height: 1.7; }
.sa-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--raised); border: 1px solid var(--raisedb); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.sa-tabs::-webkit-scrollbar { display: none; }
.sa-tabs button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.sa-tabs button.on { background: var(--card-solid); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.sa-tabs button i { font-style: normal; background: var(--red); color: #fff; font-size: 10px; border-radius: 6px; padding: 0 5px; line-height: 16px; }
.sa-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.sa-kpi .card small { color: var(--muted); font-weight: 600; font-size: 12px; }
.sa-kpi .card b { display: block; font: 700 24px "Space Grotesk", sans-serif; margin: 6px 0 2px; }
.sa-kpi .card span { font-size: 12px; color: var(--muted); }
.sa-kpi .card span.up { color: var(--mintt); } .sa-kpi .card span.down { color: var(--redt); } .sa-kpi .card span.gold { color: var(--goldt); }
.sa-g2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sa-h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sa-bars { height: 170px; display: flex; align-items: stretch; gap: 6px; }
.sa-bars > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.sa-bars i { width: 100%; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #3b9bff, #1767e6); min-height: 2px; }
.sa-bars i.now { background: linear-gradient(180deg, #ffd36b, #ffc53d); }
.sa-bars span { font: 600 10px "JetBrains Mono", monospace; color: var(--muted); height: 12px; }
.sa-tl { position: relative; padding-left: 18px; }
.sa-tl div { position: relative; padding: 0 0 11px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.sa-tl div::before { content: ""; position: absolute; left: -14px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.sa-tl div b { color: var(--text); font-weight: 600; }
.sa-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.sa-t th { text-align: left; font: 600 10.5px "JetBrains Mono", monospace; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sa-t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.sa-t td .muted, .sa-row .muted { font-size: 12px; }
.sa-act { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mono { font-family: "JetBrains Mono", monospace; font-size: 12.5px; }
.sa-lh { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.sa-lh .seg { overflow-x: auto; max-width: 100%; }
.sa-search { height: 40px; flex: 1; min-width: 200px; }
.sa-rows { display: flex; flex-direction: column; }
.sa-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.sa-row:last-child { border-bottom: 0; }
.sa-th { width: 72px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--soft); display: grid; place-items: center; color: var(--muted); }
.sa-th img { width: 100%; height: 100%; object-fit: cover; }
.sa-rt b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-rm { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 5px; font-size: 12px; color: var(--muted); }
.sa-pr { text-align: right; }
.sa-pr b { display: block; font: 700 15px "Space Grotesk", sans-serif; }
.sa-pr small { color: var(--muted); font-size: 11.5px; }
.sa-ra { display: flex; gap: 6px; align-items: center; }
.sa-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sa-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sa-f > span { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sa-f.w, .sa-form .w { grid-column: 1 / -1; }
.sa-f .field { height: 44px; border-radius: 12px; }
.sa-f .field.area { height: auto; }
.sa-f .field input, .sa-f .field select, .sa-f .field textarea { font-size: 14px; }
.sa-f textarea { resize: vertical; width: 100%; line-height: 1.5; font-family: inherit; }
.sa-f textarea.mono { font-family: "JetBrains Mono", monospace; font-size: 13px; }
.sa-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.sa-im { position: relative; width: 104px; height: 70px; border-radius: 10px; overflow: hidden; background: var(--soft); }
.sa-im img { width: 100%; height: 100%; object-fit: cover; }
.sa-im span { position: absolute; left: 5px; bottom: 4px; font-size: 10px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, 0.55); border-radius: 5px; padding: 1px 5px; }
.sa-im button { position: absolute; top: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; cursor: pointer; font-size: 14px; line-height: 22px; padding: 0; }
.sa-im button[data-ix] { right: 4px; } .sa-im button[data-il] { right: 30px; }
.sa-add { width: 104px; height: 70px; border-radius: 10px; border: 1.5px dashed var(--inputb); display: grid; place-items: center; color: var(--muted); font-size: 22px; cursor: pointer; }
.sa-add:hover { border-color: var(--blue); color: var(--text); }
.sa-lock { padding: 10px 12px; border-radius: 12px; background: rgba(52, 227, 176, 0.08); border: 1px solid rgba(52, 227, 176, 0.3); font-size: 12.5px; color: var(--mintt); line-height: 1.6; }
.sa-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sa-foot .grow { flex: 1; }
.sa-foot2 { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.sa-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 150px; overflow: auto; }
.sa-chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--inputb); font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.sa-chip:has(input:checked) { background: rgba(59, 155, 255, 0.16); border-color: var(--blue); color: var(--text); }
.sa-tk { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.55; flex-wrap: wrap; }
.sa-tk:last-child { border-bottom: 0; }
.sa-tk .grow { flex: 1; min-width: 220px; }
.sa-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #f0b232, #f23f43); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0; }
.sa-unm { border-color: rgba(255, 110, 110, 0.35); margin-bottom: 16px; }
.sa-urow { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }
.sa-urow > div:first-child { flex: 1; min-width: 220px; }
.sa-urow .field.sm { height: 36px; width: 150px; border-radius: 10px; }
.sa-urow .field.sm input { font-size: 13px; }
.linkbtn { background: none; border: 0; color: var(--blue); cursor: pointer; font: inherit; font-size: 12px; padding: 0; }
@media (max-width: 1100px) { .sa-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sa-g2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .sa-kpi { gap: 10px; } .sa-kpi .card b { font-size: 19px; }
  .sa-form { grid-template-columns: 1fr; }
  .sa-row { grid-template-columns: 56px minmax(0, 1fr); }
  .sa-th { width: 56px; height: 40px; }
  .sa-pr { text-align: left; grid-column: 2; display: flex; gap: 8px; align-items: baseline; }
  .sa-ra { grid-column: 1 / -1; justify-content: flex-end; }
  .sa-t { font-size: 12px; } .sa-t td, .sa-t th { padding: 8px 6px; }
}
