html:not([data-ui="new"]) .usage-new-only {
  display: none !important;
}

html[data-ui="new"] .usage-classic-only,
html[data-ui="new"] #viewLedger > :not(#requestUsageNew) {
  display: none !important;
}

html[data-ui="new"] .ui-design2 #appView[data-active-view="ledger"] .app-main {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

html[data-ui="new"] .ui-design2 #appView[data-active-view="ledger"] .workspace {
  display: flex;
  flex: 1 1 0%;
  min-width: 0;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden !important;
}

html[data-ui="new"] #viewLedger {
  flex: 1 1 0%;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

html[data-ui="new"] #viewLedger:not(.hidden) {
  display: flex;
  flex-direction: column;
}

html[data-ui="new"] #requestUsageNew {
  display: flex !important;
  flex: 1 1 0%;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  overflow: hidden;
}

html[data-ui="new"] .newapi-usage-frame {
  display: block;
  flex: 1 1 0%;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: var(--bg);
}

@media (max-width: 860px) {
  html[data-ui="new"] .ui-design2 #appView[data-active-view="ledger"] {
    height: var(--workspace-height, 100dvh);
    min-height: 0;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
  }

  html[data-ui="new"] .ui-design2 #appView[data-active-view="ledger"] .workspace {
    height: 0;
  }
}
