/* Approved mobile Cash form only. */
@media (max-width: 860px) {
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form {
    display: flex;
    flex-direction: column;
    gap: 10px !important;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-mobile-totals {
    order: -1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas: 'balance total' 'balance expenses';
    column-gap: 12px;
    padding: 10px 12px;
    min-width: 0;
    border: 0;
    border-radius: 12px;
    font-variant-numeric: tabular-nums;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-mobile-totals > div {
    min-height: 28px;
    min-width: 0;
    gap: 4px;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-mobile-totals > div:first-child {
    grid-area: total;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-mobile-totals > div:nth-child(2) {
    grid-area: expenses;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-mobile-totals > div:last-child {
    grid-area: balance;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-inline-end: 8px;
    border: 0;
    border-inline-end: 1px solid var(--cash-line);
    line-height: 1.15;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-mobile-totals small {
    display: none;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-mobile-totals :is(span,b) {
    color: var(--cash-text);
    overflow-wrap: anywhere;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-mobile-totals span {
    color: var(--cash-muted);
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-mobile-totals b {
    white-space: normal;
    text-align: right;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-mobile-totals .is-balance b {
    color: var(--cash-green);
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-mobile-totals .is-expense b {
    color: var(--cash-red);
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-mobile-totals > div:last-child b {
    font-size: clamp(20px, 7.3vw, 29px);
    text-align: left;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-entry-panel {
    gap: 8px !important;
    padding-bottom: 10px !important;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .bar-report-head {
    padding-block: 4px !important;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .bar-report-head > label > span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .bar-report-head label > svg {
    top: 50%;
    transform: translateY(-50%);
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .bar-report-head input:not([type='date']) {
    min-height: 44px;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-entry-field:focus-within {
    outline: 2px solid var(--cash-green);
    outline-offset: -2px;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-entry-field input {
    min-height: 44px !important;
    height: 44px !important;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-mobile-expense-summary {
    min-height: 44px;
    padding-block: 5px;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-mobile-expenses-total {
    display: none;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-mobile-add-expense {
    justify-content: flex-start;
    border: 0 !important;
    border-block: 1px solid var(--cash-line) !important;
    border-radius: 0;
    min-height: 44px;
    padding-inline: 8px !important;
    margin-top: 2px;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-mobile-comment {
    padding-block: 0;
  }
  html:root body .app-shell .screen.bar-reports-screen.cash-mobile-compact .bar-report-form .cash-mobile-comment summary {
    min-height: 44px;
  }
}
