/* These classes are applied to selected controls in the ORS staff workspace. */
@media screen {
  label.ors-choice:not([hidden]) {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-sizing: border-box;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #ccd7de;
    border-radius: 8px;
    background: #fff;
    color: #182d3d;
    font-size: 1rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
    cursor: pointer;
  }
  label.ors-choice + label.ors-choice {
    margin-block-start: 6px;
  }
  :is(.form-grid, .ors-choice-list, .checkbox-grid) > label.ors-choice {
    margin-block: 0;
  }
  label.ors-choice > input[type="checkbox"] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--red, #c62831);
  }
  label.ors-choice:has(> input:checked) {
    border-color: #ad6970;
    background: #fff7f7;
  }
  label.ors-choice:focus-within {
    outline: 2px solid #1f6386;
    outline-offset: 2px;
  }
  .ors-choice-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 8px;
    align-items: stretch;
  }
  .ors-menu-tabs > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
    line-height: 1.35;
  }
}
@media screen and (max-width: 640px) {
  .ors-mobile-actions:not([hidden]),
  nav.ors-menu-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    min-width: 0;
  }
  nav.ors-menu-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .ors-menu-tabs a,
  .ors-mobile-actions > *,
  .ors-mobile-actions > .field,
  .ors-mobile-actions > label {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .ors-mobile-actions :is(select, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"])),
  .ors-mobile-actions > :is(form, div, label),
  .ors-mobile-actions .button,
  .ors-save-wide {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .ors-mobile-actions .button,
  .button.ors-save-wide {
    min-height: 44px;
    height: auto;
    white-space: normal;
    line-height: 1.45;
  }
  .ors-choice-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .ors-choice:not([hidden]) + .ors-save-wide {
    margin-block-start: 6px;
  }
}
