/* Shared New Request / Draft / Create Job form: make editable fields distinct. */
#createDrawer :is(input, select, textarea):not(:where([type="checkbox"], [type="radio"], [type="hidden"])) {
  min-width: 0;
  border-color: #6685ad;
  background: #edf4ff;
  color: #162e50;
  font-weight: 600;
  box-shadow: inset 0 1px 2px #17385c0a;
}

#createDrawer :is(input, textarea)::placeholder {
  color: #5b6e87;
  opacity: 1;
  font-weight: 400;
}

#createDrawer :is(.form-grid label, #accessFields > label, .request-controls label) {
  color: #344e70;
}

#createDrawer .form-grid label em,
#createDrawer .section-title p,
#createDrawer #accessFields small { color: #586c86; }

@media (hover: hover) {
  #createDrawer :is(input, select, textarea):not(:disabled):not([readonly]):hover {
    border-color: #416b9f;
  }
}

#createDrawer :is(input, select, textarea):focus {
  border-color: #1d4ed8;
  background: #fff;
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #2563eb14;
}

#createDrawer :is(input, select, textarea)[aria-invalid="true"] {
  border-color: #b42332;
  outline-color: #b42332;
}

#createDrawer :is(input, select, textarea):is(:disabled, [readonly]) {
  border-color: #91a0b3;
  background: #edf0f5;
  color: #4c5b70;
  -webkit-text-fill-color: currentColor;
  opacity: 1;
  font-weight: 500;
  box-shadow: none;
}

@media (forced-colors: active) {
  #createDrawer :is(input, select, textarea) {
    background: Canvas;
    color: CanvasText;
    border-color: ButtonText;
    box-shadow: none;
  }
  #createDrawer :is(input, select, textarea):focus { outline-color: Highlight; }
  #createDrawer :is(input, textarea)::placeholder { color: GrayText; }
  #createDrawer :is(input, select, textarea):is(:disabled, [readonly]) {
    color: GrayText;
    border-color: GrayText;
    background: Canvas;
  }
}
