.report-editor-modal:is(.report-entry-modal, .report-detail-modal),
.report-entry-popup {
  --report-entry-text-size: 13px;
}

.report-editor-modal.report-entry-modal .ant-modal-header .ant-modal-title,
.report-editor-modal.report-entry-modal .report-editor-form,
.report-editor-modal.report-entry-modal .report-editor-form :is(
  .ant-form-item-label > label, .dynamic-report-label, .dynamic-report-label small,
  .care-staffing-label, .care-staffing-error, .care-staffing-shift h4,
  .ant-typography, .ant-input, .ant-input-number-input, .ant-picker-input > input,
  .ant-select-selector, .ant-select-selection-item, .ant-select-selection-placeholder,
  .ant-select-selection-search-input, .ant-form-item-explain, .ant-form-item-explain-error,
  .ant-alert-message, .ant-alert-description, .report-editor-notes a
),
.report-editor-modal:is(.report-entry-modal, .report-detail-modal) .ant-modal-footer .ant-btn,
.report-entry-popup :is(.ant-select-item, .ant-select-item-option-content, .ant-picker-cell-inner) {
  font-size: var(--report-entry-text-size) !important;
}

.report-editor-modal.report-entry-modal .report-editor-form :is(input, textarea)::placeholder {
  font-size: var(--report-entry-text-size) !important;
}

.report-editor-modal:is(.report-entry-modal, .report-detail-modal).report-editor-modal-fullscreen,
.report-entry-popup.report-entry-popup-mobile {
  --report-entry-text-size: 16px;
}

@supports (grid-template-rows: subgrid) {
  .report-entry-modal :is(.report-editor-grid, .dynamic-report-grid) > .ant-form-item:not(.ant-form-item-hidden),
  .report-entry-modal .dynamic-report-grid > div:not(.ant-form-item),
  .report-entry-modal .care-staffing-grid .care-staffing-field {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    row-gap: 4px;
    align-self: stretch;
    margin-block: 0;
    min-width: 0;
  }

  .report-entry-modal :is(.report-editor-grid, .dynamic-report-grid) > .ant-form-item > .ant-form-item-row,
  .report-entry-modal .care-staffing-grid > div:has(> .care-staffing-field) {
    display: contents;
  }

  .report-entry-modal :is(.report-editor-grid, .dynamic-report-grid) > .ant-form-item .ant-form-item-label {
    padding-bottom: 0;
  }

  .report-entry-modal :is(.dynamic-report-label, .care-staffing-label) {
    margin-bottom: 0;
  }
}
