/* 👥 Mijozlar balansi (static/balans.js) */
.bal-sum small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.bal-sum b { display: block; font-size: 26px; color: var(--bad); letter-spacing: -.01em; margin-top: 2px; overflow-wrap: anywhere; }
.bal-sum-r { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px;
  padding-top: 8px; border-top: 1px solid var(--line); }
.bal-sum-r span { font-weight: 600; font-size: 14px; }
.bal-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 14px 0 10px; padding-bottom: 2px; scrollbar-width: none; }
.bal-tabs::-webkit-scrollbar { display: none; }
.bal-tabs button { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 12px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); font: inherit; color: var(--ink); cursor: pointer; }
.bal-tabs button span { font-weight: 700; font-size: 14px; white-space: nowrap; }
.bal-tabs button small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.bal-tabs button[aria-selected=true] { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.bal-row { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px;
  padding: 12px 14px; border: 0; border-radius: 14px; background: var(--card); box-shadow: var(--shadow);
  font: inherit; color: inherit; text-align: left; cursor: pointer; }
.bal-n { min-width: 0; }
.bal-n b { display: block; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.bal-n small { color: var(--muted); font-size: 12px; }
.bal-d { flex: none; font-weight: 700; color: var(--bad); font-size: 14.5px; white-space: nowrap; }
.bal-sh-name { display: block; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.bal-sh-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 6px; font-size: 14px; color: var(--muted); }
.bal-sh-meta b { color: var(--bad); }
.bal-inv { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.bal-amt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.bal-amt input { font-size: 20px; font-weight: 700; }
.bal-amt .btn.sm { height: 48px; }
#bal-done { margin: 12px 0 0; white-space: pre-line; font-size: 14px; }

.bal-buy { margin-top: 12px; font-size: 13px; }
.bal-buy-h { font-weight: 600; margin-bottom: 6px; }
.bal-trade { border-top: 1px solid var(--line, rgba(128,128,128,.25)); padding: 6px 0; }
.bal-trade-h { display: flex; justify-content: space-between; gap: 8px; }
.bal-trade-d { color: var(--muted); font-size: 12px; }
.bal-item { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); overflow-wrap: anywhere; }
.bal-item span:last-child { white-space: nowrap; }
