/* Match the desktop Dividends transaction rows without constraining editors. */
@layer desktop-transaction-rows {
  @media (min-width: 761px) {
    html { --transaction-row-height: 38.5px; }
    html[data-theme="warm-oak"] { --transaction-row-height: 38px; }

    html body :is(#deposits-tbody, #withdrawals-table-body, #stocks-gains-table-body)
      > tr:not(.editing):not(:has(input:not([type="checkbox"]), select, textarea, .withdrawal-source-picker)) {
      height: var(--transaction-row-height) !important;
      min-height: 0 !important;
      box-sizing: border-box !important;
    }
    html body :is(#deposits-tbody, #withdrawals-table-body, #stocks-gains-table-body)
      > tr:not(.editing):not(:has(input:not([type="checkbox"]), select, textarea, .withdrawal-source-picker)) > td {
      padding-block: 5px !important;
      font-size: 12px !important;
      line-height: 1.2 !important;
      box-sizing: border-box !important;
    }
    html body :is(#deposits-tbody, #withdrawals-table-body, #stocks-gains-table-body)
      > tr:not(.editing):not(:has(input:not([type="checkbox"]), select, textarea, .withdrawal-source-picker)) > td > :is(strong, b, span:not([class*="icon"])) {
      font-size: 12px !important;
    }
    html body :is(#deposits-tbody, #withdrawals-table-body, #stocks-gains-table-body)
      > tr:not(.editing):not(:has(input:not([type="checkbox"]), select, textarea, .withdrawal-source-picker)) > td {
      height: var(--transaction-row-height) !important;
      min-height: 0 !important;
    }
    html body :is(#deposits-tbody, #withdrawals-table-body, #stocks-gains-table-body)
      > tr:not(.editing):not(:has(input:not([type="checkbox"]), select, textarea, .withdrawal-source-picker)) .action-menu-toggle {
      width: 24px !important;
      height: 24px !important;
      min-width: 24px !important;
      min-height: 24px !important;
      padding: 3px !important;
      box-sizing: border-box !important;
    }
  }
}
