/* Quote page market depth panel (quote-depth.js). Card frame comes from .so-card. */
.kse-depth { margin: 12px 0; }
.kse-depth-up { color: #0a8f4f; }
.kse-depth-down { color: #d23b3b; }
.kse-depth-empty, .kse-depth-foot { margin: 8px 0 0; font-size: 0.8rem; color: #5b6b7c; }

.kse-depth-meter { margin-bottom: 10px; }
.kse-depth-meter-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 0.82rem; }
.kse-depth-meter-head b { color: #0a2540; }
.kse-depth-bar { height: 8px; border-radius: 4px; background: #d23b3b; overflow: hidden; margin-top: 4px; }
.kse-depth-bar > div { height: 100%; background: #0a8f4f; }

.kse-depth-chart { margin: 4px 0 12px; }
.kse-depth-chart svg { display: block; width: 100%; height: 150px; border-bottom: 1px solid #e6ebf1; }
.kse-depth-area-bid { fill: rgba(10, 143, 79, 0.18); stroke: #0a8f4f; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.kse-depth-area-ask { fill: rgba(210, 59, 59, 0.16); stroke: #d23b3b; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.kse-depth-mid { stroke: #8a99a8; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.kse-depth-chart figcaption { display: flex; justify-content: space-between; gap: 6px; margin-top: 4px; font-size: 0.75rem; color: #5b6b7c; font-variant-numeric: tabular-nums; }

.kse-depth-wrap { overflow-x: auto; }
.kse-depth-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.kse-depth-table th { white-space: nowrap; font-weight: 600; color: #5b6b7c; padding: 4px 6px; text-align: right; border-bottom: 1px solid #e6ebf1; }
.kse-depth-table td { padding: 3px 6px; text-align: right; }
.kse-depth-table th:nth-child(n+4), .kse-depth-table td:nth-child(n+4) { text-align: left; }
.kse-depth-table td:nth-child(3) { border-right: 1px solid #e6ebf1; }
.kse-depth-px { font-weight: 600; }
/* Qty bar: bids grow from the right (toward the price), asks from the left. */
.kse-depth-q { background-repeat: no-repeat; }
.kse-depth-bid { background-image: linear-gradient(to left, rgba(10, 143, 79, 0.14) var(--w), transparent var(--w)); }
.kse-depth-ask { background-image: linear-gradient(to right, rgba(210, 59, 59, 0.14) var(--w), transparent var(--w)); }
/* Phones: drop the order-count columns so the book fits without sideways scroll. */
@media (max-width: 480px) {
  .kse-depth-table th:first-child, .kse-depth-table td:first-child,
  .kse-depth-table th:last-child, .kse-depth-table td:last-child { display: none; }
}

/* Plain reading of the book: walls, cost of a Rs 1M order, circuit-lock queue. */
.kse-depth-notes { margin: 8px 0 4px; padding: 8px 10px 8px 26px; border-radius: 8px; background: #f6f8fb; color: #3d5466; font-size: 0.78rem; line-height: 1.45; }
.kse-depth-notes span { font-weight: 800; }
