.workspace.mpRoiWorkspace {
  min-height: 100vh;
  padding-bottom: 20px;
  overflow-x: hidden;
}

.mpRoiView {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  padding-top: 0;
}

.mpRoiView[hidden] {
  display: none;
}

.mpRoiFilterBand {
  position: sticky;
  top: 76px;
  z-index: 12;
  display: grid;
  grid-template-columns: max-content minmax(250px, 1.25fr) minmax(180px, 0.85fr) minmax(180px, 0.85fr) auto;
  align-items: end;
  gap: 12px;
  min-height: 86px;
  margin: 0 calc(var(--dash-page-pad) * -1);
  padding: 13px var(--dash-page-pad) 14px;
  border-bottom: 1px solid var(--ui-border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.mpRoiField {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.mpRoiField > span:first-child {
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 600;
}

.mpRoiNativeSelect,
.mpRoiDateField > input[type="hidden"] {
  display: none;
}

.mpRoiFilterButton {
  height: 38px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--ui-border-strong);
  border-radius: 6px;
  outline: none;
  background: var(--ui-surface);
  color: var(--ui-text-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.mpRoiFilterButton:hover {
  border-color: #aeb9c8;
}

.mpRoiFilterButton[aria-expanded="true"] {
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mpRoiDateButton {
  width: 246px;
  justify-content: flex-start;
  color: var(--ui-text-soft);
}

.mpRoiDateButton svg,
.mpRoiSelectButton svg,
.mpRoiSelectPanel svg,
.mpRoiSelectSearch svg {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mpRoiDateButton svg {
  width: 17px;
  height: 17px;
  color: var(--ui-primary);
}

.mpRoiDateButton > span,
.mpRoiSelectButton > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpRoiSelectButton {
  width: 100%;
  justify-content: space-between;
}

.mpRoiSelectButton > svg {
  width: 16px;
  height: 16px;
  color: var(--ui-muted);
  transition: transform 160ms ease;
}

.mpRoiSelectButton[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}

.mpRoiSelectButton.has-selection {
  color: var(--ui-text);
  font-weight: 600;
}

.mpRoiDatePanel,
.mpRoiSelectPanel {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 60;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: var(--ui-surface);
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.16);
}

.mpRoiDatePanel[hidden],
.mpRoiSelectPanel[hidden] {
  display: none;
}

.mpRoiDatePanel {
  width: min(620px, calc(100vw - var(--dash-sidebar-width) - var(--dash-page-pad) * 2));
  color: var(--ui-text-soft);
}

.mpRoiDateDraft {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--ui-border);
  color: var(--ui-text-soft);
  font-size: 14px;
  font-weight: 600;
}

.mpRoiDateBody {
  position: relative;
  padding: 12px 28px 7px;
}

.mpRoiDateMonths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.mpRoiDateNav {
  position: absolute;
  top: 13px;
  z-index: 2;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #98a2b3;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mpRoiDateNav:hover:not(:disabled) {
  background: var(--ui-primary-soft);
  color: var(--ui-primary);
}

.mpRoiDateNav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

#mpRoiDatePrev {
  left: 16px;
}

#mpRoiDateNext {
  right: 16px;
}

.mpRoiDateMonth > strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ui-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.mpRoiDateWeekdays,
.mpRoiDateGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mpRoiDateWeekdays {
  margin-bottom: 4px;
  color: #98a2b3;
  font-size: 11px;
  text-align: center;
}

.mpRoiDateWeekdays span,
.mpRoiDateDay {
  height: 31px;
  display: grid;
  place-items: center;
}

.mpRoiDateDay {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ui-text-soft);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.mpRoiDateDay:hover:not(:disabled) {
  background: var(--ui-primary-soft);
  color: var(--ui-primary);
}

.mpRoiDateDay.outside {
  color: #b8c0cc;
}

.mpRoiDateDay.in-range {
  background: #dbe7ff;
}

.mpRoiDateDay.selected {
  background: var(--ui-primary);
  color: #fff;
  font-weight: 700;
}

.mpRoiDateDay.disabled {
  color: #d0d5dd;
  opacity: 0.55;
  cursor: not-allowed;
}

.mpRoiDateFooter {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px 9px 14px;
  border-top: 1px solid var(--ui-border);
}

.mpRoiDateShortcuts,
.mpRoiDateActions {
  display: flex;
  align-items: center;
}

.mpRoiDateShortcuts {
  gap: 2px;
}

.mpRoiDateShortcuts button {
  height: 30px;
  padding: 0 7px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ui-text-soft);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.mpRoiDateShortcuts button:hover {
  background: var(--ui-primary-soft);
  color: var(--ui-primary);
}

.mpRoiDateActions {
  gap: 8px;
}

.mpRoiDateConfirm,
.mpRoiDateCancel {
  height: 34px;
  min-width: 62px;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.mpRoiDateConfirm {
  border: 1px solid var(--ui-primary);
  background: var(--ui-primary);
  color: #fff;
}

.mpRoiDateConfirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mpRoiDateCancel {
  border: 1px solid var(--ui-border-strong);
  background: var(--ui-surface);
  color: var(--ui-text-soft);
}

.mpRoiSelectPanel {
  width: max(100%, 320px);
}

.mpRoiSelectPanelWide {
  width: max(100%, 440px);
}

.mpRoiGamePanel {
  width: max(100%, 320px);
}

#mpRoiCreativePanel {
  right: 0;
  left: auto;
}

.mpRoiSelectPanel > header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px 9px 14px;
  border-bottom: 1px solid #edf0f4;
}

.mpRoiSelectPanel > header > div {
  display: grid;
  gap: 1px;
}

.mpRoiSelectPanel > header strong {
  color: var(--ui-text);
  font-size: 14px;
  line-height: 20px;
}

.mpRoiSelectPanel > header span {
  color: var(--ui-muted);
  font-size: 11px;
  font-weight: 500;
}

.mpRoiSelectPanel > header button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ui-muted);
  cursor: pointer;
}

.mpRoiSelectPanel > header button:hover {
  background: #f2f4f7;
  color: var(--ui-text);
}

.mpRoiSelectPanel > header button svg {
  width: 16px;
  height: 16px;
}

.mpRoiSelectSearch {
  position: relative;
  display: block;
  padding: 10px 12px 8px;
}

.mpRoiSelectSearch svg {
  position: absolute;
  top: 29px;
  left: 24px;
  width: 16px;
  height: 16px;
  color: var(--ui-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.mpRoiSelectSearch input {
  width: 100%;
  height: 38px;
  padding: 0 11px 0 34px;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  outline: none;
  background: #f8fafc;
  color: var(--ui-text-soft);
  font: inherit;
  font-size: 13px;
}

.mpRoiSelectSearch input:focus {
  border-color: #78a6f8;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.mpRoiSelectMeta {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid #edf0f4;
  color: var(--ui-muted);
  font-size: 11px;
}

.mpRoiGameMeta {
  min-height: 34px;
  justify-content: space-between;
  padding: 0 12px;
}

.mpRoiGameMeta strong {
  color: var(--ui-text-soft);
  font-size: 12px;
  font-weight: 600;
}

.mpRoiGameMeta button {
  padding: 3px 2px;
  border: 0;
  background: transparent;
  color: var(--ui-primary);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.mpRoiGameMeta button:disabled {
  color: #c4cad3;
  cursor: default;
}

.mpRoiGameSummary {
  min-height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8px 12px;
  border-bottom: 1px solid #edf0f4;
  background: #f8fafc;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpRoiGameGroup {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  color: var(--ui-muted);
  font-size: 12px;
}

.mpRoiGameGroup strong {
  color: var(--ui-primary);
  font-size: 12px;
  font-weight: 600;
}

.mpRoiSelectOptions {
  max-height: 310px;
  overflow-y: auto;
  padding: 7px 8px 9px;
  scrollbar-color: #c8d1dc transparent;
  scrollbar-width: thin;
}

.mpRoiGameOptions {
  max-height: 260px;
  padding-top: 0;
}

.mpRoiGameOption {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ui-text-soft);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.mpRoiGameOption:hover {
  background: #f5f7fa;
}

.mpRoiGameOption > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpRoiGameCheckbox {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: grid;
  place-items: center;
  border: 1px solid #b8c0cc;
  border-radius: 2px;
  background: #fff;
  color: #fff;
}

.mpRoiGameCheckbox svg {
  width: 11px;
  height: 11px;
  opacity: 0;
  stroke-width: 2.2;
}

.mpRoiGameOption[aria-selected="true"] .mpRoiGameCheckbox {
  border-color: var(--ui-primary);
  background: var(--ui-primary);
}

.mpRoiGameOption[aria-selected="true"] .mpRoiGameCheckbox svg {
  opacity: 1;
}

.mpRoiSelectOption {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px 7px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ui-text-soft);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mpRoiSelectOption:hover {
  background: #f7f9fc;
}

.mpRoiSelectOption[aria-selected="true"] {
  border-color: #cfe0ff;
  background: #f1f6ff;
  color: var(--ui-primary);
}

.mpRoiSelectOptionContent {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mpRoiSelectOptionContent strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpRoiSelectOptionContent small {
  color: var(--ui-muted);
  font-size: 10px;
  font-weight: 500;
}

.mpRoiSelectOption > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  opacity: 0;
}

.mpRoiSelectOption[aria-selected="true"] > svg {
  opacity: 1;
}

.mpRoiSelectEmpty {
  padding: 28px 12px;
  color: var(--ui-muted);
  font-size: 12px;
  text-align: center;
}

.mpRoiFilterActions,
.mpRoiTools,
.mpRoiToolbar,
.mpRoiTabs,
.mpRoiPagination {
  display: flex;
  align-items: center;
}

.mpRoiFilterActions {
  gap: 8px;
}

.mpRoiPrimaryButton,
.mpRoiIconButton,
.mpRoiToolButton,
.mpRoiTabs button,
.mpRoiPagination button {
  height: 38px;
  border: 1px solid var(--ui-border-strong);
  border-radius: 6px;
  background: var(--ui-surface);
  color: var(--ui-text-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mpRoiPrimaryButton,
.mpRoiToolButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
}

.mpRoiPrimaryButton {
  border-color: var(--ui-primary);
  background: var(--ui-primary);
  color: #fff;
}

.mpRoiPrimaryButton:hover {
  background: var(--ui-primary-hover);
}

.mpRoiIconButton {
  width: 38px;
  display: grid;
  place-items: center;
  padding: 0;
}

.mpRoiPrimaryButton svg,
.mpRoiIconButton svg,
.mpRoiToolButton svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mpRoiToolbar {
  min-height: 42px;
  justify-content: space-between;
  gap: 16px;
}

.mpRoiTabs {
  gap: 0;
  padding: 3px;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  background: #eef1f5;
}

.mpRoiTabs button {
  height: 32px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--ui-muted);
}

.mpRoiTabs button.active {
  background: var(--ui-surface);
  color: var(--ui-primary);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

.mpRoiTools {
  justify-content: flex-end;
  gap: 12px;
}

.mpRoiCheck {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ui-text-soft);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.mpRoiCheck input,
.mpRoiDayToggle input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--ui-success);
}

.mpRoiColumnControl {
  position: relative;
}

.mpRoiToolButton b {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: #eef2f6;
  color: var(--ui-muted);
  font-size: 11px;
}

.mpRoiColumnsPanel[hidden] {
  display: none;
}

.mpRoiColumnsPanel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 35;
  width: min(500px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ui-border-strong);
  border-radius: 6px;
  background: var(--ui-surface);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.mpRoiColumnsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px 10px;
}

.mpRoiColumnsHeader strong {
  color: var(--ui-text);
  font-size: 13px;
  line-height: 20px;
}

.mpRoiColumnsHeader span {
  color: var(--ui-muted);
  font-size: 12px;
}

.mpRoiAllDays {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 8px 14px 16px;
  padding: 4px 0;
}

.mpRoiDayToggle {
  min-width: 0;
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ui-text-soft);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.mpRoiDayToggle:hover {
  color: #039855;
}

.mpRoiDayToggle input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  accent-color: #12b76a;
  cursor: pointer;
}

.mpRoiColumnsFooter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--ui-border);
}

.mpRoiColumnsFooter button {
  height: 30px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--ui-border-strong);
  border-radius: 5px;
  background: var(--ui-surface);
  color: var(--ui-text-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.mpRoiColumnsFooter button:hover {
  border-color: var(--ui-muted);
  color: var(--ui-text);
}

.mpRoiColumnsFooter .mpRoiApplyButton {
  border-color: #12b76a;
  background: #12b76a;
  color: #fff;
}

.mpRoiColumnsFooter .mpRoiApplyButton:hover {
  border-color: #039855;
  background: #039855;
  color: #fff;
}

.mpRoiTableShell {
  min-width: 0;
  min-height: 430px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  overflow: hidden;
  background: var(--ui-surface);
}

.mpRoiTableScroll {
  min-width: 0;
  flex: 1 1 auto;
  overflow: auto;
}

.mpRoiTable {
  width: max-content;
  min-width: 100%;
  height: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ui-text-soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.mpRoiTable th,
.mpRoiTable td {
  min-width: 108px;
  height: 56px;
  padding: 0 16px;
  border-right: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
  background: var(--ui-surface);
  text-align: right;
  white-space: nowrap;
}

.mpRoiTable th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 50px;
  background: #f8fafc;
  color: var(--ui-muted);
  font-weight: 700;
}

.mpRoiTable .mpRoiStickyDate {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 126px;
  text-align: left;
}

.mpRoiTable th.mpRoiStickyDate {
  z-index: 4;
  background: #f8fafc;
}

.mpRoiTable tbody tr:hover td {
  background: #f9fbfd;
}

.mpRoiTable tbody tr:hover .mpRoiStickyDate {
  background: #f9fbfd;
}

.mpRoiTable td small {
  margin-left: 4px;
  color: #98a2b3;
  font-size: 10px;
}

.mpRoiSpendCell {
  color: #344054;
  font-weight: 600;
}

.mpRoiTable .is-missing {
  color: #98a2b3;
}

.mpRoiEmpty {
  flex: 1 1 auto;
  place-content: center;
  color: var(--ui-muted);
  font-size: 13px;
  text-align: center;
}

.mpRoiEmpty:not([hidden]) {
  display: grid;
}

:root[data-theme="dark"] .mpRoiFilterBand {
  background: rgba(17, 24, 39, 0.96);
}

:root[data-theme="dark"] .mpRoiSelectPanel > header,
:root[data-theme="dark"] .mpRoiSelectMeta,
:root[data-theme="dark"] .mpRoiGameSummary {
  border-color: var(--ui-border);
}

:root[data-theme="dark"] .mpRoiSelectSearch input,
:root[data-theme="dark"] .mpRoiGameSummary,
:root[data-theme="dark"] .mpRoiTabs,
:root[data-theme="dark"] .mpRoiToolButton b,
:root[data-theme="dark"] .mpRoiTable th,
:root[data-theme="dark"] .mpRoiTable th.mpRoiStickyDate,
:root[data-theme="dark"] .mpRoiFooter {
  background: var(--ui-surface-subtle);
}

:root[data-theme="dark"] .mpRoiSelectSearch input:focus,
:root[data-theme="dark"] .mpRoiGameCheckbox {
  background: var(--ui-surface);
}

:root[data-theme="dark"] .mpRoiSelectOption:hover,
:root[data-theme="dark"] .mpRoiGameOption:hover,
:root[data-theme="dark"] .mpRoiTable tbody tr:hover td,
:root[data-theme="dark"] .mpRoiTable tbody tr:hover .mpRoiStickyDate {
  background: #1b2639;
}

:root[data-theme="dark"] .mpRoiSelectOption[aria-selected="true"] {
  border-color: #31558b;
  background: var(--ui-primary-soft);
}

:root[data-theme="dark"] .mpRoiTable th,
:root[data-theme="dark"] .mpRoiTable td {
  border-color: var(--ui-border);
}

:root[data-theme="dark"] .mpRoiSpendCell {
  color: var(--ui-text);
}

.mpRoiFooter {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 106px 8px 14px;
  border-top: 1px solid var(--ui-border);
  background: #fbfcfd;
}

.mpRoiFooter p {
  margin: 0;
  color: var(--ui-muted);
  font-size: 12px;
}

.mpRoiPagination {
  gap: 7px;
}

.mpRoiPagination span {
  color: var(--ui-muted);
  font-size: 12px;
  white-space: nowrap;
}

.mpRoiPagination button {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 18px;
}

.mpRoiPagination input {
  width: 48px;
  height: 32px;
  padding: 0 5px;
  border: 1px solid var(--ui-border-strong);
  border-radius: 5px;
  background: #fff;
  color: var(--ui-text-soft);
  font: inherit;
  font-size: 12px;
  text-align: center;
}

.mpRoiView button:disabled,
.mpRoiView.is-loading .mpRoiFilterButton,
.mpRoiView.is-loading select,
.mpRoiView.is-loading input {
  cursor: wait;
  opacity: 0.62;
}

@media (max-width: 1280px) {
  .mpRoiFilterBand {
    grid-template-columns: 230px minmax(210px, 1.1fr) repeat(2, minmax(145px, 0.75fr)) auto;
  }

  .mpRoiDateButton {
    width: 100%;
  }

  .mpRoiTools {
    gap: 8px;
  }
}

@media (max-width: 980px) {
  .mpRoiFilterBand {
    grid-template-columns: 1fr 1fr;
  }

  .mpRoiToolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .mpRoiTools {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .mpRoiDateButton {
    width: 100%;
  }

  .mpRoiSelectPanelWide {
    width: max(100%, 380px);
  }
}

@media (max-width: 640px) {
  .workspace.mpRoiWorkspace {
    padding-right: 12px;
    padding-left: 12px;
  }

  .mpRoiFilterBand {
    grid-template-columns: 1fr;
  }

  .mpRoiDateButton {
    width: 100%;
  }

  .mpRoiDatePanel,
  .mpRoiSelectPanel,
  .mpRoiSelectPanelWide {
    position: fixed;
    inset: 86px 12px auto;
    width: auto;
    max-height: calc(100vh - 98px);
  }

  .mpRoiDateMonths {
    grid-template-columns: minmax(0, 1fr);
  }

  .mpRoiDateMonth:nth-child(2) {
    display: none;
  }

  .mpRoiDateFooter {
    align-items: flex-start;
    flex-direction: column;
  }

  .mpRoiDateShortcuts {
    flex-wrap: wrap;
  }

  .mpRoiSelectOptions {
    max-height: calc(100vh - 250px);
  }

  .mpRoiTabs,
  .mpRoiTabs button {
    width: 100%;
  }

  .mpRoiColumnsPanel {
    position: fixed;
    inset: auto 12px 12px;
    width: auto;
    max-height: calc(100vh - 24px);
  }

  .mpRoiColumnsHeader {
    padding: 14px 14px 10px;
  }

  .mpRoiAllDays {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mpRoiColumnsFooter {
    padding: 10px 14px 12px;
  }

  .mpRoiFooter {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 14px;
  }
}
