/* Scoped to the new options workspaces; does not alter desktop/tablet page grids. */
.tw-tool-workspace .tw-research-toolbar .dash-dropdown-focus-target {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}
.tw-tool-workspace .tw-research-toolbar .dash-dropdown-value-item {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tw-exposure-matrix .tw-research-toolbar {
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
}
#research-panes.tw-research-larger :is(div,span,label)[style*="font-size: 11px"],
#research-panes.tw-research-larger :is(div,span,label)[style*="font-size: 12px"] {
  font-size: 14px !important;
}
.tw-strategy-desk .dash-table-container :is(.Select-control,.Select-menu-outer,.Select-option) {
  background: #10171d !important;
  color: #dbe4ef !important;
}
.tw-strategy-desk .dash-table-container .Select-option.is-focused {
  background: #25372f !important;
}
.tw-strategy-desk .dash-table-container input {
  color: #edf2f1 !important;
  background: #0b1016 !important;
}
.tw-option-history .DateRangePicker { width: 100%; }
.tw-option-history .DateRangePickerInput { display: flex; align-items: center; width: 100%; background: #0b1016; border: 1px solid #ffffff24; border-radius: 8px; box-sizing: border-box; }
.tw-option-history .DateInput { width: calc((100% - 26px)/2); min-width: 0; background: transparent; }
.tw-option-history .DateInput_input { font-size: 12px; padding: 10px 5px; color: #dbe4ef; background: transparent; border-radius: 8px; box-sizing: border-box; }
.tw-option-history .DateRangePickerInput_arrow { width: 26px; flex-shrink: 0; text-align: center; }
@media (max-width: 760px) {
  /* Editable spreadsheets must stay actual tables, unlike read-only mobile cards. */
  .tw-strategy-desk #strategy-desk-legs table { display: table !important; width: auto !important; max-width: none !important; overflow: initial !important; }
  .tw-strategy-desk #strategy-desk-legs thead { display: table-header-group !important; }
  .tw-strategy-desk #strategy-desk-legs tbody { display: table-row-group !important; }
  .tw-strategy-desk #strategy-desk-legs tr { display: table-row !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
  .tw-strategy-desk #strategy-desk-legs :is(th,td) { display: table-cell !important; min-width: 85px !important; width: auto !important; padding: 10px !important; text-align: left !important; white-space: nowrap !important; border: 1px solid #ffffff14 !important; }
  .tw-strategy-desk #strategy-desk-legs td::before { display: none !important; }
  #research-panes > .tw-page-card { resize: none !important; }
  .tw-strategy-desk .tw-research-toolbar { grid-template-columns: minmax(0,1fr) !important; }
}
