/* Option chains only: do not resize trade logs, Rule List or Greeks tables. */
body :is(.option-panel .table-wrap,.market-table-scroll)>table{
  width:100%!important;
  min-width:100%!important;
  max-width:none!important;
  table-layout:auto!important;
  font-size:16px!important;
  line-height:1.12!important;
}
body :is(.option-panel .table-wrap,.market-table-scroll)>table :is(th,td){
  width:auto!important;
  height:auto!important;
  padding:3px 2px!important;
  font-size:16px!important;
  line-height:1.12!important;
  vertical-align:middle!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
body :is(.option-panel .table-wrap,.market-table-scroll)>table thead th{
  padding:5px 3px!important;
  font-size:12px!important;
  font-weight:700!important;
  text-align:center!important;
  white-space:normal!important;
  max-width:110px;
}
body :is(.option-panel .table-wrap,.market-table-scroll)>table thead .group th{font-size:14px!important}
body :is(.option-panel .table-wrap,.market-table-scroll)>table .cell-pair{
  display:flex!important;
  width:100%!important;
  align-items:stretch!important;
  line-height:1.12!important;
}
body :is(.option-panel .table-wrap,.market-table-scroll)>table :is(.cell-pair b,.rev-ltp-value){font-size:16px!important;font-weight:700!important;line-height:1.12!important}
body :is(.option-panel .table-wrap,.market-table-scroll)>table :is(.cell-pair small,.rev-spot-value){font-size:14px!important;line-height:1.12!important;margin-top:1px!important;opacity:1!important}
body :is(.option-panel .table-wrap,.market-table-scroll)>table .reversal-ltp{min-width:9ch!important;text-align:center!important}
body :is(.option-panel .table-wrap,.market-table-scroll)>table :is(.moneyness-badge,.atm-badge,.level-badge){font-size:11px!important;line-height:1.1!important;padding:1px 3px!important;margin-top:1px!important}
body :is(.option-panel .table-wrap,.market-table-scroll)>table .coi-cell-content{min-width:max-content!important}
body :is(.option-panel .table-wrap,.market-table-scroll)>table .coi-cell-content:has(.coi-setup-marker){padding-right:23px!important}
body :is(.option-panel .table-wrap,.market-table-scroll)>table .coi-setup-marker{min-width:19px!important;height:18px!important;font-size:12px!important;line-height:1!important}
body :is(.option-panel .table-wrap,.market-table-scroll)>table :is(.metric-yellow,.metric-gold),
body :is(.option-panel .table-wrap,.market-table-scroll)>table :is(.metric-yellow,.metric-gold) *{
  color:#000!important;
  opacity:1!important;
}
body :is(.option-panel .table-wrap,.market-table-scroll)>table :is(.metric-yellow,.metric-gold) .coi-setup-marker{background:transparent!important;border-color:#000!important}
body :is(.option-panel .table-wrap,.market-table-scroll)>table .spot-row th{padding:3px 2px!important;font-size:17px!important}
body :is(.option-panel .table-wrap,.market-table-scroll)>table .spot-row th>span{font-size:12px!important}
/* Light theme: ordinary quantity cells match the other table cells, not black. */
body[data-theme="white"] :is(.option-panel .table-wrap,.market-table-scroll)>table td.metric-low{
  background:var(--panel)!important;
  color:var(--ink)!important;
}
body[data-theme="white"] :is(.option-panel .table-wrap,.market-table-scroll)>table tbody tr:hover td.metric-low{
  background:var(--surface-2)!important;
}
body[data-theme="white"] :is(.option-panel .table-wrap,.market-table-scroll)>table td.metric-low .cell-pair:not(.positive):not(.negative):not(.muted){
  color:var(--ink)!important;
}
body[data-theme="white"] :is(.option-panel .table-wrap,.market-table-scroll)>table :is(.metric-ce-max,.metric-pe-max),
body[data-theme="white"] :is(.option-panel .table-wrap,.market-table-scroll)>table :is(.metric-ce-max,.metric-pe-max) .cell-pair,
body[data-theme="white"] :is(.option-panel .table-wrap,.market-table-scroll)>table :is(.metric-ce-max,.metric-pe-max) .cell-pair *{
  color:#fff!important;
  opacity:1!important;
}
