/* OTCX · the desk (Stage): toolbar + offers | bids | ticket + recent fills */
@import url('/css/ticket.css');
.dk { padding-top: 14px; padding-bottom: 8px; }
.dk-bar { display: flex; align-items: center; gap: 22px; min-height: 52px; flex-wrap: wrap; row-gap: 10px; }
.dk-bar h1 { margin: 0; font: 600 20px/1 var(--fd); letter-spacing: -.005em; }
.dk-cnt { display: flex; gap: 18px; font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.dk-cnt b { color: var(--ink); font-weight: 600; }
.sq { display: inline-block; width: 7px; height: 7px; margin-right: 7px; vertical-align: 1px; }
.sq.dn { background: var(--dn); } .sq.up { background: var(--up); }
.dk-f { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dk-f input, .dk-f select { height: 32px; border: 1px solid var(--l2); background: var(--bg2); border-radius: var(--r); padding: 0 10px; font: 400 12.5px/1 var(--fm); color: var(--ink); outline: none; }
.dk-f input:focus, .dk-f select:focus { border-color: var(--au3); }
.dk-f .fq input { width: 200px; }
.fsel { display: inline-flex; align-items: center; height: 32px; border: 1px solid var(--l2); background: var(--bg2); border-radius: var(--r); padding-left: 10px; }
.fsel .lbl { font-size: 9.5px; margin-right: 2px; }
.fsel input, .fsel select { border: 0 !important; background: transparent !important; height: 30px; }
.fsel input { width: 64px; text-align: right; padding-right: 4px !important; }
.fsel .u { font: 400 11px/1 var(--fm); color: var(--ink3); padding-right: 10px; }
.fsel select { padding-right: 8px; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink3) 50%), linear-gradient(135deg, var(--ink3) 50%, transparent 50%) !important; background-position: calc(100% - 12px) 13px, calc(100% - 8px) 13px !important; background-size: 4px 4px !important; background-repeat: no-repeat !important; padding-right: 22px !important; }
.fsel select option { background: var(--bg3); }
.fchk { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 1px solid var(--l2); border-radius: var(--r); background: var(--bg2); font-size: 12.5px; color: var(--ink2); cursor: pointer; user-select: none; }
.fchk input { appearance: none; -webkit-appearance: none; width: 13px; height: 13px; border: 1px solid var(--l3); border-radius: 1px; margin: 0; padding: 0; background: transparent; }
.fchk input:checked { background: var(--au); border-color: var(--au); box-shadow: inset 0 0 0 2px var(--bg2); }
.dk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 420px; gap: 12px; margin-top: 12px; height: calc(100vh - var(--hdr) - 66px - 12px - 200px - 26px); min-height: 560px; }
.dk-book { display: flex; flex-direction: column; min-height: 0; }
.dk-scroll { flex: 1; overflow: auto; min-height: 0; }
.dk-book .blot tbody tr { cursor: pointer; }
.dk-book .blot tbody tr.sel td { background: rgba(224, 178, 92, .07); }
.dk-book .blot tbody tr.sel td:first-child { box-shadow: inset 2px 0 0 var(--au); }
.dk-book .empty { height: 100%; min-height: 260px; }
.sz b { display: block; font-weight: 600; } .sz span { display: block; margin-top: 4px; font-size: 10.5px; color: var(--ink3); }
.blot td.sz { line-height: 1; }
.dk-fills { margin-top: 12px; }
.dk-fills .panel-h .more-l { margin-left: auto; font: 500 12.5px/1 var(--ft); color: var(--ink2); display: inline-flex; gap: 6px; }
.dk-fills .panel-h .more-l:hover { color: var(--au); }
.dk-fills .empty { height: 126px; }
td .vs { font-weight: 600; } td .zero { color: var(--au); font-weight: 600; } td .pl { color: var(--dn); } td .pl small { color: var(--ink3); margin-left: 6px; }

@media (max-width: 1599px) { .dk-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 380px; } .dk-book col:nth-child(6), .dk-book th:nth-child(6), .dk-book td:nth-child(6) { display: none; width: 0 !important; } }
@media (max-width: 1279px) {
  .dk-grid { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto auto; height: auto; }
  .dk-book { height: 360px; } #pBid { grid-column: 1; } .tk { grid-row: 1 / span 2; grid-column: 2; }
  .dk-f { margin-left: 0; }
}
@media (max-width: 1099px) {
  #fills col:nth-child(7), #fills th:nth-child(7), #fills td:nth-child(7), #fills col:nth-child(8), #fills th:nth-child(8), #fills td:nth-child(8), #fills col:nth-child(9), #fills th:nth-child(9), #fills td:nth-child(9) { display: none; width: 0 !important; }
}
@media (max-width: 899px) {
  .dk-grid { grid-template-columns: minmax(0, 1fr); } .tk { grid-row: auto; grid-column: auto; } #pBid { grid-column: auto; }
  .dk-book { height: auto; max-height: 420px; }
}
@media (max-width: 719px) {
  .dk-f .fq { flex-basis: 100%; } .dk-f .fq input { width: 100%; }
  .dk-cnt { flex-basis: 100%; }
  .dk-book col:nth-child(5), .dk-book th:nth-child(5), .dk-book td:nth-child(5) { display: none; width: 0 !important; }
  #fills col:nth-child(1), #fills th:nth-child(1), #fills td:nth-child(1), #fills col:nth-child(6), #fills th:nth-child(6), #fills td:nth-child(6), #fills col:nth-child(10), #fills th:nth-child(10), #fills td:nth-child(10), #fills col:nth-child(11), #fills th:nth-child(11), #fills td:nth-child(11) { display: none; width: 0 !important; }
  .blot td, .blot th { padding: 0 7px; }
}
